Class ContainerDefinitionOptions.Builder
java.lang.Object
software.amazon.awscdk.services.stepfunctions.tasks.ContainerDefinitionOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ContainerDefinitionOptions>
- Enclosing interface:
ContainerDefinitionOptions
@Stability(Stable)
public static final class ContainerDefinitionOptions.Builder
extends Object
implements software.amazon.jsii.Builder<ContainerDefinitionOptions>
A builder for
ContainerDefinitionOptions-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.containerHostName(String containerHostName) Sets the value ofContainerDefinitionOptions.getContainerHostName()environmentVariables(TaskInput environmentVariables) Sets the value ofContainerDefinitionOptions.getEnvironmentVariables()image(DockerImage image) Sets the value ofContainerDefinitionOptions.getImage()Sets the value ofContainerDefinitionOptions.getMode()modelPackageName(String modelPackageName) Sets the value ofContainerDefinitionOptions.getModelPackageName()modelS3Location(S3Location modelS3Location) Sets the value ofContainerDefinitionOptions.getModelS3Location()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
containerHostName
@Stability(Stable) public ContainerDefinitionOptions.Builder containerHostName(String containerHostName) Sets the value ofContainerDefinitionOptions.getContainerHostName()- Parameters:
containerHostName- This parameter is ignored for models that contain only a PrimaryContainer. When a ContainerDefinition is part of an inference pipeline, the value of the parameter uniquely identifies the container for the purposes of logging and metrics.- Returns:
this
-
environmentVariables
@Stability(Stable) public ContainerDefinitionOptions.Builder environmentVariables(TaskInput environmentVariables) Sets the value ofContainerDefinitionOptions.getEnvironmentVariables()- Parameters:
environmentVariables- The environment variables to set in the Docker container.- Returns:
this
-
image
Sets the value ofContainerDefinitionOptions.getImage()- Parameters:
image- The Amazon EC2 Container Registry (Amazon ECR) path where inference code is stored.- Returns:
this
-
mode
Sets the value ofContainerDefinitionOptions.getMode()- Parameters:
mode- Defines how many models the container hosts.- Returns:
this
-
modelPackageName
@Stability(Stable) public ContainerDefinitionOptions.Builder modelPackageName(String modelPackageName) Sets the value ofContainerDefinitionOptions.getModelPackageName()- Parameters:
modelPackageName- The name or Amazon Resource Name (ARN) of the model package to use to create the model.- Returns:
this
-
modelS3Location
@Stability(Stable) public ContainerDefinitionOptions.Builder modelS3Location(S3Location modelS3Location) Sets the value ofContainerDefinitionOptions.getModelS3Location()- Parameters:
modelS3Location- The 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). The S3 path is required for Amazon SageMaker built-in algorithms, but not if you use your own algorithms.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ContainerDefinitionOptions>- Returns:
- a new instance of
ContainerDefinitionOptions - Throws:
NullPointerException- if any required attribute was not provided
-