Class CfnPipe.EcsInferenceAcceleratorOverrideProperty.Builder
java.lang.Object
software.amazon.awscdk.services.pipes.CfnPipe.EcsInferenceAcceleratorOverrideProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPipe.EcsInferenceAcceleratorOverrideProperty>
- Enclosing interface:
CfnPipe.EcsInferenceAcceleratorOverrideProperty
@Stability(Stable)
public static final class CfnPipe.EcsInferenceAcceleratorOverrideProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPipe.EcsInferenceAcceleratorOverrideProperty>
A builder for
CfnPipe.EcsInferenceAcceleratorOverrideProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.deviceName
(String deviceName) Sets the value ofCfnPipe.EcsInferenceAcceleratorOverrideProperty.getDeviceName()
deviceType
(String deviceType) Sets the value ofCfnPipe.EcsInferenceAcceleratorOverrideProperty.getDeviceType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
deviceName
@Stability(Stable) public CfnPipe.EcsInferenceAcceleratorOverrideProperty.Builder deviceName(String deviceName) Sets the value ofCfnPipe.EcsInferenceAcceleratorOverrideProperty.getDeviceName()
- Parameters:
deviceName
- The Elastic Inference accelerator device name to override for the task. This parameter must match adeviceName
specified in the task definition.- Returns:
this
-
deviceType
@Stability(Stable) public CfnPipe.EcsInferenceAcceleratorOverrideProperty.Builder deviceType(String deviceType) Sets the value ofCfnPipe.EcsInferenceAcceleratorOverrideProperty.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<CfnPipe.EcsInferenceAcceleratorOverrideProperty>
- Returns:
- a new instance of
CfnPipe.EcsInferenceAcceleratorOverrideProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-