code: public DescribeIndexFieldsResult withIndexFields(IndexFieldStatus... indexFields) {
          if (this.indexFields == null) {
              setIndexFields(new com.amazonaws.internal.SdkInternalList<IndexFieldStatus>(indexFields.length));
          }
          for (IndexFieldStatus ele : indexFields) {
              this.indexFields.add(ele);
          }
          return this;
      }
docs: <p>
  The index fields configured for the domain.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setIndexFields(java.util.Collection)} or {@link #withIndexFields(java.util.Collection)} if you want to
  override the existing values.
  </p>
  
  @param indexFields
  The index fields configured for the domain.
  @return Returns a reference to this object so that method calls can be chained together.