@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 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.
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 version number of the launch template to use.
|
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 version number of the launch template to use.
|
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 version number of the launch template to use.
|
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 version number of the launch template to use. If no version is specified, then the template's default version is used.
version
- The version number of the launch template to use. If no version is specified, then the template's default
version is used.public String getVersion()
The version number of the launch template to use. If no version is specified, then the template's default version is used.
public LaunchTemplateSpecification withVersion(String version)
The version number of the launch template to use. If no version is specified, then the template's default version is used.
version
- The version number of the launch template to use. If no version is specified, then the template's default
version is used.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.