public PackageDetails withEngineVersion(String engineVersion) {
        setEngineVersion(engineVersion);
        return this;
    }
<p>
Version of OpenSearch or Elasticsearch, in the format Elasticsearch_X.Y or OpenSearch_X.Y. Defaults to the latest
version of OpenSearch.
</p>

@param engineVersion
       Version of OpenSearch or Elasticsearch, in the format Elasticsearch_X.Y or OpenSearch_X.Y. Defaults to the
       latest version of OpenSearch.
@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/PackageDetails.java