Class CfnModelCardPropsMixin.ContainerProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.sagemaker.CfnModelCardPropsMixin.ContainerProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnModelCardPropsMixin.ContainerProperty>
- Enclosing interface:
CfnModelCardPropsMixin.ContainerProperty
@Stability(Stable)
public static final class CfnModelCardPropsMixin.ContainerProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnModelCardPropsMixin.ContainerProperty>
A builder for
CfnModelCardPropsMixin.ContainerProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnModelCardPropsMixin.ContainerProperty.getImage()modelDataUrl(String modelDataUrl) Sets the value ofCfnModelCardPropsMixin.ContainerProperty.getModelDataUrl()nearestModelName(String nearestModelName) Sets the value ofCfnModelCardPropsMixin.ContainerProperty.getNearestModelName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
image
Sets the value ofCfnModelCardPropsMixin.ContainerProperty.getImage()- Parameters:
image- Inference environment path. The Amazon EC2 Container Registry (Amazon ECR) path where inference code is stored.- Returns:
this
-
modelDataUrl
@Stability(Stable) public CfnModelCardPropsMixin.ContainerProperty.Builder modelDataUrl(String modelDataUrl) Sets the value ofCfnModelCardPropsMixin.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 CfnModelCardPropsMixin.ContainerProperty.Builder nearestModelName(String nearestModelName) Sets the value ofCfnModelCardPropsMixin.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:
buildin interfacesoftware.amazon.jsii.Builder<CfnModelCardPropsMixin.ContainerProperty>- Returns:
- a new instance of
CfnModelCardPropsMixin.ContainerProperty - Throws:
NullPointerException- if any required attribute was not provided
-