@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 cannot 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.
Specify either name
or id
, 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 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 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 of the launch template to use.
|
public void setName(String name)
The name of the launch template.
name
- The name of the launch template.public String getName()
The name of the launch template.
public LaunchTemplateSpecification withName(String name)
The name of the launch template.
name
- The name of the launch template.public void setVersion(String version)
The version of the launch template to use. If no version is specified, then the template's default version is used.
version
- The version of the launch template to use. If no version is specified, then the template's default version
is used.public String getVersion()
The version 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 of the launch template to use. If no version is specified, then the template's default version is used.
version
- The version 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.
id
- The ID of the launch template.public String getId()
The ID of the launch template.
public LaunchTemplateSpecification withId(String id)
The ID of the launch template.
id
- The ID of the launch template.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.