public ListEnvironmentTemplateVersionsResult withTemplateVersions(EnvironmentTemplateVersionSummary... templateVersions) {
        if (this.templateVersions == null) {
            setTemplateVersions(new java.util.ArrayList<EnvironmentTemplateVersionSummary>(templateVersions.length));
        }
        for (EnvironmentTemplateVersionSummary ele : templateVersions) {
            this.templateVersions.add(ele);
        }
        return this;
    }
<p>
An array of major or minor versions of an environment template detail data.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setTemplateVersions(java.util.Collection)} or {@link #withTemplateVersions(java.util.Collection)} if you
want to override the existing values.
</p>

@param templateVersions
       An array of major or minor versions of an environment template detail data.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-proton/src/main/java/com/amazonaws/services/proton/model/ListEnvironmentTemplateVersionsResult.java