public String getTargetVersion() {
        return this.targetVersion;
    }
<p>
OpenSearch or Elasticsearch version to which you want to upgrade, in the format Opensearch_X.Y or
Elasticsearch_X.Y.
</p>

@return OpenSearch or Elasticsearch version to which you want to upgrade, in the format Opensearch_X.Y or
        Elasticsearch_X.Y.
aws-java-sdk-opensearch/src/main/java/com/amazonaws/services/opensearch/model/UpgradeDomainRequest.java