public DeleteIndexResult withState(IndexState state) {
        this.state = state.toString();
        return this;
    }
<p>
Indicates the current state of the index.
</p>

@param state
       Indicates the current state of the index.
@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/DeleteIndexResult.java