Class CfnInferenceExperiment.ModelInfrastructureConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.sagemaker.CfnInferenceExperiment.ModelInfrastructureConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnInferenceExperiment.ModelInfrastructureConfigProperty>
- Enclosing interface:
CfnInferenceExperiment.ModelInfrastructureConfigProperty
@Stability(Stable)
public static final class CfnInferenceExperiment.ModelInfrastructureConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnInferenceExperiment.ModelInfrastructureConfigProperty>
A builder for
CfnInferenceExperiment.ModelInfrastructureConfigProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.infrastructureType
(String infrastructureType) realTimeInferenceConfig
(IResolvable realTimeInferenceConfig) realTimeInferenceConfig
(CfnInferenceExperiment.RealTimeInferenceConfigProperty realTimeInferenceConfig)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
infrastructureType
@Stability(Stable) public CfnInferenceExperiment.ModelInfrastructureConfigProperty.Builder infrastructureType(String infrastructureType) - Parameters:
infrastructureType
- The inference option to which to deploy your model. Possible values are the following:. This parameter is required.RealTime
: Deploy to real-time inference.
- Returns:
this
-
realTimeInferenceConfig
@Stability(Stable) public CfnInferenceExperiment.ModelInfrastructureConfigProperty.Builder realTimeInferenceConfig(IResolvable realTimeInferenceConfig) Sets the value ofCfnInferenceExperiment.ModelInfrastructureConfigProperty.getRealTimeInferenceConfig()
- Parameters:
realTimeInferenceConfig
- The infrastructure configuration for deploying the model to real-time inference. This parameter is required.- Returns:
this
-
realTimeInferenceConfig
@Stability(Stable) public CfnInferenceExperiment.ModelInfrastructureConfigProperty.Builder realTimeInferenceConfig(CfnInferenceExperiment.RealTimeInferenceConfigProperty realTimeInferenceConfig) Sets the value ofCfnInferenceExperiment.ModelInfrastructureConfigProperty.getRealTimeInferenceConfig()
- Parameters:
realTimeInferenceConfig
- The infrastructure configuration for deploying the model to real-time inference. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnInferenceExperiment.ModelInfrastructureConfigProperty>
- Returns:
- a new instance of
CfnInferenceExperiment.ModelInfrastructureConfigProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-