public GetIndexResult withState(String state) {
        setState(state);
        return this;
    }
<p>
The current state of the index in this Amazon Web Services Region.
</p>

@param state
       The current state of the index in this Amazon Web Services Region.
@return Returns a reference to this object so that method calls can be chained together.
@see IndexState
aws-java-sdk-resourceexplorer2/src/main/java/com/amazonaws/services/resourceexplorer2/model/GetIndexResult.java