public static interface ResponseLaunchTemplateData.Builder extends SdkPojo, CopyableBuilder<ResponseLaunchTemplateData.Builder,ResponseLaunchTemplateData>
equalsBySdkFields, sdkFields
copy
applyMutation, build
ResponseLaunchTemplateData.Builder kernelId(String kernelId)
The ID of the kernel, if applicable.
kernelId
- The ID of the kernel, if applicable.ResponseLaunchTemplateData.Builder ebsOptimized(Boolean ebsOptimized)
Indicates whether the instance is optimized for Amazon EBS I/O.
ebsOptimized
- Indicates whether the instance is optimized for Amazon EBS I/O.ResponseLaunchTemplateData.Builder iamInstanceProfile(LaunchTemplateIamInstanceProfileSpecification iamInstanceProfile)
The IAM instance profile.
iamInstanceProfile
- The IAM instance profile.default ResponseLaunchTemplateData.Builder iamInstanceProfile(Consumer<LaunchTemplateIamInstanceProfileSpecification.Builder> iamInstanceProfile)
The IAM instance profile.
This is a convenience method that creates an instance of theLaunchTemplateIamInstanceProfileSpecification.Builder
avoiding the need to create one manually via
LaunchTemplateIamInstanceProfileSpecification.builder()
.
When the Consumer
completes, SdkBuilder.build()
is
called immediately and its result is passed to
iamInstanceProfile(LaunchTemplateIamInstanceProfileSpecification)
.
iamInstanceProfile
- a consumer that will call methods on LaunchTemplateIamInstanceProfileSpecification.Builder
iamInstanceProfile(LaunchTemplateIamInstanceProfileSpecification)
ResponseLaunchTemplateData.Builder blockDeviceMappings(Collection<LaunchTemplateBlockDeviceMapping> blockDeviceMappings)
The block device mappings.
blockDeviceMappings
- The block device mappings.ResponseLaunchTemplateData.Builder blockDeviceMappings(LaunchTemplateBlockDeviceMapping... blockDeviceMappings)
The block device mappings.
blockDeviceMappings
- The block device mappings.ResponseLaunchTemplateData.Builder blockDeviceMappings(Consumer<LaunchTemplateBlockDeviceMapping.Builder>... blockDeviceMappings)
The block device mappings.
This is a convenience method that creates an instance of theLaunchTemplateBlockDeviceMapping.Builder
avoiding the need
to create one manually via
LaunchTemplateBlockDeviceMapping.builder()
.
When the Consumer
completes,
SdkBuilder.build()
is called
immediately and its result is passed to #blockDeviceMappings(List
.
blockDeviceMappings
- a consumer that will call methods on
LaunchTemplateBlockDeviceMapping.Builder
#blockDeviceMappings(java.util.Collection)
ResponseLaunchTemplateData.Builder networkInterfaces(Collection<LaunchTemplateInstanceNetworkInterfaceSpecification> networkInterfaces)
The network interfaces.
networkInterfaces
- The network interfaces.ResponseLaunchTemplateData.Builder networkInterfaces(LaunchTemplateInstanceNetworkInterfaceSpecification... networkInterfaces)
The network interfaces.
networkInterfaces
- The network interfaces.ResponseLaunchTemplateData.Builder networkInterfaces(Consumer<LaunchTemplateInstanceNetworkInterfaceSpecification.Builder>... networkInterfaces)
The network interfaces.
This is a convenience method that creates an instance of theLaunchTemplateInstanceNetworkInterfaceSpecification.Builder
avoiding the need to create one manually via
LaunchTemplateInstanceNetworkInterfaceSpecification.builder()
.
When the Consumer
completes,
SdkBuilder.build()
is called immediately and its result is passed to #networkInterfaces(List
.
networkInterfaces
- a consumer that will call methods on
LaunchTemplateInstanceNetworkInterfaceSpecification.Builder
#networkInterfaces(java.util.Collection)
ResponseLaunchTemplateData.Builder imageId(String imageId)
The ID of the AMI or a Systems Manager parameter. The Systems Manager parameter will resolve to the ID of the AMI at instance launch.
The value depends on what you specified in the request. The possible values are:
If an AMI ID was specified in the request, then this is the AMI ID.
If a Systems Manager parameter was specified in the request, and ResolveAlias
was configured as
true
, then this is the AMI ID that the parameter is mapped to in the Parameter Store.
If a Systems Manager parameter was specified in the request, and ResolveAlias
was configured as
false
, then this is the parameter value.
For more information, see Use a Systems Manager parameter instead of an AMI ID in the Amazon Elastic Compute Cloud User Guide.
imageId
- The ID of the AMI or a Systems Manager parameter. The Systems Manager parameter will resolve to the ID
of the AMI at instance launch.
The value depends on what you specified in the request. The possible values are:
If an AMI ID was specified in the request, then this is the AMI ID.
If a Systems Manager parameter was specified in the request, and ResolveAlias
was
configured as true
, then this is the AMI ID that the parameter is mapped to in the
Parameter Store.
If a Systems Manager parameter was specified in the request, and ResolveAlias
was
configured as false
, then this is the parameter value.
For more information, see Use a Systems Manager parameter instead of an AMI ID in the Amazon Elastic Compute Cloud User Guide.
ResponseLaunchTemplateData.Builder instanceType(String instanceType)
The instance type.
instanceType
- The instance type.InstanceType
,
InstanceType
ResponseLaunchTemplateData.Builder instanceType(InstanceType instanceType)
The instance type.
instanceType
- The instance type.InstanceType
,
InstanceType
ResponseLaunchTemplateData.Builder keyName(String keyName)
The name of the key pair.
keyName
- The name of the key pair.ResponseLaunchTemplateData.Builder monitoring(LaunchTemplatesMonitoring monitoring)
The monitoring for the instance.
monitoring
- The monitoring for the instance.default ResponseLaunchTemplateData.Builder monitoring(Consumer<LaunchTemplatesMonitoring.Builder> monitoring)
The monitoring for the instance.
This is a convenience method that creates an instance of theLaunchTemplatesMonitoring.Builder
avoiding the need to create one manually via LaunchTemplatesMonitoring.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately
and its result is passed to monitoring(LaunchTemplatesMonitoring)
.
monitoring
- a consumer that will call methods on LaunchTemplatesMonitoring.Builder
monitoring(LaunchTemplatesMonitoring)
ResponseLaunchTemplateData.Builder placement(LaunchTemplatePlacement placement)
The placement of the instance.
placement
- The placement of the instance.default ResponseLaunchTemplateData.Builder placement(Consumer<LaunchTemplatePlacement.Builder> placement)
The placement of the instance.
This is a convenience method that creates an instance of theLaunchTemplatePlacement.Builder
avoiding
the need to create one manually via LaunchTemplatePlacement.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately
and its result is passed to placement(LaunchTemplatePlacement)
.
placement
- a consumer that will call methods on LaunchTemplatePlacement.Builder
placement(LaunchTemplatePlacement)
ResponseLaunchTemplateData.Builder ramDiskId(String ramDiskId)
The ID of the RAM disk, if applicable.
ramDiskId
- The ID of the RAM disk, if applicable.ResponseLaunchTemplateData.Builder disableApiTermination(Boolean disableApiTermination)
If set to true
, indicates that the instance cannot be terminated using the Amazon EC2 console,
command line tool, or API.
disableApiTermination
- If set to true
, indicates that the instance cannot be terminated using the Amazon EC2
console, command line tool, or API.ResponseLaunchTemplateData.Builder instanceInitiatedShutdownBehavior(String instanceInitiatedShutdownBehavior)
Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).
instanceInitiatedShutdownBehavior
- Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using
the operating system command for system shutdown).ShutdownBehavior
,
ShutdownBehavior
ResponseLaunchTemplateData.Builder instanceInitiatedShutdownBehavior(ShutdownBehavior instanceInitiatedShutdownBehavior)
Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).
instanceInitiatedShutdownBehavior
- Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using
the operating system command for system shutdown).ShutdownBehavior
,
ShutdownBehavior
ResponseLaunchTemplateData.Builder userData(String userData)
The user data for the instance.
userData
- The user data for the instance.ResponseLaunchTemplateData.Builder tagSpecifications(Collection<LaunchTemplateTagSpecification> tagSpecifications)
The tags that are applied to the resources that are created during instance launch.
tagSpecifications
- The tags that are applied to the resources that are created during instance launch.ResponseLaunchTemplateData.Builder tagSpecifications(LaunchTemplateTagSpecification... tagSpecifications)
The tags that are applied to the resources that are created during instance launch.
tagSpecifications
- The tags that are applied to the resources that are created during instance launch.ResponseLaunchTemplateData.Builder tagSpecifications(Consumer<LaunchTemplateTagSpecification.Builder>... tagSpecifications)
The tags that are applied to the resources that are created during instance launch.
This is a convenience method that creates an instance of theLaunchTemplateTagSpecification.Builder
avoiding the need to
create one manually via
LaunchTemplateTagSpecification.builder()
.
When the Consumer
completes,
SdkBuilder.build()
is called
immediately and its result is passed to #tagSpecifications(List
.
tagSpecifications
- a consumer that will call methods on
LaunchTemplateTagSpecification.Builder
#tagSpecifications(java.util.Collection)
ResponseLaunchTemplateData.Builder elasticGpuSpecifications(Collection<ElasticGpuSpecificationResponse> elasticGpuSpecifications)
The elastic GPU specification.
elasticGpuSpecifications
- The elastic GPU specification.ResponseLaunchTemplateData.Builder elasticGpuSpecifications(ElasticGpuSpecificationResponse... elasticGpuSpecifications)
The elastic GPU specification.
elasticGpuSpecifications
- The elastic GPU specification.ResponseLaunchTemplateData.Builder elasticGpuSpecifications(Consumer<ElasticGpuSpecificationResponse.Builder>... elasticGpuSpecifications)
The elastic GPU specification.
This is a convenience method that creates an instance of theElasticGpuSpecificationResponse.Builder
avoiding the need
to create one manually via
ElasticGpuSpecificationResponse.builder()
.
When the Consumer
completes,
SdkBuilder.build()
is called
immediately and its result is passed to #elasticGpuSpecifications(List
.
elasticGpuSpecifications
- a consumer that will call methods on
ElasticGpuSpecificationResponse.Builder
#elasticGpuSpecifications(java.util.Collection)
ResponseLaunchTemplateData.Builder elasticInferenceAccelerators(Collection<LaunchTemplateElasticInferenceAcceleratorResponse> elasticInferenceAccelerators)
The elastic inference accelerator for the instance.
elasticInferenceAccelerators
- The elastic inference accelerator for the instance.ResponseLaunchTemplateData.Builder elasticInferenceAccelerators(LaunchTemplateElasticInferenceAcceleratorResponse... elasticInferenceAccelerators)
The elastic inference accelerator for the instance.
elasticInferenceAccelerators
- The elastic inference accelerator for the instance.ResponseLaunchTemplateData.Builder elasticInferenceAccelerators(Consumer<LaunchTemplateElasticInferenceAcceleratorResponse.Builder>... elasticInferenceAccelerators)
The elastic inference accelerator for the instance.
This is a convenience method that creates an instance of theLaunchTemplateElasticInferenceAcceleratorResponse.Builder
avoiding the need to create one manually via
LaunchTemplateElasticInferenceAcceleratorResponse.builder()
.
When the Consumer
completes,
SdkBuilder.build()
is called immediately and its result is passed to #elasticInferenceAccelerators(List
.
elasticInferenceAccelerators
- a consumer that will call methods on
LaunchTemplateElasticInferenceAcceleratorResponse.Builder
#elasticInferenceAccelerators(java.util.Collection)
ResponseLaunchTemplateData.Builder securityGroupIds(Collection<String> securityGroupIds)
The security group IDs.
securityGroupIds
- The security group IDs.ResponseLaunchTemplateData.Builder securityGroupIds(String... securityGroupIds)
The security group IDs.
securityGroupIds
- The security group IDs.ResponseLaunchTemplateData.Builder securityGroups(Collection<String> securityGroups)
The security group names.
securityGroups
- The security group names.ResponseLaunchTemplateData.Builder securityGroups(String... securityGroups)
The security group names.
securityGroups
- The security group names.ResponseLaunchTemplateData.Builder instanceMarketOptions(LaunchTemplateInstanceMarketOptions instanceMarketOptions)
The market (purchasing) option for the instances.
instanceMarketOptions
- The market (purchasing) option for the instances.default ResponseLaunchTemplateData.Builder instanceMarketOptions(Consumer<LaunchTemplateInstanceMarketOptions.Builder> instanceMarketOptions)
The market (purchasing) option for the instances.
This is a convenience method that creates an instance of theLaunchTemplateInstanceMarketOptions.Builder
avoiding the need to create one manually via
LaunchTemplateInstanceMarketOptions.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called
immediately and its result is passed to instanceMarketOptions(LaunchTemplateInstanceMarketOptions)
.
instanceMarketOptions
- a consumer that will call methods on LaunchTemplateInstanceMarketOptions.Builder
instanceMarketOptions(LaunchTemplateInstanceMarketOptions)
ResponseLaunchTemplateData.Builder creditSpecification(CreditSpecification creditSpecification)
The credit option for CPU usage of the instance.
creditSpecification
- The credit option for CPU usage of the instance.default ResponseLaunchTemplateData.Builder creditSpecification(Consumer<CreditSpecification.Builder> creditSpecification)
The credit option for CPU usage of the instance.
This is a convenience method that creates an instance of theCreditSpecification.Builder
avoiding the
need to create one manually via CreditSpecification.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and
its result is passed to creditSpecification(CreditSpecification)
.
creditSpecification
- a consumer that will call methods on CreditSpecification.Builder
creditSpecification(CreditSpecification)
ResponseLaunchTemplateData.Builder cpuOptions(LaunchTemplateCpuOptions cpuOptions)
The CPU options for the instance. For more information, see Optimizing CPU options in the Amazon Elastic Compute Cloud User Guide.
cpuOptions
- The CPU options for the instance. For more information, see Optimizing CPU
options in the Amazon Elastic Compute Cloud User Guide.default ResponseLaunchTemplateData.Builder cpuOptions(Consumer<LaunchTemplateCpuOptions.Builder> cpuOptions)
The CPU options for the instance. For more information, see Optimizing CPU options in the Amazon Elastic Compute Cloud User Guide.
This is a convenience method that creates an instance of theLaunchTemplateCpuOptions.Builder
avoiding the need to create one manually via LaunchTemplateCpuOptions.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately
and its result is passed to cpuOptions(LaunchTemplateCpuOptions)
.
cpuOptions
- a consumer that will call methods on LaunchTemplateCpuOptions.Builder
cpuOptions(LaunchTemplateCpuOptions)
ResponseLaunchTemplateData.Builder capacityReservationSpecification(LaunchTemplateCapacityReservationSpecificationResponse capacityReservationSpecification)
Information about the Capacity Reservation targeting option.
capacityReservationSpecification
- Information about the Capacity Reservation targeting option.default ResponseLaunchTemplateData.Builder capacityReservationSpecification(Consumer<LaunchTemplateCapacityReservationSpecificationResponse.Builder> capacityReservationSpecification)
Information about the Capacity Reservation targeting option.
This is a convenience method that creates an instance of theLaunchTemplateCapacityReservationSpecificationResponse.Builder
avoiding the need to create one
manually via LaunchTemplateCapacityReservationSpecificationResponse.builder()
.
When the Consumer
completes,
SdkBuilder.build()
is called immediately and its
result is passed to
capacityReservationSpecification(LaunchTemplateCapacityReservationSpecificationResponse)
.
capacityReservationSpecification
- a consumer that will call methods on
LaunchTemplateCapacityReservationSpecificationResponse.Builder
capacityReservationSpecification(LaunchTemplateCapacityReservationSpecificationResponse)
ResponseLaunchTemplateData.Builder licenseSpecifications(Collection<LaunchTemplateLicenseConfiguration> licenseSpecifications)
The license configurations.
licenseSpecifications
- The license configurations.ResponseLaunchTemplateData.Builder licenseSpecifications(LaunchTemplateLicenseConfiguration... licenseSpecifications)
The license configurations.
licenseSpecifications
- The license configurations.ResponseLaunchTemplateData.Builder licenseSpecifications(Consumer<LaunchTemplateLicenseConfiguration.Builder>... licenseSpecifications)
The license configurations.
This is a convenience method that creates an instance of theLaunchTemplateLicenseConfiguration.Builder
avoiding the
need to create one manually via
LaunchTemplateLicenseConfiguration.builder()
.
When the Consumer
completes,
SdkBuilder.build()
is
called immediately and its result is passed to #licenseSpecifications(List
.
licenseSpecifications
- a consumer that will call methods on
LaunchTemplateLicenseConfiguration.Builder
#licenseSpecifications(java.util.Collection)
ResponseLaunchTemplateData.Builder hibernationOptions(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.
hibernationOptions
- Indicates whether an instance is configured for hibernation. For more information, see Hibernate your instance
in the Amazon Elastic Compute Cloud User Guide.default ResponseLaunchTemplateData.Builder hibernationOptions(Consumer<LaunchTemplateHibernationOptions.Builder> hibernationOptions)
Indicates whether an instance is configured for hibernation. For more information, see Hibernate your instance in the Amazon Elastic Compute Cloud User Guide.
This is a convenience method that creates an instance of theLaunchTemplateHibernationOptions.Builder
avoiding the need to create one manually via LaunchTemplateHibernationOptions.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called
immediately and its result is passed to hibernationOptions(LaunchTemplateHibernationOptions)
.
hibernationOptions
- a consumer that will call methods on LaunchTemplateHibernationOptions.Builder
hibernationOptions(LaunchTemplateHibernationOptions)
ResponseLaunchTemplateData.Builder metadataOptions(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.
metadataOptions
- The metadata options for the instance. For more information, see Instance
metadata and user data in the Amazon Elastic Compute Cloud User Guide.default ResponseLaunchTemplateData.Builder metadataOptions(Consumer<LaunchTemplateInstanceMetadataOptions.Builder> metadataOptions)
The metadata options for the instance. For more information, see Instance metadata and user data in the Amazon Elastic Compute Cloud User Guide.
This is a convenience method that creates an instance of theLaunchTemplateInstanceMetadataOptions.Builder
avoiding the need to create one manually via
LaunchTemplateInstanceMetadataOptions.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called
immediately and its result is passed to metadataOptions(LaunchTemplateInstanceMetadataOptions)
.
metadataOptions
- a consumer that will call methods on LaunchTemplateInstanceMetadataOptions.Builder
metadataOptions(LaunchTemplateInstanceMetadataOptions)
ResponseLaunchTemplateData.Builder enclaveOptions(LaunchTemplateEnclaveOptions enclaveOptions)
Indicates whether the instance is enabled for Amazon Web Services Nitro Enclaves.
enclaveOptions
- Indicates whether the instance is enabled for Amazon Web Services Nitro Enclaves.default ResponseLaunchTemplateData.Builder enclaveOptions(Consumer<LaunchTemplateEnclaveOptions.Builder> enclaveOptions)
Indicates whether the instance is enabled for Amazon Web Services Nitro Enclaves.
This is a convenience method that creates an instance of theLaunchTemplateEnclaveOptions.Builder
avoiding the need to create one manually via LaunchTemplateEnclaveOptions.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called
immediately and its result is passed to enclaveOptions(LaunchTemplateEnclaveOptions)
.
enclaveOptions
- a consumer that will call methods on LaunchTemplateEnclaveOptions.Builder
enclaveOptions(LaunchTemplateEnclaveOptions)
ResponseLaunchTemplateData.Builder instanceRequirements(InstanceRequirements 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 InstanceTypes
.
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 InstanceTypes
.
default ResponseLaunchTemplateData.Builder instanceRequirements(Consumer<InstanceRequirements.Builder> 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 InstanceTypes
.
InstanceRequirements.Builder
avoiding
the need to create one manually via InstanceRequirements.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and
its result is passed to instanceRequirements(InstanceRequirements)
.
instanceRequirements
- a consumer that will call methods on InstanceRequirements.Builder
instanceRequirements(InstanceRequirements)
ResponseLaunchTemplateData.Builder privateDnsNameOptions(LaunchTemplatePrivateDnsNameOptions privateDnsNameOptions)
The options for the instance hostname.
privateDnsNameOptions
- The options for the instance hostname.default ResponseLaunchTemplateData.Builder privateDnsNameOptions(Consumer<LaunchTemplatePrivateDnsNameOptions.Builder> privateDnsNameOptions)
The options for the instance hostname.
This is a convenience method that creates an instance of theLaunchTemplatePrivateDnsNameOptions.Builder
avoiding the need to create one manually via
LaunchTemplatePrivateDnsNameOptions.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called
immediately and its result is passed to privateDnsNameOptions(LaunchTemplatePrivateDnsNameOptions)
.
privateDnsNameOptions
- a consumer that will call methods on LaunchTemplatePrivateDnsNameOptions.Builder
privateDnsNameOptions(LaunchTemplatePrivateDnsNameOptions)
ResponseLaunchTemplateData.Builder maintenanceOptions(LaunchTemplateInstanceMaintenanceOptions maintenanceOptions)
The maintenance options for your instance.
maintenanceOptions
- The maintenance options for your instance.default ResponseLaunchTemplateData.Builder maintenanceOptions(Consumer<LaunchTemplateInstanceMaintenanceOptions.Builder> maintenanceOptions)
The maintenance options for your instance.
This is a convenience method that creates an instance of theLaunchTemplateInstanceMaintenanceOptions.Builder
avoiding the need to create one manually via
LaunchTemplateInstanceMaintenanceOptions.builder()
.
When the Consumer
completes, SdkBuilder.build()
is
called immediately and its result is passed to
maintenanceOptions(LaunchTemplateInstanceMaintenanceOptions)
.
maintenanceOptions
- a consumer that will call methods on LaunchTemplateInstanceMaintenanceOptions.Builder
maintenanceOptions(LaunchTemplateInstanceMaintenanceOptions)
ResponseLaunchTemplateData.Builder disableApiStop(Boolean disableApiStop)
Indicates whether the instance is enabled for stop protection. For more information, see Stop protection in the Amazon Elastic Compute Cloud User Guide.
disableApiStop
- Indicates whether the instance is enabled for stop protection. For more information, see Stop
protection in the Amazon Elastic Compute Cloud User Guide.Copyright © 2023. All rights reserved.