@Generated(value="software.amazon.awssdk:codegen") public final class ResponseLaunchTemplateData extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ResponseLaunchTemplateData.Builder,ResponseLaunchTemplateData>
The information for a launch template.
| Modifier and Type | Class and Description |
|---|---|
static interface |
ResponseLaunchTemplateData.Builder |
| Modifier and Type | Method and Description |
|---|---|
List<LaunchTemplateBlockDeviceMapping> |
blockDeviceMappings()
The block device mappings.
|
static ResponseLaunchTemplateData.Builder |
builder() |
LaunchTemplateCapacityReservationSpecificationResponse |
capacityReservationSpecification()
Information about the Capacity Reservation targeting option.
|
LaunchTemplateCpuOptions |
cpuOptions()
The CPU options for the instance.
|
CreditSpecification |
creditSpecification()
The credit option for CPU usage of the instance.
|
Boolean |
disableApiTermination()
If set to
true, indicates that the instance cannot be terminated using the Amazon EC2 console,
command line tool, or API. |
Boolean |
ebsOptimized()
Indicates whether the instance is optimized for Amazon EBS I/O.
|
List<ElasticGpuSpecificationResponse> |
elasticGpuSpecifications()
The elastic GPU specification.
|
List<LaunchTemplateElasticInferenceAcceleratorResponse> |
elasticInferenceAccelerators()
The elastic inference accelerator for the instance.
|
LaunchTemplateEnclaveOptions |
enclaveOptions()
Indicates whether the 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 |
hasBlockDeviceMappings()
Returns true if the BlockDeviceMappings property was specified by the sender (it may be empty), or false if the
sender did not specify the value (it will be empty).
|
boolean |
hasElasticGpuSpecifications()
Returns true if the ElasticGpuSpecifications property was specified by the sender (it may be empty), or false if
the sender did not specify the value (it will be empty).
|
boolean |
hasElasticInferenceAccelerators()
Returns true if the ElasticInferenceAccelerators property was specified by the sender (it may be empty), or false
if the sender did not specify the value (it will be empty).
|
int |
hashCode() |
boolean |
hasLicenseSpecifications()
Returns true if the LicenseSpecifications property was specified by the sender (it may be empty), or false if the
sender did not specify the value (it will be empty).
|
boolean |
hasNetworkInterfaces()
Returns true if the NetworkInterfaces property was specified by the sender (it may be empty), or false if the
sender did not specify the value (it will be empty).
|
boolean |
hasSecurityGroupIds()
Returns true if the SecurityGroupIds property was specified by the sender (it may be empty), or false if the
sender did not specify the value (it will be empty).
|
boolean |
hasSecurityGroups()
Returns true if the SecurityGroups property was specified by the sender (it may be empty), or false if the sender
did not specify the value (it will be empty).
|
boolean |
hasTagSpecifications()
Returns true if the TagSpecifications property was specified by the sender (it may be empty), or false if the
sender did not specify the value (it will be empty).
|
LaunchTemplateHibernationOptions |
hibernationOptions()
Indicates whether an instance is configured for hibernation.
|
LaunchTemplateIamInstanceProfileSpecification |
iamInstanceProfile()
The IAM instance profile.
|
String |
imageId()
The ID of the AMI that was used to launch the instance.
|
ShutdownBehavior |
instanceInitiatedShutdownBehavior()
Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the
operating system command for system shutdown).
|
String |
instanceInitiatedShutdownBehaviorAsString()
Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the
operating system command for system shutdown).
|
LaunchTemplateInstanceMarketOptions |
instanceMarketOptions()
The market (purchasing) option for the instances.
|
InstanceType |
instanceType()
The instance type.
|
String |
instanceTypeAsString()
The instance type.
|
String |
kernelId()
The ID of the kernel, if applicable.
|
String |
keyName()
The name of the key pair.
|
List<LaunchTemplateLicenseConfiguration> |
licenseSpecifications()
The license configurations.
|
LaunchTemplateInstanceMetadataOptions |
metadataOptions()
The metadata options for the instance.
|
LaunchTemplatesMonitoring |
monitoring()
The monitoring for the instance.
|
List<LaunchTemplateInstanceNetworkInterfaceSpecification> |
networkInterfaces()
The network interfaces.
|
LaunchTemplatePlacement |
placement()
The placement of the instance.
|
String |
ramDiskId()
The ID of the RAM disk, if applicable.
|
List<SdkField<?>> |
sdkFields() |
List<String> |
securityGroupIds()
The security group IDs.
|
List<String> |
securityGroups()
The security group names.
|
static Class<? extends ResponseLaunchTemplateData.Builder> |
serializableBuilderClass() |
List<LaunchTemplateTagSpecification> |
tagSpecifications()
The tags.
|
ResponseLaunchTemplateData.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
String |
userData()
The user data for the instance.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String kernelId()
The ID of the kernel, if applicable.
public final Boolean ebsOptimized()
Indicates whether the instance is optimized for Amazon EBS I/O.
public final LaunchTemplateIamInstanceProfileSpecification iamInstanceProfile()
The IAM instance profile.
public final boolean hasBlockDeviceMappings()
public final List<LaunchTemplateBlockDeviceMapping> blockDeviceMappings()
The block device mappings.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasBlockDeviceMappings() to see if a value was sent in this field.
public final boolean hasNetworkInterfaces()
public final List<LaunchTemplateInstanceNetworkInterfaceSpecification> networkInterfaces()
The network interfaces.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasNetworkInterfaces() to see if a value was sent in this field.
public final String imageId()
The ID of the AMI that was used to launch the instance.
public final InstanceType instanceType()
The instance type.
If the service returns an enum value that is not available in the current SDK version, instanceType will
return InstanceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
instanceTypeAsString().
InstanceTypepublic final String instanceTypeAsString()
The instance type.
If the service returns an enum value that is not available in the current SDK version, instanceType will
return InstanceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
instanceTypeAsString().
InstanceTypepublic final String keyName()
The name of the key pair.
public final LaunchTemplatesMonitoring monitoring()
The monitoring for the instance.
public final LaunchTemplatePlacement placement()
The placement of the instance.
public final String ramDiskId()
The ID of the RAM disk, if applicable.
public final Boolean disableApiTermination()
If set to true, indicates that the instance cannot be terminated using the Amazon EC2 console,
command line tool, or API.
true, indicates that the instance cannot be terminated using the Amazon EC2
console, command line tool, or API.public final ShutdownBehavior instanceInitiatedShutdownBehavior()
Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).
If the service returns an enum value that is not available in the current SDK version,
instanceInitiatedShutdownBehavior will return ShutdownBehavior.UNKNOWN_TO_SDK_VERSION. The raw
value returned by the service is available from instanceInitiatedShutdownBehaviorAsString().
ShutdownBehaviorpublic final String instanceInitiatedShutdownBehaviorAsString()
Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).
If the service returns an enum value that is not available in the current SDK version,
instanceInitiatedShutdownBehavior will return ShutdownBehavior.UNKNOWN_TO_SDK_VERSION. The raw
value returned by the service is available from instanceInitiatedShutdownBehaviorAsString().
ShutdownBehaviorpublic final String userData()
The user data for the instance.
public final boolean hasTagSpecifications()
public final List<LaunchTemplateTagSpecification> tagSpecifications()
The tags.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasTagSpecifications() to see if a value was sent in this field.
public final boolean hasElasticGpuSpecifications()
public final List<ElasticGpuSpecificationResponse> elasticGpuSpecifications()
The elastic GPU specification.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasElasticGpuSpecifications() to see if a value was sent in this field.
public final boolean hasElasticInferenceAccelerators()
public final List<LaunchTemplateElasticInferenceAcceleratorResponse> elasticInferenceAccelerators()
The elastic inference accelerator for the instance.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasElasticInferenceAccelerators() to see if a value was sent in this field.
public final boolean hasSecurityGroupIds()
public final List<String> securityGroupIds()
The security group IDs.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasSecurityGroupIds() to see if a value was sent in this field.
public final boolean hasSecurityGroups()
public final List<String> securityGroups()
The security group names.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasSecurityGroups() to see if a value was sent in this field.
public final LaunchTemplateInstanceMarketOptions instanceMarketOptions()
The market (purchasing) option for the instances.
public final CreditSpecification creditSpecification()
The credit option for CPU usage of the instance.
public final LaunchTemplateCpuOptions cpuOptions()
The CPU options for the instance. For more information, see Optimizing CPU options in the Amazon Elastic Compute Cloud User Guide.
public final LaunchTemplateCapacityReservationSpecificationResponse capacityReservationSpecification()
Information about the Capacity Reservation targeting option.
public final boolean hasLicenseSpecifications()
public final List<LaunchTemplateLicenseConfiguration> licenseSpecifications()
The license configurations.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasLicenseSpecifications() to see if a value was sent in this field.
public final LaunchTemplateHibernationOptions hibernationOptions()
Indicates whether an instance is configured for hibernation. For more information, see Hibernate your instance in the Amazon Elastic Compute Cloud User Guide.
public final LaunchTemplateInstanceMetadataOptions metadataOptions()
The metadata options for the instance. For more information, see Instance metadata and user data in the Amazon Elastic Compute Cloud User Guide.
public final LaunchTemplateEnclaveOptions enclaveOptions()
Indicates whether the instance is enabled for Amazon Web Services Nitro Enclaves.
public ResponseLaunchTemplateData.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<ResponseLaunchTemplateData.Builder,ResponseLaunchTemplateData>public static ResponseLaunchTemplateData.Builder builder()
public static Class<? extends ResponseLaunchTemplateData.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2021. All rights reserved.