@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()
For responses, this returns true if the service returned a value for the BlockDeviceMappings property.
|
boolean |
hasElasticGpuSpecifications()
For responses, this returns true if the service returned a value for the ElasticGpuSpecifications property.
|
boolean |
hasElasticInferenceAccelerators()
For responses, this returns true if the service returned a value for the ElasticInferenceAccelerators property.
|
int |
hashCode() |
boolean |
hasLicenseSpecifications()
For responses, this returns true if the service returned a value for the LicenseSpecifications property.
|
boolean |
hasNetworkInterfaces()
For responses, this returns true if the service returned a value for the NetworkInterfaces property.
|
boolean |
hasSecurityGroupIds()
For responses, this returns true if the service returned a value for the SecurityGroupIds property.
|
boolean |
hasSecurityGroups()
For responses, this returns true if the service returned a value for the SecurityGroups property.
|
boolean |
hasTagSpecifications()
For responses, this returns true if the service returned a value for the TagSpecifications property.
|
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()
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<LaunchTemplateBlockDeviceMapping> blockDeviceMappings()
The block device mappings.
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 hasBlockDeviceMappings() method.
public final boolean hasNetworkInterfaces()
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<LaunchTemplateInstanceNetworkInterfaceSpecification> networkInterfaces()
The network interfaces.
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 hasNetworkInterfaces() method.
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()
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<LaunchTemplateTagSpecification> tagSpecifications()
The tags.
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 hasTagSpecifications() method.
public final boolean hasElasticGpuSpecifications()
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<ElasticGpuSpecificationResponse> elasticGpuSpecifications()
The elastic GPU specification.
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 hasElasticGpuSpecifications() method.
public final boolean hasElasticInferenceAccelerators()
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<LaunchTemplateElasticInferenceAcceleratorResponse> elasticInferenceAccelerators()
The 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 hasElasticInferenceAccelerators() method.
public final boolean hasSecurityGroupIds()
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> securityGroupIds()
The 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 hasSecurityGroupIds() method.
public final boolean hasSecurityGroups()
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> securityGroups()
The security group names.
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 hasSecurityGroups() method.
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()
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<LaunchTemplateLicenseConfiguration> licenseSpecifications()
The license configurations.
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 hasLicenseSpecifications() method.
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.