public static interface Container.Builder extends SdkPojo, CopyableBuilder<Container.Builder,Container>
| Modifier and Type | Method and Description |
|---|---|
Container.Builder |
containerArn(String containerArn)
The Amazon Resource Name (ARN) of the container.
|
Container.Builder |
cpu(String cpu)
The number of CPU units set for the container.
|
Container.Builder |
exitCode(Integer exitCode)
The exit code returned from the container.
|
Container.Builder |
gpuIds(Collection<String> gpuIds)
The IDs of each GPU assigned to the container.
|
Container.Builder |
gpuIds(String... gpuIds)
The IDs of each GPU assigned to the container.
|
Container.Builder |
healthStatus(HealthStatus healthStatus)
The health status of the container.
|
Container.Builder |
healthStatus(String healthStatus)
The health status of the container.
|
Container.Builder |
image(String image)
The image used for the container.
|
Container.Builder |
imageDigest(String imageDigest)
The container image manifest digest.
|
Container.Builder |
lastStatus(String lastStatus)
The last known status of the container.
|
Container.Builder |
managedAgents(Collection<ManagedAgent> managedAgents)
The details of any Amazon ECS managed agents associated with the container.
|
Container.Builder |
managedAgents(Consumer<ManagedAgent.Builder>... managedAgents)
The details of any Amazon ECS managed agents associated with the container.
|
Container.Builder |
managedAgents(ManagedAgent... managedAgents)
The details of any Amazon ECS managed agents associated with the container.
|
Container.Builder |
memory(String memory)
The hard limit (in MiB) of memory set for the container.
|
Container.Builder |
memoryReservation(String memoryReservation)
The soft limit (in MiB) of memory set for the container.
|
Container.Builder |
name(String name)
The name of the container.
|
Container.Builder |
networkBindings(Collection<NetworkBinding> networkBindings)
The network bindings associated with the container.
|
Container.Builder |
networkBindings(Consumer<NetworkBinding.Builder>... networkBindings)
The network bindings associated with the container.
|
Container.Builder |
networkBindings(NetworkBinding... networkBindings)
The network bindings associated with the container.
|
Container.Builder |
networkInterfaces(Collection<NetworkInterface> networkInterfaces)
The network interfaces associated with the container.
|
Container.Builder |
networkInterfaces(Consumer<NetworkInterface.Builder>... networkInterfaces)
The network interfaces associated with the container.
|
Container.Builder |
networkInterfaces(NetworkInterface... networkInterfaces)
The network interfaces associated with the container.
|
Container.Builder |
reason(String reason)
A short (255 max characters) human-readable string to provide additional details about a running or stopped
container.
|
Container.Builder |
runtimeId(String runtimeId)
The ID of the Docker container.
|
Container.Builder |
taskArn(String taskArn)
The ARN of the task.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildContainer.Builder containerArn(String containerArn)
The Amazon Resource Name (ARN) of the container.
containerArn - The Amazon Resource Name (ARN) of the container.Container.Builder taskArn(String taskArn)
The ARN of the task.
taskArn - The ARN of the task.Container.Builder name(String name)
The name of the container.
name - The name of the container.Container.Builder image(String image)
The image used for the container.
image - The image used for the container.Container.Builder imageDigest(String imageDigest)
The container image manifest digest.
imageDigest - The container image manifest digest.Container.Builder runtimeId(String runtimeId)
The ID of the Docker container.
runtimeId - The ID of the Docker container.Container.Builder lastStatus(String lastStatus)
The last known status of the container.
lastStatus - The last known status of the container.Container.Builder exitCode(Integer exitCode)
The exit code returned from the container.
exitCode - The exit code returned from the container.Container.Builder reason(String reason)
A short (255 max characters) human-readable string to provide additional details about a running or stopped container.
reason - A short (255 max characters) human-readable string to provide additional details about a running or
stopped container.Container.Builder networkBindings(Collection<NetworkBinding> networkBindings)
The network bindings associated with the container.
networkBindings - The network bindings associated with the container.Container.Builder networkBindings(NetworkBinding... networkBindings)
The network bindings associated with the container.
networkBindings - The network bindings associated with the container.Container.Builder networkBindings(Consumer<NetworkBinding.Builder>... networkBindings)
The network bindings associated with the container.
This is a convenience method that creates an instance of theNetworkBinding.Builder avoiding the need to create one
manually via NetworkBinding.builder().
When the Consumer completes,
SdkBuilder.build() is called immediately and
its result is passed to #networkBindings(List.
networkBindings - a consumer that will call methods on
NetworkBinding.Builder#networkBindings(java.util.Collection) Container.Builder networkInterfaces(Collection<NetworkInterface> networkInterfaces)
The network interfaces associated with the container.
networkInterfaces - The network interfaces associated with the container.Container.Builder networkInterfaces(NetworkInterface... networkInterfaces)
The network interfaces associated with the container.
networkInterfaces - The network interfaces associated with the container.Container.Builder networkInterfaces(Consumer<NetworkInterface.Builder>... networkInterfaces)
The network interfaces associated with the container.
This is a convenience method that creates an instance of theNetworkInterface.Builder avoiding the need to create one
manually via NetworkInterface.builder().
When the Consumer completes,
SdkBuilder.build() is called immediately and
its result is passed to #networkInterfaces(List.
networkInterfaces - a consumer that will call methods on
NetworkInterface.Builder#networkInterfaces(java.util.Collection) Container.Builder healthStatus(String healthStatus)
The health status of the container. If health checks aren't configured for this container in its task
definition, then it reports the health status as UNKNOWN.
healthStatus - The health status of the container. If health checks aren't configured for this container in its task
definition, then it reports the health status as UNKNOWN.HealthStatus,
HealthStatusContainer.Builder healthStatus(HealthStatus healthStatus)
The health status of the container. If health checks aren't configured for this container in its task
definition, then it reports the health status as UNKNOWN.
healthStatus - The health status of the container. If health checks aren't configured for this container in its task
definition, then it reports the health status as UNKNOWN.HealthStatus,
HealthStatusContainer.Builder managedAgents(Collection<ManagedAgent> managedAgents)
The details of any Amazon ECS managed agents associated with the container.
managedAgents - The details of any Amazon ECS managed agents associated with the container.Container.Builder managedAgents(ManagedAgent... managedAgents)
The details of any Amazon ECS managed agents associated with the container.
managedAgents - The details of any Amazon ECS managed agents associated with the container.Container.Builder managedAgents(Consumer<ManagedAgent.Builder>... managedAgents)
The details of any Amazon ECS managed agents associated with the container.
This is a convenience method that creates an instance of theManagedAgent.Builder avoiding the need to create one
manually via ManagedAgent.builder().
When the Consumer completes,
SdkBuilder.build() is called immediately and its
result is passed to #managedAgents(List.
managedAgents - a consumer that will call methods on
ManagedAgent.Builder#managedAgents(java.util.Collection) Container.Builder cpu(String cpu)
The number of CPU units set for the container. The value is 0 if no value was specified in the
container definition when the task definition was registered.
cpu - The number of CPU units set for the container. The value is 0 if no value was specified
in the container definition when the task definition was registered.Container.Builder memory(String memory)
The hard limit (in MiB) of memory set for the container.
memory - The hard limit (in MiB) of memory set for the container.Container.Builder memoryReservation(String memoryReservation)
The soft limit (in MiB) of memory set for the container.
memoryReservation - The soft limit (in MiB) of memory set for the container.Container.Builder gpuIds(Collection<String> gpuIds)
The IDs of each GPU assigned to the container.
gpuIds - The IDs of each GPU assigned to the container.Container.Builder gpuIds(String... gpuIds)
The IDs of each GPU assigned to the container.
gpuIds - The IDs of each GPU assigned to the container.Copyright © 2023. All rights reserved.