public void setAttachToIndex(BatchAttachToIndex attachToIndex) {
        this.attachToIndex = attachToIndex;
    }
<p>
Attaches the specified object to the specified index.
</p>

@param attachToIndex
       Attaches the specified object to the specified index.
aws-java-sdk-clouddirectory/src/main/java/com/amazonaws/services/clouddirectory/model/BatchWriteOperation.java