Class CfnInferenceComponent.InferenceComponentContainerSpecificationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.sagemaker.CfnInferenceComponent.InferenceComponentContainerSpecificationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnInferenceComponent.InferenceComponentContainerSpecificationProperty>
- Enclosing interface:
CfnInferenceComponent.InferenceComponentContainerSpecificationProperty
@Stability(Stable)
public static final class CfnInferenceComponent.InferenceComponentContainerSpecificationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnInferenceComponent.InferenceComponentContainerSpecificationProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionartifactUrl(String artifactUrl) build()Builds the configured instance.deployedImage(IResolvable deployedImage) deployedImage(CfnInferenceComponent.DeployedImageProperty deployedImage) environment(Map<String, String> environment) environment(IResolvable environment)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
artifactUrl
@Stability(Stable) public CfnInferenceComponent.InferenceComponentContainerSpecificationProperty.Builder artifactUrl(String artifactUrl) Sets the value ofCfnInferenceComponent.InferenceComponentContainerSpecificationProperty.getArtifactUrl()- Parameters:
artifactUrl- The Amazon S3 path where the model artifacts, which result from model training, are stored. This path must point to a single gzip compressed tar archive (.tar.gz suffix).- Returns:
this
-
deployedImage
@Stability(Stable) public CfnInferenceComponent.InferenceComponentContainerSpecificationProperty.Builder deployedImage(IResolvable deployedImage) Sets the value ofCfnInferenceComponent.InferenceComponentContainerSpecificationProperty.getDeployedImage()- Parameters:
deployedImage- the value to be set.- Returns:
this
-
deployedImage
@Stability(Stable) public CfnInferenceComponent.InferenceComponentContainerSpecificationProperty.Builder deployedImage(CfnInferenceComponent.DeployedImageProperty deployedImage) Sets the value ofCfnInferenceComponent.InferenceComponentContainerSpecificationProperty.getDeployedImage()- Parameters:
deployedImage- the value to be set.- Returns:
this
-
environment
@Stability(Stable) public CfnInferenceComponent.InferenceComponentContainerSpecificationProperty.Builder environment(Map<String, String> environment) Sets the value ofCfnInferenceComponent.InferenceComponentContainerSpecificationProperty.getEnvironment()- Parameters:
environment- The environment variables to set in the Docker container. Each key and value in the Environment 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 CfnInferenceComponent.InferenceComponentContainerSpecificationProperty.Builder environment(IResolvable environment) Sets the value ofCfnInferenceComponent.InferenceComponentContainerSpecificationProperty.getEnvironment()- Parameters:
environment- The environment variables to set in the Docker container. Each key and value in the Environment string-to-string map can have length of up to 1024. We support up to 16 entries in the map.- Returns:
this
-
image
@Stability(Stable) public CfnInferenceComponent.InferenceComponentContainerSpecificationProperty.Builder image(String image) - Parameters:
image- The Amazon Elastic Container Registry (Amazon ECR) path where the Docker image for the model is stored.- Returns:
this
-
build
@Stability(Stable) public CfnInferenceComponent.InferenceComponentContainerSpecificationProperty build()Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnInferenceComponent.InferenceComponentContainerSpecificationProperty>- Returns:
- a new instance of
CfnInferenceComponent.InferenceComponentContainerSpecificationProperty - Throws:
NullPointerException- if any required attribute was not provided
-