@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class RequestLaunchTemplateData extends Object implements Serializable, Cloneable
The information to include in the launch template.
Constructor and Description |
---|
RequestLaunchTemplateData() |
Modifier and Type | Method and Description |
---|---|
RequestLaunchTemplateData |
clone() |
boolean |
equals(Object obj) |
List<LaunchTemplateBlockDeviceMappingRequest> |
getBlockDeviceMappings()
The block device mapping.
|
LaunchTemplateCpuOptionsRequest |
getCpuOptions()
The CPU options for the instance.
|
CreditSpecificationRequest |
getCreditSpecification()
The credit option for CPU usage of the instance.
|
Boolean |
getDisableApiTermination()
If set to
true , you can't terminate the instance using the Amazon EC2 console, CLI, or API. |
Boolean |
getEbsOptimized()
Indicates whether the instance is optimized for Amazon EBS I/O.
|
List<ElasticGpuSpecification> |
getElasticGpuSpecifications()
An elastic GPU to associate with the instance.
|
LaunchTemplateIamInstanceProfileSpecificationRequest |
getIamInstanceProfile()
The IAM instance profile.
|
String |
getImageId()
The ID of the AMI, which you can get by using DescribeImages.
|
String |
getInstanceInitiatedShutdownBehavior()
Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the
operating system command for system shutdown).
|
LaunchTemplateInstanceMarketOptionsRequest |
getInstanceMarketOptions()
The market (purchasing) option for the instances.
|
String |
getInstanceType()
The instance type.
|
String |
getKernelId()
The ID of the kernel.
|
String |
getKeyName()
The name of the key pair.
|
LaunchTemplatesMonitoringRequest |
getMonitoring()
The monitoring for the instance.
|
List<LaunchTemplateInstanceNetworkInterfaceSpecificationRequest> |
getNetworkInterfaces()
One or more network interfaces.
|
LaunchTemplatePlacementRequest |
getPlacement()
The placement for the instance.
|
String |
getRamDiskId()
The ID of the RAM disk.
|
List<String> |
getSecurityGroupIds()
One or more security group IDs.
|
List<String> |
getSecurityGroups()
[EC2-Classic, default VPC] One or more security group names.
|
List<LaunchTemplateTagSpecificationRequest> |
getTagSpecifications()
The tags to apply to the resources during launch.
|
String |
getUserData()
The Base64-encoded user data to make available to the instance.
|
int |
hashCode() |
Boolean |
isDisableApiTermination()
If set to
true , you can't terminate the instance using the Amazon EC2 console, CLI, or API. |
Boolean |
isEbsOptimized()
Indicates whether the instance is optimized for Amazon EBS I/O.
|
void |
setBlockDeviceMappings(Collection<LaunchTemplateBlockDeviceMappingRequest> blockDeviceMappings)
The block device mapping.
|
void |
setCpuOptions(LaunchTemplateCpuOptionsRequest cpuOptions)
The CPU options for the instance.
|
void |
setCreditSpecification(CreditSpecificationRequest creditSpecification)
The credit option for CPU usage of the instance.
|
void |
setDisableApiTermination(Boolean disableApiTermination)
If set to
true , you can't terminate the instance using the Amazon EC2 console, CLI, or API. |
void |
setEbsOptimized(Boolean ebsOptimized)
Indicates whether the instance is optimized for Amazon EBS I/O.
|
void |
setElasticGpuSpecifications(Collection<ElasticGpuSpecification> elasticGpuSpecifications)
An elastic GPU to associate with the instance.
|
void |
setIamInstanceProfile(LaunchTemplateIamInstanceProfileSpecificationRequest iamInstanceProfile)
The IAM instance profile.
|
void |
setImageId(String imageId)
The ID of the AMI, which you can get by using DescribeImages.
|
void |
setInstanceInitiatedShutdownBehavior(String instanceInitiatedShutdownBehavior)
Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the
operating system command for system shutdown).
|
void |
setInstanceMarketOptions(LaunchTemplateInstanceMarketOptionsRequest instanceMarketOptions)
The market (purchasing) option for the instances.
|
void |
setInstanceType(String instanceType)
The instance type.
|
void |
setKernelId(String kernelId)
The ID of the kernel.
|
void |
setKeyName(String keyName)
The name of the key pair.
|
void |
setMonitoring(LaunchTemplatesMonitoringRequest monitoring)
The monitoring for the instance.
|
void |
setNetworkInterfaces(Collection<LaunchTemplateInstanceNetworkInterfaceSpecificationRequest> networkInterfaces)
One or more network interfaces.
|
void |
setPlacement(LaunchTemplatePlacementRequest placement)
The placement for the instance.
|
void |
setRamDiskId(String ramDiskId)
The ID of the RAM disk.
|
void |
setSecurityGroupIds(Collection<String> securityGroupIds)
One or more security group IDs.
|
void |
setSecurityGroups(Collection<String> securityGroups)
[EC2-Classic, default VPC] One or more security group names.
|
void |
setTagSpecifications(Collection<LaunchTemplateTagSpecificationRequest> tagSpecifications)
The tags to apply to the resources during launch.
|
void |
setUserData(String userData)
The Base64-encoded user data to make available to the instance.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
RequestLaunchTemplateData |
withBlockDeviceMappings(Collection<LaunchTemplateBlockDeviceMappingRequest> blockDeviceMappings)
The block device mapping.
|
RequestLaunchTemplateData |
withBlockDeviceMappings(LaunchTemplateBlockDeviceMappingRequest... blockDeviceMappings)
The block device mapping.
|
RequestLaunchTemplateData |
withCpuOptions(LaunchTemplateCpuOptionsRequest cpuOptions)
The CPU options for the instance.
|
RequestLaunchTemplateData |
withCreditSpecification(CreditSpecificationRequest creditSpecification)
The credit option for CPU usage of the instance.
|
RequestLaunchTemplateData |
withDisableApiTermination(Boolean disableApiTermination)
If set to
true , you can't terminate the instance using the Amazon EC2 console, CLI, or API. |
RequestLaunchTemplateData |
withEbsOptimized(Boolean ebsOptimized)
Indicates whether the instance is optimized for Amazon EBS I/O.
|
RequestLaunchTemplateData |
withElasticGpuSpecifications(Collection<ElasticGpuSpecification> elasticGpuSpecifications)
An elastic GPU to associate with the instance.
|
RequestLaunchTemplateData |
withElasticGpuSpecifications(ElasticGpuSpecification... elasticGpuSpecifications)
An elastic GPU to associate with the instance.
|
RequestLaunchTemplateData |
withIamInstanceProfile(LaunchTemplateIamInstanceProfileSpecificationRequest iamInstanceProfile)
The IAM instance profile.
|
RequestLaunchTemplateData |
withImageId(String imageId)
The ID of the AMI, which you can get by using DescribeImages.
|
RequestLaunchTemplateData |
withInstanceInitiatedShutdownBehavior(ShutdownBehavior instanceInitiatedShutdownBehavior)
Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the
operating system command for system shutdown).
|
RequestLaunchTemplateData |
withInstanceInitiatedShutdownBehavior(String instanceInitiatedShutdownBehavior)
Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the
operating system command for system shutdown).
|
RequestLaunchTemplateData |
withInstanceMarketOptions(LaunchTemplateInstanceMarketOptionsRequest instanceMarketOptions)
The market (purchasing) option for the instances.
|
RequestLaunchTemplateData |
withInstanceType(InstanceType instanceType)
The instance type.
|
RequestLaunchTemplateData |
withInstanceType(String instanceType)
The instance type.
|
RequestLaunchTemplateData |
withKernelId(String kernelId)
The ID of the kernel.
|
RequestLaunchTemplateData |
withKeyName(String keyName)
The name of the key pair.
|
RequestLaunchTemplateData |
withMonitoring(LaunchTemplatesMonitoringRequest monitoring)
The monitoring for the instance.
|
RequestLaunchTemplateData |
withNetworkInterfaces(Collection<LaunchTemplateInstanceNetworkInterfaceSpecificationRequest> networkInterfaces)
One or more network interfaces.
|
RequestLaunchTemplateData |
withNetworkInterfaces(LaunchTemplateInstanceNetworkInterfaceSpecificationRequest... networkInterfaces)
One or more network interfaces.
|
RequestLaunchTemplateData |
withPlacement(LaunchTemplatePlacementRequest placement)
The placement for the instance.
|
RequestLaunchTemplateData |
withRamDiskId(String ramDiskId)
The ID of the RAM disk.
|
RequestLaunchTemplateData |
withSecurityGroupIds(Collection<String> securityGroupIds)
One or more security group IDs.
|
RequestLaunchTemplateData |
withSecurityGroupIds(String... securityGroupIds)
One or more security group IDs.
|
RequestLaunchTemplateData |
withSecurityGroups(Collection<String> securityGroups)
[EC2-Classic, default VPC] One or more security group names.
|
RequestLaunchTemplateData |
withSecurityGroups(String... securityGroups)
[EC2-Classic, default VPC] One or more security group names.
|
RequestLaunchTemplateData |
withTagSpecifications(Collection<LaunchTemplateTagSpecificationRequest> tagSpecifications)
The tags to apply to the resources during launch.
|
RequestLaunchTemplateData |
withTagSpecifications(LaunchTemplateTagSpecificationRequest... tagSpecifications)
The tags to apply to the resources during launch.
|
RequestLaunchTemplateData |
withUserData(String userData)
The Base64-encoded user data to make available to the instance.
|
public void setKernelId(String kernelId)
The ID of the kernel.
We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see User Provided Kernels in the Amazon Elastic Compute Cloud User Guide.
kernelId
- The ID of the kernel. We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see User Provided Kernels in the Amazon Elastic Compute Cloud User Guide.
public String getKernelId()
The ID of the kernel.
We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see User Provided Kernels in the Amazon Elastic Compute Cloud User Guide.
We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see User Provided Kernels in the Amazon Elastic Compute Cloud User Guide.
public RequestLaunchTemplateData withKernelId(String kernelId)
The ID of the kernel.
We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see User Provided Kernels in the Amazon Elastic Compute Cloud User Guide.
kernelId
- The ID of the kernel. We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see User Provided Kernels in the Amazon Elastic Compute Cloud User Guide.
public void setEbsOptimized(Boolean ebsOptimized)
Indicates whether the instance is optimized for Amazon EBS I/O. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal Amazon EBS I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS-optimized instance.
ebsOptimized
- Indicates whether the instance is optimized for Amazon EBS I/O. This optimization provides dedicated
throughput to Amazon EBS and an optimized configuration stack to provide optimal Amazon EBS I/O
performance. This optimization isn't available with all instance types. Additional usage charges apply
when using an EBS-optimized instance.public Boolean getEbsOptimized()
Indicates whether the instance is optimized for Amazon EBS I/O. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal Amazon EBS I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS-optimized instance.
public RequestLaunchTemplateData withEbsOptimized(Boolean ebsOptimized)
Indicates whether the instance is optimized for Amazon EBS I/O. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal Amazon EBS I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS-optimized instance.
ebsOptimized
- Indicates whether the instance is optimized for Amazon EBS I/O. This optimization provides dedicated
throughput to Amazon EBS and an optimized configuration stack to provide optimal Amazon EBS I/O
performance. This optimization isn't available with all instance types. Additional usage charges apply
when using an EBS-optimized instance.public Boolean isEbsOptimized()
Indicates whether the instance is optimized for Amazon EBS I/O. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal Amazon EBS I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS-optimized instance.
public void setIamInstanceProfile(LaunchTemplateIamInstanceProfileSpecificationRequest iamInstanceProfile)
The IAM instance profile.
iamInstanceProfile
- The IAM instance profile.public LaunchTemplateIamInstanceProfileSpecificationRequest getIamInstanceProfile()
The IAM instance profile.
public RequestLaunchTemplateData withIamInstanceProfile(LaunchTemplateIamInstanceProfileSpecificationRequest iamInstanceProfile)
The IAM instance profile.
iamInstanceProfile
- The IAM instance profile.public List<LaunchTemplateBlockDeviceMappingRequest> getBlockDeviceMappings()
The block device mapping.
Supplying both a snapshot ID and an encryption value as arguments for block-device mapping results in an error. This is because only blank volumes can be encrypted on start, and these are not created from a snapshot. If a snapshot is the basis for the volume, it contains data by definition and its encryption status cannot be changed using this action.
Supplying both a snapshot ID and an encryption value as arguments for block-device mapping results in an error. This is because only blank volumes can be encrypted on start, and these are not created from a snapshot. If a snapshot is the basis for the volume, it contains data by definition and its encryption status cannot be changed using this action.
public void setBlockDeviceMappings(Collection<LaunchTemplateBlockDeviceMappingRequest> blockDeviceMappings)
The block device mapping.
Supplying both a snapshot ID and an encryption value as arguments for block-device mapping results in an error. This is because only blank volumes can be encrypted on start, and these are not created from a snapshot. If a snapshot is the basis for the volume, it contains data by definition and its encryption status cannot be changed using this action.
blockDeviceMappings
- The block device mapping. Supplying both a snapshot ID and an encryption value as arguments for block-device mapping results in an error. This is because only blank volumes can be encrypted on start, and these are not created from a snapshot. If a snapshot is the basis for the volume, it contains data by definition and its encryption status cannot be changed using this action.
public RequestLaunchTemplateData withBlockDeviceMappings(LaunchTemplateBlockDeviceMappingRequest... blockDeviceMappings)
The block device mapping.
Supplying both a snapshot ID and an encryption value as arguments for block-device mapping results in an error. This is because only blank volumes can be encrypted on start, and these are not created from a snapshot. If a snapshot is the basis for the volume, it contains data by definition and its encryption status cannot be changed using this action.
NOTE: This method appends the values to the existing list (if any). Use
setBlockDeviceMappings(java.util.Collection)
or withBlockDeviceMappings(java.util.Collection)
if you want to override the existing values.
blockDeviceMappings
- The block device mapping. Supplying both a snapshot ID and an encryption value as arguments for block-device mapping results in an error. This is because only blank volumes can be encrypted on start, and these are not created from a snapshot. If a snapshot is the basis for the volume, it contains data by definition and its encryption status cannot be changed using this action.
public RequestLaunchTemplateData withBlockDeviceMappings(Collection<LaunchTemplateBlockDeviceMappingRequest> blockDeviceMappings)
The block device mapping.
Supplying both a snapshot ID and an encryption value as arguments for block-device mapping results in an error. This is because only blank volumes can be encrypted on start, and these are not created from a snapshot. If a snapshot is the basis for the volume, it contains data by definition and its encryption status cannot be changed using this action.
blockDeviceMappings
- The block device mapping. Supplying both a snapshot ID and an encryption value as arguments for block-device mapping results in an error. This is because only blank volumes can be encrypted on start, and these are not created from a snapshot. If a snapshot is the basis for the volume, it contains data by definition and its encryption status cannot be changed using this action.
public List<LaunchTemplateInstanceNetworkInterfaceSpecificationRequest> getNetworkInterfaces()
One or more network interfaces.
public void setNetworkInterfaces(Collection<LaunchTemplateInstanceNetworkInterfaceSpecificationRequest> networkInterfaces)
One or more network interfaces.
networkInterfaces
- One or more network interfaces.public RequestLaunchTemplateData withNetworkInterfaces(LaunchTemplateInstanceNetworkInterfaceSpecificationRequest... networkInterfaces)
One or more network interfaces.
NOTE: This method appends the values to the existing list (if any). Use
setNetworkInterfaces(java.util.Collection)
or withNetworkInterfaces(java.util.Collection)
if
you want to override the existing values.
networkInterfaces
- One or more network interfaces.public RequestLaunchTemplateData withNetworkInterfaces(Collection<LaunchTemplateInstanceNetworkInterfaceSpecificationRequest> networkInterfaces)
One or more network interfaces.
networkInterfaces
- One or more network interfaces.public void setImageId(String imageId)
The ID of the AMI, which you can get by using DescribeImages.
imageId
- The ID of the AMI, which you can get by using DescribeImages.public String getImageId()
The ID of the AMI, which you can get by using DescribeImages.
public RequestLaunchTemplateData withImageId(String imageId)
The ID of the AMI, which you can get by using DescribeImages.
imageId
- The ID of the AMI, which you can get by using DescribeImages.public void setInstanceType(String instanceType)
The instance type. For more information, see Instance Types in the Amazon Elastic Compute Cloud User Guide.
instanceType
- The instance type. For more information, see Instance Types in the
Amazon Elastic Compute Cloud User Guide.InstanceType
public String getInstanceType()
The instance type. For more information, see Instance Types in the Amazon Elastic Compute Cloud User Guide.
InstanceType
public RequestLaunchTemplateData withInstanceType(String instanceType)
The instance type. For more information, see Instance Types in the Amazon Elastic Compute Cloud User Guide.
instanceType
- The instance type. For more information, see Instance Types in the
Amazon Elastic Compute Cloud User Guide.InstanceType
public RequestLaunchTemplateData withInstanceType(InstanceType instanceType)
The instance type. For more information, see Instance Types in the Amazon Elastic Compute Cloud User Guide.
instanceType
- The instance type. For more information, see Instance Types in the
Amazon Elastic Compute Cloud User Guide.InstanceType
public void setKeyName(String keyName)
The name of the key pair. You can create a key pair using CreateKeyPair or ImportKeyPair.
If you do not specify a key pair, you can't connect to the instance unless you choose an AMI that is configured to allow users another way to log in.
keyName
- The name of the key pair. You can create a key pair using CreateKeyPair or
ImportKeyPair. If you do not specify a key pair, you can't connect to the instance unless you choose an AMI that is configured to allow users another way to log in.
public String getKeyName()
The name of the key pair. You can create a key pair using CreateKeyPair or ImportKeyPair.
If you do not specify a key pair, you can't connect to the instance unless you choose an AMI that is configured to allow users another way to log in.
If you do not specify a key pair, you can't connect to the instance unless you choose an AMI that is configured to allow users another way to log in.
public RequestLaunchTemplateData withKeyName(String keyName)
The name of the key pair. You can create a key pair using CreateKeyPair or ImportKeyPair.
If you do not specify a key pair, you can't connect to the instance unless you choose an AMI that is configured to allow users another way to log in.
keyName
- The name of the key pair. You can create a key pair using CreateKeyPair or
ImportKeyPair. If you do not specify a key pair, you can't connect to the instance unless you choose an AMI that is configured to allow users another way to log in.
public void setMonitoring(LaunchTemplatesMonitoringRequest monitoring)
The monitoring for the instance.
monitoring
- The monitoring for the instance.public LaunchTemplatesMonitoringRequest getMonitoring()
The monitoring for the instance.
public RequestLaunchTemplateData withMonitoring(LaunchTemplatesMonitoringRequest monitoring)
The monitoring for the instance.
monitoring
- The monitoring for the instance.public void setPlacement(LaunchTemplatePlacementRequest placement)
The placement for the instance.
placement
- The placement for the instance.public LaunchTemplatePlacementRequest getPlacement()
The placement for the instance.
public RequestLaunchTemplateData withPlacement(LaunchTemplatePlacementRequest placement)
The placement for the instance.
placement
- The placement for the instance.public void setRamDiskId(String ramDiskId)
The ID of the RAM disk.
We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see User Provided Kernels in the Amazon Elastic Compute Cloud User Guide.
ramDiskId
- The ID of the RAM disk. We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see User Provided Kernels in the Amazon Elastic Compute Cloud User Guide.
public String getRamDiskId()
The ID of the RAM disk.
We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see User Provided Kernels in the Amazon Elastic Compute Cloud User Guide.
We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see User Provided Kernels in the Amazon Elastic Compute Cloud User Guide.
public RequestLaunchTemplateData withRamDiskId(String ramDiskId)
The ID of the RAM disk.
We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see User Provided Kernels in the Amazon Elastic Compute Cloud User Guide.
ramDiskId
- The ID of the RAM disk. We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see User Provided Kernels in the Amazon Elastic Compute Cloud User Guide.
public void setDisableApiTermination(Boolean disableApiTermination)
If set to true
, you can't terminate the instance using the Amazon EC2 console, CLI, or API. To
change this attribute to false
after launch, use ModifyInstanceAttribute.
disableApiTermination
- If set to true
, you can't terminate the instance using the Amazon EC2 console, CLI, or API.
To change this attribute to false
after launch, use ModifyInstanceAttribute.public Boolean getDisableApiTermination()
If set to true
, you can't terminate the instance using the Amazon EC2 console, CLI, or API. To
change this attribute to false
after launch, use ModifyInstanceAttribute.
true
, you can't terminate the instance using the Amazon EC2 console, CLI, or API.
To change this attribute to false
after launch, use ModifyInstanceAttribute.public RequestLaunchTemplateData withDisableApiTermination(Boolean disableApiTermination)
If set to true
, you can't terminate the instance using the Amazon EC2 console, CLI, or API. To
change this attribute to false
after launch, use ModifyInstanceAttribute.
disableApiTermination
- If set to true
, you can't terminate the instance using the Amazon EC2 console, CLI, or API.
To change this attribute to false
after launch, use ModifyInstanceAttribute.public Boolean isDisableApiTermination()
If set to true
, you can't terminate the instance using the Amazon EC2 console, CLI, or API. To
change this attribute to false
after launch, use ModifyInstanceAttribute.
true
, you can't terminate the instance using the Amazon EC2 console, CLI, or API.
To change this attribute to false
after launch, use ModifyInstanceAttribute.public void setInstanceInitiatedShutdownBehavior(String instanceInitiatedShutdownBehavior)
Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).
Default: stop
instanceInitiatedShutdownBehavior
- Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the
operating system command for system shutdown).
Default: stop
ShutdownBehavior
public String getInstanceInitiatedShutdownBehavior()
Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).
Default: stop
Default: stop
ShutdownBehavior
public RequestLaunchTemplateData withInstanceInitiatedShutdownBehavior(String instanceInitiatedShutdownBehavior)
Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).
Default: stop
instanceInitiatedShutdownBehavior
- Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the
operating system command for system shutdown).
Default: stop
ShutdownBehavior
public RequestLaunchTemplateData withInstanceInitiatedShutdownBehavior(ShutdownBehavior instanceInitiatedShutdownBehavior)
Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).
Default: stop
instanceInitiatedShutdownBehavior
- Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the
operating system command for system shutdown).
Default: stop
ShutdownBehavior
public void setUserData(String userData)
The Base64-encoded user data to make available to the instance. For more information, see Running Commands on Your Linux Instance at Launch (Linux) and Adding User Data (Windows).
userData
- The Base64-encoded user data to make available to the instance. For more information, see Running Commands on Your Linux
Instance at Launch (Linux) and Adding User Data (Windows).public String getUserData()
The Base64-encoded user data to make available to the instance. For more information, see Running Commands on Your Linux Instance at Launch (Linux) and Adding User Data (Windows).
public RequestLaunchTemplateData withUserData(String userData)
The Base64-encoded user data to make available to the instance. For more information, see Running Commands on Your Linux Instance at Launch (Linux) and Adding User Data (Windows).
userData
- The Base64-encoded user data to make available to the instance. For more information, see Running Commands on Your Linux
Instance at Launch (Linux) and Adding User Data (Windows).public List<LaunchTemplateTagSpecificationRequest> getTagSpecifications()
The tags to apply to the resources during launch. You can only tag instances and volumes on launch. The specified tags are applied to all instances or volumes that are created during launch. To tag a resource after it has been created, see CreateTags.
public void setTagSpecifications(Collection<LaunchTemplateTagSpecificationRequest> tagSpecifications)
The tags to apply to the resources during launch. You can only tag instances and volumes on launch. The specified tags are applied to all instances or volumes that are created during launch. To tag a resource after it has been created, see CreateTags.
tagSpecifications
- The tags to apply to the resources during launch. You can only tag instances and volumes on launch. The
specified tags are applied to all instances or volumes that are created during launch. To tag a resource
after it has been created, see CreateTags.public RequestLaunchTemplateData withTagSpecifications(LaunchTemplateTagSpecificationRequest... tagSpecifications)
The tags to apply to the resources during launch. You can only tag instances and volumes on launch. The specified tags are applied to all instances or volumes that are created during launch. To tag a resource after it has been created, see CreateTags.
NOTE: This method appends the values to the existing list (if any). Use
setTagSpecifications(java.util.Collection)
or withTagSpecifications(java.util.Collection)
if
you want to override the existing values.
tagSpecifications
- The tags to apply to the resources during launch. You can only tag instances and volumes on launch. The
specified tags are applied to all instances or volumes that are created during launch. To tag a resource
after it has been created, see CreateTags.public RequestLaunchTemplateData withTagSpecifications(Collection<LaunchTemplateTagSpecificationRequest> tagSpecifications)
The tags to apply to the resources during launch. You can only tag instances and volumes on launch. The specified tags are applied to all instances or volumes that are created during launch. To tag a resource after it has been created, see CreateTags.
tagSpecifications
- The tags to apply to the resources during launch. You can only tag instances and volumes on launch. The
specified tags are applied to all instances or volumes that are created during launch. To tag a resource
after it has been created, see CreateTags.public List<ElasticGpuSpecification> getElasticGpuSpecifications()
An elastic GPU to associate with the instance.
public void setElasticGpuSpecifications(Collection<ElasticGpuSpecification> elasticGpuSpecifications)
An elastic GPU to associate with the instance.
elasticGpuSpecifications
- An elastic GPU to associate with the instance.public RequestLaunchTemplateData withElasticGpuSpecifications(ElasticGpuSpecification... elasticGpuSpecifications)
An elastic GPU to associate with the instance.
NOTE: This method appends the values to the existing list (if any). Use
setElasticGpuSpecifications(java.util.Collection)
or
withElasticGpuSpecifications(java.util.Collection)
if you want to override the existing values.
elasticGpuSpecifications
- An elastic GPU to associate with the instance.public RequestLaunchTemplateData withElasticGpuSpecifications(Collection<ElasticGpuSpecification> elasticGpuSpecifications)
An elastic GPU to associate with the instance.
elasticGpuSpecifications
- An elastic GPU to associate with the instance.public List<String> getSecurityGroupIds()
One or more security group IDs. You can create a security group using CreateSecurityGroup. You cannot specify both a security group ID and security name in the same request.
public void setSecurityGroupIds(Collection<String> securityGroupIds)
One or more security group IDs. You can create a security group using CreateSecurityGroup. You cannot specify both a security group ID and security name in the same request.
securityGroupIds
- One or more security group IDs. You can create a security group using CreateSecurityGroup. You
cannot specify both a security group ID and security name in the same request.public RequestLaunchTemplateData withSecurityGroupIds(String... securityGroupIds)
One or more security group IDs. You can create a security group using CreateSecurityGroup. You cannot specify both a security group ID and security name in the same request.
NOTE: This method appends the values to the existing list (if any). Use
setSecurityGroupIds(java.util.Collection)
or withSecurityGroupIds(java.util.Collection)
if you
want to override the existing values.
securityGroupIds
- One or more security group IDs. You can create a security group using CreateSecurityGroup. You
cannot specify both a security group ID and security name in the same request.public RequestLaunchTemplateData withSecurityGroupIds(Collection<String> securityGroupIds)
One or more security group IDs. You can create a security group using CreateSecurityGroup. You cannot specify both a security group ID and security name in the same request.
securityGroupIds
- One or more security group IDs. You can create a security group using CreateSecurityGroup. You
cannot specify both a security group ID and security name in the same request.public List<String> getSecurityGroups()
[EC2-Classic, default VPC] One or more security group names. For a nondefault VPC, you must use security group IDs instead. You cannot specify both a security group ID and security name in the same request.
public void setSecurityGroups(Collection<String> securityGroups)
[EC2-Classic, default VPC] One or more security group names. For a nondefault VPC, you must use security group IDs instead. You cannot specify both a security group ID and security name in the same request.
securityGroups
- [EC2-Classic, default VPC] One or more security group names. For a nondefault VPC, you must use security
group IDs instead. You cannot specify both a security group ID and security name in the same request.public RequestLaunchTemplateData withSecurityGroups(String... securityGroups)
[EC2-Classic, default VPC] One or more security group names. For a nondefault VPC, you must use security group IDs instead. You cannot specify both a security group ID and security name in the same request.
NOTE: This method appends the values to the existing list (if any). Use
setSecurityGroups(java.util.Collection)
or withSecurityGroups(java.util.Collection)
if you want
to override the existing values.
securityGroups
- [EC2-Classic, default VPC] One or more security group names. For a nondefault VPC, you must use security
group IDs instead. You cannot specify both a security group ID and security name in the same request.public RequestLaunchTemplateData withSecurityGroups(Collection<String> securityGroups)
[EC2-Classic, default VPC] One or more security group names. For a nondefault VPC, you must use security group IDs instead. You cannot specify both a security group ID and security name in the same request.
securityGroups
- [EC2-Classic, default VPC] One or more security group names. For a nondefault VPC, you must use security
group IDs instead. You cannot specify both a security group ID and security name in the same request.public void setInstanceMarketOptions(LaunchTemplateInstanceMarketOptionsRequest instanceMarketOptions)
The market (purchasing) option for the instances.
instanceMarketOptions
- The market (purchasing) option for the instances.public LaunchTemplateInstanceMarketOptionsRequest getInstanceMarketOptions()
The market (purchasing) option for the instances.
public RequestLaunchTemplateData withInstanceMarketOptions(LaunchTemplateInstanceMarketOptionsRequest instanceMarketOptions)
The market (purchasing) option for the instances.
instanceMarketOptions
- The market (purchasing) option for the instances.public void setCreditSpecification(CreditSpecificationRequest creditSpecification)
The credit option for CPU usage of the instance. Valid for T2 instances only.
creditSpecification
- The credit option for CPU usage of the instance. Valid for T2 instances only.public CreditSpecificationRequest getCreditSpecification()
The credit option for CPU usage of the instance. Valid for T2 instances only.
public RequestLaunchTemplateData withCreditSpecification(CreditSpecificationRequest creditSpecification)
The credit option for CPU usage of the instance. Valid for T2 instances only.
creditSpecification
- The credit option for CPU usage of the instance. Valid for T2 instances only.public void setCpuOptions(LaunchTemplateCpuOptionsRequest cpuOptions)
The CPU options for the instance. For more information, see Optimizing CPU Options in the Amazon Elastic Compute Cloud User Guide.
cpuOptions
- The CPU options for the instance. For more information, see Optimizing CPU
Options in the Amazon Elastic Compute Cloud User Guide.public LaunchTemplateCpuOptionsRequest getCpuOptions()
The CPU options for the instance. For more information, see Optimizing CPU Options in the Amazon Elastic Compute Cloud User Guide.
public RequestLaunchTemplateData withCpuOptions(LaunchTemplateCpuOptionsRequest cpuOptions)
The CPU options for the instance. For more information, see Optimizing CPU Options in the Amazon Elastic Compute Cloud User Guide.
cpuOptions
- The CPU options for the instance. For more information, see Optimizing CPU
Options in the Amazon Elastic Compute Cloud User Guide.public String toString()
toString
in class Object
Object.toString()
public RequestLaunchTemplateData clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.