@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 |
withCommand(List<String> value)
Sets the value of Command
|
ContainerOverride.Builder |
withContainerName(String value)
Sets the value of ContainerName
|
ContainerOverride.Builder |
withCpu(Number value)
Sets the value of Cpu
|
ContainerOverride.Builder |
withEnvironment(List<TaskEnvironmentVariable> value)
Sets the value of Environment
|
ContainerOverride.Builder |
withMemoryLimit(Number value)
Sets the value of MemoryLimit
|
ContainerOverride.Builder |
withMemoryReservation(Number value)
Sets the value of MemoryReservation
|
@Stability(value=Experimental) public ContainerOverride.Builder withContainerName(String value)
value - Name of the container inside the task definition.this@Stability(value=Experimental) public ContainerOverride.Builder withCommand(@Nullable List<String> value)
value - Command to run inside the container.this@Stability(value=Experimental) public ContainerOverride.Builder withCpu(@Nullable Number value)
value - The number of cpu units reserved for the container.this@Stability(value=Experimental) public ContainerOverride.Builder withEnvironment(@Nullable List<TaskEnvironmentVariable> value)
value - Variables to set in the container's environment.this@Stability(value=Experimental) public ContainerOverride.Builder withMemoryLimit(@Nullable Number value)
value - Hard memory limit on the container.this@Stability(value=Experimental) public ContainerOverride.Builder withMemoryReservation(@Nullable Number value)
value - Soft memory limit on the container.this@Stability(value=Experimental) public ContainerOverride build()
ContainerOverrideNullPointerException - if any required attribute was not providedCopyright © 2019. All rights reserved.