code: public BatchListIndexResponse withIndexAttachments(IndexAttachment... indexAttachments) {
          if (this.indexAttachments == null) {
              setIndexAttachments(new java.util.ArrayList<IndexAttachment>(indexAttachments.length));
          }
          for (IndexAttachment ele : indexAttachments) {
              this.indexAttachments.add(ele);
          }
          return this;
      }
docs: <p>
  The objects and indexed values attached to the index.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setIndexAttachments(java.util.Collection)} or {@link #withIndexAttachments(java.util.Collection)} if you
  want to override the existing values.
  </p>
  
  @param indexAttachments
  The objects and indexed values attached to the index.
  @return Returns a reference to this object so that method calls can be chained together.