public UpgradeElasticsearchDomainRequest withTargetVersion(String targetVersion) {
        setTargetVersion(targetVersion);
        return this;
    }
<p>
The version of Elasticsearch that you intend to upgrade the domain to.
</p>

@param targetVersion
       The version of Elasticsearch that you intend to upgrade the domain to.
@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/UpgradeElasticsearchDomainRequest.java