public void setTargetVersion(String targetVersion) {
        this.targetVersion = targetVersion;
    }
<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.
aws-java-sdk-elasticsearch/src/main/java/com/amazonaws/services/elasticsearch/model/UpgradeElasticsearchDomainRequest.java