Interface AwsEc2LaunchTemplateDataDetails.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<AwsEc2LaunchTemplateDataDetails.Builder,AwsEc2LaunchTemplateDataDetails>,SdkBuilder<AwsEc2LaunchTemplateDataDetails.Builder,AwsEc2LaunchTemplateDataDetails>,SdkPojo
- Enclosing class:
- AwsEc2LaunchTemplateDataDetails
public static interface AwsEc2LaunchTemplateDataDetails.Builder extends SdkPojo, CopyableBuilder<AwsEc2LaunchTemplateDataDetails.Builder,AwsEc2LaunchTemplateDataDetails>
-
-
Method Summary
-
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 Detail
-
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.Builderavoiding the need to create one manually viaAwsEc2LaunchTemplateDataBlockDeviceMappingSetDetails.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#blockDeviceMappingSet(List.) - 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:
#blockDeviceMappingSet(java.util.Collection)
-
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.Builderavoiding the need to create one manually viaAwsEc2LaunchTemplateDataCapacityReservationSpecificationDetails.builder().When the
Consumercompletes,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:
capacityReservationSpecification(AwsEc2LaunchTemplateDataCapacityReservationSpecificationDetails)
-
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.Builderavoiding the need to create one manually viaAwsEc2LaunchTemplateDataCpuOptionsDetails.builder().When the
Consumercompletes,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:
cpuOptions(AwsEc2LaunchTemplateDataCpuOptionsDetails)
-
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.Builderavoiding the need to create one manually viaAwsEc2LaunchTemplateDataCreditSpecificationDetails.builder().When the
Consumercompletes,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:
creditSpecification(AwsEc2LaunchTemplateDataCreditSpecificationDetails)
-
disableApiStop
AwsEc2LaunchTemplateDataDetails.Builder disableApiStop(Boolean 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
AwsEc2LaunchTemplateDataDetails.Builder disableApiTermination(Boolean 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
AwsEc2LaunchTemplateDataDetails.Builder ebsOptimized(Boolean 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.Builderavoiding the need to create one manually viaAwsEc2LaunchTemplateDataElasticGpuSpecificationSetDetails.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#elasticGpuSpecificationSet(List.) - 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:
#elasticGpuSpecificationSet(java.util.Collection)
-
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.Builderavoiding the need to create one manually viaAwsEc2LaunchTemplateDataElasticInferenceAcceleratorSetDetails.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#elasticInferenceAcceleratorSet(List.) - 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:
#elasticInferenceAcceleratorSet(java.util.Collection< AwsEc2LaunchTemplateDataElasticInferenceAcceleratorSetDetails>)
-
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.Builderavoiding the need to create one manually viaAwsEc2LaunchTemplateDataEnclaveOptionsDetails.builder().When the
Consumercompletes,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:
enclaveOptions(AwsEc2LaunchTemplateDataEnclaveOptionsDetails)
-
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.Builderavoiding the need to create one manually viaAwsEc2LaunchTemplateDataHibernationOptionsDetails.builder().When the
Consumercompletes,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:
hibernationOptions(AwsEc2LaunchTemplateDataHibernationOptionsDetails)
-
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.Builderavoiding the need to create one manually viaAwsEc2LaunchTemplateDataIamInstanceProfileDetails.builder().When the
Consumercompletes,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:
iamInstanceProfile(AwsEc2LaunchTemplateDataIamInstanceProfileDetails)
-
imageId
AwsEc2LaunchTemplateDataDetails.Builder imageId(String 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.Builderavoiding the need to create one manually viaAwsEc2LaunchTemplateDataInstanceMarketOptionsDetails.builder().When the
Consumercompletes,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:
instanceMarketOptions(AwsEc2LaunchTemplateDataInstanceMarketOptionsDetails)
-
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.Builderavoiding the need to create one manually viaAwsEc2LaunchTemplateDataInstanceRequirementsDetails.builder().When the
Consumercompletes,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:
instanceRequirements(AwsEc2LaunchTemplateDataInstanceRequirementsDetails)
-
instanceType
AwsEc2LaunchTemplateDataDetails.Builder instanceType(String 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
AwsEc2LaunchTemplateDataDetails.Builder kernelId(String 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
AwsEc2LaunchTemplateDataDetails.Builder keyName(String 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.Builderavoiding the need to create one manually viaAwsEc2LaunchTemplateDataLicenseSetDetails.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#licenseSet(List.) - 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:
#licenseSet(java.util.Collection)
-
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.Builderavoiding the need to create one manually viaAwsEc2LaunchTemplateDataMaintenanceOptionsDetails.builder().When the
Consumercompletes,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:
maintenanceOptions(AwsEc2LaunchTemplateDataMaintenanceOptionsDetails)
-
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.Builderavoiding the need to create one manually viaAwsEc2LaunchTemplateDataMetadataOptionsDetails.builder().When the
Consumercompletes,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:
metadataOptions(AwsEc2LaunchTemplateDataMetadataOptionsDetails)
-
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.Builderavoiding the need to create one manually viaAwsEc2LaunchTemplateDataMonitoringDetails.builder().When the
Consumercompletes,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:
monitoring(AwsEc2LaunchTemplateDataMonitoringDetails)
-
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.Builderavoiding the need to create one manually viaAwsEc2LaunchTemplateDataNetworkInterfaceSetDetails.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#networkInterfaceSet(List.) - 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:
#networkInterfaceSet(java.util.Collection)
-
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.Builderavoiding the need to create one manually viaAwsEc2LaunchTemplateDataPlacementDetails.builder().When the
Consumercompletes,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:
placement(AwsEc2LaunchTemplateDataPlacementDetails)
-
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.Builderavoiding the need to create one manually viaAwsEc2LaunchTemplateDataPrivateDnsNameOptionsDetails.builder().When the
Consumercompletes,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:
privateDnsNameOptions(AwsEc2LaunchTemplateDataPrivateDnsNameOptionsDetails)
-
ramDiskId
AwsEc2LaunchTemplateDataDetails.Builder ramDiskId(String 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
AwsEc2LaunchTemplateDataDetails.Builder securityGroupIdSet(Collection<String> 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
AwsEc2LaunchTemplateDataDetails.Builder securityGroupIdSet(String... 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
AwsEc2LaunchTemplateDataDetails.Builder securityGroupSet(Collection<String> 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
AwsEc2LaunchTemplateDataDetails.Builder securityGroupSet(String... 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
AwsEc2LaunchTemplateDataDetails.Builder userData(String 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.
-
-