Interface AwsEc2LaunchTemplateDataDetails.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<AwsEc2LaunchTemplateDataDetails.Builder,
,AwsEc2LaunchTemplateDataDetails> SdkBuilder<AwsEc2LaunchTemplateDataDetails.Builder,
,AwsEc2LaunchTemplateDataDetails> SdkPojo
- Enclosing class:
AwsEc2LaunchTemplateDataDetails
-
Method Summary
Modifier and TypeMethodDescriptionblockDeviceMappingSet
(Collection<AwsEc2LaunchTemplateDataBlockDeviceMappingSetDetails> blockDeviceMappingSet) Information about a block device mapping for an Amazon EC2 launch template.blockDeviceMappingSet
(Consumer<AwsEc2LaunchTemplateDataBlockDeviceMappingSetDetails.Builder>... blockDeviceMappingSet) Information about a block device mapping for an Amazon EC2 launch template.blockDeviceMappingSet
(AwsEc2LaunchTemplateDataBlockDeviceMappingSetDetails... blockDeviceMappingSet) Information about a block device mapping for an Amazon EC2 launch template.capacityReservationSpecification
(Consumer<AwsEc2LaunchTemplateDataCapacityReservationSpecificationDetails.Builder> capacityReservationSpecification) Specifies an instance's Capacity Reservation targeting option.capacityReservationSpecification
(AwsEc2LaunchTemplateDataCapacityReservationSpecificationDetails capacityReservationSpecification) Specifies an instance's Capacity Reservation targeting option.Specifies the CPU options for an instance.cpuOptions
(AwsEc2LaunchTemplateDataCpuOptionsDetails cpuOptions) Specifies the CPU options for an instance.creditSpecification
(Consumer<AwsEc2LaunchTemplateDataCreditSpecificationDetails.Builder> creditSpecification) Specifies the credit option for CPU usage of a T2, T3, or T3a instance.creditSpecification
(AwsEc2LaunchTemplateDataCreditSpecificationDetails creditSpecification) Specifies the credit option for CPU usage of a T2, T3, or T3a instance.disableApiStop
(Boolean disableApiStop) Indicates whether to enable the instance for stop protection.disableApiTermination
(Boolean disableApiTermination) If you set this parameter totrue
, you can't terminate the instance using the Amazon EC2 console, CLI, or API.ebsOptimized
(Boolean ebsOptimized) Indicates whether the instance is optimized for Amazon EBS I/O.elasticGpuSpecificationSet
(Collection<AwsEc2LaunchTemplateDataElasticGpuSpecificationSetDetails> elasticGpuSpecificationSet) Provides details about Elastic Graphics accelerators to associate with the instance.elasticGpuSpecificationSet
(Consumer<AwsEc2LaunchTemplateDataElasticGpuSpecificationSetDetails.Builder>... elasticGpuSpecificationSet) Provides details about Elastic Graphics accelerators to associate with the instance.elasticGpuSpecificationSet
(AwsEc2LaunchTemplateDataElasticGpuSpecificationSetDetails... elasticGpuSpecificationSet) Provides details about Elastic Graphics accelerators to associate with the instance.elasticInferenceAcceleratorSet
(Collection<AwsEc2LaunchTemplateDataElasticInferenceAcceleratorSetDetails> elasticInferenceAcceleratorSet) The Amazon Elastic Inference accelerator for the instance.elasticInferenceAcceleratorSet
(Consumer<AwsEc2LaunchTemplateDataElasticInferenceAcceleratorSetDetails.Builder>... elasticInferenceAcceleratorSet) The Amazon Elastic Inference accelerator for the instance.elasticInferenceAcceleratorSet
(AwsEc2LaunchTemplateDataElasticInferenceAcceleratorSetDetails... elasticInferenceAcceleratorSet) The Amazon Elastic Inference accelerator for the instance.enclaveOptions
(Consumer<AwsEc2LaunchTemplateDataEnclaveOptionsDetails.Builder> enclaveOptions) Indicates whether the Amazon EC2 instance is enabled for Amazon Web Services Nitro Enclaves.enclaveOptions
(AwsEc2LaunchTemplateDataEnclaveOptionsDetails enclaveOptions) Indicates whether the Amazon EC2 instance is enabled for Amazon Web Services Nitro Enclaves.hibernationOptions
(Consumer<AwsEc2LaunchTemplateDataHibernationOptionsDetails.Builder> hibernationOptions) Specifies whether your Amazon EC2 instance is configured for hibernation.hibernationOptions
(AwsEc2LaunchTemplateDataHibernationOptionsDetails hibernationOptions) Specifies whether your Amazon EC2 instance is configured for hibernation.iamInstanceProfile
(Consumer<AwsEc2LaunchTemplateDataIamInstanceProfileDetails.Builder> iamInstanceProfile) The name or Amazon Resource Name (ARN) of an IAM instance profile.iamInstanceProfile
(AwsEc2LaunchTemplateDataIamInstanceProfileDetails iamInstanceProfile) The name or Amazon Resource Name (ARN) of an IAM instance profile.The ID of the Amazon Machine Image (AMI).instanceInitiatedShutdownBehavior
(String instanceInitiatedShutdownBehavior) Provides the options for specifying the instance initiated shutdown behavior.instanceMarketOptions
(Consumer<AwsEc2LaunchTemplateDataInstanceMarketOptionsDetails.Builder> instanceMarketOptions) Specifies the market (purchasing) option for an instance.instanceMarketOptions
(AwsEc2LaunchTemplateDataInstanceMarketOptionsDetails instanceMarketOptions) Specifies the market (purchasing) option for an instance.instanceRequirements
(Consumer<AwsEc2LaunchTemplateDataInstanceRequirementsDetails.Builder> instanceRequirements) The attributes for the instance types.instanceRequirements
(AwsEc2LaunchTemplateDataInstanceRequirementsDetails instanceRequirements) The attributes for the instance types.instanceType
(String instanceType) The instance type.The ID of the kernel.The name of the key pair that allows users to connect to the instance.Specifies a license configuration for an instance.licenseSet
(Consumer<AwsEc2LaunchTemplateDataLicenseSetDetails.Builder>... licenseSet) Specifies a license configuration for an instance.licenseSet
(AwsEc2LaunchTemplateDataLicenseSetDetails... licenseSet) Specifies a license configuration for an instance.maintenanceOptions
(Consumer<AwsEc2LaunchTemplateDataMaintenanceOptionsDetails.Builder> maintenanceOptions) The maintenance options of your instance.maintenanceOptions
(AwsEc2LaunchTemplateDataMaintenanceOptionsDetails maintenanceOptions) The maintenance options of your instance.metadataOptions
(Consumer<AwsEc2LaunchTemplateDataMetadataOptionsDetails.Builder> metadataOptions) The metadata options for the instance.metadataOptions
(AwsEc2LaunchTemplateDataMetadataOptionsDetails metadataOptions) The metadata options for the instance.The monitoring for the instance.monitoring
(AwsEc2LaunchTemplateDataMonitoringDetails monitoring) The monitoring for the instance.networkInterfaceSet
(Collection<AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails> networkInterfaceSet) Specifies the parameters for a network interface that is attached to the instance.networkInterfaceSet
(Consumer<AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails.Builder>... networkInterfaceSet) Specifies the parameters for a network interface that is attached to the instance.networkInterfaceSet
(AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails... networkInterfaceSet) Specifies the parameters for a network interface that is attached to the instance.Specifies the placement of an instance.Specifies the placement of an instance.privateDnsNameOptions
(Consumer<AwsEc2LaunchTemplateDataPrivateDnsNameOptionsDetails.Builder> privateDnsNameOptions) The options for the instance hostname.privateDnsNameOptions
(AwsEc2LaunchTemplateDataPrivateDnsNameOptionsDetails privateDnsNameOptions) The options for the instance hostname.The ID of the RAM disk.securityGroupIdSet
(String... securityGroupIdSet) One or more security group IDs.securityGroupIdSet
(Collection<String> securityGroupIdSet) One or more security group IDs.securityGroupSet
(String... securityGroupSet) One or more security group names.securityGroupSet
(Collection<String> securityGroupSet) One or more security group names.The user data to make available to 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
-
blockDeviceMappingSet
AwsEc2LaunchTemplateDataDetails.Builder blockDeviceMappingSet(Collection<AwsEc2LaunchTemplateDataBlockDeviceMappingSetDetails> blockDeviceMappingSet) Information about a block device mapping for an Amazon EC2 launch template.
- Parameters:
blockDeviceMappingSet
- Information about a block device mapping for an Amazon EC2 launch template.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
blockDeviceMappingSet
AwsEc2LaunchTemplateDataDetails.Builder blockDeviceMappingSet(AwsEc2LaunchTemplateDataBlockDeviceMappingSetDetails... blockDeviceMappingSet) Information about a block device mapping for an Amazon EC2 launch template.
- Parameters:
blockDeviceMappingSet
- Information about a block device mapping for an Amazon EC2 launch template.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
blockDeviceMappingSet
AwsEc2LaunchTemplateDataDetails.Builder blockDeviceMappingSet(Consumer<AwsEc2LaunchTemplateDataBlockDeviceMappingSetDetails.Builder>... blockDeviceMappingSet) Information about a block device mapping for an Amazon EC2 launch template.
This is a convenience method that creates an instance of theAwsEc2LaunchTemplateDataBlockDeviceMappingSetDetails.Builder
avoiding the need to create one manually viaAwsEc2LaunchTemplateDataBlockDeviceMappingSetDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toblockDeviceMappingSet(List<AwsEc2LaunchTemplateDataBlockDeviceMappingSetDetails>)
.- Parameters:
blockDeviceMappingSet
- a consumer that will call methods onAwsEc2LaunchTemplateDataBlockDeviceMappingSetDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
capacityReservationSpecification
AwsEc2LaunchTemplateDataDetails.Builder capacityReservationSpecification(AwsEc2LaunchTemplateDataCapacityReservationSpecificationDetails capacityReservationSpecification) Specifies an instance's Capacity Reservation targeting option. You can specify only one option at a time.
- Parameters:
capacityReservationSpecification
- Specifies an instance's Capacity Reservation targeting option. You can specify only one option at a time.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
capacityReservationSpecification
default AwsEc2LaunchTemplateDataDetails.Builder capacityReservationSpecification(Consumer<AwsEc2LaunchTemplateDataCapacityReservationSpecificationDetails.Builder> capacityReservationSpecification) Specifies an instance's Capacity Reservation targeting option. You can specify only one option at a time.
This is a convenience method that creates an instance of theAwsEc2LaunchTemplateDataCapacityReservationSpecificationDetails.Builder
avoiding the need to create one manually viaAwsEc2LaunchTemplateDataCapacityReservationSpecificationDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocapacityReservationSpecification(AwsEc2LaunchTemplateDataCapacityReservationSpecificationDetails)
.- Parameters:
capacityReservationSpecification
- a consumer that will call methods onAwsEc2LaunchTemplateDataCapacityReservationSpecificationDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
cpuOptions
AwsEc2LaunchTemplateDataDetails.Builder cpuOptions(AwsEc2LaunchTemplateDataCpuOptionsDetails cpuOptions) Specifies the CPU options for an instance. For more information, see Optimize CPU options in the Amazon Elastic Compute Cloud User Guide.
- Parameters:
cpuOptions
- Specifies the CPU options for an instance. For more information, see Optimize 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 AwsEc2LaunchTemplateDataDetails.Builder cpuOptions(Consumer<AwsEc2LaunchTemplateDataCpuOptionsDetails.Builder> cpuOptions) Specifies the CPU options for an instance. For more information, see Optimize CPU options in the Amazon Elastic Compute Cloud User Guide.
This is a convenience method that creates an instance of theAwsEc2LaunchTemplateDataCpuOptionsDetails.Builder
avoiding the need to create one manually viaAwsEc2LaunchTemplateDataCpuOptionsDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocpuOptions(AwsEc2LaunchTemplateDataCpuOptionsDetails)
.- Parameters:
cpuOptions
- a consumer that will call methods onAwsEc2LaunchTemplateDataCpuOptionsDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
creditSpecification
AwsEc2LaunchTemplateDataDetails.Builder creditSpecification(AwsEc2LaunchTemplateDataCreditSpecificationDetails creditSpecification) Specifies the credit option for CPU usage of a T2, T3, or T3a instance.
- Parameters:
creditSpecification
- Specifies the credit option for CPU usage of a T2, T3, or T3a instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
creditSpecification
default AwsEc2LaunchTemplateDataDetails.Builder creditSpecification(Consumer<AwsEc2LaunchTemplateDataCreditSpecificationDetails.Builder> creditSpecification) Specifies the credit option for CPU usage of a T2, T3, or T3a instance.
This is a convenience method that creates an instance of theAwsEc2LaunchTemplateDataCreditSpecificationDetails.Builder
avoiding the need to create one manually viaAwsEc2LaunchTemplateDataCreditSpecificationDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocreditSpecification(AwsEc2LaunchTemplateDataCreditSpecificationDetails)
.- Parameters:
creditSpecification
- a consumer that will call methods onAwsEc2LaunchTemplateDataCreditSpecificationDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
disableApiStop
Indicates whether to enable the instance for stop protection. For more information, see Enable stop protection in the Amazon EC2 User Guide.
- Parameters:
disableApiStop
- Indicates whether to enable the instance for stop protection. For more information, see Enable stop protection in the Amazon EC2 User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
disableApiTermination
If you set this parameter to
true
, you can't terminate the instance using the Amazon EC2 console, CLI, or API. If set totrue
, you can.- Parameters:
disableApiTermination
- If you set this parameter totrue
, you can't terminate the instance using the Amazon EC2 console, CLI, or API. If set totrue
, you can.- 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.
-
elasticGpuSpecificationSet
AwsEc2LaunchTemplateDataDetails.Builder elasticGpuSpecificationSet(Collection<AwsEc2LaunchTemplateDataElasticGpuSpecificationSetDetails> elasticGpuSpecificationSet) Provides details about Elastic Graphics accelerators to associate with the instance.
- Parameters:
elasticGpuSpecificationSet
- Provides details about Elastic Graphics accelerators to associate with the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
elasticGpuSpecificationSet
AwsEc2LaunchTemplateDataDetails.Builder elasticGpuSpecificationSet(AwsEc2LaunchTemplateDataElasticGpuSpecificationSetDetails... elasticGpuSpecificationSet) Provides details about Elastic Graphics accelerators to associate with the instance.
- Parameters:
elasticGpuSpecificationSet
- Provides details about Elastic Graphics accelerators to associate with the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
elasticGpuSpecificationSet
AwsEc2LaunchTemplateDataDetails.Builder elasticGpuSpecificationSet(Consumer<AwsEc2LaunchTemplateDataElasticGpuSpecificationSetDetails.Builder>... elasticGpuSpecificationSet) Provides details about Elastic Graphics accelerators to associate with the instance.
This is a convenience method that creates an instance of theAwsEc2LaunchTemplateDataElasticGpuSpecificationSetDetails.Builder
avoiding the need to create one manually viaAwsEc2LaunchTemplateDataElasticGpuSpecificationSetDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toelasticGpuSpecificationSet(List<AwsEc2LaunchTemplateDataElasticGpuSpecificationSetDetails>)
.- Parameters:
elasticGpuSpecificationSet
- a consumer that will call methods onAwsEc2LaunchTemplateDataElasticGpuSpecificationSetDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
elasticInferenceAcceleratorSet
AwsEc2LaunchTemplateDataDetails.Builder elasticInferenceAcceleratorSet(Collection<AwsEc2LaunchTemplateDataElasticInferenceAcceleratorSetDetails> elasticInferenceAcceleratorSet) The Amazon Elastic Inference accelerator for the instance.
- Parameters:
elasticInferenceAcceleratorSet
- The Amazon Elastic Inference accelerator for the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
elasticInferenceAcceleratorSet
AwsEc2LaunchTemplateDataDetails.Builder elasticInferenceAcceleratorSet(AwsEc2LaunchTemplateDataElasticInferenceAcceleratorSetDetails... elasticInferenceAcceleratorSet) The Amazon Elastic Inference accelerator for the instance.
- Parameters:
elasticInferenceAcceleratorSet
- The Amazon Elastic Inference accelerator for the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
elasticInferenceAcceleratorSet
AwsEc2LaunchTemplateDataDetails.Builder elasticInferenceAcceleratorSet(Consumer<AwsEc2LaunchTemplateDataElasticInferenceAcceleratorSetDetails.Builder>... elasticInferenceAcceleratorSet) The Amazon Elastic Inference accelerator for the instance.
This is a convenience method that creates an instance of theAwsEc2LaunchTemplateDataElasticInferenceAcceleratorSetDetails.Builder
avoiding the need to create one manually viaAwsEc2LaunchTemplateDataElasticInferenceAcceleratorSetDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toelasticInferenceAcceleratorSet(List<AwsEc2LaunchTemplateDataElasticInferenceAcceleratorSetDetails>)
.- Parameters:
elasticInferenceAcceleratorSet
- a consumer that will call methods onAwsEc2LaunchTemplateDataElasticInferenceAcceleratorSetDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
enclaveOptions
AwsEc2LaunchTemplateDataDetails.Builder enclaveOptions(AwsEc2LaunchTemplateDataEnclaveOptionsDetails enclaveOptions) Indicates whether the Amazon EC2 instance is enabled for Amazon Web Services Nitro Enclaves.
- Parameters:
enclaveOptions
- Indicates whether the Amazon EC2 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 AwsEc2LaunchTemplateDataDetails.Builder enclaveOptions(Consumer<AwsEc2LaunchTemplateDataEnclaveOptionsDetails.Builder> enclaveOptions) Indicates whether the Amazon EC2 instance is enabled for Amazon Web Services Nitro Enclaves.
This is a convenience method that creates an instance of theAwsEc2LaunchTemplateDataEnclaveOptionsDetails.Builder
avoiding the need to create one manually viaAwsEc2LaunchTemplateDataEnclaveOptionsDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toenclaveOptions(AwsEc2LaunchTemplateDataEnclaveOptionsDetails)
.- Parameters:
enclaveOptions
- a consumer that will call methods onAwsEc2LaunchTemplateDataEnclaveOptionsDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
hibernationOptions
AwsEc2LaunchTemplateDataDetails.Builder hibernationOptions(AwsEc2LaunchTemplateDataHibernationOptionsDetails hibernationOptions) Specifies whether your Amazon EC2 instance is configured for hibernation.
- Parameters:
hibernationOptions
- Specifies whether your Amazon EC2 instance is configured for hibernation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
hibernationOptions
default AwsEc2LaunchTemplateDataDetails.Builder hibernationOptions(Consumer<AwsEc2LaunchTemplateDataHibernationOptionsDetails.Builder> hibernationOptions) Specifies whether your Amazon EC2 instance is configured for hibernation.
This is a convenience method that creates an instance of theAwsEc2LaunchTemplateDataHibernationOptionsDetails.Builder
avoiding the need to create one manually viaAwsEc2LaunchTemplateDataHibernationOptionsDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tohibernationOptions(AwsEc2LaunchTemplateDataHibernationOptionsDetails)
.- Parameters:
hibernationOptions
- a consumer that will call methods onAwsEc2LaunchTemplateDataHibernationOptionsDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
iamInstanceProfile
AwsEc2LaunchTemplateDataDetails.Builder iamInstanceProfile(AwsEc2LaunchTemplateDataIamInstanceProfileDetails iamInstanceProfile) The name or Amazon Resource Name (ARN) of an IAM instance profile.
- Parameters:
iamInstanceProfile
- The name or Amazon Resource Name (ARN) of an IAM instance profile.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
iamInstanceProfile
default AwsEc2LaunchTemplateDataDetails.Builder iamInstanceProfile(Consumer<AwsEc2LaunchTemplateDataIamInstanceProfileDetails.Builder> iamInstanceProfile) The name or Amazon Resource Name (ARN) of an IAM instance profile.
This is a convenience method that creates an instance of theAwsEc2LaunchTemplateDataIamInstanceProfileDetails.Builder
avoiding the need to create one manually viaAwsEc2LaunchTemplateDataIamInstanceProfileDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toiamInstanceProfile(AwsEc2LaunchTemplateDataIamInstanceProfileDetails)
.- Parameters:
iamInstanceProfile
- a consumer that will call methods onAwsEc2LaunchTemplateDataIamInstanceProfileDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
imageId
The ID of the Amazon Machine Image (AMI).
- Parameters:
imageId
- The ID of the Amazon Machine Image (AMI).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceInitiatedShutdownBehavior
AwsEc2LaunchTemplateDataDetails.Builder instanceInitiatedShutdownBehavior(String instanceInitiatedShutdownBehavior) Provides the options for specifying the instance initiated shutdown behavior.
- Parameters:
instanceInitiatedShutdownBehavior
- Provides the options for specifying the instance initiated shutdown behavior.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceMarketOptions
AwsEc2LaunchTemplateDataDetails.Builder instanceMarketOptions(AwsEc2LaunchTemplateDataInstanceMarketOptionsDetails instanceMarketOptions) Specifies the market (purchasing) option for an instance.
- Parameters:
instanceMarketOptions
- Specifies the market (purchasing) option for an instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceMarketOptions
default AwsEc2LaunchTemplateDataDetails.Builder instanceMarketOptions(Consumer<AwsEc2LaunchTemplateDataInstanceMarketOptionsDetails.Builder> instanceMarketOptions) Specifies the market (purchasing) option for an instance.
This is a convenience method that creates an instance of theAwsEc2LaunchTemplateDataInstanceMarketOptionsDetails.Builder
avoiding the need to create one manually viaAwsEc2LaunchTemplateDataInstanceMarketOptionsDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toinstanceMarketOptions(AwsEc2LaunchTemplateDataInstanceMarketOptionsDetails)
.- Parameters:
instanceMarketOptions
- a consumer that will call methods onAwsEc2LaunchTemplateDataInstanceMarketOptionsDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
instanceRequirements
AwsEc2LaunchTemplateDataDetails.Builder instanceRequirements(AwsEc2LaunchTemplateDataInstanceRequirementsDetails 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 specifyInstanceType
.- Parameters:
instanceRequirements
- The attributes for the instance types. When you specify instance attributes, Amazon EC2 will identify instance types with these attributes. If you specifyInstanceRequirements
, you can't specifyInstanceType
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceRequirements
default AwsEc2LaunchTemplateDataDetails.Builder instanceRequirements(Consumer<AwsEc2LaunchTemplateDataInstanceRequirementsDetails.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 specifyInstanceType
.AwsEc2LaunchTemplateDataInstanceRequirementsDetails.Builder
avoiding the need to create one manually viaAwsEc2LaunchTemplateDataInstanceRequirementsDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toinstanceRequirements(AwsEc2LaunchTemplateDataInstanceRequirementsDetails)
.- Parameters:
instanceRequirements
- a consumer that will call methods onAwsEc2LaunchTemplateDataInstanceRequirementsDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
instanceType
The instance type. For more information, see Instance types in the Amazon EC2 User Guide. If you specify
InstanceType
, you can't specifyInstanceRequirements
.- Parameters:
instanceType
- The instance type. For more information, see Instance types in the Amazon EC2 User Guide. If you specifyInstanceType
, you can't specifyInstanceRequirements
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
kernelId
The ID of the kernel.
- Parameters:
kernelId
- The ID of the kernel.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
keyName
The name of the key pair that allows users to connect to the instance.
- Parameters:
keyName
- The name of the key pair that allows users to connect to the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
licenseSet
AwsEc2LaunchTemplateDataDetails.Builder licenseSet(Collection<AwsEc2LaunchTemplateDataLicenseSetDetails> licenseSet) Specifies a license configuration for an instance.
- Parameters:
licenseSet
- Specifies a license configuration for an instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
licenseSet
AwsEc2LaunchTemplateDataDetails.Builder licenseSet(AwsEc2LaunchTemplateDataLicenseSetDetails... licenseSet) Specifies a license configuration for an instance.
- Parameters:
licenseSet
- Specifies a license configuration for an instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
licenseSet
AwsEc2LaunchTemplateDataDetails.Builder licenseSet(Consumer<AwsEc2LaunchTemplateDataLicenseSetDetails.Builder>... licenseSet) Specifies a license configuration for an instance.
This is a convenience method that creates an instance of theAwsEc2LaunchTemplateDataLicenseSetDetails.Builder
avoiding the need to create one manually viaAwsEc2LaunchTemplateDataLicenseSetDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tolicenseSet(List<AwsEc2LaunchTemplateDataLicenseSetDetails>)
.- Parameters:
licenseSet
- a consumer that will call methods onAwsEc2LaunchTemplateDataLicenseSetDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
maintenanceOptions
AwsEc2LaunchTemplateDataDetails.Builder maintenanceOptions(AwsEc2LaunchTemplateDataMaintenanceOptionsDetails maintenanceOptions) The maintenance options of your instance.
- Parameters:
maintenanceOptions
- The maintenance options of your instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
maintenanceOptions
default AwsEc2LaunchTemplateDataDetails.Builder maintenanceOptions(Consumer<AwsEc2LaunchTemplateDataMaintenanceOptionsDetails.Builder> maintenanceOptions) The maintenance options of your instance.
This is a convenience method that creates an instance of theAwsEc2LaunchTemplateDataMaintenanceOptionsDetails.Builder
avoiding the need to create one manually viaAwsEc2LaunchTemplateDataMaintenanceOptionsDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tomaintenanceOptions(AwsEc2LaunchTemplateDataMaintenanceOptionsDetails)
.- Parameters:
maintenanceOptions
- a consumer that will call methods onAwsEc2LaunchTemplateDataMaintenanceOptionsDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
metadataOptions
AwsEc2LaunchTemplateDataDetails.Builder metadataOptions(AwsEc2LaunchTemplateDataMetadataOptionsDetails metadataOptions) The metadata options for the instance. For more information, see Instance metadata and user data in the Amazon EC2 User Guide.
- Parameters:
metadataOptions
- The metadata options for the instance. For more information, see Instance metadata and user data in the Amazon EC2 User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metadataOptions
default AwsEc2LaunchTemplateDataDetails.Builder metadataOptions(Consumer<AwsEc2LaunchTemplateDataMetadataOptionsDetails.Builder> metadataOptions) The metadata options for the instance. For more information, see Instance metadata and user data in the Amazon EC2 User Guide.
This is a convenience method that creates an instance of theAwsEc2LaunchTemplateDataMetadataOptionsDetails.Builder
avoiding the need to create one manually viaAwsEc2LaunchTemplateDataMetadataOptionsDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tometadataOptions(AwsEc2LaunchTemplateDataMetadataOptionsDetails)
.- Parameters:
metadataOptions
- a consumer that will call methods onAwsEc2LaunchTemplateDataMetadataOptionsDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
monitoring
AwsEc2LaunchTemplateDataDetails.Builder monitoring(AwsEc2LaunchTemplateDataMonitoringDetails 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 AwsEc2LaunchTemplateDataDetails.Builder monitoring(Consumer<AwsEc2LaunchTemplateDataMonitoringDetails.Builder> monitoring) The monitoring for the instance.
This is a convenience method that creates an instance of theAwsEc2LaunchTemplateDataMonitoringDetails.Builder
avoiding the need to create one manually viaAwsEc2LaunchTemplateDataMonitoringDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tomonitoring(AwsEc2LaunchTemplateDataMonitoringDetails)
.- Parameters:
monitoring
- a consumer that will call methods onAwsEc2LaunchTemplateDataMonitoringDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
networkInterfaceSet
AwsEc2LaunchTemplateDataDetails.Builder networkInterfaceSet(Collection<AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails> networkInterfaceSet) Specifies the parameters for a network interface that is attached to the instance.
- Parameters:
networkInterfaceSet
- Specifies the parameters for a network interface that is attached to the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
networkInterfaceSet
AwsEc2LaunchTemplateDataDetails.Builder networkInterfaceSet(AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails... networkInterfaceSet) Specifies the parameters for a network interface that is attached to the instance.
- Parameters:
networkInterfaceSet
- Specifies the parameters for a network interface that is attached to the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
networkInterfaceSet
AwsEc2LaunchTemplateDataDetails.Builder networkInterfaceSet(Consumer<AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails.Builder>... networkInterfaceSet) Specifies the parameters for a network interface that is attached to the instance.
This is a convenience method that creates an instance of theAwsEc2LaunchTemplateDataNetworkInterfaceSetDetails.Builder
avoiding the need to create one manually viaAwsEc2LaunchTemplateDataNetworkInterfaceSetDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tonetworkInterfaceSet(List<AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails>)
.- Parameters:
networkInterfaceSet
- a consumer that will call methods onAwsEc2LaunchTemplateDataNetworkInterfaceSetDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
placement
AwsEc2LaunchTemplateDataDetails.Builder placement(AwsEc2LaunchTemplateDataPlacementDetails placement) Specifies the placement of an instance.
- Parameters:
placement
- Specifies the placement of an instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
placement
default AwsEc2LaunchTemplateDataDetails.Builder placement(Consumer<AwsEc2LaunchTemplateDataPlacementDetails.Builder> placement) Specifies the placement of an instance.
This is a convenience method that creates an instance of theAwsEc2LaunchTemplateDataPlacementDetails.Builder
avoiding the need to create one manually viaAwsEc2LaunchTemplateDataPlacementDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toplacement(AwsEc2LaunchTemplateDataPlacementDetails)
.- Parameters:
placement
- a consumer that will call methods onAwsEc2LaunchTemplateDataPlacementDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
privateDnsNameOptions
AwsEc2LaunchTemplateDataDetails.Builder privateDnsNameOptions(AwsEc2LaunchTemplateDataPrivateDnsNameOptionsDetails 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 AwsEc2LaunchTemplateDataDetails.Builder privateDnsNameOptions(Consumer<AwsEc2LaunchTemplateDataPrivateDnsNameOptionsDetails.Builder> privateDnsNameOptions) The options for the instance hostname.
This is a convenience method that creates an instance of theAwsEc2LaunchTemplateDataPrivateDnsNameOptionsDetails.Builder
avoiding the need to create one manually viaAwsEc2LaunchTemplateDataPrivateDnsNameOptionsDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toprivateDnsNameOptions(AwsEc2LaunchTemplateDataPrivateDnsNameOptionsDetails)
.- Parameters:
privateDnsNameOptions
- a consumer that will call methods onAwsEc2LaunchTemplateDataPrivateDnsNameOptionsDetails.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.
- Parameters:
ramDiskId
- The ID of the RAM disk.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
securityGroupIdSet
One or more security group IDs.
- Parameters:
securityGroupIdSet
- One or more security group IDs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
securityGroupIdSet
One or more security group IDs.
- Parameters:
securityGroupIdSet
- One or more security group IDs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
securityGroupSet
One or more security group names. For a nondefault VPC, you must use security group IDs instead. You cannot specify both a security group ID and security name in the same request.
- Parameters:
securityGroupSet
- One or more security group names. For a nondefault VPC, you must use security group IDs instead. You cannot specify both a security group ID and security name in the same request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
securityGroupSet
One or more security group names. For a nondefault VPC, you must use security group IDs instead. You cannot specify both a security group ID and security name in the same request.
- Parameters:
securityGroupSet
- One or more security group names. For a nondefault VPC, you must use security group IDs instead. You cannot specify both a security group ID and security name in the same request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
userData
The user data to make available to the instance.
- Parameters:
userData
- The user data to make available to the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-