public DescribeDomainsRequest withDomainNames(java.util.Collection<String> domainNames) {
        setDomainNames(domainNames);
        return this;
    }
<p>
Array of OpenSearch Service domain names that you want information about. You must specify at least one domain
name.
</p>

@param domainNames
       Array of OpenSearch Service domain names that you want information about. You must specify at least one
       domain name.
@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/DescribeDomainsRequest.java