public String getState() {
        return this.state;
    }
<p>
Indicates the current state of the index. You can check for changes to the state for asynchronous operations by
calling the <a>GetIndex</a> operation.
</p>
<note>
<p>
The state can remain in the <code>CREATING</code> or <code>UPDATING</code> state for several hours as Resource
Explorer discovers the information about your resources and populates the index.
</p>
</note>

@return Indicates the current state of the index. You can check for changes to the state for asynchronous
        operations by calling the <a>GetIndex</a> operation.</p> <note>
        <p>
        The state can remain in the <code>CREATING</code> or <code>UPDATING</code> state for several hours as
        Resource Explorer discovers the information about your resources and populates the index.
        </p>
@see IndexState
aws-java-sdk-resourceexplorer2/src/main/java/com/amazonaws/services/resourceexplorer2/model/CreateIndexResult.java