Class CfnInferenceExperiment.ShadowModelVariantConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.sagemaker.CfnInferenceExperiment.ShadowModelVariantConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnInferenceExperiment.ShadowModelVariantConfigProperty>
- Enclosing interface:
CfnInferenceExperiment.ShadowModelVariantConfigProperty
@Stability(Stable)
public static final class CfnInferenceExperiment.ShadowModelVariantConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnInferenceExperiment.ShadowModelVariantConfigProperty>
A builder for
CfnInferenceExperiment.ShadowModelVariantConfigProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.samplingPercentage
(Number samplingPercentage) shadowModelVariantName
(String shadowModelVariantName)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
samplingPercentage
@Stability(Stable) public CfnInferenceExperiment.ShadowModelVariantConfigProperty.Builder samplingPercentage(Number samplingPercentage) - Parameters:
samplingPercentage
- The percentage of inference requests that Amazon SageMaker replicates from the production variant to the shadow variant. This parameter is required.- Returns:
this
-
shadowModelVariantName
@Stability(Stable) public CfnInferenceExperiment.ShadowModelVariantConfigProperty.Builder shadowModelVariantName(String shadowModelVariantName) Sets the value ofCfnInferenceExperiment.ShadowModelVariantConfigProperty.getShadowModelVariantName()
- Parameters:
shadowModelVariantName
- The name of the shadow variant. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnInferenceExperiment.ShadowModelVariantConfigProperty>
- Returns:
- a new instance of
CfnInferenceExperiment.ShadowModelVariantConfigProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-