Class CfnPipePropsMixin.BatchContainerOverridesProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.pipes.CfnPipePropsMixin.BatchContainerOverridesProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPipePropsMixin.BatchContainerOverridesProperty>
- Enclosing interface:
CfnPipePropsMixin.BatchContainerOverridesProperty
@Stability(Stable)
public static final class CfnPipePropsMixin.BatchContainerOverridesProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPipePropsMixin.BatchContainerOverridesProperty>
A builder for
CfnPipePropsMixin.BatchContainerOverridesProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnPipePropsMixin.BatchContainerOverridesProperty.getCommand()environment(List<? extends Object> environment) Sets the value ofCfnPipePropsMixin.BatchContainerOverridesProperty.getEnvironment()environment(IResolvable environment) Sets the value ofCfnPipePropsMixin.BatchContainerOverridesProperty.getEnvironment()instanceType(String instanceType) Sets the value ofCfnPipePropsMixin.BatchContainerOverridesProperty.getInstanceType()resourceRequirements(List<? extends Object> resourceRequirements) resourceRequirements(IResolvable resourceRequirements)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
command
@Stability(Stable) public CfnPipePropsMixin.BatchContainerOverridesProperty.Builder command(List<String> command) Sets the value ofCfnPipePropsMixin.BatchContainerOverridesProperty.getCommand()- Parameters:
command- The command to send to the container that overrides the default command from the Docker image or the task definition.- Returns:
this
-
environment
@Stability(Stable) public CfnPipePropsMixin.BatchContainerOverridesProperty.Builder environment(IResolvable environment) Sets the value ofCfnPipePropsMixin.BatchContainerOverridesProperty.getEnvironment()- Parameters:
environment- The environment variables to send to the container. You can add new environment variables, which are added to the container at launch, or you can override the existing environment variables from the Docker image or the task definition.Environment variables cannot start with "
AWS Batch". This naming convention is reserved for variables that AWS Batch sets.- Returns:
this
-
environment
@Stability(Stable) public CfnPipePropsMixin.BatchContainerOverridesProperty.Builder environment(List<? extends Object> environment) Sets the value ofCfnPipePropsMixin.BatchContainerOverridesProperty.getEnvironment()- Parameters:
environment- The environment variables to send to the container. You can add new environment variables, which are added to the container at launch, or you can override the existing environment variables from the Docker image or the task definition.Environment variables cannot start with "
AWS Batch". This naming convention is reserved for variables that AWS Batch sets.- Returns:
this
-
instanceType
@Stability(Stable) public CfnPipePropsMixin.BatchContainerOverridesProperty.Builder instanceType(String instanceType) Sets the value ofCfnPipePropsMixin.BatchContainerOverridesProperty.getInstanceType()- Parameters:
instanceType- The instance type to use for a multi-node parallel job.This parameter isn't applicable to single-node container jobs or jobs that run on Fargate resources, and shouldn't be provided.
- Returns:
this
-
resourceRequirements
@Stability(Stable) public CfnPipePropsMixin.BatchContainerOverridesProperty.Builder resourceRequirements(IResolvable resourceRequirements) - Parameters:
resourceRequirements- The type and amount of resources to assign to a container. This overrides the settings in the job definition. The supported resources includeGPU,MEMORY, andVCPU.- Returns:
this
-
resourceRequirements
@Stability(Stable) public CfnPipePropsMixin.BatchContainerOverridesProperty.Builder resourceRequirements(List<? extends Object> resourceRequirements) - Parameters:
resourceRequirements- The type and amount of resources to assign to a container. This overrides the settings in the job definition. The supported resources includeGPU,MEMORY, andVCPU.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnPipePropsMixin.BatchContainerOverridesProperty>- Returns:
- a new instance of
CfnPipePropsMixin.BatchContainerOverridesProperty - Throws:
NullPointerException- if any required attribute was not provided
-