@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AwsEc2LaunchTemplateDataDetails extends Object implements Serializable, Cloneable, StructuredPojo
The information to include in an Amazon Elastic Compute Cloud (Amazon EC2) launch template.
Constructor and Description |
---|
AwsEc2LaunchTemplateDataDetails() |
Modifier and Type | Method and Description |
---|---|
AwsEc2LaunchTemplateDataDetails |
clone() |
boolean |
equals(Object obj) |
List<AwsEc2LaunchTemplateDataBlockDeviceMappingSetDetails> |
getBlockDeviceMappingSet()
Information about a block device mapping for an Amazon EC2 launch template.
|
AwsEc2LaunchTemplateDataCapacityReservationSpecificationDetails |
getCapacityReservationSpecification()
Specifies an instance's Capacity Reservation targeting option.
|
AwsEc2LaunchTemplateDataCpuOptionsDetails |
getCpuOptions()
Specifies the CPU options for an instance.
|
AwsEc2LaunchTemplateDataCreditSpecificationDetails |
getCreditSpecification()
Specifies the credit option for CPU usage of a T2, T3, or T3a instance.
|
Boolean |
getDisableApiStop()
Indicates whether to enable the instance for stop protection.
|
Boolean |
getDisableApiTermination()
If you set this parameter 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<AwsEc2LaunchTemplateDataElasticGpuSpecificationSetDetails> |
getElasticGpuSpecificationSet()
Provides details about Elastic Graphics accelerators to associate with the instance.
|
List<AwsEc2LaunchTemplateDataElasticInferenceAcceleratorSetDetails> |
getElasticInferenceAcceleratorSet()
The Amazon Elastic Inference accelerator for the instance.
|
AwsEc2LaunchTemplateDataEnclaveOptionsDetails |
getEnclaveOptions()
Indicates whether the Amazon EC2 instance is enabled for Amazon Web Services Nitro Enclaves.
|
AwsEc2LaunchTemplateDataHibernationOptionsDetails |
getHibernationOptions()
Specifies whether your Amazon EC2 instance is configured for hibernation.
|
AwsEc2LaunchTemplateDataIamInstanceProfileDetails |
getIamInstanceProfile()
The name or Amazon Resource Name (ARN) of an IAM instance profile.
|
String |
getImageId()
The ID of the Amazon Machine Image (AMI).
|
String |
getInstanceInitiatedShutdownBehavior()
Provides the options for specifying the instance initiated shutdown behavior.
|
AwsEc2LaunchTemplateDataInstanceMarketOptionsDetails |
getInstanceMarketOptions()
Specifies the market (purchasing) option for an instance.
|
AwsEc2LaunchTemplateDataInstanceRequirementsDetails |
getInstanceRequirements()
The attributes for the instance types.
|
String |
getInstanceType()
The instance type.
|
String |
getKernelId()
The ID of the kernel.
|
String |
getKeyName()
The name of the key pair that allows users to connect to the instance.
|
List<AwsEc2LaunchTemplateDataLicenseSetDetails> |
getLicenseSet()
Specifies a license configuration for an instance.
|
AwsEc2LaunchTemplateDataMaintenanceOptionsDetails |
getMaintenanceOptions()
The maintenance options of your instance.
|
AwsEc2LaunchTemplateDataMetadataOptionsDetails |
getMetadataOptions()
The metadata options for the instance.
|
AwsEc2LaunchTemplateDataMonitoringDetails |
getMonitoring()
The monitoring for the instance.
|
List<AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails> |
getNetworkInterfaceSet()
Specifies the parameters for a network interface that is attached to the instance.
|
AwsEc2LaunchTemplateDataPlacementDetails |
getPlacement()
Specifies the placement of an instance.
|
AwsEc2LaunchTemplateDataPrivateDnsNameOptionsDetails |
getPrivateDnsNameOptions()
The options for the instance hostname.
|
String |
getRamDiskId()
The ID of the RAM disk.
|
List<String> |
getSecurityGroupIdSet()
One or more security group IDs.
|
List<String> |
getSecurityGroupSet()
One or more security group names.
|
String |
getUserData()
The user data to make available to the instance.
|
int |
hashCode() |
Boolean |
isDisableApiStop()
Indicates whether to enable the instance for stop protection.
|
Boolean |
isDisableApiTermination()
If you set this parameter 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 |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setBlockDeviceMappingSet(Collection<AwsEc2LaunchTemplateDataBlockDeviceMappingSetDetails> blockDeviceMappingSet)
Information about a block device mapping for an Amazon EC2 launch template.
|
void |
setCapacityReservationSpecification(AwsEc2LaunchTemplateDataCapacityReservationSpecificationDetails capacityReservationSpecification)
Specifies an instance's Capacity Reservation targeting option.
|
void |
setCpuOptions(AwsEc2LaunchTemplateDataCpuOptionsDetails cpuOptions)
Specifies the CPU options for an instance.
|
void |
setCreditSpecification(AwsEc2LaunchTemplateDataCreditSpecificationDetails creditSpecification)
Specifies the credit option for CPU usage of a T2, T3, or T3a instance.
|
void |
setDisableApiStop(Boolean disableApiStop)
Indicates whether to enable the instance for stop protection.
|
void |
setDisableApiTermination(Boolean disableApiTermination)
If you set this parameter 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 |
setElasticGpuSpecificationSet(Collection<AwsEc2LaunchTemplateDataElasticGpuSpecificationSetDetails> elasticGpuSpecificationSet)
Provides details about Elastic Graphics accelerators to associate with the instance.
|
void |
setElasticInferenceAcceleratorSet(Collection<AwsEc2LaunchTemplateDataElasticInferenceAcceleratorSetDetails> elasticInferenceAcceleratorSet)
The Amazon Elastic Inference accelerator for the instance.
|
void |
setEnclaveOptions(AwsEc2LaunchTemplateDataEnclaveOptionsDetails enclaveOptions)
Indicates whether the Amazon EC2 instance is enabled for Amazon Web Services Nitro Enclaves.
|
void |
setHibernationOptions(AwsEc2LaunchTemplateDataHibernationOptionsDetails hibernationOptions)
Specifies whether your Amazon EC2 instance is configured for hibernation.
|
void |
setIamInstanceProfile(AwsEc2LaunchTemplateDataIamInstanceProfileDetails iamInstanceProfile)
The name or Amazon Resource Name (ARN) of an IAM instance profile.
|
void |
setImageId(String imageId)
The ID of the Amazon Machine Image (AMI).
|
void |
setInstanceInitiatedShutdownBehavior(String instanceInitiatedShutdownBehavior)
Provides the options for specifying the instance initiated shutdown behavior.
|
void |
setInstanceMarketOptions(AwsEc2LaunchTemplateDataInstanceMarketOptionsDetails instanceMarketOptions)
Specifies the market (purchasing) option for an instance.
|
void |
setInstanceRequirements(AwsEc2LaunchTemplateDataInstanceRequirementsDetails instanceRequirements)
The attributes for the instance types.
|
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 that allows users to connect to the instance.
|
void |
setLicenseSet(Collection<AwsEc2LaunchTemplateDataLicenseSetDetails> licenseSet)
Specifies a license configuration for an instance.
|
void |
setMaintenanceOptions(AwsEc2LaunchTemplateDataMaintenanceOptionsDetails maintenanceOptions)
The maintenance options of your instance.
|
void |
setMetadataOptions(AwsEc2LaunchTemplateDataMetadataOptionsDetails metadataOptions)
The metadata options for the instance.
|
void |
setMonitoring(AwsEc2LaunchTemplateDataMonitoringDetails monitoring)
The monitoring for the instance.
|
void |
setNetworkInterfaceSet(Collection<AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails> networkInterfaceSet)
Specifies the parameters for a network interface that is attached to the instance.
|
void |
setPlacement(AwsEc2LaunchTemplateDataPlacementDetails placement)
Specifies the placement of an instance.
|
void |
setPrivateDnsNameOptions(AwsEc2LaunchTemplateDataPrivateDnsNameOptionsDetails privateDnsNameOptions)
The options for the instance hostname.
|
void |
setRamDiskId(String ramDiskId)
The ID of the RAM disk.
|
void |
setSecurityGroupIdSet(Collection<String> securityGroupIdSet)
One or more security group IDs.
|
void |
setSecurityGroupSet(Collection<String> securityGroupSet)
One or more security group names.
|
void |
setUserData(String userData)
The user data to make available to the instance.
|
String |
toString()
Returns a string representation of this object.
|
AwsEc2LaunchTemplateDataDetails |
withBlockDeviceMappingSet(AwsEc2LaunchTemplateDataBlockDeviceMappingSetDetails... blockDeviceMappingSet)
Information about a block device mapping for an Amazon EC2 launch template.
|
AwsEc2LaunchTemplateDataDetails |
withBlockDeviceMappingSet(Collection<AwsEc2LaunchTemplateDataBlockDeviceMappingSetDetails> blockDeviceMappingSet)
Information about a block device mapping for an Amazon EC2 launch template.
|
AwsEc2LaunchTemplateDataDetails |
withCapacityReservationSpecification(AwsEc2LaunchTemplateDataCapacityReservationSpecificationDetails capacityReservationSpecification)
Specifies an instance's Capacity Reservation targeting option.
|
AwsEc2LaunchTemplateDataDetails |
withCpuOptions(AwsEc2LaunchTemplateDataCpuOptionsDetails cpuOptions)
Specifies the CPU options for an instance.
|
AwsEc2LaunchTemplateDataDetails |
withCreditSpecification(AwsEc2LaunchTemplateDataCreditSpecificationDetails creditSpecification)
Specifies the credit option for CPU usage of a T2, T3, or T3a instance.
|
AwsEc2LaunchTemplateDataDetails |
withDisableApiStop(Boolean disableApiStop)
Indicates whether to enable the instance for stop protection.
|
AwsEc2LaunchTemplateDataDetails |
withDisableApiTermination(Boolean disableApiTermination)
If you set this parameter to
true , you can't terminate the instance using the Amazon EC2 console,
CLI, or API. |
AwsEc2LaunchTemplateDataDetails |
withEbsOptimized(Boolean ebsOptimized)
Indicates whether the instance is optimized for Amazon EBS I/O.
|
AwsEc2LaunchTemplateDataDetails |
withElasticGpuSpecificationSet(AwsEc2LaunchTemplateDataElasticGpuSpecificationSetDetails... elasticGpuSpecificationSet)
Provides details about Elastic Graphics accelerators to associate with the instance.
|
AwsEc2LaunchTemplateDataDetails |
withElasticGpuSpecificationSet(Collection<AwsEc2LaunchTemplateDataElasticGpuSpecificationSetDetails> elasticGpuSpecificationSet)
Provides details about Elastic Graphics accelerators to associate with the instance.
|
AwsEc2LaunchTemplateDataDetails |
withElasticInferenceAcceleratorSet(AwsEc2LaunchTemplateDataElasticInferenceAcceleratorSetDetails... elasticInferenceAcceleratorSet)
The Amazon Elastic Inference accelerator for the instance.
|
AwsEc2LaunchTemplateDataDetails |
withElasticInferenceAcceleratorSet(Collection<AwsEc2LaunchTemplateDataElasticInferenceAcceleratorSetDetails> elasticInferenceAcceleratorSet)
The Amazon Elastic Inference accelerator for the instance.
|
AwsEc2LaunchTemplateDataDetails |
withEnclaveOptions(AwsEc2LaunchTemplateDataEnclaveOptionsDetails enclaveOptions)
Indicates whether the Amazon EC2 instance is enabled for Amazon Web Services Nitro Enclaves.
|
AwsEc2LaunchTemplateDataDetails |
withHibernationOptions(AwsEc2LaunchTemplateDataHibernationOptionsDetails hibernationOptions)
Specifies whether your Amazon EC2 instance is configured for hibernation.
|
AwsEc2LaunchTemplateDataDetails |
withIamInstanceProfile(AwsEc2LaunchTemplateDataIamInstanceProfileDetails iamInstanceProfile)
The name or Amazon Resource Name (ARN) of an IAM instance profile.
|
AwsEc2LaunchTemplateDataDetails |
withImageId(String imageId)
The ID of the Amazon Machine Image (AMI).
|
AwsEc2LaunchTemplateDataDetails |
withInstanceInitiatedShutdownBehavior(String instanceInitiatedShutdownBehavior)
Provides the options for specifying the instance initiated shutdown behavior.
|
AwsEc2LaunchTemplateDataDetails |
withInstanceMarketOptions(AwsEc2LaunchTemplateDataInstanceMarketOptionsDetails instanceMarketOptions)
Specifies the market (purchasing) option for an instance.
|
AwsEc2LaunchTemplateDataDetails |
withInstanceRequirements(AwsEc2LaunchTemplateDataInstanceRequirementsDetails instanceRequirements)
The attributes for the instance types.
|
AwsEc2LaunchTemplateDataDetails |
withInstanceType(String instanceType)
The instance type.
|
AwsEc2LaunchTemplateDataDetails |
withKernelId(String kernelId)
The ID of the kernel.
|
AwsEc2LaunchTemplateDataDetails |
withKeyName(String keyName)
The name of the key pair that allows users to connect to the instance.
|
AwsEc2LaunchTemplateDataDetails |
withLicenseSet(AwsEc2LaunchTemplateDataLicenseSetDetails... licenseSet)
Specifies a license configuration for an instance.
|
AwsEc2LaunchTemplateDataDetails |
withLicenseSet(Collection<AwsEc2LaunchTemplateDataLicenseSetDetails> licenseSet)
Specifies a license configuration for an instance.
|
AwsEc2LaunchTemplateDataDetails |
withMaintenanceOptions(AwsEc2LaunchTemplateDataMaintenanceOptionsDetails maintenanceOptions)
The maintenance options of your instance.
|
AwsEc2LaunchTemplateDataDetails |
withMetadataOptions(AwsEc2LaunchTemplateDataMetadataOptionsDetails metadataOptions)
The metadata options for the instance.
|
AwsEc2LaunchTemplateDataDetails |
withMonitoring(AwsEc2LaunchTemplateDataMonitoringDetails monitoring)
The monitoring for the instance.
|
AwsEc2LaunchTemplateDataDetails |
withNetworkInterfaceSet(AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails... networkInterfaceSet)
Specifies the parameters for a network interface that is attached to the instance.
|
AwsEc2LaunchTemplateDataDetails |
withNetworkInterfaceSet(Collection<AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails> networkInterfaceSet)
Specifies the parameters for a network interface that is attached to the instance.
|
AwsEc2LaunchTemplateDataDetails |
withPlacement(AwsEc2LaunchTemplateDataPlacementDetails placement)
Specifies the placement of an instance.
|
AwsEc2LaunchTemplateDataDetails |
withPrivateDnsNameOptions(AwsEc2LaunchTemplateDataPrivateDnsNameOptionsDetails privateDnsNameOptions)
The options for the instance hostname.
|
AwsEc2LaunchTemplateDataDetails |
withRamDiskId(String ramDiskId)
The ID of the RAM disk.
|
AwsEc2LaunchTemplateDataDetails |
withSecurityGroupIdSet(Collection<String> securityGroupIdSet)
One or more security group IDs.
|
AwsEc2LaunchTemplateDataDetails |
withSecurityGroupIdSet(String... securityGroupIdSet)
One or more security group IDs.
|
AwsEc2LaunchTemplateDataDetails |
withSecurityGroupSet(Collection<String> securityGroupSet)
One or more security group names.
|
AwsEc2LaunchTemplateDataDetails |
withSecurityGroupSet(String... securityGroupSet)
One or more security group names.
|
AwsEc2LaunchTemplateDataDetails |
withUserData(String userData)
The user data to make available to the instance.
|
public List<AwsEc2LaunchTemplateDataBlockDeviceMappingSetDetails> getBlockDeviceMappingSet()
Information about a block device mapping for an Amazon EC2 launch template.
public void setBlockDeviceMappingSet(Collection<AwsEc2LaunchTemplateDataBlockDeviceMappingSetDetails> blockDeviceMappingSet)
Information about a block device mapping for an Amazon EC2 launch template.
blockDeviceMappingSet
- Information about a block device mapping for an Amazon EC2 launch template.public AwsEc2LaunchTemplateDataDetails withBlockDeviceMappingSet(AwsEc2LaunchTemplateDataBlockDeviceMappingSetDetails... blockDeviceMappingSet)
Information about a block device mapping for an Amazon EC2 launch template.
NOTE: This method appends the values to the existing list (if any). Use
setBlockDeviceMappingSet(java.util.Collection)
or
withBlockDeviceMappingSet(java.util.Collection)
if you want to override the existing values.
blockDeviceMappingSet
- Information about a block device mapping for an Amazon EC2 launch template.public AwsEc2LaunchTemplateDataDetails withBlockDeviceMappingSet(Collection<AwsEc2LaunchTemplateDataBlockDeviceMappingSetDetails> blockDeviceMappingSet)
Information about a block device mapping for an Amazon EC2 launch template.
blockDeviceMappingSet
- Information about a block device mapping for an Amazon EC2 launch template.public void setCapacityReservationSpecification(AwsEc2LaunchTemplateDataCapacityReservationSpecificationDetails capacityReservationSpecification)
Specifies an instance's Capacity Reservation targeting option. You can specify only one option at a time.
capacityReservationSpecification
- Specifies an instance's Capacity Reservation targeting option. You can specify only one option at a time.public AwsEc2LaunchTemplateDataCapacityReservationSpecificationDetails getCapacityReservationSpecification()
Specifies an instance's Capacity Reservation targeting option. You can specify only one option at a time.
public AwsEc2LaunchTemplateDataDetails withCapacityReservationSpecification(AwsEc2LaunchTemplateDataCapacityReservationSpecificationDetails capacityReservationSpecification)
Specifies an instance's Capacity Reservation targeting option. You can specify only one option at a time.
capacityReservationSpecification
- Specifies an instance's Capacity Reservation targeting option. You can specify only one option at a time.public void setCpuOptions(AwsEc2LaunchTemplateDataCpuOptionsDetails cpuOptions)
Specifies the CPU options for an instance. For more information, see Optimize CPU options in the Amazon Elastic Compute Cloud User Guide.
cpuOptions
- Specifies the CPU options for an instance. For more information, see Optimize CPU
options in the Amazon Elastic Compute Cloud User Guide.public AwsEc2LaunchTemplateDataCpuOptionsDetails getCpuOptions()
Specifies the CPU options for an instance. For more information, see Optimize CPU options in the Amazon Elastic Compute Cloud User Guide.
public AwsEc2LaunchTemplateDataDetails withCpuOptions(AwsEc2LaunchTemplateDataCpuOptionsDetails cpuOptions)
Specifies the CPU options for an instance. For more information, see Optimize CPU options in the Amazon Elastic Compute Cloud User Guide.
cpuOptions
- Specifies the CPU options for an instance. For more information, see Optimize CPU
options in the Amazon Elastic Compute Cloud User Guide.public void setCreditSpecification(AwsEc2LaunchTemplateDataCreditSpecificationDetails creditSpecification)
Specifies the credit option for CPU usage of a T2, T3, or T3a instance.
creditSpecification
- Specifies the credit option for CPU usage of a T2, T3, or T3a instance.public AwsEc2LaunchTemplateDataCreditSpecificationDetails getCreditSpecification()
Specifies the credit option for CPU usage of a T2, T3, or T3a instance.
public AwsEc2LaunchTemplateDataDetails withCreditSpecification(AwsEc2LaunchTemplateDataCreditSpecificationDetails creditSpecification)
Specifies the credit option for CPU usage of a T2, T3, or T3a instance.
creditSpecification
- Specifies the credit option for CPU usage of a T2, T3, or T3a instance.public void setDisableApiStop(Boolean disableApiStop)
Indicates whether to enable the instance for stop protection. For more information, see Enable stop protection in the Amazon EC2 User Guide.
disableApiStop
- Indicates whether to enable the instance for stop protection. For more information, see Enable
stop protection in the Amazon EC2 User Guide.public Boolean getDisableApiStop()
Indicates whether to enable the instance for stop protection. For more information, see Enable stop protection in the Amazon EC2 User Guide.
public AwsEc2LaunchTemplateDataDetails withDisableApiStop(Boolean disableApiStop)
Indicates whether to enable the instance for stop protection. For more information, see Enable stop protection in the Amazon EC2 User Guide.
disableApiStop
- Indicates whether to enable the instance for stop protection. For more information, see Enable
stop protection in the Amazon EC2 User Guide.public Boolean isDisableApiStop()
Indicates whether to enable the instance for stop protection. For more information, see Enable stop protection in the Amazon EC2 User Guide.
public void setDisableApiTermination(Boolean disableApiTermination)
If you set this parameter to true
, you can't terminate the instance using the Amazon EC2 console,
CLI, or API. If set to true
, you can.
disableApiTermination
- If you set this parameter to true
, you can't terminate the instance using the Amazon EC2
console, CLI, or API. If set to true
, you can.public Boolean getDisableApiTermination()
If you set this parameter to true
, you can't terminate the instance using the Amazon EC2 console,
CLI, or API. If set to true
, you can.
true
, you can't terminate the instance using the Amazon EC2
console, CLI, or API. If set to true
, you can.public AwsEc2LaunchTemplateDataDetails withDisableApiTermination(Boolean disableApiTermination)
If you set this parameter to true
, you can't terminate the instance using the Amazon EC2 console,
CLI, or API. If set to true
, you can.
disableApiTermination
- If you set this parameter to true
, you can't terminate the instance using the Amazon EC2
console, CLI, or API. If set to true
, you can.public Boolean isDisableApiTermination()
If you set this parameter to true
, you can't terminate the instance using the Amazon EC2 console,
CLI, or API. If set to true
, you can.
true
, you can't terminate the instance using the Amazon EC2
console, CLI, or API. If set to true
, you can.public void setEbsOptimized(Boolean ebsOptimized)
Indicates whether the instance is optimized for Amazon EBS I/O.
ebsOptimized
- Indicates whether the instance is optimized for Amazon EBS I/O.public Boolean getEbsOptimized()
Indicates whether the instance is optimized for Amazon EBS I/O.
public AwsEc2LaunchTemplateDataDetails withEbsOptimized(Boolean ebsOptimized)
Indicates whether the instance is optimized for Amazon EBS I/O.
ebsOptimized
- Indicates whether the instance is optimized for Amazon EBS I/O.public Boolean isEbsOptimized()
Indicates whether the instance is optimized for Amazon EBS I/O.
public List<AwsEc2LaunchTemplateDataElasticGpuSpecificationSetDetails> getElasticGpuSpecificationSet()
Provides details about Elastic Graphics accelerators to associate with the instance.
public void setElasticGpuSpecificationSet(Collection<AwsEc2LaunchTemplateDataElasticGpuSpecificationSetDetails> elasticGpuSpecificationSet)
Provides details about Elastic Graphics accelerators to associate with the instance.
elasticGpuSpecificationSet
- Provides details about Elastic Graphics accelerators to associate with the instance.public AwsEc2LaunchTemplateDataDetails withElasticGpuSpecificationSet(AwsEc2LaunchTemplateDataElasticGpuSpecificationSetDetails... elasticGpuSpecificationSet)
Provides details about Elastic Graphics accelerators to associate with the instance.
NOTE: This method appends the values to the existing list (if any). Use
setElasticGpuSpecificationSet(java.util.Collection)
or
withElasticGpuSpecificationSet(java.util.Collection)
if you want to override the existing values.
elasticGpuSpecificationSet
- Provides details about Elastic Graphics accelerators to associate with the instance.public AwsEc2LaunchTemplateDataDetails withElasticGpuSpecificationSet(Collection<AwsEc2LaunchTemplateDataElasticGpuSpecificationSetDetails> elasticGpuSpecificationSet)
Provides details about Elastic Graphics accelerators to associate with the instance.
elasticGpuSpecificationSet
- Provides details about Elastic Graphics accelerators to associate with the instance.public List<AwsEc2LaunchTemplateDataElasticInferenceAcceleratorSetDetails> getElasticInferenceAcceleratorSet()
The Amazon Elastic Inference accelerator for the instance.
public void setElasticInferenceAcceleratorSet(Collection<AwsEc2LaunchTemplateDataElasticInferenceAcceleratorSetDetails> elasticInferenceAcceleratorSet)
The Amazon Elastic Inference accelerator for the instance.
elasticInferenceAcceleratorSet
- The Amazon Elastic Inference accelerator for the instance.public AwsEc2LaunchTemplateDataDetails withElasticInferenceAcceleratorSet(AwsEc2LaunchTemplateDataElasticInferenceAcceleratorSetDetails... elasticInferenceAcceleratorSet)
The Amazon Elastic Inference accelerator for the instance.
NOTE: This method appends the values to the existing list (if any). Use
setElasticInferenceAcceleratorSet(java.util.Collection)
or
withElasticInferenceAcceleratorSet(java.util.Collection)
if you want to override the existing values.
elasticInferenceAcceleratorSet
- The Amazon Elastic Inference accelerator for the instance.public AwsEc2LaunchTemplateDataDetails withElasticInferenceAcceleratorSet(Collection<AwsEc2LaunchTemplateDataElasticInferenceAcceleratorSetDetails> elasticInferenceAcceleratorSet)
The Amazon Elastic Inference accelerator for the instance.
elasticInferenceAcceleratorSet
- The Amazon Elastic Inference accelerator for the instance.public void setEnclaveOptions(AwsEc2LaunchTemplateDataEnclaveOptionsDetails enclaveOptions)
Indicates whether the Amazon EC2 instance is enabled for Amazon Web Services Nitro Enclaves.
enclaveOptions
- Indicates whether the Amazon EC2 instance is enabled for Amazon Web Services Nitro Enclaves.public AwsEc2LaunchTemplateDataEnclaveOptionsDetails getEnclaveOptions()
Indicates whether the Amazon EC2 instance is enabled for Amazon Web Services Nitro Enclaves.
public AwsEc2LaunchTemplateDataDetails withEnclaveOptions(AwsEc2LaunchTemplateDataEnclaveOptionsDetails enclaveOptions)
Indicates whether the Amazon EC2 instance is enabled for Amazon Web Services Nitro Enclaves.
enclaveOptions
- Indicates whether the Amazon EC2 instance is enabled for Amazon Web Services Nitro Enclaves.public void setHibernationOptions(AwsEc2LaunchTemplateDataHibernationOptionsDetails hibernationOptions)
Specifies whether your Amazon EC2 instance is configured for hibernation.
hibernationOptions
- Specifies whether your Amazon EC2 instance is configured for hibernation.public AwsEc2LaunchTemplateDataHibernationOptionsDetails getHibernationOptions()
Specifies whether your Amazon EC2 instance is configured for hibernation.
public AwsEc2LaunchTemplateDataDetails withHibernationOptions(AwsEc2LaunchTemplateDataHibernationOptionsDetails hibernationOptions)
Specifies whether your Amazon EC2 instance is configured for hibernation.
hibernationOptions
- Specifies whether your Amazon EC2 instance is configured for hibernation.public void setIamInstanceProfile(AwsEc2LaunchTemplateDataIamInstanceProfileDetails iamInstanceProfile)
The name or Amazon Resource Name (ARN) of an IAM instance profile.
iamInstanceProfile
- The name or Amazon Resource Name (ARN) of an IAM instance profile.public AwsEc2LaunchTemplateDataIamInstanceProfileDetails getIamInstanceProfile()
The name or Amazon Resource Name (ARN) of an IAM instance profile.
public AwsEc2LaunchTemplateDataDetails withIamInstanceProfile(AwsEc2LaunchTemplateDataIamInstanceProfileDetails iamInstanceProfile)
The name or Amazon Resource Name (ARN) of an IAM instance profile.
iamInstanceProfile
- The name or Amazon Resource Name (ARN) of an IAM instance profile.public void setImageId(String imageId)
The ID of the Amazon Machine Image (AMI).
imageId
- The ID of the Amazon Machine Image (AMI).public String getImageId()
The ID of the Amazon Machine Image (AMI).
public AwsEc2LaunchTemplateDataDetails withImageId(String imageId)
The ID of the Amazon Machine Image (AMI).
imageId
- The ID of the Amazon Machine Image (AMI).public void setInstanceInitiatedShutdownBehavior(String instanceInitiatedShutdownBehavior)
Provides the options for specifying the instance initiated shutdown behavior.
instanceInitiatedShutdownBehavior
- Provides the options for specifying the instance initiated shutdown behavior.public String getInstanceInitiatedShutdownBehavior()
Provides the options for specifying the instance initiated shutdown behavior.
public AwsEc2LaunchTemplateDataDetails withInstanceInitiatedShutdownBehavior(String instanceInitiatedShutdownBehavior)
Provides the options for specifying the instance initiated shutdown behavior.
instanceInitiatedShutdownBehavior
- Provides the options for specifying the instance initiated shutdown behavior.public void setInstanceMarketOptions(AwsEc2LaunchTemplateDataInstanceMarketOptionsDetails instanceMarketOptions)
Specifies the market (purchasing) option for an instance.
instanceMarketOptions
- Specifies the market (purchasing) option for an instance.public AwsEc2LaunchTemplateDataInstanceMarketOptionsDetails getInstanceMarketOptions()
Specifies the market (purchasing) option for an instance.
public AwsEc2LaunchTemplateDataDetails withInstanceMarketOptions(AwsEc2LaunchTemplateDataInstanceMarketOptionsDetails instanceMarketOptions)
Specifies the market (purchasing) option for an instance.
instanceMarketOptions
- Specifies the market (purchasing) option for an instance.public void setInstanceRequirements(AwsEc2LaunchTemplateDataInstanceRequirementsDetails instanceRequirements)
The attributes for the instance types. When you specify instance attributes, Amazon EC2 will identify instance
types with these attributes. If you specify InstanceRequirements
, you can't specify
InstanceType
.
instanceRequirements
- The attributes for the instance types. When you specify instance attributes, Amazon EC2 will identify
instance types with these attributes. If you specify InstanceRequirements
, you can't specify
InstanceType
.public AwsEc2LaunchTemplateDataInstanceRequirementsDetails getInstanceRequirements()
The attributes for the instance types. When you specify instance attributes, Amazon EC2 will identify instance
types with these attributes. If you specify InstanceRequirements
, you can't specify
InstanceType
.
InstanceRequirements
, you can't specify
InstanceType
.public AwsEc2LaunchTemplateDataDetails withInstanceRequirements(AwsEc2LaunchTemplateDataInstanceRequirementsDetails instanceRequirements)
The attributes for the instance types. When you specify instance attributes, Amazon EC2 will identify instance
types with these attributes. If you specify InstanceRequirements
, you can't specify
InstanceType
.
instanceRequirements
- The attributes for the instance types. When you specify instance attributes, Amazon EC2 will identify
instance types with these attributes. If you specify InstanceRequirements
, you can't specify
InstanceType
.public void setInstanceType(String instanceType)
The instance type. For more information, see Instance types in the
Amazon EC2 User Guide. If you specify InstanceType
, you can't specify
InstanceRequirements
.
instanceType
- The instance type. For more information, see Instance types in the
Amazon EC2 User Guide. If you specify InstanceType
, you can't specify
InstanceRequirements
.public String getInstanceType()
The instance type. For more information, see Instance types in the
Amazon EC2 User Guide. If you specify InstanceType
, you can't specify
InstanceRequirements
.
InstanceType
, you can't specify
InstanceRequirements
.public AwsEc2LaunchTemplateDataDetails withInstanceType(String instanceType)
The instance type. For more information, see Instance types in the
Amazon EC2 User Guide. If you specify InstanceType
, you can't specify
InstanceRequirements
.
instanceType
- The instance type. For more information, see Instance types in the
Amazon EC2 User Guide. If you specify InstanceType
, you can't specify
InstanceRequirements
.public void setKernelId(String kernelId)
The ID of the kernel.
kernelId
- The ID of the kernel.public String getKernelId()
The ID of the kernel.
public AwsEc2LaunchTemplateDataDetails withKernelId(String kernelId)
The ID of the kernel.
kernelId
- The ID of the kernel.public void setKeyName(String keyName)
The name of the key pair that allows users to connect to the instance.
keyName
- The name of the key pair that allows users to connect to the instance.public String getKeyName()
The name of the key pair that allows users to connect to the instance.
public AwsEc2LaunchTemplateDataDetails withKeyName(String keyName)
The name of the key pair that allows users to connect to the instance.
keyName
- The name of the key pair that allows users to connect to the instance.public List<AwsEc2LaunchTemplateDataLicenseSetDetails> getLicenseSet()
Specifies a license configuration for an instance.
public void setLicenseSet(Collection<AwsEc2LaunchTemplateDataLicenseSetDetails> licenseSet)
Specifies a license configuration for an instance.
licenseSet
- Specifies a license configuration for an instance.public AwsEc2LaunchTemplateDataDetails withLicenseSet(AwsEc2LaunchTemplateDataLicenseSetDetails... licenseSet)
Specifies a license configuration for an instance.
NOTE: This method appends the values to the existing list (if any). Use
setLicenseSet(java.util.Collection)
or withLicenseSet(java.util.Collection)
if you want to
override the existing values.
licenseSet
- Specifies a license configuration for an instance.public AwsEc2LaunchTemplateDataDetails withLicenseSet(Collection<AwsEc2LaunchTemplateDataLicenseSetDetails> licenseSet)
Specifies a license configuration for an instance.
licenseSet
- Specifies a license configuration for an instance.public void setMaintenanceOptions(AwsEc2LaunchTemplateDataMaintenanceOptionsDetails maintenanceOptions)
The maintenance options of your instance.
maintenanceOptions
- The maintenance options of your instance.public AwsEc2LaunchTemplateDataMaintenanceOptionsDetails getMaintenanceOptions()
The maintenance options of your instance.
public AwsEc2LaunchTemplateDataDetails withMaintenanceOptions(AwsEc2LaunchTemplateDataMaintenanceOptionsDetails maintenanceOptions)
The maintenance options of your instance.
maintenanceOptions
- The maintenance options of your instance.public void setMetadataOptions(AwsEc2LaunchTemplateDataMetadataOptionsDetails metadataOptions)
The metadata options for the instance. For more information, see Instance metadata and user data in the Amazon EC2 User Guide.
metadataOptions
- The metadata options for the instance. For more information, see Instance metadata
and user data in the Amazon EC2 User Guide.public AwsEc2LaunchTemplateDataMetadataOptionsDetails getMetadataOptions()
The metadata options for the instance. For more information, see Instance metadata and user data in the Amazon EC2 User Guide.
public AwsEc2LaunchTemplateDataDetails withMetadataOptions(AwsEc2LaunchTemplateDataMetadataOptionsDetails metadataOptions)
The metadata options for the instance. For more information, see Instance metadata and user data in the Amazon EC2 User Guide.
metadataOptions
- The metadata options for the instance. For more information, see Instance metadata
and user data in the Amazon EC2 User Guide.public void setMonitoring(AwsEc2LaunchTemplateDataMonitoringDetails monitoring)
The monitoring for the instance.
monitoring
- The monitoring for the instance.public AwsEc2LaunchTemplateDataMonitoringDetails getMonitoring()
The monitoring for the instance.
public AwsEc2LaunchTemplateDataDetails withMonitoring(AwsEc2LaunchTemplateDataMonitoringDetails monitoring)
The monitoring for the instance.
monitoring
- The monitoring for the instance.public List<AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails> getNetworkInterfaceSet()
Specifies the parameters for a network interface that is attached to the instance.
public void setNetworkInterfaceSet(Collection<AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails> networkInterfaceSet)
Specifies the parameters for a network interface that is attached to the instance.
networkInterfaceSet
- Specifies the parameters for a network interface that is attached to the instance.public AwsEc2LaunchTemplateDataDetails withNetworkInterfaceSet(AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails... networkInterfaceSet)
Specifies the parameters for a network interface that is attached to the instance.
NOTE: This method appends the values to the existing list (if any). Use
setNetworkInterfaceSet(java.util.Collection)
or withNetworkInterfaceSet(java.util.Collection)
if you want to override the existing values.
networkInterfaceSet
- Specifies the parameters for a network interface that is attached to the instance.public AwsEc2LaunchTemplateDataDetails withNetworkInterfaceSet(Collection<AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails> networkInterfaceSet)
Specifies the parameters for a network interface that is attached to the instance.
networkInterfaceSet
- Specifies the parameters for a network interface that is attached to the instance.public void setPlacement(AwsEc2LaunchTemplateDataPlacementDetails placement)
Specifies the placement of an instance.
placement
- Specifies the placement of an instance.public AwsEc2LaunchTemplateDataPlacementDetails getPlacement()
Specifies the placement of an instance.
public AwsEc2LaunchTemplateDataDetails withPlacement(AwsEc2LaunchTemplateDataPlacementDetails placement)
Specifies the placement of an instance.
placement
- Specifies the placement of an instance.public void setPrivateDnsNameOptions(AwsEc2LaunchTemplateDataPrivateDnsNameOptionsDetails privateDnsNameOptions)
The options for the instance hostname.
privateDnsNameOptions
- The options for the instance hostname.public AwsEc2LaunchTemplateDataPrivateDnsNameOptionsDetails getPrivateDnsNameOptions()
The options for the instance hostname.
public AwsEc2LaunchTemplateDataDetails withPrivateDnsNameOptions(AwsEc2LaunchTemplateDataPrivateDnsNameOptionsDetails privateDnsNameOptions)
The options for the instance hostname.
privateDnsNameOptions
- The options for the instance hostname.public void setRamDiskId(String ramDiskId)
The ID of the RAM disk.
ramDiskId
- The ID of the RAM disk.public String getRamDiskId()
The ID of the RAM disk.
public AwsEc2LaunchTemplateDataDetails withRamDiskId(String ramDiskId)
The ID of the RAM disk.
ramDiskId
- The ID of the RAM disk.public List<String> getSecurityGroupIdSet()
One or more security group IDs.
public void setSecurityGroupIdSet(Collection<String> securityGroupIdSet)
One or more security group IDs.
securityGroupIdSet
- One or more security group IDs.public AwsEc2LaunchTemplateDataDetails withSecurityGroupIdSet(String... securityGroupIdSet)
One or more security group IDs.
NOTE: This method appends the values to the existing list (if any). Use
setSecurityGroupIdSet(java.util.Collection)
or withSecurityGroupIdSet(java.util.Collection)
if
you want to override the existing values.
securityGroupIdSet
- One or more security group IDs.public AwsEc2LaunchTemplateDataDetails withSecurityGroupIdSet(Collection<String> securityGroupIdSet)
One or more security group IDs.
securityGroupIdSet
- One or more security group IDs.public List<String> getSecurityGroupSet()
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 setSecurityGroupSet(Collection<String> securityGroupSet)
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.
securityGroupSet
- 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 AwsEc2LaunchTemplateDataDetails withSecurityGroupSet(String... securityGroupSet)
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
setSecurityGroupSet(java.util.Collection)
or withSecurityGroupSet(java.util.Collection)
if you
want to override the existing values.
securityGroupSet
- 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 AwsEc2LaunchTemplateDataDetails withSecurityGroupSet(Collection<String> securityGroupSet)
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.
securityGroupSet
- 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 setUserData(String userData)
The user data to make available to the instance.
userData
- The user data to make available to the instance.public String getUserData()
The user data to make available to the instance.
public AwsEc2LaunchTemplateDataDetails withUserData(String userData)
The user data to make available to the instance.
userData
- The user data to make available to the instance.public String toString()
toString
in class Object
Object.toString()
public AwsEc2LaunchTemplateDataDetails clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.