public GetCompatibleElasticsearchVersionsResult withCompatibleElasticsearchVersions(CompatibleVersionsMap... compatibleElasticsearchVersions) {
        if (this.compatibleElasticsearchVersions == null) {
            setCompatibleElasticsearchVersions(new java.util.ArrayList<CompatibleVersionsMap>(compatibleElasticsearchVersions.length));
        }
        for (CompatibleVersionsMap ele : compatibleElasticsearchVersions) {
            this.compatibleElasticsearchVersions.add(ele);
        }
        return this;
    }
<p>
A map of compatible Elasticsearch versions returned as part of the
<code> <a>GetCompatibleElasticsearchVersions</a> </code> operation.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setCompatibleElasticsearchVersions(java.util.Collection)} or
{@link #withCompatibleElasticsearchVersions(java.util.Collection)} if you want to override the existing values.
</p>

@param compatibleElasticsearchVersions
       A map of compatible Elasticsearch versions returned as part of the
       <code> <a>GetCompatibleElasticsearchVersions</a> </code> operation.
@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/GetCompatibleElasticsearchVersionsResult.java