public CognitoOptions withRoleArn(String roleArn) {
        setRoleArn(roleArn);
        return this;
    }
<p>
Specifies the role ARN that provides Elasticsearch permissions for accessing Cognito resources.
</p>

@param roleArn
       Specifies the role ARN that provides Elasticsearch permissions for accessing Cognito resources.
@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