@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class LaunchTemplateSpecification extends Object implements Serializable, Cloneable, StructuredPojo
An object representing a node group launch template specification. The launch template can't include SubnetId
,
IamInstanceProfile
,
RequestSpotInstances
,
HibernationOptions
, or
TerminateInstances
, or the node group deployment or update will fail. For more information about
launch templates, see
CreateLaunchTemplate
in the Amazon EC2 API Reference. For more information about using launch
templates with Amazon EKS, see Launch template support 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.
Constructor and Description |
---|
LaunchTemplateSpecification() |
Modifier and Type | Method and Description |
---|---|
LaunchTemplateSpecification |
clone() |
boolean |
equals(Object obj) |
String |
getId()
The ID of the launch template.
|
String |
getName()
The name of the launch template.
|
String |
getVersion()
The launch template version number,
$Latest , or $Default . |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setId(String id)
The ID of the launch template.
|
void |
setName(String name)
The name of the launch template.
|
void |
setVersion(String version)
The launch template version number,
$Latest , or $Default . |
String |
toString()
Returns a string representation of this object.
|
LaunchTemplateSpecification |
withId(String id)
The ID of the launch template.
|
LaunchTemplateSpecification |
withName(String name)
The name of the launch template.
|
LaunchTemplateSpecification |
withVersion(String version)
The launch template version number,
$Latest , or $Default . |
public void setName(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.
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.
public String getName()
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.
You must specify either the launch template name or the launch template ID in the request, but not both.
public LaunchTemplateSpecification withName(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.
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.
public void setVersion(String version)
The launch template version number, $Latest
, or $Default
.
If the value is $Latest
, Amazon EKS uses the latest version of the launch template.
If the value is $Default
, Amazon EKS uses the default version of the launch template.
Default: The default version of the launch template.
version
- The launch template version number, $Latest
, or $Default
.
If the value is $Latest
, Amazon EKS uses the latest version of the launch template.
If the value is $Default
, Amazon EKS uses the default version of the launch template.
Default: The default version of the launch template.
public String getVersion()
The launch template version number, $Latest
, or $Default
.
If the value is $Latest
, Amazon EKS uses the latest version of the launch template.
If the value is $Default
, Amazon EKS uses the default version of the launch template.
Default: The default version of the launch template.
$Latest
, or $Default
.
If the value is $Latest
, Amazon EKS uses the latest version of the launch template.
If the value is $Default
, Amazon EKS uses the default version of the launch template.
Default: The default version of the launch template.
public LaunchTemplateSpecification withVersion(String version)
The launch template version number, $Latest
, or $Default
.
If the value is $Latest
, Amazon EKS uses the latest version of the launch template.
If the value is $Default
, Amazon EKS uses the default version of the launch template.
Default: The default version of the launch template.
version
- The launch template version number, $Latest
, or $Default
.
If the value is $Latest
, Amazon EKS uses the latest version of the launch template.
If the value is $Default
, Amazon EKS uses the default version of the launch template.
Default: The default version of the launch template.
public void setId(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.
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.
public String getId()
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.
You must specify either the launch template ID or the launch template name in the request, but not both.
public LaunchTemplateSpecification withId(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.
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.
public String toString()
toString
in class Object
Object.toString()
public LaunchTemplateSpecification clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.