Class CfnModelPackage.ModelPackageContainerDefinitionProperty.Builder
java.lang.Object
software.amazon.awscdk.services.sagemaker.CfnModelPackage.ModelPackageContainerDefinitionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnModelPackage.ModelPackageContainerDefinitionProperty>
- Enclosing interface:
CfnModelPackage.ModelPackageContainerDefinitionProperty
@Stability(Stable)
public static final class CfnModelPackage.ModelPackageContainerDefinitionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnModelPackage.ModelPackageContainerDefinitionProperty>
A builder for
CfnModelPackage.ModelPackageContainerDefinitionProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.containerHostname
(String containerHostname) environment
(Map<String, String> environment) Sets the value ofCfnModelPackage.ModelPackageContainerDefinitionProperty.getEnvironment()
environment
(IResolvable environment) Sets the value ofCfnModelPackage.ModelPackageContainerDefinitionProperty.getEnvironment()
Sets the value ofCfnModelPackage.ModelPackageContainerDefinitionProperty.getFramework()
frameworkVersion
(String frameworkVersion) Sets the value ofCfnModelPackage.ModelPackageContainerDefinitionProperty.getImage()
imageDigest
(String imageDigest) Sets the value ofCfnModelPackage.ModelPackageContainerDefinitionProperty.getImageDigest()
modelDataSource
(IResolvable modelDataSource) modelDataSource
(CfnModelPackage.ModelDataSourceProperty modelDataSource) modelDataUrl
(String modelDataUrl) modelInput
(Object modelInput) Sets the value ofCfnModelPackage.ModelPackageContainerDefinitionProperty.getModelInput()
nearestModelName
(String nearestModelName)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
image
@Stability(Stable) public CfnModelPackage.ModelPackageContainerDefinitionProperty.Builder image(String image) Sets the value ofCfnModelPackage.ModelPackageContainerDefinitionProperty.getImage()
- Parameters:
image
- The Amazon EC2 Container Registry (Amazon ECR) path where inference code is stored. This parameter is required. If you are using your own custom algorithm instead of an algorithm provided by SageMaker, the inference code must meet SageMaker requirements. SageMaker supports bothregistry/repository[:tag]
andregistry/repository[@digest]
image path formats. For more information, see Using Your Own Algorithms with Amazon SageMaker .- Returns:
this
-
containerHostname
@Stability(Stable) public CfnModelPackage.ModelPackageContainerDefinitionProperty.Builder containerHostname(String containerHostname) - Parameters:
containerHostname
- The DNS host name for the Docker container.- Returns:
this
-
environment
@Stability(Stable) public CfnModelPackage.ModelPackageContainerDefinitionProperty.Builder environment(IResolvable environment) Sets the value ofCfnModelPackage.ModelPackageContainerDefinitionProperty.getEnvironment()
- Parameters:
environment
- The environment variables to set in the Docker container. Each key and value in theEnvironment
string to string map can have length of up to 1024. We support up to 16 entries in the map.- Returns:
this
-
environment
@Stability(Stable) public CfnModelPackage.ModelPackageContainerDefinitionProperty.Builder environment(Map<String, String> environment) Sets the value ofCfnModelPackage.ModelPackageContainerDefinitionProperty.getEnvironment()
- Parameters:
environment
- The environment variables to set in the Docker container. Each key and value in theEnvironment
string to string map can have length of up to 1024. We support up to 16 entries in the map.- Returns:
this
-
framework
@Stability(Stable) public CfnModelPackage.ModelPackageContainerDefinitionProperty.Builder framework(String framework) Sets the value ofCfnModelPackage.ModelPackageContainerDefinitionProperty.getFramework()
- Parameters:
framework
- The machine learning framework of the model package container image.- Returns:
this
-
frameworkVersion
@Stability(Stable) public CfnModelPackage.ModelPackageContainerDefinitionProperty.Builder frameworkVersion(String frameworkVersion) - Parameters:
frameworkVersion
- The framework version of the Model Package Container Image.- Returns:
this
-
imageDigest
@Stability(Stable) public CfnModelPackage.ModelPackageContainerDefinitionProperty.Builder imageDigest(String imageDigest) Sets the value ofCfnModelPackage.ModelPackageContainerDefinitionProperty.getImageDigest()
- Parameters:
imageDigest
- An MD5 hash of the training algorithm that identifies the Docker image used for training.- Returns:
this
-
modelDataSource
@Stability(Stable) public CfnModelPackage.ModelPackageContainerDefinitionProperty.Builder modelDataSource(IResolvable modelDataSource) - Parameters:
modelDataSource
- Specifies the location of ML model data to deploy during endpoint creation.- Returns:
this
-
modelDataSource
@Stability(Stable) public CfnModelPackage.ModelPackageContainerDefinitionProperty.Builder modelDataSource(CfnModelPackage.ModelDataSourceProperty modelDataSource) - Parameters:
modelDataSource
- Specifies the location of ML model data to deploy during endpoint creation.- Returns:
this
-
modelDataUrl
@Stability(Stable) public CfnModelPackage.ModelPackageContainerDefinitionProperty.Builder modelDataUrl(String modelDataUrl) - Parameters:
modelDataUrl
- The Amazon S3 path where the model artifacts, which result from model training, are stored. This path must point to a singlegzip
compressed tar archive (.tar.gz
suffix).The model artifacts must be in an S3 bucket that is in the same region as the model package.
- Returns:
this
-
modelInput
@Stability(Stable) public CfnModelPackage.ModelPackageContainerDefinitionProperty.Builder modelInput(Object modelInput) Sets the value ofCfnModelPackage.ModelPackageContainerDefinitionProperty.getModelInput()
- Parameters:
modelInput
- A structure with Model Input details.- Returns:
this
-
nearestModelName
@Stability(Stable) public CfnModelPackage.ModelPackageContainerDefinitionProperty.Builder nearestModelName(String nearestModelName) - Parameters:
nearestModelName
- The name of a pre-trained machine learning benchmarked by Amazon SageMaker Inference Recommender model that matches your model. You can find a list of benchmarked models by callingListModelMetadata
.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnModelPackage.ModelPackageContainerDefinitionProperty>
- Returns:
- a new instance of
CfnModelPackage.ModelPackageContainerDefinitionProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-