Class CfnInferenceExperimentPropsMixin.ShadowModelVariantConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.sagemaker.CfnInferenceExperimentPropsMixin.ShadowModelVariantConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnInferenceExperimentPropsMixin.ShadowModelVariantConfigProperty>
- Enclosing interface:
CfnInferenceExperimentPropsMixin.ShadowModelVariantConfigProperty
@Stability(Stable)
public static final class CfnInferenceExperimentPropsMixin.ShadowModelVariantConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnInferenceExperimentPropsMixin.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 CfnInferenceExperimentPropsMixin.ShadowModelVariantConfigProperty.Builder samplingPercentage(Number samplingPercentage) Sets the value ofCfnInferenceExperimentPropsMixin.ShadowModelVariantConfigProperty.getSamplingPercentage()- Parameters:
samplingPercentage- The percentage of inference requests that Amazon SageMaker replicates from the production variant to the shadow variant.- Returns:
this
-
shadowModelVariantName
@Stability(Stable) public CfnInferenceExperimentPropsMixin.ShadowModelVariantConfigProperty.Builder shadowModelVariantName(String shadowModelVariantName) Sets the value ofCfnInferenceExperimentPropsMixin.ShadowModelVariantConfigProperty.getShadowModelVariantName()- Parameters:
shadowModelVariantName- The name of the shadow variant.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnInferenceExperimentPropsMixin.ShadowModelVariantConfigProperty>- Returns:
- a new instance of
CfnInferenceExperimentPropsMixin.ShadowModelVariantConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-