Class CfnInstancePropsMixin.ElasticInferenceAcceleratorProperty.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.ec2.mixins.CfnInstancePropsMixin.ElasticInferenceAcceleratorProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnInstancePropsMixin.ElasticInferenceAcceleratorProperty>
- Enclosing interface:
CfnInstancePropsMixin.ElasticInferenceAcceleratorProperty
@Stability(Stable)
public static final class CfnInstancePropsMixin.ElasticInferenceAcceleratorProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnInstancePropsMixin.ElasticInferenceAcceleratorProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnInstancePropsMixin.ElasticInferenceAcceleratorProperty.getCount()Sets the value ofCfnInstancePropsMixin.ElasticInferenceAcceleratorProperty.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
count
@Stability(Stable) public CfnInstancePropsMixin.ElasticInferenceAcceleratorProperty.Builder count(Number count) Sets the value ofCfnInstancePropsMixin.ElasticInferenceAcceleratorProperty.getCount()- Parameters:
count- The number of elastic inference accelerators to attach to the instance.- Returns:
this
-
type
@Stability(Stable) public CfnInstancePropsMixin.ElasticInferenceAcceleratorProperty.Builder type(String type) Sets the value ofCfnInstancePropsMixin.ElasticInferenceAcceleratorProperty.getType()- Parameters:
type- The type of elastic inference accelerator. The possible values areeia1.medium,eia1.large,eia1.xlarge,eia2.medium,eia2.large, andeia2.xlarge.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnInstancePropsMixin.ElasticInferenceAcceleratorProperty>- Returns:
- a new instance of
CfnInstancePropsMixin.ElasticInferenceAcceleratorProperty - Throws:
NullPointerException- if any required attribute was not provided
-