public static final class ContainerOverride.Builder
extends java.lang.Object
ContainerOverride
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
ContainerOverride |
build()
Builds the configured instance.
|
ContainerOverride.Builder |
command(java.util.List<java.lang.String> command)
Sets the value of
ContainerOverride.getCommand() |
ContainerOverride.Builder |
containerDefinition(ContainerDefinition containerDefinition)
Sets the value of
ContainerOverride.getContainerDefinition() |
ContainerOverride.Builder |
cpu(java.lang.Number cpu)
Sets the value of
ContainerOverride.getCpu() |
ContainerOverride.Builder |
environment(java.util.List<? extends TaskEnvironmentVariable> environment)
Sets the value of
ContainerOverride.getEnvironment() |
ContainerOverride.Builder |
memoryLimit(java.lang.Number memoryLimit)
Sets the value of
ContainerOverride.getMemoryLimit() |
ContainerOverride.Builder |
memoryReservation(java.lang.Number memoryReservation)
Sets the value of
ContainerOverride.getMemoryReservation() |
public ContainerOverride.Builder containerDefinition(ContainerDefinition containerDefinition)
ContainerOverride.getContainerDefinition()
containerDefinition
- Name of the container inside the task definition. This parameter is required.this
public ContainerOverride.Builder command(java.util.List<java.lang.String> command)
ContainerOverride.getCommand()
command
- Command to run inside the container.this
public ContainerOverride.Builder cpu(java.lang.Number cpu)
ContainerOverride.getCpu()
cpu
- The number of cpu units reserved for the container.this
public ContainerOverride.Builder environment(java.util.List<? extends TaskEnvironmentVariable> environment)
ContainerOverride.getEnvironment()
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.this
public ContainerOverride.Builder memoryLimit(java.lang.Number memoryLimit)
ContainerOverride.getMemoryLimit()
memoryLimit
- The hard limit (in MiB) of memory to present to the container.this
public ContainerOverride.Builder memoryReservation(java.lang.Number memoryReservation)
ContainerOverride.getMemoryReservation()
memoryReservation
- The soft limit (in MiB) of memory to reserve for the container.this
public ContainerOverride build()
ContainerOverride
java.lang.NullPointerException
- if any required attribute was not provided