Class InferenceAccelerator.Builder
java.lang.Object
software.amazon.awscdk.services.ecs.InferenceAccelerator.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<InferenceAccelerator>
- Enclosing interface:
InferenceAccelerator
@Stability(Stable)
public static final class InferenceAccelerator.Builder
extends Object
implements software.amazon.jsii.Builder<InferenceAccelerator>
A builder for
InferenceAccelerator
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.deviceName
(String deviceName) Sets the value ofInferenceAccelerator.getDeviceName()
deviceType
(String deviceType) Sets the value ofInferenceAccelerator.getDeviceType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
deviceName
Sets the value ofInferenceAccelerator.getDeviceName()
- Parameters:
deviceName
- The Elastic Inference accelerator device name.- Returns:
this
-
deviceType
Sets the value ofInferenceAccelerator.getDeviceType()
- Parameters:
deviceType
- The Elastic Inference accelerator type to use. The allowed values are: eia2.medium, eia2.large and eia2.xlarge.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<InferenceAccelerator>
- Returns:
- a new instance of
InferenceAccelerator
- Throws:
NullPointerException
- if any required attribute was not provided
-