public static interface ResponseLaunchTemplateData.Builder extends SdkPojo, CopyableBuilder<ResponseLaunchTemplateData.Builder,ResponseLaunchTemplateData>
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 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 that creates an instance of theList.Builder
avoiding the need to create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called
immediately and its result is passed to #blockDeviceMappings(List)
.blockDeviceMappings
- a consumer that will call methods on List.Builder
#blockDeviceMappings(List)
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 that creates an instance of the.Builder
avoiding the need to create one manually via
List#builder()
.
When the Consumer
completes, .Builder#build()
is called immediately and its result
is passed to #networkInterfaces(List)
.networkInterfaces
- a consumer that will call methods on .Builder
#networkInterfaces(List)
ResponseLaunchTemplateData.Builder imageId(String imageId)
The ID of the AMI that was used to launch the instance.
imageId
- The ID of the AMI that was used to launch the instance.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 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 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.
tagSpecifications
- The tags.ResponseLaunchTemplateData.Builder tagSpecifications(LaunchTemplateTagSpecification... tagSpecifications)
The tags.
tagSpecifications
- The tags.ResponseLaunchTemplateData.Builder tagSpecifications(Consumer<LaunchTemplateTagSpecification.Builder>... tagSpecifications)
The tags.
This is a convenience that creates an instance of theList.Builder
avoiding the need to create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called
immediately and its result is passed to #tagSpecifications(List)
.tagSpecifications
- a consumer that will call methods on List.Builder
#tagSpecifications(List)
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 that creates an instance of theList.Builder
avoiding the need to create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called
immediately and its result is passed to #elasticGpuSpecifications(List)
.elasticGpuSpecifications
- a consumer that will call methods on List.Builder
#elasticGpuSpecifications(List)
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 that creates an instance of the.Builder
avoiding the need to create one manually via
List#builder()
.
When the Consumer
completes, .Builder#build()
is called immediately and its result is
passed to #elasticInferenceAccelerators(List)
.elasticInferenceAccelerators
- a consumer that will call methods on .Builder
#elasticInferenceAccelerators(List)
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 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 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 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 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 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 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 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 that creates an instance of the.Builder
avoiding the need to create one manually via #builder()
.
When the Consumer
completes, List.Builder#build()
is
called immediately and its result is passed to #licenseSpecifications(List)
.licenseSpecifications
- a consumer that will call methods on List.Builder
#licenseSpecifications(List)
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.