Class CfnInferenceComponentPropsMixin.InferenceComponentRuntimeConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.sagemaker.CfnInferenceComponentPropsMixin.InferenceComponentRuntimeConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnInferenceComponentPropsMixin.InferenceComponentRuntimeConfigProperty>
- Enclosing interface:
CfnInferenceComponentPropsMixin.InferenceComponentRuntimeConfigProperty
@Stability(Stable)
public static final class CfnInferenceComponentPropsMixin.InferenceComponentRuntimeConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnInferenceComponentPropsMixin.InferenceComponentRuntimeConfigProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.currentCopyCount(Number currentCopyCount) desiredCopyCount(Number desiredCopyCount)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
copyCount
@Stability(Stable) public CfnInferenceComponentPropsMixin.InferenceComponentRuntimeConfigProperty.Builder copyCount(Number copyCount) Sets the value ofCfnInferenceComponentPropsMixin.InferenceComponentRuntimeConfigProperty.getCopyCount()- Parameters:
copyCount- The number of runtime copies of the model container to deploy with the inference component. Each copy can serve inference requests.- Returns:
this
-
currentCopyCount
@Stability(Stable) public CfnInferenceComponentPropsMixin.InferenceComponentRuntimeConfigProperty.Builder currentCopyCount(Number currentCopyCount) Sets the value ofCfnInferenceComponentPropsMixin.InferenceComponentRuntimeConfigProperty.getCurrentCopyCount()- Parameters:
currentCopyCount- The number of runtime copies of the model container that are currently deployed.- Returns:
this
-
desiredCopyCount
@Stability(Stable) public CfnInferenceComponentPropsMixin.InferenceComponentRuntimeConfigProperty.Builder desiredCopyCount(Number desiredCopyCount) Sets the value ofCfnInferenceComponentPropsMixin.InferenceComponentRuntimeConfigProperty.getDesiredCopyCount()- Parameters:
desiredCopyCount- The number of runtime copies of the model container that you requested to deploy with the inference component.- Returns:
this
-
build
@Stability(Stable) public CfnInferenceComponentPropsMixin.InferenceComponentRuntimeConfigProperty build()Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnInferenceComponentPropsMixin.InferenceComponentRuntimeConfigProperty>- Returns:
- a new instance of
CfnInferenceComponentPropsMixin.InferenceComponentRuntimeConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-