Class CfnTaskDefinition.InferenceAcceleratorProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ecs.CfnTaskDefinition.InferenceAcceleratorProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTaskDefinition.InferenceAcceleratorProperty>
- Enclosing interface:
CfnTaskDefinition.InferenceAcceleratorProperty
@Stability(Stable)
public static final class CfnTaskDefinition.InferenceAcceleratorProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTaskDefinition.InferenceAcceleratorProperty>
A builder for
CfnTaskDefinition.InferenceAcceleratorProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.deviceName
(String deviceName) Sets the value ofCfnTaskDefinition.InferenceAcceleratorProperty.getDeviceName()
deviceType
(String deviceType) Sets the value ofCfnTaskDefinition.InferenceAcceleratorProperty.getDeviceType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
deviceName
@Stability(Stable) public CfnTaskDefinition.InferenceAcceleratorProperty.Builder deviceName(String deviceName) Sets the value ofCfnTaskDefinition.InferenceAcceleratorProperty.getDeviceName()
- Parameters:
deviceName
- The Elastic Inference accelerator device name. ThedeviceName
must also be referenced in a container definition as a ResourceRequirement .- Returns:
this
-
deviceType
@Stability(Stable) public CfnTaskDefinition.InferenceAcceleratorProperty.Builder deviceType(String deviceType) Sets the value ofCfnTaskDefinition.InferenceAcceleratorProperty.getDeviceType()
- Parameters:
deviceType
- The Elastic Inference accelerator type to use.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnTaskDefinition.InferenceAcceleratorProperty>
- Returns:
- a new instance of
CfnTaskDefinition.InferenceAcceleratorProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-