Class CfnPipePropsMixin.EcsContainerOverrideProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.pipes.CfnPipePropsMixin.EcsContainerOverrideProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPipePropsMixin.EcsContainerOverrideProperty>
- Enclosing interface:
CfnPipePropsMixin.EcsContainerOverrideProperty
@Stability(Stable)
public static final class CfnPipePropsMixin.EcsContainerOverrideProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPipePropsMixin.EcsContainerOverrideProperty>
A builder for
CfnPipePropsMixin.EcsContainerOverrideProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnPipePropsMixin.EcsContainerOverrideProperty.getCommand()Sets the value ofCfnPipePropsMixin.EcsContainerOverrideProperty.getCpu()environment(List<? extends Object> environment) Sets the value ofCfnPipePropsMixin.EcsContainerOverrideProperty.getEnvironment()environment(IResolvable environment) Sets the value ofCfnPipePropsMixin.EcsContainerOverrideProperty.getEnvironment()environmentFiles(List<? extends Object> environmentFiles) Sets the value ofCfnPipePropsMixin.EcsContainerOverrideProperty.getEnvironmentFiles()environmentFiles(IResolvable environmentFiles) Sets the value ofCfnPipePropsMixin.EcsContainerOverrideProperty.getEnvironmentFiles()Sets the value ofCfnPipePropsMixin.EcsContainerOverrideProperty.getMemory()memoryReservation(Number memoryReservation) Sets the value ofCfnPipePropsMixin.EcsContainerOverrideProperty.getMemoryReservation()Sets the value ofCfnPipePropsMixin.EcsContainerOverrideProperty.getName()resourceRequirements(List<? extends Object> resourceRequirements) Sets the value ofCfnPipePropsMixin.EcsContainerOverrideProperty.getResourceRequirements()resourceRequirements(IResolvable resourceRequirements) Sets the value ofCfnPipePropsMixin.EcsContainerOverrideProperty.getResourceRequirements()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
command
@Stability(Stable) public CfnPipePropsMixin.EcsContainerOverrideProperty.Builder command(List<String> command) Sets the value ofCfnPipePropsMixin.EcsContainerOverrideProperty.getCommand()- Parameters:
command- The command to send to the container that overrides the default command from the Docker image or the task definition. You must also specify a container name.- Returns:
this
-
cpu
Sets the value ofCfnPipePropsMixin.EcsContainerOverrideProperty.getCpu()- Parameters:
cpu- The number ofcpuunits reserved for the container, instead of the default value from the task definition. You must also specify a container name.- Returns:
this
-
environment
@Stability(Stable) public CfnPipePropsMixin.EcsContainerOverrideProperty.Builder environment(IResolvable environment) Sets the value ofCfnPipePropsMixin.EcsContainerOverrideProperty.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. You must also specify a container name.- Returns:
this
-
environment
@Stability(Stable) public CfnPipePropsMixin.EcsContainerOverrideProperty.Builder environment(List<? extends Object> environment) Sets the value ofCfnPipePropsMixin.EcsContainerOverrideProperty.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. You must also specify a container name.- Returns:
this
-
environmentFiles
@Stability(Stable) public CfnPipePropsMixin.EcsContainerOverrideProperty.Builder environmentFiles(IResolvable environmentFiles) Sets the value ofCfnPipePropsMixin.EcsContainerOverrideProperty.getEnvironmentFiles()- Parameters:
environmentFiles- A list of files containing the environment variables to pass to a container, instead of the value from the container definition.- Returns:
this
-
environmentFiles
@Stability(Stable) public CfnPipePropsMixin.EcsContainerOverrideProperty.Builder environmentFiles(List<? extends Object> environmentFiles) Sets the value ofCfnPipePropsMixin.EcsContainerOverrideProperty.getEnvironmentFiles()- Parameters:
environmentFiles- A list of files containing the environment variables to pass to a container, instead of the value from the container definition.- Returns:
this
-
memory
@Stability(Stable) public CfnPipePropsMixin.EcsContainerOverrideProperty.Builder memory(Number memory) Sets the value ofCfnPipePropsMixin.EcsContainerOverrideProperty.getMemory()- Parameters:
memory- The hard limit (in MiB) of memory to present to the container, instead of the default value from the task definition. If your container attempts to exceed the memory specified here, the container is killed. You must also specify a container name.- Returns:
this
-
memoryReservation
@Stability(Stable) public CfnPipePropsMixin.EcsContainerOverrideProperty.Builder memoryReservation(Number memoryReservation) Sets the value ofCfnPipePropsMixin.EcsContainerOverrideProperty.getMemoryReservation()- Parameters:
memoryReservation- The soft limit (in MiB) of memory to reserve for the container, instead of the default value from the task definition. You must also specify a container name.- Returns:
this
-
name
Sets the value ofCfnPipePropsMixin.EcsContainerOverrideProperty.getName()- Parameters:
name- The name of the container that receives the override. This parameter is required if any override is specified.- Returns:
this
-
resourceRequirements
@Stability(Stable) public CfnPipePropsMixin.EcsContainerOverrideProperty.Builder resourceRequirements(IResolvable resourceRequirements) Sets the value ofCfnPipePropsMixin.EcsContainerOverrideProperty.getResourceRequirements()- Parameters:
resourceRequirements- The type and amount of a resource to assign to a container, instead of the default value from the task definition. The only supported resource is a GPU.- Returns:
this
-
resourceRequirements
@Stability(Stable) public CfnPipePropsMixin.EcsContainerOverrideProperty.Builder resourceRequirements(List<? extends Object> resourceRequirements) Sets the value ofCfnPipePropsMixin.EcsContainerOverrideProperty.getResourceRequirements()- Parameters:
resourceRequirements- The type and amount of a resource to assign to a container, instead of the default value from the task definition. The only supported resource is a GPU.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnPipePropsMixin.EcsContainerOverrideProperty>- Returns:
- a new instance of
CfnPipePropsMixin.EcsContainerOverrideProperty - Throws:
NullPointerException- if any required attribute was not provided
-