public OptionStatus withState(String state) {
        setState(state);
        return this;
    }
<p>
Provides the <code>OptionState</code> for the Elasticsearch domain.
</p>

@param state
       Provides the <code>OptionState</code> for the Elasticsearch domain.
@return Returns a reference to this object so that method calls can be chained together.
@see OptionState
aws-java-sdk-elasticsearch/src/main/java/com/amazonaws/services/elasticsearch/model/OptionStatus.java