@Generated(value="software.amazon.awssdk:codegen") public final class AwsEc2LaunchTemplateDataDetails extends Object implements SdkPojo, Serializable, ToCopyableBuilder<AwsEc2LaunchTemplateDataDetails.Builder,AwsEc2LaunchTemplateDataDetails>
The information to include in an Amazon Elastic Compute Cloud (Amazon EC2) launch template.
| Modifier and Type | Class and Description |
|---|---|
static interface |
AwsEc2LaunchTemplateDataDetails.Builder |
| Modifier and Type | Method and Description |
|---|---|
List<AwsEc2LaunchTemplateDataBlockDeviceMappingSetDetails> |
blockDeviceMappingSet()
Information about a block device mapping for an Amazon EC2 launch template.
|
static AwsEc2LaunchTemplateDataDetails.Builder |
builder() |
AwsEc2LaunchTemplateDataCapacityReservationSpecificationDetails |
capacityReservationSpecification()
Specifies an instance's Capacity Reservation targeting option.
|
AwsEc2LaunchTemplateDataCpuOptionsDetails |
cpuOptions()
Specifies the CPU options for an instance.
|
AwsEc2LaunchTemplateDataCreditSpecificationDetails |
creditSpecification()
Specifies the credit option for CPU usage of a T2, T3, or T3a instance.
|
Boolean |
disableApiStop()
Indicates whether to enable the instance for stop protection.
|
Boolean |
disableApiTermination()
If you set this parameter to
true, you can't terminate the instance using the Amazon EC2 console,
CLI, or API. |
Boolean |
ebsOptimized()
Indicates whether the instance is optimized for Amazon EBS I/O.
|
List<AwsEc2LaunchTemplateDataElasticGpuSpecificationSetDetails> |
elasticGpuSpecificationSet()
Provides details about Elastic Graphics accelerators to associate with the instance.
|
List<AwsEc2LaunchTemplateDataElasticInferenceAcceleratorSetDetails> |
elasticInferenceAcceleratorSet()
The Amazon Elastic Inference accelerator for the instance.
|
AwsEc2LaunchTemplateDataEnclaveOptionsDetails |
enclaveOptions()
Indicates whether the Amazon EC2 instance is enabled for Amazon Web Services Nitro Enclaves.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasBlockDeviceMappingSet()
For responses, this returns true if the service returned a value for the BlockDeviceMappingSet property.
|
boolean |
hasElasticGpuSpecificationSet()
For responses, this returns true if the service returned a value for the ElasticGpuSpecificationSet property.
|
boolean |
hasElasticInferenceAcceleratorSet()
For responses, this returns true if the service returned a value for the ElasticInferenceAcceleratorSet property.
|
int |
hashCode() |
boolean |
hasLicenseSet()
For responses, this returns true if the service returned a value for the LicenseSet property.
|
boolean |
hasNetworkInterfaceSet()
For responses, this returns true if the service returned a value for the NetworkInterfaceSet property.
|
boolean |
hasSecurityGroupIdSet()
For responses, this returns true if the service returned a value for the SecurityGroupIdSet property.
|
boolean |
hasSecurityGroupSet()
For responses, this returns true if the service returned a value for the SecurityGroupSet property.
|
AwsEc2LaunchTemplateDataHibernationOptionsDetails |
hibernationOptions()
Specifies whether your Amazon EC2 instance is configured for hibernation.
|
AwsEc2LaunchTemplateDataIamInstanceProfileDetails |
iamInstanceProfile()
The name or Amazon Resource Name (ARN) of an IAM instance profile.
|
String |
imageId()
The ID of the Amazon Machine Image (AMI).
|
String |
instanceInitiatedShutdownBehavior()
Provides the options for specifying the instance initiated shutdown behavior.
|
AwsEc2LaunchTemplateDataInstanceMarketOptionsDetails |
instanceMarketOptions()
Specifies the market (purchasing) option for an instance.
|
AwsEc2LaunchTemplateDataInstanceRequirementsDetails |
instanceRequirements()
The attributes for the instance types.
|
String |
instanceType()
The instance type.
|
String |
kernelId()
The ID of the kernel.
|
String |
keyName()
The name of the key pair that allows users to connect to the instance.
|
List<AwsEc2LaunchTemplateDataLicenseSetDetails> |
licenseSet()
Specifies a license configuration for an instance.
|
AwsEc2LaunchTemplateDataMaintenanceOptionsDetails |
maintenanceOptions()
The maintenance options of your instance.
|
AwsEc2LaunchTemplateDataMetadataOptionsDetails |
metadataOptions()
The metadata options for the instance.
|
AwsEc2LaunchTemplateDataMonitoringDetails |
monitoring()
The monitoring for the instance.
|
List<AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails> |
networkInterfaceSet()
Specifies the parameters for a network interface that is attached to the instance.
|
AwsEc2LaunchTemplateDataPlacementDetails |
placement()
Specifies the placement of an instance.
|
AwsEc2LaunchTemplateDataPrivateDnsNameOptionsDetails |
privateDnsNameOptions()
The options for the instance hostname.
|
String |
ramDiskId()
The ID of the RAM disk.
|
List<SdkField<?>> |
sdkFields() |
List<String> |
securityGroupIdSet()
One or more security group IDs.
|
List<String> |
securityGroupSet()
One or more security group names.
|
static Class<? extends AwsEc2LaunchTemplateDataDetails.Builder> |
serializableBuilderClass() |
AwsEc2LaunchTemplateDataDetails.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
String |
userData()
The user data to make available to the instance.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final boolean hasBlockDeviceMappingSet()
isEmpty() method on the
property). This is useful because the SDK will never return a null collection or map, but you may need to
differentiate between the service returning nothing (or null) and the service returning an empty collection or
map. For requests, this returns true if a value for the property was specified in the request builder, and false
if a value was not specified.public final List<AwsEc2LaunchTemplateDataBlockDeviceMappingSetDetails> blockDeviceMappingSet()
Information about a block device mapping for an Amazon EC2 launch template.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasBlockDeviceMappingSet() method.
public final AwsEc2LaunchTemplateDataCapacityReservationSpecificationDetails capacityReservationSpecification()
Specifies an instance's Capacity Reservation targeting option. You can specify only one option at a time.
public final AwsEc2LaunchTemplateDataCpuOptionsDetails cpuOptions()
Specifies the CPU options for an instance. For more information, see Optimize CPU options in the Amazon Elastic Compute Cloud User Guide.
public final AwsEc2LaunchTemplateDataCreditSpecificationDetails creditSpecification()
Specifies the credit option for CPU usage of a T2, T3, or T3a instance.
public final Boolean disableApiStop()
Indicates whether to enable the instance for stop protection. For more information, see Enable stop protection in the Amazon EC2 User Guide.
public final 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.
true, you can't terminate the instance using the Amazon EC2
console, CLI, or API. If set to true, you can.public final Boolean ebsOptimized()
Indicates whether the instance is optimized for Amazon EBS I/O.
public final boolean hasElasticGpuSpecificationSet()
isEmpty() method on the
property). This is useful because the SDK will never return a null collection or map, but you may need to
differentiate between the service returning nothing (or null) and the service returning an empty collection or
map. For requests, this returns true if a value for the property was specified in the request builder, and false
if a value was not specified.public final List<AwsEc2LaunchTemplateDataElasticGpuSpecificationSetDetails> elasticGpuSpecificationSet()
Provides details about Elastic Graphics accelerators to associate with the instance.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasElasticGpuSpecificationSet() method.
public final boolean hasElasticInferenceAcceleratorSet()
isEmpty() method on the
property). This is useful because the SDK will never return a null collection or map, but you may need to
differentiate between the service returning nothing (or null) and the service returning an empty collection or
map. For requests, this returns true if a value for the property was specified in the request builder, and false
if a value was not specified.public final List<AwsEc2LaunchTemplateDataElasticInferenceAcceleratorSetDetails> elasticInferenceAcceleratorSet()
The Amazon Elastic Inference accelerator for the instance.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasElasticInferenceAcceleratorSet() method.
public final AwsEc2LaunchTemplateDataEnclaveOptionsDetails enclaveOptions()
Indicates whether the Amazon EC2 instance is enabled for Amazon Web Services Nitro Enclaves.
public final AwsEc2LaunchTemplateDataHibernationOptionsDetails hibernationOptions()
Specifies whether your Amazon EC2 instance is configured for hibernation.
public final AwsEc2LaunchTemplateDataIamInstanceProfileDetails iamInstanceProfile()
The name or Amazon Resource Name (ARN) of an IAM instance profile.
public final String imageId()
The ID of the Amazon Machine Image (AMI).
public final String instanceInitiatedShutdownBehavior()
Provides the options for specifying the instance initiated shutdown behavior.
public final AwsEc2LaunchTemplateDataInstanceMarketOptionsDetails instanceMarketOptions()
Specifies the market (purchasing) option for an instance.
public final 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, you can't specify
InstanceType.public final 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, you can't specify
InstanceRequirements.public final String kernelId()
The ID of the kernel.
public final String keyName()
The name of the key pair that allows users to connect to the instance.
public final boolean hasLicenseSet()
isEmpty() method on the property). This is
useful because the SDK will never return a null collection or map, but you may need to differentiate between the
service returning nothing (or null) and the service returning an empty collection or map. For requests, this
returns true if a value for the property was specified in the request builder, and false if a value was not
specified.public final List<AwsEc2LaunchTemplateDataLicenseSetDetails> licenseSet()
Specifies a license configuration for an instance.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasLicenseSet() method.
public final AwsEc2LaunchTemplateDataMaintenanceOptionsDetails maintenanceOptions()
The maintenance options of your instance.
public final AwsEc2LaunchTemplateDataMetadataOptionsDetails metadataOptions()
The metadata options for the instance. For more information, see Instance metadata and user data in the Amazon EC2 User Guide.
public final AwsEc2LaunchTemplateDataMonitoringDetails monitoring()
The monitoring for the instance.
public final boolean hasNetworkInterfaceSet()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails> networkInterfaceSet()
Specifies the parameters for a network interface that is attached to the instance.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasNetworkInterfaceSet() method.
public final AwsEc2LaunchTemplateDataPlacementDetails placement()
Specifies the placement of an instance.
public final AwsEc2LaunchTemplateDataPrivateDnsNameOptionsDetails privateDnsNameOptions()
The options for the instance hostname.
public final String ramDiskId()
The ID of the RAM disk.
public final boolean hasSecurityGroupIdSet()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<String> securityGroupIdSet()
One or more security group IDs.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasSecurityGroupIdSet() method.
public final boolean hasSecurityGroupSet()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<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.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasSecurityGroupSet() method.
public final String userData()
The user data to make available to the instance.
public AwsEc2LaunchTemplateDataDetails.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<AwsEc2LaunchTemplateDataDetails.Builder,AwsEc2LaunchTemplateDataDetails>public static AwsEc2LaunchTemplateDataDetails.Builder builder()
public static Class<? extends AwsEc2LaunchTemplateDataDetails.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.