public DomainStatus withCognitoOptions(CognitoOptions cognitoOptions) {
        setCognitoOptions(cognitoOptions);
        return this;
    }
<p>
Key-value pairs to configure Amazon Cognito authentication for OpenSearch Dashboards.
</p>

@param cognitoOptions
       Key-value pairs to configure Amazon Cognito authentication for OpenSearch Dashboards.
@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/DomainStatus.java