@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 AWS 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 String kernelId()
The ID of the kernel, if applicable.
public Boolean ebsOptimized()
Indicates whether the instance is optimized for Amazon EBS I/O.
public LaunchTemplateIamInstanceProfileSpecification iamInstanceProfile()
The IAM instance profile.
public boolean hasBlockDeviceMappings()
public 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 boolean hasNetworkInterfaces()
public 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 String imageId()
The ID of the AMI that was used to launch the instance.
public 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 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 String keyName()
The name of the key pair.
public LaunchTemplatesMonitoring monitoring()
The monitoring for the instance.
public LaunchTemplatePlacement placement()
The placement of the instance.
public String ramDiskId()
The ID of the RAM disk, if applicable.
public 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 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 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 String userData()
The user data for the instance.
public boolean hasTagSpecifications()
public 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 boolean hasElasticGpuSpecifications()
public 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 boolean hasElasticInferenceAccelerators()
public 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 boolean hasSecurityGroupIds()
public 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 boolean hasSecurityGroups()
public 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 LaunchTemplateInstanceMarketOptions instanceMarketOptions()
The market (purchasing) option for the instances.
public CreditSpecification creditSpecification()
The credit option for CPU usage of the instance.
public LaunchTemplateCpuOptions cpuOptions()
The CPU options for the instance. For more information, see Optimizing CPU Options in the Amazon Elastic Compute Cloud User Guide.
public LaunchTemplateCapacityReservationSpecificationResponse capacityReservationSpecification()
Information about the Capacity Reservation targeting option.
public boolean hasLicenseSpecifications()
public 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 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 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 LaunchTemplateEnclaveOptions enclaveOptions()
Indicates whether the instance is enabled for AWS 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 boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic String toString()
Copyright © 2020. All rights reserved.