Class CfnInferenceExperiment.ModelVariantConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.sagemaker.CfnInferenceExperiment.ModelVariantConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnInferenceExperiment.ModelVariantConfigProperty>
- Enclosing interface:
CfnInferenceExperiment.ModelVariantConfigProperty
@Stability(Stable)
public static final class CfnInferenceExperiment.ModelVariantConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnInferenceExperiment.ModelVariantConfigProperty>
A builder for
CfnInferenceExperiment.ModelVariantConfigProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.infrastructureConfig
(IResolvable infrastructureConfig) infrastructureConfig
(CfnInferenceExperiment.ModelInfrastructureConfigProperty infrastructureConfig) Sets the value ofCfnInferenceExperiment.ModelVariantConfigProperty.getModelName()
variantName
(String variantName) Sets the value ofCfnInferenceExperiment.ModelVariantConfigProperty.getVariantName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
infrastructureConfig
@Stability(Stable) public CfnInferenceExperiment.ModelVariantConfigProperty.Builder infrastructureConfig(IResolvable infrastructureConfig) - Parameters:
infrastructureConfig
- The configuration for the infrastructure that the model will be deployed to. This parameter is required.- Returns:
this
-
infrastructureConfig
@Stability(Stable) public CfnInferenceExperiment.ModelVariantConfigProperty.Builder infrastructureConfig(CfnInferenceExperiment.ModelInfrastructureConfigProperty infrastructureConfig) - Parameters:
infrastructureConfig
- The configuration for the infrastructure that the model will be deployed to. This parameter is required.- Returns:
this
-
modelName
@Stability(Stable) public CfnInferenceExperiment.ModelVariantConfigProperty.Builder modelName(String modelName) Sets the value ofCfnInferenceExperiment.ModelVariantConfigProperty.getModelName()
- Parameters:
modelName
- The name of the Amazon SageMaker Model entity. This parameter is required.- Returns:
this
-
variantName
@Stability(Stable) public CfnInferenceExperiment.ModelVariantConfigProperty.Builder variantName(String variantName) Sets the value ofCfnInferenceExperiment.ModelVariantConfigProperty.getVariantName()
- Parameters:
variantName
- The name of the variant. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnInferenceExperiment.ModelVariantConfigProperty>
- Returns:
- a new instance of
CfnInferenceExperiment.ModelVariantConfigProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-