@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.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
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.
|
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, wait
copy
public 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 List<LaunchTemplateBlockDeviceMapping> blockDeviceMappings()
The block device mappings.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public List<LaunchTemplateInstanceNetworkInterfaceSpecification> networkInterfaces()
The network interfaces.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
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()
.
InstanceType
public 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()
.
InstanceType
public 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()
.
ShutdownBehavior
public 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()
.
ShutdownBehavior
public String userData()
The user data for the instance.
public List<LaunchTemplateTagSpecification> tagSpecifications()
The tags.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public List<ElasticGpuSpecificationResponse> elasticGpuSpecifications()
The elastic GPU specification.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
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.
public List<String> securityGroupIds()
The security group IDs.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public List<String> securityGroups()
The security group names.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
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 List<LaunchTemplateLicenseConfiguration> licenseSpecifications()
The license configurations.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
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 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 SdkPojo
public String toString()
Copyright © 2019. All rights reserved.