public CognitoOptions withUserPoolId(String userPoolId) {
        setUserPoolId(userPoolId);
        return this;
    }
<p>
Specifies the Cognito user pool ID for Kibana authentication.
</p>

@param userPoolId
       Specifies the Cognito user pool ID for Kibana authentication.
@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/CognitoOptions.java