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 interfaceLaunchTemplateSpecification.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LaunchTemplateSpecification.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringlaunchTemplateId()The ID of the launch template.StringlaunchTemplateName()The name of the launch template.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends LaunchTemplateSpecification.Builder>serializableBuilderClass()LaunchTemplateSpecification.BuildertoBuilder()StringtoString()Returns a string representation of this object.Stringversion()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
LaunchTemplateIdor 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
LaunchTemplateIdor 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
LaunchTemplateIdor 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
LaunchTemplateIdor 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:
toBuilderin 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:
equalsBySdkFieldsin 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.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-