Class CfnInferenceComponentPropsMixin.InferenceComponentCapacitySizeProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.sagemaker.CfnInferenceComponentPropsMixin.InferenceComponentCapacitySizeProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnInferenceComponentPropsMixin.InferenceComponentCapacitySizeProperty>
- Enclosing interface:
CfnInferenceComponentPropsMixin.InferenceComponentCapacitySizeProperty
@Stability(Stable)
public static final class CfnInferenceComponentPropsMixin.InferenceComponentCapacitySizeProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnInferenceComponentPropsMixin.InferenceComponentCapacitySizeProperty>
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
type
@Stability(Stable) public CfnInferenceComponentPropsMixin.InferenceComponentCapacitySizeProperty.Builder type(String type) - Parameters:
type- Specifies the endpoint capacity type.- COPY_COUNT - The endpoint activates based on the number of inference component copies.
- CAPACITY_PERCENT - The endpoint activates based on the specified percentage of capacity.
- Returns:
this
-
value
@Stability(Stable) public CfnInferenceComponentPropsMixin.InferenceComponentCapacitySizeProperty.Builder value(Number value) - Parameters:
value- Defines the capacity size, either as a number of inference component copies or a capacity percentage.- Returns:
this
-
build
@Stability(Stable) public CfnInferenceComponentPropsMixin.InferenceComponentCapacitySizeProperty build()Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnInferenceComponentPropsMixin.InferenceComponentCapacitySizeProperty>- Returns:
- a new instance of
CfnInferenceComponentPropsMixin.InferenceComponentCapacitySizeProperty - Throws:
NullPointerException- if any required attribute was not provided
-