public void setDomainNames(java.util.Collection<DomainInfo> domainNames) {
        if (domainNames == null) {
            this.domainNames = null;
            return;
        }

        this.domainNames = new java.util.ArrayList<DomainInfo>(domainNames);
    }
<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.
aws-java-sdk-opensearch/src/main/java/com/amazonaws/services/opensearch/model/ListDomainNamesResult.java