Class CfnModelCard.ContainerProperty.Builder
java.lang.Object
software.amazon.awscdk.services.sagemaker.CfnModelCard.ContainerProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnModelCard.ContainerProperty>
- Enclosing interface:
CfnModelCard.ContainerProperty
@Stability(Stable)
public static final class CfnModelCard.ContainerProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnModelCard.ContainerProperty>
A builder for
CfnModelCard.ContainerProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnModelCard.ContainerProperty.getImage()
modelDataUrl
(String modelDataUrl) Sets the value ofCfnModelCard.ContainerProperty.getModelDataUrl()
nearestModelName
(String nearestModelName) Sets the value ofCfnModelCard.ContainerProperty.getNearestModelName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
image
Sets the value ofCfnModelCard.ContainerProperty.getImage()
- Parameters:
image
- Inference environment path. This parameter is required. The Amazon EC2 Container Registry (Amazon ECR) path where inference code is stored.- Returns:
this
-
modelDataUrl
Sets the value ofCfnModelCard.ContainerProperty.getModelDataUrl()
- Parameters:
modelDataUrl
- The Amazon S3 path where the model artifacts, which result from model training, are stored.- Returns:
this
-
nearestModelName
@Stability(Stable) public CfnModelCard.ContainerProperty.Builder nearestModelName(String nearestModelName) Sets the value ofCfnModelCard.ContainerProperty.getNearestModelName()
- Parameters:
nearestModelName
- The name of a pre-trained machine learning benchmarked by Amazon SageMaker Inference Recommender model that matches your model.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnModelCard.ContainerProperty>
- Returns:
- a new instance of
CfnModelCard.ContainerProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-