public ServiceTemplateVersion withCompatibleEnvironmentTemplates(java.util.Collection<CompatibleEnvironmentTemplate> compatibleEnvironmentTemplates) {
        setCompatibleEnvironmentTemplates(compatibleEnvironmentTemplates);
        return this;
    }
<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.
@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/ServiceTemplateVersion.java