Interface ResponseLaunchTemplateData.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ResponseLaunchTemplateData.Builder,
,ResponseLaunchTemplateData> SdkBuilder<ResponseLaunchTemplateData.Builder,
,ResponseLaunchTemplateData> SdkPojo
- Enclosing class:
ResponseLaunchTemplateData
-
Method Summary
Modifier and TypeMethodDescriptionblockDeviceMappings
(Collection<LaunchTemplateBlockDeviceMapping> blockDeviceMappings) The block device mappings.blockDeviceMappings
(Consumer<LaunchTemplateBlockDeviceMapping.Builder>... blockDeviceMappings) The block device mappings.blockDeviceMappings
(LaunchTemplateBlockDeviceMapping... blockDeviceMappings) The block device mappings.capacityReservationSpecification
(Consumer<LaunchTemplateCapacityReservationSpecificationResponse.Builder> capacityReservationSpecification) Information about the Capacity Reservation targeting option.capacityReservationSpecification
(LaunchTemplateCapacityReservationSpecificationResponse capacityReservationSpecification) Information about the Capacity Reservation targeting option.cpuOptions
(Consumer<LaunchTemplateCpuOptions.Builder> cpuOptions) The CPU options for the instance.cpuOptions
(LaunchTemplateCpuOptions cpuOptions) The CPU options for the instance.creditSpecification
(Consumer<CreditSpecification.Builder> creditSpecification) The credit option for CPU usage of the instance.creditSpecification
(CreditSpecification creditSpecification) The credit option for CPU usage of the instance.disableApiStop
(Boolean disableApiStop) Indicates whether the instance is enabled for stop protection.disableApiTermination
(Boolean disableApiTermination) If set totrue
, indicates that the instance cannot be terminated using the Amazon EC2 console, command line tool, or API.ebsOptimized
(Boolean ebsOptimized) Indicates whether the instance is optimized for Amazon EBS I/O.elasticGpuSpecifications
(Collection<ElasticGpuSpecificationResponse> elasticGpuSpecifications) Deprecated.elasticGpuSpecifications
(Consumer<ElasticGpuSpecificationResponse.Builder>... elasticGpuSpecifications) Deprecated.elasticGpuSpecifications
(ElasticGpuSpecificationResponse... elasticGpuSpecifications) Deprecated.elasticInferenceAccelerators
(Collection<LaunchTemplateElasticInferenceAcceleratorResponse> elasticInferenceAccelerators) An elastic inference accelerator to associate with the instance.elasticInferenceAccelerators
(Consumer<LaunchTemplateElasticInferenceAcceleratorResponse.Builder>... elasticInferenceAccelerators) An elastic inference accelerator to associate with the instance.elasticInferenceAccelerators
(LaunchTemplateElasticInferenceAcceleratorResponse... elasticInferenceAccelerators) An elastic inference accelerator to associate with the instance.enclaveOptions
(Consumer<LaunchTemplateEnclaveOptions.Builder> enclaveOptions) Indicates whether the instance is enabled for Amazon Web Services Nitro Enclaves.enclaveOptions
(LaunchTemplateEnclaveOptions enclaveOptions) Indicates whether the instance is enabled for Amazon Web Services Nitro Enclaves.hibernationOptions
(Consumer<LaunchTemplateHibernationOptions.Builder> hibernationOptions) Indicates whether an instance is configured for hibernation.hibernationOptions
(LaunchTemplateHibernationOptions hibernationOptions) Indicates whether an instance is configured for hibernation.iamInstanceProfile
(Consumer<LaunchTemplateIamInstanceProfileSpecification.Builder> iamInstanceProfile) The IAM instance profile.iamInstanceProfile
(LaunchTemplateIamInstanceProfileSpecification iamInstanceProfile) The IAM instance profile.The ID of the AMI or a Systems Manager parameter.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
(ShutdownBehavior instanceInitiatedShutdownBehavior) Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).instanceMarketOptions
(Consumer<LaunchTemplateInstanceMarketOptions.Builder> instanceMarketOptions) The market (purchasing) option for the instances.instanceMarketOptions
(LaunchTemplateInstanceMarketOptions instanceMarketOptions) The market (purchasing) option for the instances.instanceRequirements
(Consumer<InstanceRequirements.Builder> instanceRequirements) The attributes for the instance types.instanceRequirements
(InstanceRequirements instanceRequirements) The attributes for the instance types.instanceType
(String instanceType) The instance type.instanceType
(InstanceType instanceType) The instance type.The ID of the kernel, if applicable.The name of the key pair.licenseSpecifications
(Collection<LaunchTemplateLicenseConfiguration> licenseSpecifications) The license configurations.licenseSpecifications
(Consumer<LaunchTemplateLicenseConfiguration.Builder>... licenseSpecifications) The license configurations.licenseSpecifications
(LaunchTemplateLicenseConfiguration... licenseSpecifications) The license configurations.maintenanceOptions
(Consumer<LaunchTemplateInstanceMaintenanceOptions.Builder> maintenanceOptions) The maintenance options for your instance.maintenanceOptions
(LaunchTemplateInstanceMaintenanceOptions maintenanceOptions) The maintenance options for your instance.metadataOptions
(Consumer<LaunchTemplateInstanceMetadataOptions.Builder> metadataOptions) The metadata options for the instance.metadataOptions
(LaunchTemplateInstanceMetadataOptions metadataOptions) The metadata options for the instance.monitoring
(Consumer<LaunchTemplatesMonitoring.Builder> monitoring) The monitoring for the instance.monitoring
(LaunchTemplatesMonitoring monitoring) The monitoring for the instance.networkInterfaces
(Collection<LaunchTemplateInstanceNetworkInterfaceSpecification> networkInterfaces) The network interfaces.networkInterfaces
(Consumer<LaunchTemplateInstanceNetworkInterfaceSpecification.Builder>... networkInterfaces) The network interfaces.networkInterfaces
(LaunchTemplateInstanceNetworkInterfaceSpecification... networkInterfaces) The network interfaces.placement
(Consumer<LaunchTemplatePlacement.Builder> placement) The placement of the instance.placement
(LaunchTemplatePlacement placement) The placement of the instance.privateDnsNameOptions
(Consumer<LaunchTemplatePrivateDnsNameOptions.Builder> privateDnsNameOptions) The options for the instance hostname.privateDnsNameOptions
(LaunchTemplatePrivateDnsNameOptions privateDnsNameOptions) The options for the instance hostname.The ID of the RAM disk, if applicable.securityGroupIds
(String... securityGroupIds) The security group IDs.securityGroupIds
(Collection<String> securityGroupIds) The security group IDs.securityGroups
(String... securityGroups) The security group names.securityGroups
(Collection<String> securityGroups) The security group names.tagSpecifications
(Collection<LaunchTemplateTagSpecification> tagSpecifications) The tags that are applied to the resources that are created during instance launch.tagSpecifications
(Consumer<LaunchTemplateTagSpecification.Builder>... tagSpecifications) The tags that are applied to the resources that are created during instance launch.tagSpecifications
(LaunchTemplateTagSpecification... tagSpecifications) The tags that are applied to the resources that are created during instance launch.The user data for the instance.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
kernelId
The ID of the kernel, if applicable.
- Parameters:
kernelId
- The ID of the kernel, if applicable.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ebsOptimized
Indicates whether the instance is optimized for Amazon EBS I/O.
- Parameters:
ebsOptimized
- Indicates whether the instance is optimized for Amazon EBS I/O.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
iamInstanceProfile
ResponseLaunchTemplateData.Builder iamInstanceProfile(LaunchTemplateIamInstanceProfileSpecification iamInstanceProfile) The IAM instance profile.
- Parameters:
iamInstanceProfile
- The IAM instance profile.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
iamInstanceProfile
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 viaLaunchTemplateIamInstanceProfileSpecification.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toiamInstanceProfile(LaunchTemplateIamInstanceProfileSpecification)
.- Parameters:
iamInstanceProfile
- a consumer that will call methods onLaunchTemplateIamInstanceProfileSpecification.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
blockDeviceMappings
ResponseLaunchTemplateData.Builder blockDeviceMappings(Collection<LaunchTemplateBlockDeviceMapping> blockDeviceMappings) The block device mappings.
- Parameters:
blockDeviceMappings
- The block device mappings.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
blockDeviceMappings
ResponseLaunchTemplateData.Builder blockDeviceMappings(LaunchTemplateBlockDeviceMapping... blockDeviceMappings) The block device mappings.
- Parameters:
blockDeviceMappings
- The block device mappings.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
blockDeviceMappings
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 viaLaunchTemplateBlockDeviceMapping.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toblockDeviceMappings(List<LaunchTemplateBlockDeviceMapping>)
.- Parameters:
blockDeviceMappings
- a consumer that will call methods onLaunchTemplateBlockDeviceMapping.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
networkInterfaces
ResponseLaunchTemplateData.Builder networkInterfaces(Collection<LaunchTemplateInstanceNetworkInterfaceSpecification> networkInterfaces) The network interfaces.
- Parameters:
networkInterfaces
- The network interfaces.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
networkInterfaces
ResponseLaunchTemplateData.Builder networkInterfaces(LaunchTemplateInstanceNetworkInterfaceSpecification... networkInterfaces) The network interfaces.
- Parameters:
networkInterfaces
- The network interfaces.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
networkInterfaces
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 viaLaunchTemplateInstanceNetworkInterfaceSpecification.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tonetworkInterfaces(List<LaunchTemplateInstanceNetworkInterfaceSpecification>)
.- Parameters:
networkInterfaces
- a consumer that will call methods onLaunchTemplateInstanceNetworkInterfaceSpecification.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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 astrue
, 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 asfalse
, 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.
- Parameters:
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 astrue
, 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 asfalse
, 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.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
instanceType
The instance type.
- Parameters:
instanceType
- The instance type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
instanceType
The instance type.
- Parameters:
instanceType
- The instance type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
keyName
The name of the key pair.
- Parameters:
keyName
- The name of the key pair.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
monitoring
The monitoring for the instance.
- Parameters:
monitoring
- The monitoring for the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
monitoring
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 viaLaunchTemplatesMonitoring.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tomonitoring(LaunchTemplatesMonitoring)
.- Parameters:
monitoring
- a consumer that will call methods onLaunchTemplatesMonitoring.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
placement
The placement of the instance.
- Parameters:
placement
- The placement of the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
placement
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 viaLaunchTemplatePlacement.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toplacement(LaunchTemplatePlacement)
.- Parameters:
placement
- a consumer that will call methods onLaunchTemplatePlacement.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
ramDiskId
The ID of the RAM disk, if applicable.
- Parameters:
ramDiskId
- The ID of the RAM disk, if applicable.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
disableApiTermination
If set to
true
, indicates that the instance cannot be terminated using the Amazon EC2 console, command line tool, or API.- Parameters:
disableApiTermination
- If set totrue
, indicates that the instance cannot be terminated using the Amazon EC2 console, command line tool, or API.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceInitiatedShutdownBehavior
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).
- Parameters:
instanceInitiatedShutdownBehavior
- Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
instanceInitiatedShutdownBehavior
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).
- Parameters:
instanceInitiatedShutdownBehavior
- Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
userData
The user data for the instance.
- Parameters:
userData
- The user data for the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tagSpecifications
ResponseLaunchTemplateData.Builder tagSpecifications(Collection<LaunchTemplateTagSpecification> tagSpecifications) The tags that are applied to the resources that are created during instance launch.
- Parameters:
tagSpecifications
- The tags that are applied to the resources that are created during instance launch.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tagSpecifications
ResponseLaunchTemplateData.Builder tagSpecifications(LaunchTemplateTagSpecification... tagSpecifications) The tags that are applied to the resources that are created during instance launch.
- Parameters:
tagSpecifications
- The tags that are applied to the resources that are created during instance launch.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tagSpecifications
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 viaLaunchTemplateTagSpecification.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totagSpecifications(List<LaunchTemplateTagSpecification>)
.- Parameters:
tagSpecifications
- a consumer that will call methods onLaunchTemplateTagSpecification.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
elasticGpuSpecifications
ResponseLaunchTemplateData.Builder elasticGpuSpecifications(Collection<ElasticGpuSpecificationResponse> elasticGpuSpecifications) Deprecated.
Amazon Elastic Graphics reached end of life on January 8, 2024. For workloads that require graphics acceleration, we recommend that you use Amazon EC2 G4ad, G4dn, or G5 instances.
- Parameters:
elasticGpuSpecifications
- Deprecated.Amazon Elastic Graphics reached end of life on January 8, 2024. For workloads that require graphics acceleration, we recommend that you use Amazon EC2 G4ad, G4dn, or G5 instances.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
elasticGpuSpecifications
ResponseLaunchTemplateData.Builder elasticGpuSpecifications(ElasticGpuSpecificationResponse... elasticGpuSpecifications) Deprecated.
Amazon Elastic Graphics reached end of life on January 8, 2024. For workloads that require graphics acceleration, we recommend that you use Amazon EC2 G4ad, G4dn, or G5 instances.
- Parameters:
elasticGpuSpecifications
- Deprecated.Amazon Elastic Graphics reached end of life on January 8, 2024. For workloads that require graphics acceleration, we recommend that you use Amazon EC2 G4ad, G4dn, or G5 instances.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
elasticGpuSpecifications
ResponseLaunchTemplateData.Builder elasticGpuSpecifications(Consumer<ElasticGpuSpecificationResponse.Builder>... elasticGpuSpecifications) Deprecated.
Amazon Elastic Graphics reached end of life on January 8, 2024. For workloads that require graphics acceleration, we recommend that you use Amazon EC2 G4ad, G4dn, or G5 instances.
ElasticGpuSpecificationResponse.Builder
avoiding the need to create one manually viaElasticGpuSpecificationResponse.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toelasticGpuSpecifications(List<ElasticGpuSpecificationResponse>)
.- Parameters:
elasticGpuSpecifications
- a consumer that will call methods onElasticGpuSpecificationResponse.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
elasticInferenceAccelerators
ResponseLaunchTemplateData.Builder elasticInferenceAccelerators(Collection<LaunchTemplateElasticInferenceAcceleratorResponse> elasticInferenceAccelerators) An elastic inference accelerator to associate with the instance. Elastic inference accelerators are a resource you can attach to your Amazon EC2 instances to accelerate your Deep Learning (DL) inference workloads.
You cannot specify accelerators from different generations in the same request.
Starting April 15, 2023, Amazon Web Services will not onboard new customers to Amazon Elastic Inference (EI), and will help current customers migrate their workloads to options that offer better price and performance. After April 15, 2023, new customers will not be able to launch instances with Amazon EI accelerators in Amazon SageMaker, Amazon ECS, or Amazon EC2. However, customers who have used Amazon EI at least once during the past 30-day period are considered current customers and will be able to continue using the service.
- Parameters:
elasticInferenceAccelerators
- An elastic inference accelerator to associate with the instance. Elastic inference accelerators are a resource you can attach to your Amazon EC2 instances to accelerate your Deep Learning (DL) inference workloads.You cannot specify accelerators from different generations in the same request.
Starting April 15, 2023, Amazon Web Services will not onboard new customers to Amazon Elastic Inference (EI), and will help current customers migrate their workloads to options that offer better price and performance. After April 15, 2023, new customers will not be able to launch instances with Amazon EI accelerators in Amazon SageMaker, Amazon ECS, or Amazon EC2. However, customers who have used Amazon EI at least once during the past 30-day period are considered current customers and will be able to continue using the service.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
elasticInferenceAccelerators
ResponseLaunchTemplateData.Builder elasticInferenceAccelerators(LaunchTemplateElasticInferenceAcceleratorResponse... elasticInferenceAccelerators) An elastic inference accelerator to associate with the instance. Elastic inference accelerators are a resource you can attach to your Amazon EC2 instances to accelerate your Deep Learning (DL) inference workloads.
You cannot specify accelerators from different generations in the same request.
Starting April 15, 2023, Amazon Web Services will not onboard new customers to Amazon Elastic Inference (EI), and will help current customers migrate their workloads to options that offer better price and performance. After April 15, 2023, new customers will not be able to launch instances with Amazon EI accelerators in Amazon SageMaker, Amazon ECS, or Amazon EC2. However, customers who have used Amazon EI at least once during the past 30-day period are considered current customers and will be able to continue using the service.
- Parameters:
elasticInferenceAccelerators
- An elastic inference accelerator to associate with the instance. Elastic inference accelerators are a resource you can attach to your Amazon EC2 instances to accelerate your Deep Learning (DL) inference workloads.You cannot specify accelerators from different generations in the same request.
Starting April 15, 2023, Amazon Web Services will not onboard new customers to Amazon Elastic Inference (EI), and will help current customers migrate their workloads to options that offer better price and performance. After April 15, 2023, new customers will not be able to launch instances with Amazon EI accelerators in Amazon SageMaker, Amazon ECS, or Amazon EC2. However, customers who have used Amazon EI at least once during the past 30-day period are considered current customers and will be able to continue using the service.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
elasticInferenceAccelerators
ResponseLaunchTemplateData.Builder elasticInferenceAccelerators(Consumer<LaunchTemplateElasticInferenceAcceleratorResponse.Builder>... elasticInferenceAccelerators) An elastic inference accelerator to associate with the instance. Elastic inference accelerators are a resource you can attach to your Amazon EC2 instances to accelerate your Deep Learning (DL) inference workloads.
You cannot specify accelerators from different generations in the same request.
Starting April 15, 2023, Amazon Web Services will not onboard new customers to Amazon Elastic Inference (EI), and will help current customers migrate their workloads to options that offer better price and performance. After April 15, 2023, new customers will not be able to launch instances with Amazon EI accelerators in Amazon SageMaker, Amazon ECS, or Amazon EC2. However, customers who have used Amazon EI at least once during the past 30-day period are considered current customers and will be able to continue using the service.
LaunchTemplateElasticInferenceAcceleratorResponse.Builder
avoiding the need to create one manually viaLaunchTemplateElasticInferenceAcceleratorResponse.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toelasticInferenceAccelerators(List<LaunchTemplateElasticInferenceAcceleratorResponse>)
.- Parameters:
elasticInferenceAccelerators
- a consumer that will call methods onLaunchTemplateElasticInferenceAcceleratorResponse.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
securityGroupIds
The security group IDs.
- Parameters:
securityGroupIds
- The security group IDs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
securityGroupIds
The security group IDs.
- Parameters:
securityGroupIds
- The security group IDs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
securityGroups
The security group names.
- Parameters:
securityGroups
- The security group names.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
securityGroups
The security group names.
- Parameters:
securityGroups
- The security group names.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceMarketOptions
ResponseLaunchTemplateData.Builder instanceMarketOptions(LaunchTemplateInstanceMarketOptions instanceMarketOptions) The market (purchasing) option for the instances.
- Parameters:
instanceMarketOptions
- The market (purchasing) option for the instances.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceMarketOptions
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 viaLaunchTemplateInstanceMarketOptions.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toinstanceMarketOptions(LaunchTemplateInstanceMarketOptions)
.- Parameters:
instanceMarketOptions
- a consumer that will call methods onLaunchTemplateInstanceMarketOptions.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
creditSpecification
The credit option for CPU usage of the instance.
- Parameters:
creditSpecification
- The credit option for CPU usage of the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
creditSpecification
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 viaCreditSpecification.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocreditSpecification(CreditSpecification)
.- Parameters:
creditSpecification
- a consumer that will call methods onCreditSpecification.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
cpuOptions
The CPU options for the instance. For more information, see Optimizing CPU options in the Amazon Elastic Compute Cloud User Guide.
- Parameters:
cpuOptions
- The CPU options for the instance. For more information, see Optimizing CPU options in the Amazon Elastic Compute Cloud User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cpuOptions
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 viaLaunchTemplateCpuOptions.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocpuOptions(LaunchTemplateCpuOptions)
.- Parameters:
cpuOptions
- a consumer that will call methods onLaunchTemplateCpuOptions.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
capacityReservationSpecification
ResponseLaunchTemplateData.Builder capacityReservationSpecification(LaunchTemplateCapacityReservationSpecificationResponse capacityReservationSpecification) Information about the Capacity Reservation targeting option.
- Parameters:
capacityReservationSpecification
- Information about the Capacity Reservation targeting option.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
capacityReservationSpecification
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 viaLaunchTemplateCapacityReservationSpecificationResponse.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocapacityReservationSpecification(LaunchTemplateCapacityReservationSpecificationResponse)
.- Parameters:
capacityReservationSpecification
- a consumer that will call methods onLaunchTemplateCapacityReservationSpecificationResponse.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
licenseSpecifications
ResponseLaunchTemplateData.Builder licenseSpecifications(Collection<LaunchTemplateLicenseConfiguration> licenseSpecifications) The license configurations.
- Parameters:
licenseSpecifications
- The license configurations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
licenseSpecifications
ResponseLaunchTemplateData.Builder licenseSpecifications(LaunchTemplateLicenseConfiguration... licenseSpecifications) The license configurations.
- Parameters:
licenseSpecifications
- The license configurations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
licenseSpecifications
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 viaLaunchTemplateLicenseConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tolicenseSpecifications(List<LaunchTemplateLicenseConfiguration>)
.- Parameters:
licenseSpecifications
- a consumer that will call methods onLaunchTemplateLicenseConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
hibernationOptions
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.
- Parameters:
hibernationOptions
- Indicates whether an instance is configured for hibernation. For more information, see Hibernate your instance in the Amazon Elastic Compute Cloud User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
hibernationOptions
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 viaLaunchTemplateHibernationOptions.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tohibernationOptions(LaunchTemplateHibernationOptions)
.- Parameters:
hibernationOptions
- a consumer that will call methods onLaunchTemplateHibernationOptions.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
metadataOptions
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.
- Parameters:
metadataOptions
- The metadata options for the instance. For more information, see Instance metadata and user data in the Amazon Elastic Compute Cloud User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metadataOptions
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 viaLaunchTemplateInstanceMetadataOptions.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tometadataOptions(LaunchTemplateInstanceMetadataOptions)
.- Parameters:
metadataOptions
- a consumer that will call methods onLaunchTemplateInstanceMetadataOptions.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
enclaveOptions
Indicates whether the instance is enabled for Amazon Web Services Nitro Enclaves.
- Parameters:
enclaveOptions
- Indicates whether the instance is enabled for Amazon Web Services Nitro Enclaves.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
enclaveOptions
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 viaLaunchTemplateEnclaveOptions.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toenclaveOptions(LaunchTemplateEnclaveOptions)
.- Parameters:
enclaveOptions
- a consumer that will call methods onLaunchTemplateEnclaveOptions.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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 specifyInstanceTypes
.- Parameters:
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 specifyInstanceTypes
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceRequirements
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
This is a convenience method that creates an instance of theInstanceRequirements
, you can't specifyInstanceTypes
.InstanceRequirements.Builder
avoiding the need to create one manually viaInstanceRequirements.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toinstanceRequirements(InstanceRequirements)
.- Parameters:
instanceRequirements
- a consumer that will call methods onInstanceRequirements.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
privateDnsNameOptions
ResponseLaunchTemplateData.Builder privateDnsNameOptions(LaunchTemplatePrivateDnsNameOptions privateDnsNameOptions) The options for the instance hostname.
- Parameters:
privateDnsNameOptions
- The options for the instance hostname.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
privateDnsNameOptions
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 viaLaunchTemplatePrivateDnsNameOptions.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toprivateDnsNameOptions(LaunchTemplatePrivateDnsNameOptions)
.- Parameters:
privateDnsNameOptions
- a consumer that will call methods onLaunchTemplatePrivateDnsNameOptions.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
maintenanceOptions
ResponseLaunchTemplateData.Builder maintenanceOptions(LaunchTemplateInstanceMaintenanceOptions maintenanceOptions) The maintenance options for your instance.
- Parameters:
maintenanceOptions
- The maintenance options for your instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
maintenanceOptions
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 viaLaunchTemplateInstanceMaintenanceOptions.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tomaintenanceOptions(LaunchTemplateInstanceMaintenanceOptions)
.- Parameters:
maintenanceOptions
- a consumer that will call methods onLaunchTemplateInstanceMaintenanceOptions.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
disableApiStop
Indicates whether the instance is enabled for stop protection. For more information, see Stop protection in the Amazon Elastic Compute Cloud User Guide.
- Parameters:
disableApiStop
- Indicates whether the instance is enabled for stop protection. For more information, see Stop protection in the Amazon Elastic Compute Cloud User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-