/* * 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 CreateEnvironmentTemplateVersionRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* When included, if two identical requests are made with the same client token, Proton returns the environment * template version that the first request created. *
*/ private String clientToken; /** ** A description of the new version of an environment template. *
*/ private String description; /** *
* To create a new minor version of the environment template, include major Version
.
*
* To create a new major and minor version of the environment template, exclude major Version
.
*
* An object that includes the template bundle S3 bucket path and name for the new version of an template. *
*/ private TemplateVersionSourceInput source; /** ** An optional list of metadata items that you can associate with the Proton environment template version. A tag is * a key-value pair. *
** For more information, see Proton * resources and tagging in the Proton User Guide. *
*/ private java.util.List* The name of the environment template. *
*/ private String templateName; /** ** When included, if two identical requests are made with the same client token, Proton returns the environment * template version that the first request created. *
* * @param clientToken * When included, if two identical requests are made with the same client token, Proton returns the * environment template version that the first request created. */ public void setClientToken(String clientToken) { this.clientToken = clientToken; } /** ** When included, if two identical requests are made with the same client token, Proton returns the environment * template version that the first request created. *
* * @return When included, if two identical requests are made with the same client token, Proton returns the * environment template version that the first request created. */ public String getClientToken() { return this.clientToken; } /** ** When included, if two identical requests are made with the same client token, Proton returns the environment * template version that the first request created. *
* * @param clientToken * When included, if two identical requests are made with the same client token, Proton returns the * environment template version that the first request created. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateEnvironmentTemplateVersionRequest withClientToken(String clientToken) { setClientToken(clientToken); return this; } /** ** A description of the new version of an environment template. *
* * @param description * A description of the new version of an environment template. */ public void setDescription(String description) { this.description = description; } /** ** A description of the new version of an environment template. *
* * @return A description of the new version of an environment template. */ public String getDescription() { return this.description; } /** ** A description of the new version of an environment template. *
* * @param description * A description of the new version of an environment template. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateEnvironmentTemplateVersionRequest withDescription(String description) { setDescription(description); return this; } /** *
* To create a new minor version of the environment template, include major Version
.
*
* To create a new major and minor version of the environment template, exclude major Version
.
*
major Version
.
*
* To create a new major and minor version of the environment template, exclude major Version
.
*/
public void setMajorVersion(String majorVersion) {
this.majorVersion = majorVersion;
}
/**
*
* To create a new minor version of the environment template, include major Version
.
*
* To create a new major and minor version of the environment template, exclude major Version
.
*
major Version
.
*
* To create a new major and minor version of the environment template, exclude major Version
.
*/
public String getMajorVersion() {
return this.majorVersion;
}
/**
*
* To create a new minor version of the environment template, include major Version
.
*
* To create a new major and minor version of the environment template, exclude major Version
.
*
major Version
.
*
* To create a new major and minor version of the environment template, exclude major Version
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateEnvironmentTemplateVersionRequest withMajorVersion(String majorVersion) {
setMajorVersion(majorVersion);
return this;
}
/**
*
* An object that includes the template bundle S3 bucket path and name for the new version of an template. *
* * @param source * An object that includes the template bundle S3 bucket path and name for the new version of an template. */ public void setSource(TemplateVersionSourceInput source) { this.source = source; } /** ** An object that includes the template bundle S3 bucket path and name for the new version of an template. *
* * @return An object that includes the template bundle S3 bucket path and name for the new version of an template. */ public TemplateVersionSourceInput getSource() { return this.source; } /** ** An object that includes the template bundle S3 bucket path and name for the new version of an template. *
* * @param source * An object that includes the template bundle S3 bucket path and name for the new version of an template. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateEnvironmentTemplateVersionRequest withSource(TemplateVersionSourceInput source) { setSource(source); return this; } /** ** An optional list of metadata items that you can associate with the Proton environment template version. A tag is * a key-value pair. *
** For more information, see Proton * resources and tagging in the Proton User Guide. *
* * @return An optional list of metadata items that you can associate with the Proton environment template version. A * tag is a key-value pair. *
* For more information, see Proton resources and
* tagging in the Proton User Guide.
*/
public java.util.List
* An optional list of metadata items that you can associate with the Proton environment template version. A tag is
* a key-value pair.
*
* For more information, see Proton
* resources and tagging in the Proton User Guide.
*
* For more information, see Proton resources and tagging
* in the Proton User Guide.
*/
public void setTags(java.util.Collection
* An optional list of metadata items that you can associate with the Proton environment template version. A tag is
* a key-value pair.
*
* For more information, see Proton
* resources and tagging in the Proton User Guide.
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setTags(java.util.Collection)} or {@link #withTags(java.util.Collection)} if you want to override the
* existing values.
*
* For more information, see Proton resources and tagging
* in the Proton User Guide.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateEnvironmentTemplateVersionRequest withTags(Tag... tags) {
if (this.tags == null) {
setTags(new java.util.ArrayList
* An optional list of metadata items that you can associate with the Proton environment template version. A tag is
* a key-value pair.
*
* For more information, see Proton
* resources and tagging in the Proton User Guide.
*
* For more information, see Proton resources and tagging
* in the Proton User Guide.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateEnvironmentTemplateVersionRequest withTags(java.util.Collection
* The name of the environment template.
*
* The name of the environment template.
*
* The name of the environment template.
*