/*
* 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.ec2.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.AmazonWebServiceRequest;
import com.amazonaws.Request;
import com.amazonaws.services.ec2.model.transform.CreateLaunchTemplateRequestMarshaller;
/**
*
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class CreateLaunchTemplateRequest extends AmazonWebServiceRequest implements Serializable, Cloneable,
DryRunSupportedRequest
* Unique, case-sensitive identifier you provide to ensure the idempotency of the request. For more information, see
* Ensuring
* idempotency.
*
* Constraint: Maximum 128 ASCII characters.
*
* A name for the launch template.
*
* A description for the first version of the launch template.
*
* The information for the launch template.
*
* The tags to apply to the launch template on creation. To tag the launch template, the resource type must be
*
* To specify the tags for the resources that are created when an instance is launched, you must use the
*
* Unique, case-sensitive identifier you provide to ensure the idempotency of the request. For more information, see
* Ensuring
* idempotency.
*
* Constraint: Maximum 128 ASCII characters.
* launch-template
.
* TagSpecifications
parameter in the launch template
* data structure.
*
* Constraint: Maximum 128 ASCII characters. */ public void setClientToken(String clientToken) { this.clientToken = clientToken; } /** *
* Unique, case-sensitive identifier you provide to ensure the idempotency of the request. For more information, see * Ensuring * idempotency. *
** Constraint: Maximum 128 ASCII characters. *
* * @return Unique, case-sensitive identifier you provide to ensure the idempotency of the request. For more * information, see Ensuring * idempotency. ** Constraint: Maximum 128 ASCII characters. */ public String getClientToken() { return this.clientToken; } /** *
* Unique, case-sensitive identifier you provide to ensure the idempotency of the request. For more information, see * Ensuring * idempotency. *
** Constraint: Maximum 128 ASCII characters. *
* * @param clientToken * Unique, case-sensitive identifier you provide to ensure the idempotency of the request. For more * information, see Ensuring * idempotency. ** Constraint: Maximum 128 ASCII characters. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateLaunchTemplateRequest withClientToken(String clientToken) { setClientToken(clientToken); return this; } /** *
* A name for the launch template. *
* * @param launchTemplateName * A name for the launch template. */ public void setLaunchTemplateName(String launchTemplateName) { this.launchTemplateName = launchTemplateName; } /** ** A name for the launch template. *
* * @return A name for the launch template. */ public String getLaunchTemplateName() { return this.launchTemplateName; } /** ** A name for the launch template. *
* * @param launchTemplateName * A name for the launch template. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateLaunchTemplateRequest withLaunchTemplateName(String launchTemplateName) { setLaunchTemplateName(launchTemplateName); return this; } /** ** A description for the first version of the launch template. *
* * @param versionDescription * A description for the first version of the launch template. */ public void setVersionDescription(String versionDescription) { this.versionDescription = versionDescription; } /** ** A description for the first version of the launch template. *
* * @return A description for the first version of the launch template. */ public String getVersionDescription() { return this.versionDescription; } /** ** A description for the first version of the launch template. *
* * @param versionDescription * A description for the first version of the launch template. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateLaunchTemplateRequest withVersionDescription(String versionDescription) { setVersionDescription(versionDescription); return this; } /** ** The information for the launch template. *
* * @param launchTemplateData * The information for the launch template. */ public void setLaunchTemplateData(RequestLaunchTemplateData launchTemplateData) { this.launchTemplateData = launchTemplateData; } /** ** The information for the launch template. *
* * @return The information for the launch template. */ public RequestLaunchTemplateData getLaunchTemplateData() { return this.launchTemplateData; } /** ** The information for the launch template. *
* * @param launchTemplateData * The information for the launch template. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateLaunchTemplateRequest withLaunchTemplateData(RequestLaunchTemplateData launchTemplateData) { setLaunchTemplateData(launchTemplateData); return this; } /** *
* The tags to apply to the launch template on creation. To tag the launch template, the resource type must be
* launch-template
.
*
* To specify the tags for the resources that are created when an instance is launched, you must use the
* TagSpecifications
parameter in the launch template
* data structure.
*
launch-template
.
* To specify the tags for the resources that are created when an instance is launched, you must use the
* TagSpecifications
parameter in the launch
* template data structure.
*
* The tags to apply to the launch template on creation. To tag the launch template, the resource type must be
* launch-template
.
*
* To specify the tags for the resources that are created when an instance is launched, you must use the
* TagSpecifications
parameter in the launch template
* data structure.
*
launch-template
.
* To specify the tags for the resources that are created when an instance is launched, you must use the
* TagSpecifications
parameter in the launch
* template data structure.
*
* The tags to apply to the launch template on creation. To tag the launch template, the resource type must be
* launch-template
.
*
* To specify the tags for the resources that are created when an instance is launched, you must use the
* TagSpecifications
parameter in the launch template
* data structure.
*
* NOTE: This method appends the values to the existing list (if any). Use * {@link #setTagSpecifications(java.util.Collection)} or {@link #withTagSpecifications(java.util.Collection)} if * you want to override the existing values. *
* * @param tagSpecifications * The tags to apply to the launch template on creation. To tag the launch template, the resource type must * belaunch-template
.
* To specify the tags for the resources that are created when an instance is launched, you must use the
* TagSpecifications
parameter in the launch
* template data structure.
*
* The tags to apply to the launch template on creation. To tag the launch template, the resource type must be
* launch-template
.
*
* To specify the tags for the resources that are created when an instance is launched, you must use the
* TagSpecifications
parameter in the launch template
* data structure.
*
launch-template
.
* To specify the tags for the resources that are created when an instance is launched, you must use the
* TagSpecifications
parameter in the launch
* template data structure.
*