@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class LaunchTemplateSpecification extends Object implements Serializable, Cloneable
Describes a launch template and the launch template version.
The launch template that is specified must be configured for use with an Auto Scaling group. For more information, see Creating a Launch Template for an Auto Scaling Group in the Amazon EC2 Auto Scaling User Guide.
Constructor and Description |
---|
LaunchTemplateSpecification() |
Modifier and Type | Method and Description |
---|---|
LaunchTemplateSpecification |
clone() |
boolean |
equals(Object obj) |
String |
getLaunchTemplateId()
The ID of the launch template.
|
String |
getLaunchTemplateName()
The name of the launch template.
|
String |
getVersion()
The version number,
$Latest , or $Default . |
int |
hashCode() |
void |
setLaunchTemplateId(String launchTemplateId)
The ID of the launch template.
|
void |
setLaunchTemplateName(String launchTemplateName)
The name of the launch template.
|
void |
setVersion(String version)
The version number,
$Latest , or $Default . |
String |
toString()
Returns a string representation of this object.
|
LaunchTemplateSpecification |
withLaunchTemplateId(String launchTemplateId)
The ID of the launch template.
|
LaunchTemplateSpecification |
withLaunchTemplateName(String launchTemplateName)
The name of the launch template.
|
LaunchTemplateSpecification |
withVersion(String version)
The version number,
$Latest , or $Default . |
public void setLaunchTemplateId(String launchTemplateId)
The ID of the launch template. You must specify either a template ID or a template name.
launchTemplateId
- The ID of the launch template. You must specify either a template ID or a template name.public String getLaunchTemplateId()
The ID of the launch template. You must specify either a template ID or a template name.
public LaunchTemplateSpecification withLaunchTemplateId(String launchTemplateId)
The ID of the launch template. You must specify either a template ID or a template name.
launchTemplateId
- The ID of the launch template. You must specify either a template ID or a template name.public void setLaunchTemplateName(String launchTemplateName)
The name of the launch template. You must specify either a template name or a template ID.
launchTemplateName
- The name of the launch template. You must specify either a template name or a template ID.public String getLaunchTemplateName()
The name of the launch template. You must specify either a template name or a template ID.
public LaunchTemplateSpecification withLaunchTemplateName(String launchTemplateName)
The name of the launch template. You must specify either a template name or a template ID.
launchTemplateName
- The name of the launch template. You must specify either a template name or a template ID.public void setVersion(String version)
The version number, $Latest
, or $Default
. If the value is $Latest
, Amazon
EC2 Auto Scaling selects the latest version of the launch template when launching instances. If the value is
$Default
, Amazon EC2 Auto Scaling selects the default version of the launch template when launching
instances. The default value is $Default
.
version
- The version number, $Latest
, or $Default
. If the value is $Latest
,
Amazon EC2 Auto Scaling selects the latest version of the launch template when launching instances. If the
value is $Default
, Amazon EC2 Auto Scaling selects the default version of the launch template
when launching instances. The default value is $Default
.public String getVersion()
The version number, $Latest
, or $Default
. If the value is $Latest
, Amazon
EC2 Auto Scaling selects the latest version of the launch template when launching instances. If the value is
$Default
, Amazon EC2 Auto Scaling selects the default version of the launch template when launching
instances. The default value is $Default
.
$Latest
, or $Default
. If the value is $Latest
,
Amazon EC2 Auto Scaling selects the latest version of the launch template when launching instances. If
the value is $Default
, Amazon EC2 Auto Scaling selects the default version of the launch
template when launching instances. The default value is $Default
.public LaunchTemplateSpecification withVersion(String version)
The version number, $Latest
, or $Default
. If the value is $Latest
, Amazon
EC2 Auto Scaling selects the latest version of the launch template when launching instances. If the value is
$Default
, Amazon EC2 Auto Scaling selects the default version of the launch template when launching
instances. The default value is $Default
.
version
- The version number, $Latest
, or $Default
. If the value is $Latest
,
Amazon EC2 Auto Scaling selects the latest version of the launch template when launching instances. If the
value is $Default
, Amazon EC2 Auto Scaling selects the default version of the launch template
when launching instances. The default value is $Default
.public String toString()
toString
in class Object
Object.toString()
public LaunchTemplateSpecification clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.