Class CfnFleet.AcceleratorSelectionProperty.Builder
java.lang.Object
software.amazon.awscdk.services.deadline.CfnFleet.AcceleratorSelectionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFleet.AcceleratorSelectionProperty>
- Enclosing interface:
CfnFleet.AcceleratorSelectionProperty
@Stability(Stable)
public static final class CfnFleet.AcceleratorSelectionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFleet.AcceleratorSelectionProperty>
A builder for
CfnFleet.AcceleratorSelectionProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnFleet.AcceleratorSelectionProperty.getName()Sets the value ofCfnFleet.AcceleratorSelectionProperty.getRuntime()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofCfnFleet.AcceleratorSelectionProperty.getName()- Parameters:
name- The name of the chip used by the GPU accelerator. This parameter is required. If you specifyl4as the name of the accelerator, you must specifylatestorgrid:r570as the runtime.The available GPU accelerators are:
t4- NVIDIA T4 Tensor Core GPUa10g- NVIDIA A10G Tensor Core GPUl4- NVIDIA L4 Tensor Core GPUl40s- NVIDIA L40S Tensor Core GPU
- Returns:
this
-
runtime
Sets the value ofCfnFleet.AcceleratorSelectionProperty.getRuntime()- Parameters:
runtime- Specifies the runtime driver to use for the GPU accelerator. You must use the same runtime for all GPUs. You can choose from the following runtimes:latest- Use the latest runtime available for the chip. If you specifylatestand a new version of the runtime is released, the new version of the runtime is used.grid:r570- NVIDIA vGPU software 18grid:r535- NVIDIA vGPU software 16
If you don't specify a runtime, Deadline Cloud uses
latestas the default. However, if you have multiple accelerators and specifylatestfor some and leave others blank, Deadline Cloud raises an exception.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnFleet.AcceleratorSelectionProperty>- Returns:
- a new instance of
CfnFleet.AcceleratorSelectionProperty - Throws:
NullPointerException- if any required attribute was not provided
-