public AmazonopensearchserviceDestinationConfiguration withDomainARN(String domainARN) {
        setDomainARN(domainARN);
        return this;
    }
<p>
The ARN of the Amazon OpenSearch Service domain. The IAM role must have permissions for
DescribeElasticsearchDomain, DescribeElasticsearchDomains, and DescribeElasticsearchDomainConfig after assuming
the role specified in RoleARN.
</p>

@param domainARN
       The ARN of the Amazon OpenSearch Service domain. The IAM role must have permissions for
       DescribeElasticsearchDomain, DescribeElasticsearchDomains, and DescribeElasticsearchDomainConfig after
       assuming the role specified in RoleARN.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-kinesis/src/main/java/com/amazonaws/services/kinesisfirehose/model/AmazonopensearchserviceDestinationConfiguration.java