public ListElasticsearchInstanceTypesRequest withDomainName(String domainName) {
        setDomainName(domainName);
        return this;
    }
<p>
DomainName represents the name of the Domain that we are trying to modify. This should be present only if we are
querying for list of available Elasticsearch instance types when modifying existing domain.
</p>

@param domainName
       DomainName represents the name of the Domain that we are trying to modify. This should be present only if
       we are querying for list of available Elasticsearch instance types when modifying existing domain.
@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/ListElasticsearchInstanceTypesRequest.java