@Stability(value=Experimental) public static final class ContainerOverride.Builder extends Object
ContainerOverride| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
ContainerOverride |
build()
Builds the configured instance.
|
ContainerOverride.Builder |
command(List<String> command)
Sets the value of
ContainerOverride.getCommand() |
ContainerOverride.Builder |
containerName(String containerName)
Sets the value of
ContainerOverride.getContainerName() |
ContainerOverride.Builder |
cpu(Number cpu)
Sets the value of
ContainerOverride.getCpu() |
ContainerOverride.Builder |
environment(List<TaskEnvironmentVariable> environment)
Sets the value of
ContainerOverride.getEnvironment() |
ContainerOverride.Builder |
memoryLimit(Number memoryLimit)
Sets the value of
ContainerOverride.getMemoryLimit() |
ContainerOverride.Builder |
memoryReservation(Number memoryReservation)
Sets the value of
ContainerOverride.getMemoryReservation() |
@Stability(value=Experimental) public ContainerOverride.Builder containerName(String containerName)
ContainerOverride.getContainerName()containerName - Name of the container inside the task definition. This parameter is required.this@Stability(value=Experimental) public ContainerOverride.Builder command(List<String> command)
ContainerOverride.getCommand()command - Command to run inside the container.this@Stability(value=Experimental) public ContainerOverride.Builder cpu(Number cpu)
ContainerOverride.getCpu()cpu - The number of cpu units reserved for the container.this@Stability(value=Experimental) public ContainerOverride.Builder environment(List<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@Stability(value=Experimental) public ContainerOverride.Builder memoryLimit(Number memoryLimit)
ContainerOverride.getMemoryLimit()memoryLimit - The hard limit (in MiB) of memory to present to the container.this@Stability(value=Experimental) public ContainerOverride.Builder memoryReservation(Number memoryReservation)
ContainerOverride.getMemoryReservation()memoryReservation - The soft limit (in MiB) of memory to reserve for the container.this@Stability(value=Experimental) public ContainerOverride build()
ContainerOverrideNullPointerException - if any required attribute was not providedCopyright © 2020. All rights reserved.