Interface ServiceManagedEc2InstanceCapabilities.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ServiceManagedEc2InstanceCapabilities.Builder,
,ServiceManagedEc2InstanceCapabilities> SdkBuilder<ServiceManagedEc2InstanceCapabilities.Builder,
,ServiceManagedEc2InstanceCapabilities> SdkPojo
- Enclosing class:
ServiceManagedEc2InstanceCapabilities
-
Method Summary
Modifier and TypeMethodDescriptionacceleratorCapabilities
(Consumer<AcceleratorCapabilities.Builder> acceleratorCapabilities) Describes the GPU accelerator capabilities required for worker host instances in this fleet.acceleratorCapabilities
(AcceleratorCapabilities acceleratorCapabilities) Describes the GPU accelerator capabilities required for worker host instances in this fleet.allowedInstanceTypes
(String... allowedInstanceTypes) The allowable Amazon EC2 instance types.allowedInstanceTypes
(Collection<String> allowedInstanceTypes) The allowable Amazon EC2 instance types.cpuArchitectureType
(String cpuArchitectureType) The CPU architecture type.cpuArchitectureType
(CpuArchitectureType cpuArchitectureType) The CPU architecture type.customAmounts
(Collection<FleetAmountCapability> customAmounts) The custom capability amounts to require for instances in this fleet.customAmounts
(Consumer<FleetAmountCapability.Builder>... customAmounts) The custom capability amounts to require for instances in this fleet.customAmounts
(FleetAmountCapability... customAmounts) The custom capability amounts to require for instances in this fleet.customAttributes
(Collection<FleetAttributeCapability> customAttributes) The custom capability attributes to require for instances in this fleet.customAttributes
(Consumer<FleetAttributeCapability.Builder>... customAttributes) The custom capability attributes to require for instances in this fleet.customAttributes
(FleetAttributeCapability... customAttributes) The custom capability attributes to require for instances in this fleet.excludedInstanceTypes
(String... excludedInstanceTypes) The instance types to exclude from the fleet.excludedInstanceTypes
(Collection<String> excludedInstanceTypes) The instance types to exclude from the fleet.memoryMiB
(Consumer<MemoryMiBRange.Builder> memoryMiB) The memory, as MiB, for the Amazon EC2 instance type.memoryMiB
(MemoryMiBRange memoryMiB) The memory, as MiB, for the Amazon EC2 instance type.The operating system (OS) family.The operating system (OS) family.rootEbsVolume
(Consumer<Ec2EbsVolume.Builder> rootEbsVolume) The root EBS volume.rootEbsVolume
(Ec2EbsVolume rootEbsVolume) The root EBS volume.vCpuCount
(Consumer<VCpuCountRange.Builder> vCpuCount) The amount of vCPU to require for instances in this fleet.vCpuCount
(VCpuCountRange vCpuCount) The amount of vCPU to require for instances in this fleet.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 amount of vCPU to require for instances in this fleet.
- Parameters:
vCpuCount
- The amount of vCPU to require for instances in this fleet.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vCpuCount
default ServiceManagedEc2InstanceCapabilities.Builder vCpuCount(Consumer<VCpuCountRange.Builder> vCpuCount) The amount of vCPU to require for instances in this fleet.
This is a convenience method that creates an instance of theVCpuCountRange.Builder
avoiding the need to create one manually viaVCpuCountRange.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tovCpuCount(VCpuCountRange)
.- Parameters:
vCpuCount
- a consumer that will call methods onVCpuCountRange.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
memoryMiB
The memory, as MiB, for the Amazon EC2 instance type.
- Parameters:
memoryMiB
- The memory, as MiB, for the Amazon EC2 instance type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
memoryMiB
default ServiceManagedEc2InstanceCapabilities.Builder memoryMiB(Consumer<MemoryMiBRange.Builder> memoryMiB) The memory, as MiB, for the Amazon EC2 instance type.
This is a convenience method that creates an instance of theMemoryMiBRange.Builder
avoiding the need to create one manually viaMemoryMiBRange.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tomemoryMiB(MemoryMiBRange)
.- Parameters:
memoryMiB
- a consumer that will call methods onMemoryMiBRange.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
osFamily
The operating system (OS) family.
- Parameters:
osFamily
- The operating system (OS) family.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
osFamily
ServiceManagedEc2InstanceCapabilities.Builder osFamily(ServiceManagedFleetOperatingSystemFamily osFamily) The operating system (OS) family.
- Parameters:
osFamily
- The operating system (OS) family.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
cpuArchitectureType
The CPU architecture type.
- Parameters:
cpuArchitectureType
- The CPU architecture type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
cpuArchitectureType
ServiceManagedEc2InstanceCapabilities.Builder cpuArchitectureType(CpuArchitectureType cpuArchitectureType) The CPU architecture type.
- Parameters:
cpuArchitectureType
- The CPU architecture type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
rootEbsVolume
The root EBS volume.
- Parameters:
rootEbsVolume
- The root EBS volume.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rootEbsVolume
default ServiceManagedEc2InstanceCapabilities.Builder rootEbsVolume(Consumer<Ec2EbsVolume.Builder> rootEbsVolume) The root EBS volume.
This is a convenience method that creates an instance of theEc2EbsVolume.Builder
avoiding the need to create one manually viaEc2EbsVolume.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed torootEbsVolume(Ec2EbsVolume)
.- Parameters:
rootEbsVolume
- a consumer that will call methods onEc2EbsVolume.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
acceleratorCapabilities
ServiceManagedEc2InstanceCapabilities.Builder acceleratorCapabilities(AcceleratorCapabilities acceleratorCapabilities) Describes the GPU accelerator capabilities required for worker host instances in this fleet.
- Parameters:
acceleratorCapabilities
- Describes the GPU accelerator capabilities required for worker host instances in this fleet.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
acceleratorCapabilities
default ServiceManagedEc2InstanceCapabilities.Builder acceleratorCapabilities(Consumer<AcceleratorCapabilities.Builder> acceleratorCapabilities) Describes the GPU accelerator capabilities required for worker host instances in this fleet.
This is a convenience method that creates an instance of theAcceleratorCapabilities.Builder
avoiding the need to create one manually viaAcceleratorCapabilities.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toacceleratorCapabilities(AcceleratorCapabilities)
.- Parameters:
acceleratorCapabilities
- a consumer that will call methods onAcceleratorCapabilities.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
allowedInstanceTypes
ServiceManagedEc2InstanceCapabilities.Builder allowedInstanceTypes(Collection<String> allowedInstanceTypes) The allowable Amazon EC2 instance types.
- Parameters:
allowedInstanceTypes
- The allowable Amazon EC2 instance types.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
allowedInstanceTypes
The allowable Amazon EC2 instance types.
- Parameters:
allowedInstanceTypes
- The allowable Amazon EC2 instance types.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
excludedInstanceTypes
ServiceManagedEc2InstanceCapabilities.Builder excludedInstanceTypes(Collection<String> excludedInstanceTypes) The instance types to exclude from the fleet.
- Parameters:
excludedInstanceTypes
- The instance types to exclude from the fleet.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
excludedInstanceTypes
ServiceManagedEc2InstanceCapabilities.Builder excludedInstanceTypes(String... excludedInstanceTypes) The instance types to exclude from the fleet.
- Parameters:
excludedInstanceTypes
- The instance types to exclude from the fleet.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
customAmounts
ServiceManagedEc2InstanceCapabilities.Builder customAmounts(Collection<FleetAmountCapability> customAmounts) The custom capability amounts to require for instances in this fleet.
- Parameters:
customAmounts
- The custom capability amounts to require for instances in this fleet.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
customAmounts
The custom capability amounts to require for instances in this fleet.
- Parameters:
customAmounts
- The custom capability amounts to require for instances in this fleet.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
customAmounts
ServiceManagedEc2InstanceCapabilities.Builder customAmounts(Consumer<FleetAmountCapability.Builder>... customAmounts) The custom capability amounts to require for instances in this fleet.
This is a convenience method that creates an instance of theFleetAmountCapability.Builder
avoiding the need to create one manually viaFleetAmountCapability.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocustomAmounts(List<FleetAmountCapability>)
.- Parameters:
customAmounts
- a consumer that will call methods onFleetAmountCapability.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
customAttributes
ServiceManagedEc2InstanceCapabilities.Builder customAttributes(Collection<FleetAttributeCapability> customAttributes) The custom capability attributes to require for instances in this fleet.
- Parameters:
customAttributes
- The custom capability attributes to require for instances in this fleet.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
customAttributes
ServiceManagedEc2InstanceCapabilities.Builder customAttributes(FleetAttributeCapability... customAttributes) The custom capability attributes to require for instances in this fleet.
- Parameters:
customAttributes
- The custom capability attributes to require for instances in this fleet.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
customAttributes
ServiceManagedEc2InstanceCapabilities.Builder customAttributes(Consumer<FleetAttributeCapability.Builder>... customAttributes) The custom capability attributes to require for instances in this fleet.
This is a convenience method that creates an instance of theFleetAttributeCapability.Builder
avoiding the need to create one manually viaFleetAttributeCapability.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocustomAttributes(List<FleetAttributeCapability>)
.- Parameters:
customAttributes
- a consumer that will call methods onFleetAttributeCapability.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-