Class CfnInferenceComponent.InferenceComponentRuntimeConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.sagemaker.CfnInferenceComponent.InferenceComponentRuntimeConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnInferenceComponent.InferenceComponentRuntimeConfigProperty>
- Enclosing interface:
CfnInferenceComponent.InferenceComponentRuntimeConfigProperty
@Stability(Stable)
public static final class CfnInferenceComponent.InferenceComponentRuntimeConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnInferenceComponent.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 CfnInferenceComponent.InferenceComponentRuntimeConfigProperty.Builder copyCount(Number copyCount) - 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 CfnInferenceComponent.InferenceComponentRuntimeConfigProperty.Builder currentCopyCount(Number currentCopyCount) Sets the value ofCfnInferenceComponent.InferenceComponentRuntimeConfigProperty.getCurrentCopyCount()- Parameters:
currentCopyCount- The number of runtime copies of the model container that are currently deployed.- Returns:
this
-
desiredCopyCount
@Stability(Stable) public CfnInferenceComponent.InferenceComponentRuntimeConfigProperty.Builder desiredCopyCount(Number desiredCopyCount) Sets the value ofCfnInferenceComponent.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
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnInferenceComponent.InferenceComponentRuntimeConfigProperty>- Returns:
- a new instance of
CfnInferenceComponent.InferenceComponentRuntimeConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-