Class LaunchTemplateSpecification
- java.lang.Object
-
- software.amazon.awssdk.services.eks.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>
An object representing a node group launch template specification. The launch template can't include
SubnetId,IamInstanceProfile,RequestSpotInstances,HibernationOptions, orTerminateInstances, or the node group deployment or update will fail. For more information about launch templates, seeCreateLaunchTemplatein the Amazon EC2 API Reference. For more information about using launch templates with Amazon EKS, see Customizing managed nodes with launch templates in the Amazon EKS User Guide.You must specify either the launch template ID or the launch template name in the request, but not both.
- 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()Stringid()The ID of the launch template.Stringname()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 of the launch template to use.-
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
-
name
public final String name()
The name of the launch template.
You must specify either the launch template name or the launch template ID in the request, but not both.
- Returns:
- The name of the launch template.
You must specify either the launch template name or the launch template ID in the request, but not both.
-
version
public final String version()
The version number of the launch template to use. If no version is specified, then the template's default version is used.
- Returns:
- The version number of the launch template to use. If no version is specified, then the template's default version is used.
-
id
public final String id()
The ID of the launch template.
You must specify either the launch template ID or the launch template name in the request, but not both.
- Returns:
- The ID of the launch template.
You must specify either the launch template ID or the launch template name in the request, but not both.
-
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
-
-