@Generated(value="software.amazon.awssdk:codegen") public final class LaunchTemplateSpecification extends Object implements SdkPojo, Serializable, ToCopyableBuilder<LaunchTemplateSpecification.Builder,LaunchTemplateSpecification>
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.
Modifier and Type | Class and Description |
---|---|
static interface |
LaunchTemplateSpecification.Builder |
Modifier and Type | Method and Description |
---|---|
static LaunchTemplateSpecification.Builder |
builder() |
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
launchTemplateId()
The ID of the launch template.
|
String |
launchTemplateName()
The name of the launch template.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends LaunchTemplateSpecification.Builder> |
serializableBuilderClass() |
LaunchTemplateSpecification.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
String |
version()
The version number,
$Latest , or $Default . |
copy
public String launchTemplateId()
The ID of the launch template. You must specify either a template ID or a template name.
public String launchTemplateName()
The name of the launch template. You must specify either a template name or a template ID.
public 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
.
$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.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<LaunchTemplateSpecification.Builder,LaunchTemplateSpecification>
public static LaunchTemplateSpecification.Builder builder()
public static Class<? extends LaunchTemplateSpecification.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.