Interface AwsEc2LaunchTemplateDataInstanceRequirementsDetails.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<AwsEc2LaunchTemplateDataInstanceRequirementsDetails.Builder,
,AwsEc2LaunchTemplateDataInstanceRequirementsDetails> SdkBuilder<AwsEc2LaunchTemplateDataInstanceRequirementsDetails.Builder,
,AwsEc2LaunchTemplateDataInstanceRequirementsDetails> SdkPojo
- Enclosing class:
AwsEc2LaunchTemplateDataInstanceRequirementsDetails
-
Method Summary
Modifier and TypeMethodDescriptionacceleratorCount
(Consumer<AwsEc2LaunchTemplateDataInstanceRequirementsAcceleratorCountDetails.Builder> acceleratorCount) The minimum and maximum number of accelerators (GPUs, FPGAs, or Amazon Web Services Inferentia chips) on an instance.acceleratorCount
(AwsEc2LaunchTemplateDataInstanceRequirementsAcceleratorCountDetails acceleratorCount) The minimum and maximum number of accelerators (GPUs, FPGAs, or Amazon Web Services Inferentia chips) on an instance.acceleratorManufacturers
(String... acceleratorManufacturers) Indicates whether instance types must have accelerators by specific manufacturers.acceleratorManufacturers
(Collection<String> acceleratorManufacturers) Indicates whether instance types must have accelerators by specific manufacturers.acceleratorNames
(String... acceleratorNames) The accelerators that must be on the instance type.acceleratorNames
(Collection<String> acceleratorNames) The accelerators that must be on the instance type.acceleratorTotalMemoryMiB
(Consumer<AwsEc2LaunchTemplateDataInstanceRequirementsAcceleratorTotalMemoryMiBDetails.Builder> acceleratorTotalMemoryMiB) The minimum and maximum amount of total accelerator memory, in MiB.acceleratorTotalMemoryMiB
(AwsEc2LaunchTemplateDataInstanceRequirementsAcceleratorTotalMemoryMiBDetails acceleratorTotalMemoryMiB) The minimum and maximum amount of total accelerator memory, in MiB.acceleratorTypes
(String... acceleratorTypes) The accelerator types that must be on the instance type.acceleratorTypes
(Collection<String> acceleratorTypes) The accelerator types that must be on the instance type.Indicates whether bare metal instance types must be included, excluded, or required.baselineEbsBandwidthMbps
(Consumer<AwsEc2LaunchTemplateDataInstanceRequirementsBaselineEbsBandwidthMbpsDetails.Builder> baselineEbsBandwidthMbps) The minimum and maximum baseline bandwidth to Amazon EBS, in Mbps.baselineEbsBandwidthMbps
(AwsEc2LaunchTemplateDataInstanceRequirementsBaselineEbsBandwidthMbpsDetails baselineEbsBandwidthMbps) The minimum and maximum baseline bandwidth to Amazon EBS, in Mbps.burstablePerformance
(String burstablePerformance) Indicates whether burstable performance T instance types are included, excluded, or required.cpuManufacturers
(String... cpuManufacturers) The CPU manufacturers to include.cpuManufacturers
(Collection<String> cpuManufacturers) The CPU manufacturers to include.excludedInstanceTypes
(String... excludedInstanceTypes) The instance types to exclude.excludedInstanceTypes
(Collection<String> excludedInstanceTypes) The instance types to exclude.instanceGenerations
(String... instanceGenerations) Indicates whether current or previous generation instance types are included.instanceGenerations
(Collection<String> instanceGenerations) Indicates whether current or previous generation instance types are included.localStorage
(String localStorage) Indicates whether instance types with instance store volumes are included, excluded, or required.localStorageTypes
(String... localStorageTypes) The type of local storage that is required.localStorageTypes
(Collection<String> localStorageTypes) The type of local storage that is required.memoryGiBPerVCpu
(Consumer<AwsEc2LaunchTemplateDataInstanceRequirementsMemoryGiBPerVCpuDetails.Builder> memoryGiBPerVCpu) The minimum and maximum amount of memory per vCPU, in GiB.memoryGiBPerVCpu
(AwsEc2LaunchTemplateDataInstanceRequirementsMemoryGiBPerVCpuDetails memoryGiBPerVCpu) The minimum and maximum amount of memory per vCPU, in GiB.The minimum and maximum amount of memory, in MiB.The minimum and maximum amount of memory, in MiB.networkInterfaceCount
(Consumer<AwsEc2LaunchTemplateDataInstanceRequirementsNetworkInterfaceCountDetails.Builder> networkInterfaceCount) The minimum and maximum number of network interfaces.networkInterfaceCount
(AwsEc2LaunchTemplateDataInstanceRequirementsNetworkInterfaceCountDetails networkInterfaceCount) The minimum and maximum number of network interfaces.onDemandMaxPricePercentageOverLowestPrice
(Integer onDemandMaxPricePercentageOverLowestPrice) The price protection threshold for On-Demand Instances.requireHibernateSupport
(Boolean requireHibernateSupport) Indicates whether instance types must support hibernation for On-Demand Instances.spotMaxPricePercentageOverLowestPrice
(Integer spotMaxPricePercentageOverLowestPrice) The price protection threshold for Spot Instances.totalLocalStorageGB
(Consumer<AwsEc2LaunchTemplateDataInstanceRequirementsTotalLocalStorageGBDetails.Builder> totalLocalStorageGB) The minimum and maximum amount of total local storage, in GB.totalLocalStorageGB
(AwsEc2LaunchTemplateDataInstanceRequirementsTotalLocalStorageGBDetails totalLocalStorageGB) The minimum and maximum amount of total local storage, in GB.The minimum and maximum number of vCPUs.The minimum and maximum number of vCPUs.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
-
acceleratorCount
AwsEc2LaunchTemplateDataInstanceRequirementsDetails.Builder acceleratorCount(AwsEc2LaunchTemplateDataInstanceRequirementsAcceleratorCountDetails acceleratorCount) The minimum and maximum number of accelerators (GPUs, FPGAs, or Amazon Web Services Inferentia chips) on an instance.
- Parameters:
acceleratorCount
- The minimum and maximum number of accelerators (GPUs, FPGAs, or Amazon Web Services Inferentia chips) on an instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
acceleratorCount
default AwsEc2LaunchTemplateDataInstanceRequirementsDetails.Builder acceleratorCount(Consumer<AwsEc2LaunchTemplateDataInstanceRequirementsAcceleratorCountDetails.Builder> acceleratorCount) The minimum and maximum number of accelerators (GPUs, FPGAs, or Amazon Web Services Inferentia chips) on an instance.
This is a convenience method that creates an instance of theAwsEc2LaunchTemplateDataInstanceRequirementsAcceleratorCountDetails.Builder
avoiding the need to create one manually viaAwsEc2LaunchTemplateDataInstanceRequirementsAcceleratorCountDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toacceleratorCount(AwsEc2LaunchTemplateDataInstanceRequirementsAcceleratorCountDetails)
.- Parameters:
acceleratorCount
- a consumer that will call methods onAwsEc2LaunchTemplateDataInstanceRequirementsAcceleratorCountDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
acceleratorManufacturers
AwsEc2LaunchTemplateDataInstanceRequirementsDetails.Builder acceleratorManufacturers(Collection<String> acceleratorManufacturers) Indicates whether instance types must have accelerators by specific manufacturers.
- Parameters:
acceleratorManufacturers
- Indicates whether instance types must have accelerators by specific manufacturers.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
acceleratorManufacturers
AwsEc2LaunchTemplateDataInstanceRequirementsDetails.Builder acceleratorManufacturers(String... acceleratorManufacturers) Indicates whether instance types must have accelerators by specific manufacturers.
- Parameters:
acceleratorManufacturers
- Indicates whether instance types must have accelerators by specific manufacturers.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
acceleratorNames
AwsEc2LaunchTemplateDataInstanceRequirementsDetails.Builder acceleratorNames(Collection<String> acceleratorNames) The accelerators that must be on the instance type.
- Parameters:
acceleratorNames
- The accelerators that must be on the instance type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
acceleratorNames
AwsEc2LaunchTemplateDataInstanceRequirementsDetails.Builder acceleratorNames(String... acceleratorNames) The accelerators that must be on the instance type.
- Parameters:
acceleratorNames
- The accelerators that must be on the instance type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
acceleratorTotalMemoryMiB
AwsEc2LaunchTemplateDataInstanceRequirementsDetails.Builder acceleratorTotalMemoryMiB(AwsEc2LaunchTemplateDataInstanceRequirementsAcceleratorTotalMemoryMiBDetails acceleratorTotalMemoryMiB) The minimum and maximum amount of total accelerator memory, in MiB.
- Parameters:
acceleratorTotalMemoryMiB
- The minimum and maximum amount of total accelerator memory, in MiB.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
acceleratorTotalMemoryMiB
default AwsEc2LaunchTemplateDataInstanceRequirementsDetails.Builder acceleratorTotalMemoryMiB(Consumer<AwsEc2LaunchTemplateDataInstanceRequirementsAcceleratorTotalMemoryMiBDetails.Builder> acceleratorTotalMemoryMiB) The minimum and maximum amount of total accelerator memory, in MiB.
This is a convenience method that creates an instance of theAwsEc2LaunchTemplateDataInstanceRequirementsAcceleratorTotalMemoryMiBDetails.Builder
avoiding the need to create one manually viaAwsEc2LaunchTemplateDataInstanceRequirementsAcceleratorTotalMemoryMiBDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toacceleratorTotalMemoryMiB(AwsEc2LaunchTemplateDataInstanceRequirementsAcceleratorTotalMemoryMiBDetails)
.- Parameters:
acceleratorTotalMemoryMiB
- a consumer that will call methods onAwsEc2LaunchTemplateDataInstanceRequirementsAcceleratorTotalMemoryMiBDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
acceleratorTypes
AwsEc2LaunchTemplateDataInstanceRequirementsDetails.Builder acceleratorTypes(Collection<String> acceleratorTypes) The accelerator types that must be on the instance type.
- Parameters:
acceleratorTypes
- The accelerator types that must be on the instance type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
acceleratorTypes
AwsEc2LaunchTemplateDataInstanceRequirementsDetails.Builder acceleratorTypes(String... acceleratorTypes) The accelerator types that must be on the instance type.
- Parameters:
acceleratorTypes
- The accelerator types that must be on the instance type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
bareMetal
Indicates whether bare metal instance types must be included, excluded, or required.
- Parameters:
bareMetal
- Indicates whether bare metal instance types must be included, excluded, or required.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
baselineEbsBandwidthMbps
AwsEc2LaunchTemplateDataInstanceRequirementsDetails.Builder baselineEbsBandwidthMbps(AwsEc2LaunchTemplateDataInstanceRequirementsBaselineEbsBandwidthMbpsDetails baselineEbsBandwidthMbps) The minimum and maximum baseline bandwidth to Amazon EBS, in Mbps. For more information, see Amazon EBS optimized instances in the Amazon EC2 User Guide.
- Parameters:
baselineEbsBandwidthMbps
- The minimum and maximum baseline bandwidth to Amazon EBS, in Mbps. For more information, see Amazon EBS optimized instances in the Amazon EC2 User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
baselineEbsBandwidthMbps
default AwsEc2LaunchTemplateDataInstanceRequirementsDetails.Builder baselineEbsBandwidthMbps(Consumer<AwsEc2LaunchTemplateDataInstanceRequirementsBaselineEbsBandwidthMbpsDetails.Builder> baselineEbsBandwidthMbps) The minimum and maximum baseline bandwidth to Amazon EBS, in Mbps. For more information, see Amazon EBS optimized instances in the Amazon EC2 User Guide.
This is a convenience method that creates an instance of theAwsEc2LaunchTemplateDataInstanceRequirementsBaselineEbsBandwidthMbpsDetails.Builder
avoiding the need to create one manually viaAwsEc2LaunchTemplateDataInstanceRequirementsBaselineEbsBandwidthMbpsDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tobaselineEbsBandwidthMbps(AwsEc2LaunchTemplateDataInstanceRequirementsBaselineEbsBandwidthMbpsDetails)
.- Parameters:
baselineEbsBandwidthMbps
- a consumer that will call methods onAwsEc2LaunchTemplateDataInstanceRequirementsBaselineEbsBandwidthMbpsDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
burstablePerformance
AwsEc2LaunchTemplateDataInstanceRequirementsDetails.Builder burstablePerformance(String burstablePerformance) Indicates whether burstable performance T instance types are included, excluded, or required. For more information, Burstable performance instances in the Amazon EC2 User Guide.
- Parameters:
burstablePerformance
- Indicates whether burstable performance T instance types are included, excluded, or required. For more information, Burstable performance instances in the Amazon EC2 User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cpuManufacturers
AwsEc2LaunchTemplateDataInstanceRequirementsDetails.Builder cpuManufacturers(Collection<String> cpuManufacturers) The CPU manufacturers to include.
- Parameters:
cpuManufacturers
- The CPU manufacturers to include.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cpuManufacturers
AwsEc2LaunchTemplateDataInstanceRequirementsDetails.Builder cpuManufacturers(String... cpuManufacturers) The CPU manufacturers to include.
- Parameters:
cpuManufacturers
- The CPU manufacturers to include.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
excludedInstanceTypes
AwsEc2LaunchTemplateDataInstanceRequirementsDetails.Builder excludedInstanceTypes(Collection<String> excludedInstanceTypes) The instance types to exclude.
- Parameters:
excludedInstanceTypes
- The instance types to exclude.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
excludedInstanceTypes
AwsEc2LaunchTemplateDataInstanceRequirementsDetails.Builder excludedInstanceTypes(String... excludedInstanceTypes) The instance types to exclude.
- Parameters:
excludedInstanceTypes
- The instance types to exclude.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceGenerations
AwsEc2LaunchTemplateDataInstanceRequirementsDetails.Builder instanceGenerations(Collection<String> instanceGenerations) Indicates whether current or previous generation instance types are included.
- Parameters:
instanceGenerations
- Indicates whether current or previous generation instance types are included.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceGenerations
AwsEc2LaunchTemplateDataInstanceRequirementsDetails.Builder instanceGenerations(String... instanceGenerations) Indicates whether current or previous generation instance types are included.
- Parameters:
instanceGenerations
- Indicates whether current or previous generation instance types are included.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
localStorage
Indicates whether instance types with instance store volumes are included, excluded, or required. For more information, see Amazon EC2 instance store in the Amazon EC2 User Guide.
- Parameters:
localStorage
- Indicates whether instance types with instance store volumes are included, excluded, or required. For more information, see Amazon EC2 instance store in the Amazon EC2 User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
localStorageTypes
AwsEc2LaunchTemplateDataInstanceRequirementsDetails.Builder localStorageTypes(Collection<String> localStorageTypes) The type of local storage that is required.
- Parameters:
localStorageTypes
- The type of local storage that is required.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
localStorageTypes
AwsEc2LaunchTemplateDataInstanceRequirementsDetails.Builder localStorageTypes(String... localStorageTypes) The type of local storage that is required.
- Parameters:
localStorageTypes
- The type of local storage that is required.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
memoryGiBPerVCpu
AwsEc2LaunchTemplateDataInstanceRequirementsDetails.Builder memoryGiBPerVCpu(AwsEc2LaunchTemplateDataInstanceRequirementsMemoryGiBPerVCpuDetails memoryGiBPerVCpu) The minimum and maximum amount of memory per vCPU, in GiB.
- Parameters:
memoryGiBPerVCpu
- The minimum and maximum amount of memory per vCPU, in GiB.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
memoryGiBPerVCpu
default AwsEc2LaunchTemplateDataInstanceRequirementsDetails.Builder memoryGiBPerVCpu(Consumer<AwsEc2LaunchTemplateDataInstanceRequirementsMemoryGiBPerVCpuDetails.Builder> memoryGiBPerVCpu) The minimum and maximum amount of memory per vCPU, in GiB.
This is a convenience method that creates an instance of theAwsEc2LaunchTemplateDataInstanceRequirementsMemoryGiBPerVCpuDetails.Builder
avoiding the need to create one manually viaAwsEc2LaunchTemplateDataInstanceRequirementsMemoryGiBPerVCpuDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tomemoryGiBPerVCpu(AwsEc2LaunchTemplateDataInstanceRequirementsMemoryGiBPerVCpuDetails)
.- Parameters:
memoryGiBPerVCpu
- a consumer that will call methods onAwsEc2LaunchTemplateDataInstanceRequirementsMemoryGiBPerVCpuDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
memoryMiB
AwsEc2LaunchTemplateDataInstanceRequirementsDetails.Builder memoryMiB(AwsEc2LaunchTemplateDataInstanceRequirementsMemoryMiBDetails memoryMiB) The minimum and maximum amount of memory, in MiB.
- Parameters:
memoryMiB
- The minimum and maximum amount of memory, in MiB.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
memoryMiB
default AwsEc2LaunchTemplateDataInstanceRequirementsDetails.Builder memoryMiB(Consumer<AwsEc2LaunchTemplateDataInstanceRequirementsMemoryMiBDetails.Builder> memoryMiB) The minimum and maximum amount of memory, in MiB.
This is a convenience method that creates an instance of theAwsEc2LaunchTemplateDataInstanceRequirementsMemoryMiBDetails.Builder
avoiding the need to create one manually viaAwsEc2LaunchTemplateDataInstanceRequirementsMemoryMiBDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tomemoryMiB(AwsEc2LaunchTemplateDataInstanceRequirementsMemoryMiBDetails)
.- Parameters:
memoryMiB
- a consumer that will call methods onAwsEc2LaunchTemplateDataInstanceRequirementsMemoryMiBDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
networkInterfaceCount
AwsEc2LaunchTemplateDataInstanceRequirementsDetails.Builder networkInterfaceCount(AwsEc2LaunchTemplateDataInstanceRequirementsNetworkInterfaceCountDetails networkInterfaceCount) The minimum and maximum number of network interfaces.
- Parameters:
networkInterfaceCount
- The minimum and maximum number of network interfaces.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
networkInterfaceCount
default AwsEc2LaunchTemplateDataInstanceRequirementsDetails.Builder networkInterfaceCount(Consumer<AwsEc2LaunchTemplateDataInstanceRequirementsNetworkInterfaceCountDetails.Builder> networkInterfaceCount) The minimum and maximum number of network interfaces.
This is a convenience method that creates an instance of theAwsEc2LaunchTemplateDataInstanceRequirementsNetworkInterfaceCountDetails.Builder
avoiding the need to create one manually viaAwsEc2LaunchTemplateDataInstanceRequirementsNetworkInterfaceCountDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tonetworkInterfaceCount(AwsEc2LaunchTemplateDataInstanceRequirementsNetworkInterfaceCountDetails)
.- Parameters:
networkInterfaceCount
- a consumer that will call methods onAwsEc2LaunchTemplateDataInstanceRequirementsNetworkInterfaceCountDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
onDemandMaxPricePercentageOverLowestPrice
AwsEc2LaunchTemplateDataInstanceRequirementsDetails.Builder onDemandMaxPricePercentageOverLowestPrice(Integer onDemandMaxPricePercentageOverLowestPrice) The price protection threshold for On-Demand Instances. This is the maximum you'll pay for an On-Demand Instance, expressed as a percentage above the least expensive current generation M, C, or R instance type with your specified attributes. When Amazon EC2 selects instance types with your attributes, it excludes instance types priced above your threshold.
The parameter accepts an integer, which Amazon EC2 interprets as a percentage.
A high value, such as
999999
, turns off price protection.- Parameters:
onDemandMaxPricePercentageOverLowestPrice
- The price protection threshold for On-Demand Instances. This is the maximum you'll pay for an On-Demand Instance, expressed as a percentage above the least expensive current generation M, C, or R instance type with your specified attributes. When Amazon EC2 selects instance types with your attributes, it excludes instance types priced above your threshold.The parameter accepts an integer, which Amazon EC2 interprets as a percentage.
A high value, such as
999999
, turns off price protection.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
requireHibernateSupport
AwsEc2LaunchTemplateDataInstanceRequirementsDetails.Builder requireHibernateSupport(Boolean requireHibernateSupport) Indicates whether instance types must support hibernation for On-Demand Instances.
- Parameters:
requireHibernateSupport
- Indicates whether instance types must support hibernation for On-Demand Instances.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
spotMaxPricePercentageOverLowestPrice
AwsEc2LaunchTemplateDataInstanceRequirementsDetails.Builder spotMaxPricePercentageOverLowestPrice(Integer spotMaxPricePercentageOverLowestPrice) The price protection threshold for Spot Instances. This is the maximum you'll pay for a Spot Instance, expressed as a percentage above the least expensive current generation M, C, or R instance type with your specified attributes. When Amazon EC2 selects instance types with your attributes, it excludes instance types priced above your threshold.
The parameter accepts an integer, which Amazon EC2 interprets as a percentage.
A high value, such as
999999
, turns off price protection.- Parameters:
spotMaxPricePercentageOverLowestPrice
- The price protection threshold for Spot Instances. This is the maximum you'll pay for a Spot Instance, expressed as a percentage above the least expensive current generation M, C, or R instance type with your specified attributes. When Amazon EC2 selects instance types with your attributes, it excludes instance types priced above your threshold.The parameter accepts an integer, which Amazon EC2 interprets as a percentage.
A high value, such as
999999
, turns off price protection.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
totalLocalStorageGB
AwsEc2LaunchTemplateDataInstanceRequirementsDetails.Builder totalLocalStorageGB(AwsEc2LaunchTemplateDataInstanceRequirementsTotalLocalStorageGBDetails totalLocalStorageGB) The minimum and maximum amount of total local storage, in GB.
- Parameters:
totalLocalStorageGB
- The minimum and maximum amount of total local storage, in GB.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
totalLocalStorageGB
default AwsEc2LaunchTemplateDataInstanceRequirementsDetails.Builder totalLocalStorageGB(Consumer<AwsEc2LaunchTemplateDataInstanceRequirementsTotalLocalStorageGBDetails.Builder> totalLocalStorageGB) The minimum and maximum amount of total local storage, in GB.
This is a convenience method that creates an instance of theAwsEc2LaunchTemplateDataInstanceRequirementsTotalLocalStorageGBDetails.Builder
avoiding the need to create one manually viaAwsEc2LaunchTemplateDataInstanceRequirementsTotalLocalStorageGBDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tototalLocalStorageGB(AwsEc2LaunchTemplateDataInstanceRequirementsTotalLocalStorageGBDetails)
.- Parameters:
totalLocalStorageGB
- a consumer that will call methods onAwsEc2LaunchTemplateDataInstanceRequirementsTotalLocalStorageGBDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
vCpuCount
AwsEc2LaunchTemplateDataInstanceRequirementsDetails.Builder vCpuCount(AwsEc2LaunchTemplateDataInstanceRequirementsVCpuCountDetails vCpuCount) The minimum and maximum number of vCPUs.
- Parameters:
vCpuCount
- The minimum and maximum number of vCPUs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vCpuCount
default AwsEc2LaunchTemplateDataInstanceRequirementsDetails.Builder vCpuCount(Consumer<AwsEc2LaunchTemplateDataInstanceRequirementsVCpuCountDetails.Builder> vCpuCount) The minimum and maximum number of vCPUs.
This is a convenience method that creates an instance of theAwsEc2LaunchTemplateDataInstanceRequirementsVCpuCountDetails.Builder
avoiding the need to create one manually viaAwsEc2LaunchTemplateDataInstanceRequirementsVCpuCountDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tovCpuCount(AwsEc2LaunchTemplateDataInstanceRequirementsVCpuCountDetails)
.- Parameters:
vCpuCount
- a consumer that will call methods onAwsEc2LaunchTemplateDataInstanceRequirementsVCpuCountDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-