Class LaunchTemplateSpecification
- java.lang.Object
-
- software.amazon.awssdk.services.autoscaling.model.LaunchTemplateSpecification
-
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<LaunchTemplateSpecification.Builder,LaunchTemplateSpecification>
@Generated("software.amazon.awssdk:codegen") public final class LaunchTemplateSpecification extends Object implements SdkPojo, Serializable, ToCopyableBuilder<LaunchTemplateSpecification.Builder,LaunchTemplateSpecification>
Describes the launch template and the version of the launch template that Amazon EC2 Auto Scaling uses to launch Amazon EC2 instances. For more information about launch templates, see Launch templates in the Amazon EC2 Auto Scaling User Guide.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
LaunchTemplateSpecification.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LaunchTemplateSpecification.Builder
builder()
boolean
equals(Object obj)
boolean
equalsBySdkFields(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()
String
toString()
Returns a string representation of this object.String
version()
The version number,$Latest
, or$Default
.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
launchTemplateId
public final String launchTemplateId()
The ID of the launch template. To get the template ID, use the Amazon EC2 DescribeLaunchTemplates API operation. New launch templates can be created using the Amazon EC2 CreateLaunchTemplate API.
Conditional: You must specify either a
LaunchTemplateId
or aLaunchTemplateName
.- Returns:
- The ID of the launch template. To get the template ID, use the Amazon EC2 DescribeLaunchTemplates API operation. New launch templates can be created using the Amazon EC2
CreateLaunchTemplate API.
Conditional: You must specify either a
LaunchTemplateId
or aLaunchTemplateName
.
-
launchTemplateName
public final String launchTemplateName()
The name of the launch template. To get the template name, use the Amazon EC2 DescribeLaunchTemplates API operation. New launch templates can be created using the Amazon EC2 CreateLaunchTemplate API.
Conditional: You must specify either a
LaunchTemplateId
or aLaunchTemplateName
.- Returns:
- The name of the launch template. To get the template name, use the Amazon EC2 DescribeLaunchTemplates API operation. New launch templates can be created using the Amazon EC2
CreateLaunchTemplate API.
Conditional: You must specify either a
LaunchTemplateId
or aLaunchTemplateName
.
-
version
public final String version()
The version number,
$Latest
, or$Default
. To get the version number, use the Amazon EC2 DescribeLaunchTemplateVersions API operation. New launch template versions can be created using the Amazon EC2 CreateLaunchTemplateVersion API. 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
.- Returns:
- The version number,
$Latest
, or$Default
. To get the version number, use the Amazon EC2 DescribeLaunchTemplateVersions API operation. New launch template versions can be created using the Amazon EC2 CreateLaunchTemplateVersion API. 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
.
-
toBuilder
public LaunchTemplateSpecification.Builder toBuilder()
- Specified by:
toBuilder
in interfaceToCopyableBuilder<LaunchTemplateSpecification.Builder,LaunchTemplateSpecification>
-
builder
public static LaunchTemplateSpecification.Builder builder()
-
serializableBuilderClass
public static Class<? extends LaunchTemplateSpecification.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFields
in interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-