public ListAttachedIndicesResult 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;
    }
<p>
The indices attached to the specified object.
</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 indices attached to the specified object.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-clouddirectory/src/main/java/com/amazonaws/services/clouddirectory/model/ListAttachedIndicesResult.java