public void setCompatibleEnvironmentTemplates(java.util.Collection<CompatibleEnvironmentTemplate> compatibleEnvironmentTemplates) {
        if (compatibleEnvironmentTemplates == null) {
            this.compatibleEnvironmentTemplates = null;
            return;
        }

        this.compatibleEnvironmentTemplates = new java.util.ArrayList<CompatibleEnvironmentTemplate>(compatibleEnvironmentTemplates);
    }
<p>
An array of compatible environment template names for the major version of a service template.
</p>

@param compatibleEnvironmentTemplates
       An array of compatible environment template names for the major version of a service template.
aws-java-sdk-proton/src/main/java/com/amazonaws/services/proton/model/ServiceTemplateVersion.java