Interface InstanceRequirementsRequest.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<InstanceRequirementsRequest.Builder,
,InstanceRequirementsRequest> SdkBuilder<InstanceRequirementsRequest.Builder,
,InstanceRequirementsRequest> SdkPojo
- Enclosing class:
InstanceRequirementsRequest
-
Method Summary
Modifier and TypeMethodDescriptionacceleratorCount
(Consumer<AcceleratorCountRequest.Builder> acceleratorCount) The minimum and maximum number of accelerators for the instance types.acceleratorCount
(AcceleratorCountRequest acceleratorCount) The minimum and maximum number of accelerators for the instance types.acceleratorManufacturers
(Collection<AcceleratorManufacturer> acceleratorManufacturers) The accelerator manufacturers to include.acceleratorManufacturers
(AcceleratorManufacturer... acceleratorManufacturers) The accelerator manufacturers to include.acceleratorManufacturersWithStrings
(String... acceleratorManufacturers) The accelerator manufacturers to include.acceleratorManufacturersWithStrings
(Collection<String> acceleratorManufacturers) The accelerator manufacturers to include.acceleratorNames
(Collection<AcceleratorName> acceleratorNames) The specific accelerator names to include.acceleratorNames
(AcceleratorName... acceleratorNames) The specific accelerator names to include.acceleratorNamesWithStrings
(String... acceleratorNames) The specific accelerator names to include.acceleratorNamesWithStrings
(Collection<String> acceleratorNames) The specific accelerator names to include.acceleratorTotalMemoryMiB
(Consumer<AcceleratorTotalMemoryMiBRequest.Builder> acceleratorTotalMemoryMiB) The minimum and maximum total accelerator memory in mebibytes (MiB).acceleratorTotalMemoryMiB
(AcceleratorTotalMemoryMiBRequest acceleratorTotalMemoryMiB) The minimum and maximum total accelerator memory in mebibytes (MiB).acceleratorTypes
(Collection<AcceleratorType> acceleratorTypes) The accelerator types to include.acceleratorTypes
(AcceleratorType... acceleratorTypes) The accelerator types to include.acceleratorTypesWithStrings
(String... acceleratorTypes) The accelerator types to include.acceleratorTypesWithStrings
(Collection<String> acceleratorTypes) The accelerator types to include.allowedInstanceTypes
(String... allowedInstanceTypes) The instance types to include in the selection.allowedInstanceTypes
(Collection<String> allowedInstanceTypes) The instance types to include in the selection.Indicates whether to include bare metal instance types.Indicates whether to include bare metal instance types.baselineEbsBandwidthMbps
(Consumer<BaselineEbsBandwidthMbpsRequest.Builder> baselineEbsBandwidthMbps) The minimum and maximum baseline Amazon EBS bandwidth in megabits per second (Mbps).baselineEbsBandwidthMbps
(BaselineEbsBandwidthMbpsRequest baselineEbsBandwidthMbps) The minimum and maximum baseline Amazon EBS bandwidth in megabits per second (Mbps).burstablePerformance
(String burstablePerformance) Indicates whether to include burstable performance instance types (T2, T3, T3a, T4g).burstablePerformance
(BurstablePerformance burstablePerformance) Indicates whether to include burstable performance instance types (T2, T3, T3a, T4g).cpuManufacturers
(Collection<CpuManufacturer> cpuManufacturers) The CPU manufacturers to include or exclude.cpuManufacturers
(CpuManufacturer... cpuManufacturers) The CPU manufacturers to include or exclude.cpuManufacturersWithStrings
(String... cpuManufacturers) The CPU manufacturers to include or exclude.cpuManufacturersWithStrings
(Collection<String> cpuManufacturers) The CPU manufacturers to include or exclude.excludedInstanceTypes
(String... excludedInstanceTypes) The instance types to exclude from selection.excludedInstanceTypes
(Collection<String> excludedInstanceTypes) The instance types to exclude from selection.instanceGenerations
(Collection<InstanceGeneration> instanceGenerations) The instance generations to include.instanceGenerations
(InstanceGeneration... instanceGenerations) The instance generations to include.instanceGenerationsWithStrings
(String... instanceGenerations) The instance generations to include.instanceGenerationsWithStrings
(Collection<String> instanceGenerations) The instance generations to include.localStorage
(String localStorage) Indicates whether to include instance types with local storage.localStorage
(LocalStorage localStorage) Indicates whether to include instance types with local storage.localStorageTypes
(Collection<LocalStorageType> localStorageTypes) The local storage types to include.localStorageTypes
(LocalStorageType... localStorageTypes) The local storage types to include.localStorageTypesWithStrings
(String... localStorageTypes) The local storage types to include.localStorageTypesWithStrings
(Collection<String> localStorageTypes) The local storage types to include.maxSpotPriceAsPercentageOfOptimalOnDemandPrice
(Integer maxSpotPriceAsPercentageOfOptimalOnDemandPrice) The maximum price for Spot instances as a percentage of the optimal On-Demand price.memoryGiBPerVCpu
(Consumer<MemoryGiBPerVCpuRequest.Builder> memoryGiBPerVCpu) The minimum and maximum amount of memory per vCPU in gibibytes (GiB).memoryGiBPerVCpu
(MemoryGiBPerVCpuRequest memoryGiBPerVCpu) The minimum and maximum amount of memory per vCPU in gibibytes (GiB).memoryMiB
(Consumer<MemoryMiBRequest.Builder> memoryMiB) The minimum and maximum amount of memory in mebibytes (MiB) for the instance types.memoryMiB
(MemoryMiBRequest memoryMiB) The minimum and maximum amount of memory in mebibytes (MiB) for the instance types.networkBandwidthGbps
(Consumer<NetworkBandwidthGbpsRequest.Builder> networkBandwidthGbps) The minimum and maximum network bandwidth in gigabits per second (Gbps).networkBandwidthGbps
(NetworkBandwidthGbpsRequest networkBandwidthGbps) The minimum and maximum network bandwidth in gigabits per second (Gbps).networkInterfaceCount
(Consumer<NetworkInterfaceCountRequest.Builder> networkInterfaceCount) The minimum and maximum number of network interfaces for the instance types.networkInterfaceCount
(NetworkInterfaceCountRequest networkInterfaceCount) The minimum and maximum number of network interfaces for the instance types.onDemandMaxPricePercentageOverLowestPrice
(Integer onDemandMaxPricePercentageOverLowestPrice) The price protection threshold for On-Demand Instances, as a percentage higher than an identified On-Demand price.requireHibernateSupport
(Boolean requireHibernateSupport) Indicates whether the instance types must support hibernation.spotMaxPricePercentageOverLowestPrice
(Integer spotMaxPricePercentageOverLowestPrice) The maximum price for Spot instances as a percentage over the lowest priced On-Demand instance.totalLocalStorageGB
(Consumer<TotalLocalStorageGBRequest.Builder> totalLocalStorageGB) The minimum and maximum total local storage in gigabytes (GB) for instance types with local storage.totalLocalStorageGB
(TotalLocalStorageGBRequest totalLocalStorageGB) The minimum and maximum total local storage in gigabytes (GB) for instance types with local storage.vCpuCount
(Consumer<VCpuCountRangeRequest.Builder> vCpuCount) The minimum and maximum number of vCPUs for the instance types.vCpuCount
(VCpuCountRangeRequest vCpuCount) The minimum and maximum number of vCPUs for the instance types.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, sdkFieldNameToField, sdkFields
-
Method Details
-
vCpuCount
The minimum and maximum number of vCPUs for the instance types. Amazon ECS selects instance types that have vCPU counts within this range.
- Parameters:
vCpuCount
- The minimum and maximum number of vCPUs for the instance types. Amazon ECS selects instance types that have vCPU counts within this range.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vCpuCount
default InstanceRequirementsRequest.Builder vCpuCount(Consumer<VCpuCountRangeRequest.Builder> vCpuCount) The minimum and maximum number of vCPUs for the instance types. Amazon ECS selects instance types that have vCPU counts within this range.
This is a convenience method that creates an instance of theVCpuCountRangeRequest.Builder
avoiding the need to create one manually viaVCpuCountRangeRequest.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tovCpuCount(VCpuCountRangeRequest)
.- Parameters:
vCpuCount
- a consumer that will call methods onVCpuCountRangeRequest.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
memoryMiB
The minimum and maximum amount of memory in mebibytes (MiB) for the instance types. Amazon ECS selects instance types that have memory within this range.
- Parameters:
memoryMiB
- The minimum and maximum amount of memory in mebibytes (MiB) for the instance types. Amazon ECS selects instance types that have memory within this range.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
memoryMiB
The minimum and maximum amount of memory in mebibytes (MiB) for the instance types. Amazon ECS selects instance types that have memory within this range.
This is a convenience method that creates an instance of theMemoryMiBRequest.Builder
avoiding the need to create one manually viaMemoryMiBRequest.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tomemoryMiB(MemoryMiBRequest)
.- Parameters:
memoryMiB
- a consumer that will call methods onMemoryMiBRequest.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
cpuManufacturersWithStrings
InstanceRequirementsRequest.Builder cpuManufacturersWithStrings(Collection<String> cpuManufacturers) The CPU manufacturers to include or exclude. You can specify
intel
,amd
, oramazon-web-services
to control which CPU types are used for your workloads.- Parameters:
cpuManufacturers
- The CPU manufacturers to include or exclude. You can specifyintel
,amd
, oramazon-web-services
to control which CPU types are used for your workloads.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cpuManufacturersWithStrings
The CPU manufacturers to include or exclude. You can specify
intel
,amd
, oramazon-web-services
to control which CPU types are used for your workloads.- Parameters:
cpuManufacturers
- The CPU manufacturers to include or exclude. You can specifyintel
,amd
, oramazon-web-services
to control which CPU types are used for your workloads.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cpuManufacturers
The CPU manufacturers to include or exclude. You can specify
intel
,amd
, oramazon-web-services
to control which CPU types are used for your workloads.- Parameters:
cpuManufacturers
- The CPU manufacturers to include or exclude. You can specifyintel
,amd
, oramazon-web-services
to control which CPU types are used for your workloads.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cpuManufacturers
The CPU manufacturers to include or exclude. You can specify
intel
,amd
, oramazon-web-services
to control which CPU types are used for your workloads.- Parameters:
cpuManufacturers
- The CPU manufacturers to include or exclude. You can specifyintel
,amd
, oramazon-web-services
to control which CPU types are used for your workloads.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
memoryGiBPerVCpu
The minimum and maximum amount of memory per vCPU in gibibytes (GiB). This helps ensure that instance types have the appropriate memory-to-CPU ratio for your workloads.
- Parameters:
memoryGiBPerVCpu
- The minimum and maximum amount of memory per vCPU in gibibytes (GiB). This helps ensure that instance types have the appropriate memory-to-CPU ratio for your workloads.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
memoryGiBPerVCpu
default InstanceRequirementsRequest.Builder memoryGiBPerVCpu(Consumer<MemoryGiBPerVCpuRequest.Builder> memoryGiBPerVCpu) The minimum and maximum amount of memory per vCPU in gibibytes (GiB). This helps ensure that instance types have the appropriate memory-to-CPU ratio for your workloads.
This is a convenience method that creates an instance of theMemoryGiBPerVCpuRequest.Builder
avoiding the need to create one manually viaMemoryGiBPerVCpuRequest.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tomemoryGiBPerVCpu(MemoryGiBPerVCpuRequest)
.- Parameters:
memoryGiBPerVCpu
- a consumer that will call methods onMemoryGiBPerVCpuRequest.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
excludedInstanceTypes
The instance types to exclude from selection. Use this to prevent Amazon ECS from selecting specific instance types that may not be suitable for your workloads.
- Parameters:
excludedInstanceTypes
- The instance types to exclude from selection. Use this to prevent Amazon ECS from selecting specific instance types that may not be suitable for your workloads.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
excludedInstanceTypes
The instance types to exclude from selection. Use this to prevent Amazon ECS from selecting specific instance types that may not be suitable for your workloads.
- Parameters:
excludedInstanceTypes
- The instance types to exclude from selection. Use this to prevent Amazon ECS from selecting specific instance types that may not be suitable for your workloads.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceGenerationsWithStrings
InstanceRequirementsRequest.Builder instanceGenerationsWithStrings(Collection<String> instanceGenerations) The instance generations to include. You can specify
current
to use the latest generation instances, orprevious
to include previous generation instances for cost optimization.- Parameters:
instanceGenerations
- The instance generations to include. You can specifycurrent
to use the latest generation instances, orprevious
to include previous generation instances for cost optimization.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceGenerationsWithStrings
The instance generations to include. You can specify
current
to use the latest generation instances, orprevious
to include previous generation instances for cost optimization.- Parameters:
instanceGenerations
- The instance generations to include. You can specifycurrent
to use the latest generation instances, orprevious
to include previous generation instances for cost optimization.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceGenerations
InstanceRequirementsRequest.Builder instanceGenerations(Collection<InstanceGeneration> instanceGenerations) The instance generations to include. You can specify
current
to use the latest generation instances, orprevious
to include previous generation instances for cost optimization.- Parameters:
instanceGenerations
- The instance generations to include. You can specifycurrent
to use the latest generation instances, orprevious
to include previous generation instances for cost optimization.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceGenerations
The instance generations to include. You can specify
current
to use the latest generation instances, orprevious
to include previous generation instances for cost optimization.- Parameters:
instanceGenerations
- The instance generations to include. You can specifycurrent
to use the latest generation instances, orprevious
to include previous generation instances for cost optimization.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
spotMaxPricePercentageOverLowestPrice
InstanceRequirementsRequest.Builder spotMaxPricePercentageOverLowestPrice(Integer spotMaxPricePercentageOverLowestPrice) The maximum price for Spot instances as a percentage over the lowest priced On-Demand instance. This helps control Spot instance costs while maintaining access to capacity.
- Parameters:
spotMaxPricePercentageOverLowestPrice
- The maximum price for Spot instances as a percentage over the lowest priced On-Demand instance. This helps control Spot instance costs while maintaining access to capacity.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
onDemandMaxPricePercentageOverLowestPrice
InstanceRequirementsRequest.Builder onDemandMaxPricePercentageOverLowestPrice(Integer onDemandMaxPricePercentageOverLowestPrice) The price protection threshold for On-Demand Instances, as a percentage higher than an identified On-Demand price. The identified On-Demand price is the price of the lowest priced current generation C, M, or R instance type with your specified attributes. If no current generation C, M, or R instance type matches your attributes, then the identified price is from either the lowest priced current generation instance types or, failing that, the lowest priced previous generation instance types that match your attributes. When Amazon ECS selects instance types with your attributes, we will exclude instance types whose price exceeds your specified threshold.
- Parameters:
onDemandMaxPricePercentageOverLowestPrice
- The price protection threshold for On-Demand Instances, as a percentage higher than an identified On-Demand price. The identified On-Demand price is the price of the lowest priced current generation C, M, or R instance type with your specified attributes. If no current generation C, M, or R instance type matches your attributes, then the identified price is from either the lowest priced current generation instance types or, failing that, the lowest priced previous generation instance types that match your attributes. When Amazon ECS selects instance types with your attributes, we will exclude instance types whose price exceeds your specified threshold.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
bareMetal
Indicates whether to include bare metal instance types. Set to
included
to allow bare metal instances,excluded
to exclude them, orrequired
to use only bare metal instances.- Parameters:
bareMetal
- Indicates whether to include bare metal instance types. Set toincluded
to allow bare metal instances,excluded
to exclude them, orrequired
to use only bare metal instances.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
bareMetal
Indicates whether to include bare metal instance types. Set to
included
to allow bare metal instances,excluded
to exclude them, orrequired
to use only bare metal instances.- Parameters:
bareMetal
- Indicates whether to include bare metal instance types. Set toincluded
to allow bare metal instances,excluded
to exclude them, orrequired
to use only bare metal instances.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
burstablePerformance
Indicates whether to include burstable performance instance types (T2, T3, T3a, T4g). Set to
included
to allow burstable instances,excluded
to exclude them, orrequired
to use only burstable instances.- Parameters:
burstablePerformance
- Indicates whether to include burstable performance instance types (T2, T3, T3a, T4g). Set toincluded
to allow burstable instances,excluded
to exclude them, orrequired
to use only burstable instances.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
burstablePerformance
Indicates whether to include burstable performance instance types (T2, T3, T3a, T4g). Set to
included
to allow burstable instances,excluded
to exclude them, orrequired
to use only burstable instances.- Parameters:
burstablePerformance
- Indicates whether to include burstable performance instance types (T2, T3, T3a, T4g). Set toincluded
to allow burstable instances,excluded
to exclude them, orrequired
to use only burstable instances.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
requireHibernateSupport
Indicates whether the instance types must support hibernation. When set to
true
, only instance types that support hibernation are selected.- Parameters:
requireHibernateSupport
- Indicates whether the instance types must support hibernation. When set totrue
, only instance types that support hibernation are selected.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
networkInterfaceCount
InstanceRequirementsRequest.Builder networkInterfaceCount(NetworkInterfaceCountRequest networkInterfaceCount) The minimum and maximum number of network interfaces for the instance types. This is useful for workloads that require multiple network interfaces.
- Parameters:
networkInterfaceCount
- The minimum and maximum number of network interfaces for the instance types. This is useful for workloads that require multiple network interfaces.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
networkInterfaceCount
default InstanceRequirementsRequest.Builder networkInterfaceCount(Consumer<NetworkInterfaceCountRequest.Builder> networkInterfaceCount) The minimum and maximum number of network interfaces for the instance types. This is useful for workloads that require multiple network interfaces.
This is a convenience method that creates an instance of theNetworkInterfaceCountRequest.Builder
avoiding the need to create one manually viaNetworkInterfaceCountRequest.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tonetworkInterfaceCount(NetworkInterfaceCountRequest)
.- Parameters:
networkInterfaceCount
- a consumer that will call methods onNetworkInterfaceCountRequest.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
localStorage
Indicates whether to include instance types with local storage. Set to
included
to allow local storage,excluded
to exclude it, orrequired
to use only instances with local storage.- Parameters:
localStorage
- Indicates whether to include instance types with local storage. Set toincluded
to allow local storage,excluded
to exclude it, orrequired
to use only instances with local storage.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
localStorage
Indicates whether to include instance types with local storage. Set to
included
to allow local storage,excluded
to exclude it, orrequired
to use only instances with local storage.- Parameters:
localStorage
- Indicates whether to include instance types with local storage. Set toincluded
to allow local storage,excluded
to exclude it, orrequired
to use only instances with local storage.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
localStorageTypesWithStrings
InstanceRequirementsRequest.Builder localStorageTypesWithStrings(Collection<String> localStorageTypes) The local storage types to include. You can specify
hdd
for hard disk drives,ssd
for solid state drives, or both.- Parameters:
localStorageTypes
- The local storage types to include. You can specifyhdd
for hard disk drives,ssd
for solid state drives, or both.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
localStorageTypesWithStrings
The local storage types to include. You can specify
hdd
for hard disk drives,ssd
for solid state drives, or both.- Parameters:
localStorageTypes
- The local storage types to include. You can specifyhdd
for hard disk drives,ssd
for solid state drives, or both.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
localStorageTypes
InstanceRequirementsRequest.Builder localStorageTypes(Collection<LocalStorageType> localStorageTypes) The local storage types to include. You can specify
hdd
for hard disk drives,ssd
for solid state drives, or both.- Parameters:
localStorageTypes
- The local storage types to include. You can specifyhdd
for hard disk drives,ssd
for solid state drives, or both.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
localStorageTypes
The local storage types to include. You can specify
hdd
for hard disk drives,ssd
for solid state drives, or both.- Parameters:
localStorageTypes
- The local storage types to include. You can specifyhdd
for hard disk drives,ssd
for solid state drives, or both.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
totalLocalStorageGB
InstanceRequirementsRequest.Builder totalLocalStorageGB(TotalLocalStorageGBRequest totalLocalStorageGB) The minimum and maximum total local storage in gigabytes (GB) for instance types with local storage.
- Parameters:
totalLocalStorageGB
- The minimum and maximum total local storage in gigabytes (GB) for instance types with local storage.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
totalLocalStorageGB
default InstanceRequirementsRequest.Builder totalLocalStorageGB(Consumer<TotalLocalStorageGBRequest.Builder> totalLocalStorageGB) The minimum and maximum total local storage in gigabytes (GB) for instance types with local storage.
This is a convenience method that creates an instance of theTotalLocalStorageGBRequest.Builder
avoiding the need to create one manually viaTotalLocalStorageGBRequest.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tototalLocalStorageGB(TotalLocalStorageGBRequest)
.- Parameters:
totalLocalStorageGB
- a consumer that will call methods onTotalLocalStorageGBRequest.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
baselineEbsBandwidthMbps
InstanceRequirementsRequest.Builder baselineEbsBandwidthMbps(BaselineEbsBandwidthMbpsRequest baselineEbsBandwidthMbps) The minimum and maximum baseline Amazon EBS bandwidth in megabits per second (Mbps). This is important for workloads with high storage I/O requirements.
- Parameters:
baselineEbsBandwidthMbps
- The minimum and maximum baseline Amazon EBS bandwidth in megabits per second (Mbps). This is important for workloads with high storage I/O requirements.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
baselineEbsBandwidthMbps
default InstanceRequirementsRequest.Builder baselineEbsBandwidthMbps(Consumer<BaselineEbsBandwidthMbpsRequest.Builder> baselineEbsBandwidthMbps) The minimum and maximum baseline Amazon EBS bandwidth in megabits per second (Mbps). This is important for workloads with high storage I/O requirements.
This is a convenience method that creates an instance of theBaselineEbsBandwidthMbpsRequest.Builder
avoiding the need to create one manually viaBaselineEbsBandwidthMbpsRequest.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tobaselineEbsBandwidthMbps(BaselineEbsBandwidthMbpsRequest)
.- Parameters:
baselineEbsBandwidthMbps
- a consumer that will call methods onBaselineEbsBandwidthMbpsRequest.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
acceleratorTypesWithStrings
InstanceRequirementsRequest.Builder acceleratorTypesWithStrings(Collection<String> acceleratorTypes) The accelerator types to include. You can specify
gpu
for graphics processing units,fpga
for field programmable gate arrays, orinference
for machine learning inference accelerators.- Parameters:
acceleratorTypes
- The accelerator types to include. You can specifygpu
for graphics processing units,fpga
for field programmable gate arrays, orinference
for machine learning inference accelerators.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
acceleratorTypesWithStrings
The accelerator types to include. You can specify
gpu
for graphics processing units,fpga
for field programmable gate arrays, orinference
for machine learning inference accelerators.- Parameters:
acceleratorTypes
- The accelerator types to include. You can specifygpu
for graphics processing units,fpga
for field programmable gate arrays, orinference
for machine learning inference accelerators.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
acceleratorTypes
The accelerator types to include. You can specify
gpu
for graphics processing units,fpga
for field programmable gate arrays, orinference
for machine learning inference accelerators.- Parameters:
acceleratorTypes
- The accelerator types to include. You can specifygpu
for graphics processing units,fpga
for field programmable gate arrays, orinference
for machine learning inference accelerators.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
acceleratorTypes
The accelerator types to include. You can specify
gpu
for graphics processing units,fpga
for field programmable gate arrays, orinference
for machine learning inference accelerators.- Parameters:
acceleratorTypes
- The accelerator types to include. You can specifygpu
for graphics processing units,fpga
for field programmable gate arrays, orinference
for machine learning inference accelerators.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
acceleratorCount
The minimum and maximum number of accelerators for the instance types. This is used when you need instances with specific numbers of GPUs or other accelerators.
- Parameters:
acceleratorCount
- The minimum and maximum number of accelerators for the instance types. This is used when you need instances with specific numbers of GPUs or other accelerators.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
acceleratorCount
default InstanceRequirementsRequest.Builder acceleratorCount(Consumer<AcceleratorCountRequest.Builder> acceleratorCount) The minimum and maximum number of accelerators for the instance types. This is used when you need instances with specific numbers of GPUs or other accelerators.
This is a convenience method that creates an instance of theAcceleratorCountRequest.Builder
avoiding the need to create one manually viaAcceleratorCountRequest.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toacceleratorCount(AcceleratorCountRequest)
.- Parameters:
acceleratorCount
- a consumer that will call methods onAcceleratorCountRequest.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
acceleratorManufacturersWithStrings
InstanceRequirementsRequest.Builder acceleratorManufacturersWithStrings(Collection<String> acceleratorManufacturers) The accelerator manufacturers to include. You can specify
nvidia
,amd
,amazon-web-services
, orxilinx
depending on your accelerator requirements.- Parameters:
acceleratorManufacturers
- The accelerator manufacturers to include. You can specifynvidia
,amd
,amazon-web-services
, orxilinx
depending on your accelerator requirements.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
acceleratorManufacturersWithStrings
InstanceRequirementsRequest.Builder acceleratorManufacturersWithStrings(String... acceleratorManufacturers) The accelerator manufacturers to include. You can specify
nvidia
,amd
,amazon-web-services
, orxilinx
depending on your accelerator requirements.- Parameters:
acceleratorManufacturers
- The accelerator manufacturers to include. You can specifynvidia
,amd
,amazon-web-services
, orxilinx
depending on your accelerator requirements.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
acceleratorManufacturers
InstanceRequirementsRequest.Builder acceleratorManufacturers(Collection<AcceleratorManufacturer> acceleratorManufacturers) The accelerator manufacturers to include. You can specify
nvidia
,amd
,amazon-web-services
, orxilinx
depending on your accelerator requirements.- Parameters:
acceleratorManufacturers
- The accelerator manufacturers to include. You can specifynvidia
,amd
,amazon-web-services
, orxilinx
depending on your accelerator requirements.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
acceleratorManufacturers
InstanceRequirementsRequest.Builder acceleratorManufacturers(AcceleratorManufacturer... acceleratorManufacturers) The accelerator manufacturers to include. You can specify
nvidia
,amd
,amazon-web-services
, orxilinx
depending on your accelerator requirements.- Parameters:
acceleratorManufacturers
- The accelerator manufacturers to include. You can specifynvidia
,amd
,amazon-web-services
, orxilinx
depending on your accelerator requirements.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
acceleratorNamesWithStrings
InstanceRequirementsRequest.Builder acceleratorNamesWithStrings(Collection<String> acceleratorNames) The specific accelerator names to include. For example, you can specify
a100
,v100
,k80
, or other specific accelerator models.- Parameters:
acceleratorNames
- The specific accelerator names to include. For example, you can specifya100
,v100
,k80
, or other specific accelerator models.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
acceleratorNamesWithStrings
The specific accelerator names to include. For example, you can specify
a100
,v100
,k80
, or other specific accelerator models.- Parameters:
acceleratorNames
- The specific accelerator names to include. For example, you can specifya100
,v100
,k80
, or other specific accelerator models.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
acceleratorNames
The specific accelerator names to include. For example, you can specify
a100
,v100
,k80
, or other specific accelerator models.- Parameters:
acceleratorNames
- The specific accelerator names to include. For example, you can specifya100
,v100
,k80
, or other specific accelerator models.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
acceleratorNames
The specific accelerator names to include. For example, you can specify
a100
,v100
,k80
, or other specific accelerator models.- Parameters:
acceleratorNames
- The specific accelerator names to include. For example, you can specifya100
,v100
,k80
, or other specific accelerator models.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
acceleratorTotalMemoryMiB
InstanceRequirementsRequest.Builder acceleratorTotalMemoryMiB(AcceleratorTotalMemoryMiBRequest acceleratorTotalMemoryMiB) The minimum and maximum total accelerator memory in mebibytes (MiB). This is important for GPU workloads that require specific amounts of video memory.
- Parameters:
acceleratorTotalMemoryMiB
- The minimum and maximum total accelerator memory in mebibytes (MiB). This is important for GPU workloads that require specific amounts of video memory.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
acceleratorTotalMemoryMiB
default InstanceRequirementsRequest.Builder acceleratorTotalMemoryMiB(Consumer<AcceleratorTotalMemoryMiBRequest.Builder> acceleratorTotalMemoryMiB) The minimum and maximum total accelerator memory in mebibytes (MiB). This is important for GPU workloads that require specific amounts of video memory.
This is a convenience method that creates an instance of theAcceleratorTotalMemoryMiBRequest.Builder
avoiding the need to create one manually viaAcceleratorTotalMemoryMiBRequest.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toacceleratorTotalMemoryMiB(AcceleratorTotalMemoryMiBRequest)
.- Parameters:
acceleratorTotalMemoryMiB
- a consumer that will call methods onAcceleratorTotalMemoryMiBRequest.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
networkBandwidthGbps
InstanceRequirementsRequest.Builder networkBandwidthGbps(NetworkBandwidthGbpsRequest networkBandwidthGbps) The minimum and maximum network bandwidth in gigabits per second (Gbps). This is crucial for network-intensive workloads that require high throughput.
- Parameters:
networkBandwidthGbps
- The minimum and maximum network bandwidth in gigabits per second (Gbps). This is crucial for network-intensive workloads that require high throughput.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
networkBandwidthGbps
default InstanceRequirementsRequest.Builder networkBandwidthGbps(Consumer<NetworkBandwidthGbpsRequest.Builder> networkBandwidthGbps) The minimum and maximum network bandwidth in gigabits per second (Gbps). This is crucial for network-intensive workloads that require high throughput.
This is a convenience method that creates an instance of theNetworkBandwidthGbpsRequest.Builder
avoiding the need to create one manually viaNetworkBandwidthGbpsRequest.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tonetworkBandwidthGbps(NetworkBandwidthGbpsRequest)
.- Parameters:
networkBandwidthGbps
- a consumer that will call methods onNetworkBandwidthGbpsRequest.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
allowedInstanceTypes
The instance types to include in the selection. When specified, Amazon ECS only considers these instance types, subject to the other requirements specified.
- Parameters:
allowedInstanceTypes
- The instance types to include in the selection. When specified, Amazon ECS only considers these instance types, subject to the other requirements specified.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
allowedInstanceTypes
The instance types to include in the selection. When specified, Amazon ECS only considers these instance types, subject to the other requirements specified.
- Parameters:
allowedInstanceTypes
- The instance types to include in the selection. When specified, Amazon ECS only considers these instance types, subject to the other requirements specified.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
maxSpotPriceAsPercentageOfOptimalOnDemandPrice
InstanceRequirementsRequest.Builder maxSpotPriceAsPercentageOfOptimalOnDemandPrice(Integer maxSpotPriceAsPercentageOfOptimalOnDemandPrice) The maximum price for Spot instances as a percentage of the optimal On-Demand price. This provides more precise cost control for Spot instance selection.
- Parameters:
maxSpotPriceAsPercentageOfOptimalOnDemandPrice
- The maximum price for Spot instances as a percentage of the optimal On-Demand price. This provides more precise cost control for Spot instance selection.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-