public AdvancedSecurityOptionsInput withAnonymousAuthEnabled(Boolean anonymousAuthEnabled) {
        setAnonymousAuthEnabled(anonymousAuthEnabled);
        return this;
    }
<p>
True if Anonymous auth is enabled. Anonymous auth can be enabled only when AdvancedSecurity is enabled on
existing domains.
</p>

@param anonymousAuthEnabled
       True if Anonymous auth is enabled. Anonymous auth can be enabled only when AdvancedSecurity is enabled on
       existing domains.
@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/AdvancedSecurityOptionsInput.java