/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.proton.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** * * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class UpdateServiceTemplateVersionRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* An array of environment template objects that are compatible with this service template version. A service * instance based on this service template version can run in environments based on compatible templates. *
*/ private java.util.List* A description of a service template version to update. *
*/ private String description; /** *
* To update a major version of a service template, include major Version
.
*
* To update a minor version of a service template, include minorVersion
.
*
* The status of the service template minor version to update. *
*/ private String status; /** ** An array of supported component sources. Components with supported sources can be attached to service instances * based on this service template version. *
*
* A change to supportedComponentSources
doesn't impact existing component attachments to instances
* based on this template version. A change only affects later associations.
*
* For more information about components, see Proton components in the * Proton User Guide. *
*/ private java.util.List* The name of the service template. *
*/ private String templateName; /** ** An array of environment template objects that are compatible with this service template version. A service * instance based on this service template version can run in environments based on compatible templates. *
* * @return An array of environment template objects that are compatible with this service template version. A * service instance based on this service template version can run in environments based on compatible * templates. */ public java.util.List* An array of environment template objects that are compatible with this service template version. A service * instance based on this service template version can run in environments based on compatible templates. *
* * @param compatibleEnvironmentTemplates * An array of environment template objects that are compatible with this service template version. A service * instance based on this service template version can run in environments based on compatible templates. */ public void setCompatibleEnvironmentTemplates(java.util.Collection* An array of environment template objects that are compatible with this service template version. A service * instance based on this service template version can run in environments based on compatible templates. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setCompatibleEnvironmentTemplates(java.util.Collection)} or * {@link #withCompatibleEnvironmentTemplates(java.util.Collection)} if you want to override the existing values. *
* * @param compatibleEnvironmentTemplates * An array of environment template objects that are compatible with this 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. */ public UpdateServiceTemplateVersionRequest withCompatibleEnvironmentTemplates(CompatibleEnvironmentTemplateInput... compatibleEnvironmentTemplates) { if (this.compatibleEnvironmentTemplates == null) { setCompatibleEnvironmentTemplates(new java.util.ArrayList* An array of environment template objects that are compatible with this service template version. A service * instance based on this service template version can run in environments based on compatible templates. *
* * @param compatibleEnvironmentTemplates * An array of environment template objects that are compatible with this 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. */ public UpdateServiceTemplateVersionRequest withCompatibleEnvironmentTemplates( java.util.Collection* A description of a service template version to update. *
* * @param description * A description of a service template version to update. */ public void setDescription(String description) { this.description = description; } /** ** A description of a service template version to update. *
* * @return A description of a service template version to update. */ public String getDescription() { return this.description; } /** ** A description of a service template version to update. *
* * @param description * A description of a service template version to update. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateServiceTemplateVersionRequest withDescription(String description) { setDescription(description); return this; } /** *
* To update a major version of a service template, include major Version
.
*
major Version
.
*/
public void setMajorVersion(String majorVersion) {
this.majorVersion = majorVersion;
}
/**
*
* To update a major version of a service template, include major Version
.
*
major Version
.
*/
public String getMajorVersion() {
return this.majorVersion;
}
/**
*
* To update a major version of a service template, include major Version
.
*
major Version
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateServiceTemplateVersionRequest withMajorVersion(String majorVersion) {
setMajorVersion(majorVersion);
return this;
}
/**
*
* To update a minor version of a service template, include minorVersion
.
*
minorVersion
.
*/
public void setMinorVersion(String minorVersion) {
this.minorVersion = minorVersion;
}
/**
*
* To update a minor version of a service template, include minorVersion
.
*
minorVersion
.
*/
public String getMinorVersion() {
return this.minorVersion;
}
/**
*
* To update a minor version of a service template, include minorVersion
.
*
minorVersion
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateServiceTemplateVersionRequest withMinorVersion(String minorVersion) {
setMinorVersion(minorVersion);
return this;
}
/**
* * The status of the service template minor version to update. *
* * @param status * The status of the service template minor version to update. * @see TemplateVersionStatus */ public void setStatus(String status) { this.status = status; } /** ** The status of the service template minor version to update. *
* * @return The status of the service template minor version to update. * @see TemplateVersionStatus */ public String getStatus() { return this.status; } /** ** The status of the service template minor version to update. *
* * @param status * The status of the service template minor version to update. * @return Returns a reference to this object so that method calls can be chained together. * @see TemplateVersionStatus */ public UpdateServiceTemplateVersionRequest withStatus(String status) { setStatus(status); return this; } /** ** The status of the service template minor version to update. *
* * @param status * The status of the service template minor version to update. * @return Returns a reference to this object so that method calls can be chained together. * @see TemplateVersionStatus */ public UpdateServiceTemplateVersionRequest withStatus(TemplateVersionStatus status) { this.status = status.toString(); return this; } /** ** An array of supported component sources. Components with supported sources can be attached to service instances * based on this service template version. *
*
* A change to supportedComponentSources
doesn't impact existing component attachments to instances
* based on this template version. A change only affects later associations.
*
* For more information about components, see Proton components in the * Proton User Guide. *
* * @return An array of supported component sources. Components with supported sources can be attached to service * instances based on this service template version.
* A change to supportedComponentSources
doesn't impact existing component attachments to
* instances based on this template version. A change only affects later associations.
*
* For more information about components, see Proton components in
* the Proton User Guide.
* @see ServiceTemplateSupportedComponentSourceType
*/
public java.util.List
* An array of supported component sources. Components with supported sources can be attached to service instances
* based on this service template version.
*
* A change to
* For more information about components, see Proton components in the
* Proton User Guide.
* supportedComponentSources
doesn't impact existing component attachments to instances
* based on this template version. A change only affects later associations.
*
* A change to supportedComponentSources
doesn't impact existing component attachments to
* instances based on this template version. A change only affects later associations.
*
* For more information about components, see Proton components in the
* Proton User Guide.
* @see ServiceTemplateSupportedComponentSourceType
*/
public void setSupportedComponentSources(java.util.Collection
* An array of supported component sources. Components with supported sources can be attached to service instances
* based on this service template version.
*
* A change to
* For more information about components, see Proton components in the
* Proton User Guide.
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setSupportedComponentSources(java.util.Collection)} or
* {@link #withSupportedComponentSources(java.util.Collection)} if you want to override the existing values.
* supportedComponentSources
doesn't impact existing component attachments to instances
* based on this template version. A change only affects later associations.
*
* A change to supportedComponentSources
doesn't impact existing component attachments to
* instances based on this template version. A change only affects later associations.
*
* For more information about components, see Proton components in the
* Proton User Guide.
* @return Returns a reference to this object so that method calls can be chained together.
* @see ServiceTemplateSupportedComponentSourceType
*/
public UpdateServiceTemplateVersionRequest withSupportedComponentSources(String... supportedComponentSources) {
if (this.supportedComponentSources == null) {
setSupportedComponentSources(new java.util.ArrayList
* An array of supported component sources. Components with supported sources can be attached to service instances
* based on this service template version.
*
* A change to
* For more information about components, see Proton components in the
* Proton User Guide.
* supportedComponentSources
doesn't impact existing component attachments to instances
* based on this template version. A change only affects later associations.
*
* A change to supportedComponentSources
doesn't impact existing component attachments to
* instances based on this template version. A change only affects later associations.
*
* For more information about components, see Proton components in the
* Proton User Guide.
* @return Returns a reference to this object so that method calls can be chained together.
* @see ServiceTemplateSupportedComponentSourceType
*/
public UpdateServiceTemplateVersionRequest withSupportedComponentSources(java.util.Collection
* An array of supported component sources. Components with supported sources can be attached to service instances
* based on this service template version.
*
* A change to
* For more information about components, see Proton components in the
* Proton User Guide.
* supportedComponentSources
doesn't impact existing component attachments to instances
* based on this template version. A change only affects later associations.
*
* A change to supportedComponentSources
doesn't impact existing component attachments to
* instances based on this template version. A change only affects later associations.
*
* For more information about components, see Proton components in the
* Proton User Guide.
* @return Returns a reference to this object so that method calls can be chained together.
* @see ServiceTemplateSupportedComponentSourceType
*/
public UpdateServiceTemplateVersionRequest withSupportedComponentSources(ServiceTemplateSupportedComponentSourceType... supportedComponentSources) {
java.util.ArrayList
* The name of the service template.
*
* The name of the service template.
*
* The name of the service template.
*