Class CfnInferenceComponentPropsMixin.InferenceComponentContainerSpecificationProperty.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.sagemaker.mixins.CfnInferenceComponentPropsMixin.InferenceComponentContainerSpecificationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnInferenceComponentPropsMixin.InferenceComponentContainerSpecificationProperty>
- Enclosing interface:
CfnInferenceComponentPropsMixin.InferenceComponentContainerSpecificationProperty
@Stability(Stable)
public static final class CfnInferenceComponentPropsMixin.InferenceComponentContainerSpecificationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnInferenceComponentPropsMixin.InferenceComponentContainerSpecificationProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionartifactUrl(String artifactUrl) build()Builds the configured instance.deployedImage(IResolvable deployedImage) environment(Map<String, String> environment) environment(IResolvable environment)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
artifactUrl
@Stability(Stable) public CfnInferenceComponentPropsMixin.InferenceComponentContainerSpecificationProperty.Builder artifactUrl(String artifactUrl) Sets the value ofCfnInferenceComponentPropsMixin.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 CfnInferenceComponentPropsMixin.InferenceComponentContainerSpecificationProperty.Builder deployedImage(IResolvable deployedImage) Sets the value ofCfnInferenceComponentPropsMixin.InferenceComponentContainerSpecificationProperty.getDeployedImage()- Parameters:
deployedImage- the value to be set.- Returns:
this
-
deployedImage
@Stability(Stable) public CfnInferenceComponentPropsMixin.InferenceComponentContainerSpecificationProperty.Builder deployedImage(CfnInferenceComponentPropsMixin.DeployedImageProperty deployedImage) Sets the value ofCfnInferenceComponentPropsMixin.InferenceComponentContainerSpecificationProperty.getDeployedImage()- Parameters:
deployedImage- the value to be set.- Returns:
this
-
environment
@Stability(Stable) public CfnInferenceComponentPropsMixin.InferenceComponentContainerSpecificationProperty.Builder environment(Map<String, String> environment) Sets the value ofCfnInferenceComponentPropsMixin.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 CfnInferenceComponentPropsMixin.InferenceComponentContainerSpecificationProperty.Builder environment(IResolvable environment) Sets the value ofCfnInferenceComponentPropsMixin.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 CfnInferenceComponentPropsMixin.InferenceComponentContainerSpecificationProperty.Builder image(String image) Sets the value ofCfnInferenceComponentPropsMixin.InferenceComponentContainerSpecificationProperty.getImage()- 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 CfnInferenceComponentPropsMixin.InferenceComponentContainerSpecificationProperty build()Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnInferenceComponentPropsMixin.InferenceComponentContainerSpecificationProperty>- Returns:
- a new instance of
CfnInferenceComponentPropsMixin.InferenceComponentContainerSpecificationProperty - Throws:
NullPointerException- if any required attribute was not provided
-