public UpgradeDomainRequest withDomainName(String domainName) {
        setDomainName(domainName);
        return this;
    }
<p>
Name of the OpenSearch Service domain that you want to upgrade.
</p>

@param domainName
       Name of the OpenSearch Service domain that you want to upgrade.
@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/UpgradeDomainRequest.java