public BatchWriteOperation withCreateIndex(BatchCreateIndex createIndex) {
        setCreateIndex(createIndex);
        return this;
    }
<p>
Creates an index object. See <a
href="https://docs.aws.amazon.com/clouddirectory/latest/developerguide/indexing_search.htm">Indexing and
search</a> for more information.
</p>

@param createIndex
       Creates an index object. See <a
       href="https://docs.aws.amazon.com/clouddirectory/latest/developerguide/indexing_search.htm">Indexing and
       search</a> for more information.
@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/BatchWriteOperation.java