public DetachFromIndexRequest withIndexReference(ObjectReference indexReference) {
        setIndexReference(indexReference);
        return this;
    }
<p>
A reference to the index object.
</p>

@param indexReference
       A reference to the index 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/DetachFromIndexRequest.java