Class CfnFleet.AcceleratorCapabilitiesProperty.Builder
java.lang.Object
software.amazon.awscdk.services.deadline.CfnFleet.AcceleratorCapabilitiesProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFleet.AcceleratorCapabilitiesProperty>
- Enclosing interface:
CfnFleet.AcceleratorCapabilitiesProperty
@Stability(Stable)
public static final class CfnFleet.AcceleratorCapabilitiesProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFleet.AcceleratorCapabilitiesProperty>
A builder for
CfnFleet.AcceleratorCapabilitiesProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.count
(IResolvable count) Sets the value ofCfnFleet.AcceleratorCapabilitiesProperty.getCount()
Sets the value ofCfnFleet.AcceleratorCapabilitiesProperty.getCount()
selections
(List<? extends Object> selections) Sets the value ofCfnFleet.AcceleratorCapabilitiesProperty.getSelections()
selections
(IResolvable selections) Sets the value ofCfnFleet.AcceleratorCapabilitiesProperty.getSelections()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
selections
@Stability(Stable) public CfnFleet.AcceleratorCapabilitiesProperty.Builder selections(IResolvable selections) Sets the value ofCfnFleet.AcceleratorCapabilitiesProperty.getSelections()
- Parameters:
selections
- A list of accelerator capabilities requested for this fleet. This parameter is required. Only Amazon Elastic Compute Cloud instances that provide these capabilities will be used. For example, if you specify both L4 and T4 chips, Deadline Cloud will use Amazon EC2 instances that have either the L4 or the T4 chip installed.- Returns:
this
-
selections
@Stability(Stable) public CfnFleet.AcceleratorCapabilitiesProperty.Builder selections(List<? extends Object> selections) Sets the value ofCfnFleet.AcceleratorCapabilitiesProperty.getSelections()
- Parameters:
selections
- A list of accelerator capabilities requested for this fleet. This parameter is required. Only Amazon Elastic Compute Cloud instances that provide these capabilities will be used. For example, if you specify both L4 and T4 chips, Deadline Cloud will use Amazon EC2 instances that have either the L4 or the T4 chip installed.- Returns:
this
-
count
Sets the value ofCfnFleet.AcceleratorCapabilitiesProperty.getCount()
- Parameters:
count
- The number of GPU accelerators specified for worker hosts in this fleet.- Returns:
this
-
count
@Stability(Stable) public CfnFleet.AcceleratorCapabilitiesProperty.Builder count(CfnFleet.AcceleratorCountRangeProperty count) Sets the value ofCfnFleet.AcceleratorCapabilitiesProperty.getCount()
- Parameters:
count
- The number of GPU accelerators specified for worker hosts in this fleet.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnFleet.AcceleratorCapabilitiesProperty>
- Returns:
- a new instance of
CfnFleet.AcceleratorCapabilitiesProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-