public ElasticsearchDomainStatus withDomainName(String domainName) {
        setDomainName(domainName);
        return this;
    }
<p>
The name of an Elasticsearch domain. Domain names are unique across the domains owned by an account within an AWS
region. Domain names start with a letter or number and can contain the following characters: a-z (lowercase),
0-9, and - (hyphen).
</p>

@param domainName
       The name of an Elasticsearch domain. Domain names are unique across the domains owned by an account within
       an AWS region. Domain names start with a letter or number and can contain the following characters: a-z
       (lowercase), 0-9, and - (hyphen).
@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/ElasticsearchDomainStatus.java