public DomainConfig withCognitoOptions(CognitoOptionsStatus cognitoOptions) {
        setCognitoOptions(cognitoOptions);
        return this;
    }
<p>
Container for Amazon Cognito options for the domain.
</p>

@param cognitoOptions
       Container for Amazon Cognito options for the domain.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-opensearch/src/main/java/com/amazonaws/services/opensearch/model/DomainConfig.java