public CreateServiceTemplateVersionRequest withCompatibleEnvironmentTemplates(
            java.util.Collection<CompatibleEnvironmentTemplateInput> compatibleEnvironmentTemplates) {
        setCompatibleEnvironmentTemplates(compatibleEnvironmentTemplates);
        return this;
    }
<p>
An array of environment template objects that are compatible with the new service template version. A service
instance based on this service template version can run in environments based on compatible templates.
</p>

@param compatibleEnvironmentTemplates
       An array of environment template objects that are compatible with the new service template version. A
       service instance based on this service template version can run in environments based on compatible
       templates.
@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/CreateServiceTemplateVersionRequest.java