/* * 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.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Detailed data of an Proton service template version resource. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class ServiceTemplateVersion implements Serializable, Cloneable, StructuredPojo { /** ** The Amazon Resource Name (ARN) of the version of a service template. *
*/ private String arn; /** ** An array of compatible environment template names for the major version of a service template. *
*/ private java.util.List* The time when the version of a service template was created. *
*/ private java.util.Date createdAt; /** ** A description of the version of a service template. *
*/ private String description; /** ** The time when the version of a service template was last modified. *
*/ private java.util.Date lastModifiedAt; /** ** The latest major version that's associated with the version of a service template. *
*/ private String majorVersion; /** ** The minor version of a service template. *
*/ private String minorVersion; /** ** The recommended minor version of the service template. *
*/ private String recommendedMinorVersion; /** ** The schema of the version of a service template. *
*/ private String schema; /** ** The service template version status. *
*/ private String status; /** ** A service template version status message. *
*/ private String statusMessage; /** ** An array of supported component sources. Components with supported sources can be attached to service instances * based on this service template version. *
** For more information about components, see Proton components in the * Proton User Guide. *
*/ private java.util.List* The name of the version of a service template. *
*/ private String templateName; /** ** The Amazon Resource Name (ARN) of the version of a service template. *
* * @param arn * The Amazon Resource Name (ARN) of the version of a service template. */ public void setArn(String arn) { this.arn = arn; } /** ** The Amazon Resource Name (ARN) of the version of a service template. *
* * @return The Amazon Resource Name (ARN) of the version of a service template. */ public String getArn() { return this.arn; } /** ** The Amazon Resource Name (ARN) of the version of a service template. *
* * @param arn * The Amazon Resource Name (ARN) of the version of a service template. * @return Returns a reference to this object so that method calls can be chained together. */ public ServiceTemplateVersion withArn(String arn) { setArn(arn); return this; } /** ** An array of compatible environment template names for the major version of a service template. *
* * @return An array of compatible environment template names for the major version of a service template. */ public java.util.List* An array of compatible environment template names for the major version of a service template. *
* * @param compatibleEnvironmentTemplates * An array of compatible environment template names for the major version of a service template. */ public void setCompatibleEnvironmentTemplates(java.util.Collection* An array of compatible environment template names for the major version of a service template. *
** 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 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. */ public ServiceTemplateVersion withCompatibleEnvironmentTemplates(CompatibleEnvironmentTemplate... compatibleEnvironmentTemplates) { if (this.compatibleEnvironmentTemplates == null) { setCompatibleEnvironmentTemplates(new java.util.ArrayList* An array of compatible environment template names for the major version of a service template. *
* * @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. */ public ServiceTemplateVersion withCompatibleEnvironmentTemplates(java.util.Collection* The time when the version of a service template was created. *
* * @param createdAt * The time when the version of a service template was created. */ public void setCreatedAt(java.util.Date createdAt) { this.createdAt = createdAt; } /** ** The time when the version of a service template was created. *
* * @return The time when the version of a service template was created. */ public java.util.Date getCreatedAt() { return this.createdAt; } /** ** The time when the version of a service template was created. *
* * @param createdAt * The time when the version of a service template was created. * @return Returns a reference to this object so that method calls can be chained together. */ public ServiceTemplateVersion withCreatedAt(java.util.Date createdAt) { setCreatedAt(createdAt); return this; } /** ** A description of the version of a service template. *
* * @param description * A description of the version of a service template. */ public void setDescription(String description) { this.description = description; } /** ** A description of the version of a service template. *
* * @return A description of the version of a service template. */ public String getDescription() { return this.description; } /** ** A description of the version of a service template. *
* * @param description * A description of the version of a service template. * @return Returns a reference to this object so that method calls can be chained together. */ public ServiceTemplateVersion withDescription(String description) { setDescription(description); return this; } /** ** The time when the version of a service template was last modified. *
* * @param lastModifiedAt * The time when the version of a service template was last modified. */ public void setLastModifiedAt(java.util.Date lastModifiedAt) { this.lastModifiedAt = lastModifiedAt; } /** ** The time when the version of a service template was last modified. *
* * @return The time when the version of a service template was last modified. */ public java.util.Date getLastModifiedAt() { return this.lastModifiedAt; } /** ** The time when the version of a service template was last modified. *
* * @param lastModifiedAt * The time when the version of a service template was last modified. * @return Returns a reference to this object so that method calls can be chained together. */ public ServiceTemplateVersion withLastModifiedAt(java.util.Date lastModifiedAt) { setLastModifiedAt(lastModifiedAt); return this; } /** ** The latest major version that's associated with the version of a service template. *
* * @param majorVersion * The latest major version that's associated with the version of a service template. */ public void setMajorVersion(String majorVersion) { this.majorVersion = majorVersion; } /** ** The latest major version that's associated with the version of a service template. *
* * @return The latest major version that's associated with the version of a service template. */ public String getMajorVersion() { return this.majorVersion; } /** ** The latest major version that's associated with the version of a service template. *
* * @param majorVersion * The latest major version that's associated with the version of a service template. * @return Returns a reference to this object so that method calls can be chained together. */ public ServiceTemplateVersion withMajorVersion(String majorVersion) { setMajorVersion(majorVersion); return this; } /** ** The minor version of a service template. *
* * @param minorVersion * The minor version of a service template. */ public void setMinorVersion(String minorVersion) { this.minorVersion = minorVersion; } /** ** The minor version of a service template. *
* * @return The minor version of a service template. */ public String getMinorVersion() { return this.minorVersion; } /** ** The minor version of a service template. *
* * @param minorVersion * The minor version of a service template. * @return Returns a reference to this object so that method calls can be chained together. */ public ServiceTemplateVersion withMinorVersion(String minorVersion) { setMinorVersion(minorVersion); return this; } /** ** The recommended minor version of the service template. *
* * @param recommendedMinorVersion * The recommended minor version of the service template. */ public void setRecommendedMinorVersion(String recommendedMinorVersion) { this.recommendedMinorVersion = recommendedMinorVersion; } /** ** The recommended minor version of the service template. *
* * @return The recommended minor version of the service template. */ public String getRecommendedMinorVersion() { return this.recommendedMinorVersion; } /** ** The recommended minor version of the service template. *
* * @param recommendedMinorVersion * The recommended minor version of the service template. * @return Returns a reference to this object so that method calls can be chained together. */ public ServiceTemplateVersion withRecommendedMinorVersion(String recommendedMinorVersion) { setRecommendedMinorVersion(recommendedMinorVersion); return this; } /** ** The schema of the version of a service template. *
* * @param schema * The schema of the version of a service template. */ public void setSchema(String schema) { this.schema = schema; } /** ** The schema of the version of a service template. *
* * @return The schema of the version of a service template. */ public String getSchema() { return this.schema; } /** ** The schema of the version of a service template. *
* * @param schema * The schema of the version of a service template. * @return Returns a reference to this object so that method calls can be chained together. */ public ServiceTemplateVersion withSchema(String schema) { setSchema(schema); return this; } /** ** The service template version status. *
* * @param status * The service template version status. * @see TemplateVersionStatus */ public void setStatus(String status) { this.status = status; } /** ** The service template version status. *
* * @return The service template version status. * @see TemplateVersionStatus */ public String getStatus() { return this.status; } /** ** The service template version status. *
* * @param status * The service template version status. * @return Returns a reference to this object so that method calls can be chained together. * @see TemplateVersionStatus */ public ServiceTemplateVersion withStatus(String status) { setStatus(status); return this; } /** ** The service template version status. *
* * @param status * The service template version status. * @return Returns a reference to this object so that method calls can be chained together. * @see TemplateVersionStatus */ public ServiceTemplateVersion withStatus(TemplateVersionStatus status) { this.status = status.toString(); return this; } /** ** A service template version status message. *
* * @param statusMessage * A service template version status message. */ public void setStatusMessage(String statusMessage) { this.statusMessage = statusMessage; } /** ** A service template version status message. *
* * @return A service template version status message. */ public String getStatusMessage() { return this.statusMessage; } /** ** A service template version status message. *
* * @param statusMessage * A service template version status message. * @return Returns a reference to this object so that method calls can be chained together. */ public ServiceTemplateVersion withStatusMessage(String statusMessage) { setStatusMessage(statusMessage); return this; } /** ** An array of supported component sources. Components with supported sources can be attached to service instances * based on this service template version. *
** 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. *
* 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.
*
* For more information about components, see Proton components in the
* Proton User Guide.
*
* 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.
*
* 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.
*
* 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 ServiceTemplateVersion 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.
*
* For more information about components, see Proton components in the
* Proton User Guide.
*
* 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 ServiceTemplateVersion 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.
*
* For more information about components, see Proton components in the
* Proton User Guide.
*
* 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 ServiceTemplateVersion withSupportedComponentSources(ServiceTemplateSupportedComponentSourceType... supportedComponentSources) {
java.util.ArrayList
* The name of the version of a service template.
*
* The name of the version of a service template.
*
* The name of the version of a service template.
*