public ListDomainNamesResult withDomainNames(java.util.Collection<DomainInfo> domainNames) {
        setDomainNames(domainNames);
        return this;
    }
<p>
The names of all OpenSearch Service domains owned by the current user and their respective engine types.
</p>

@param domainNames
       The names of all OpenSearch Service domains owned by the current user and their respective engine types.
@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/ListDomainNamesResult.java