public AccessPoliciesStatus withStatus(OptionStatus status) {
        setStatus(status);
        return this;
    }
<p>
The status of the access policy for the Elasticsearch domain. See <code>OptionStatus</code> for the status
information that's included.
</p>

@param status
       The status of the access policy for the Elasticsearch domain. See <code>OptionStatus</code> for the status
       information that's included.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-elasticsearch/src/main/java/com/amazonaws/services/elasticsearch/model/AccessPoliciesStatus.java