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 |
exitCode(Integer exitCode)
The exit code returned from 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 |
lastStatus(String lastStatus)
The last known status of 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 |
taskArn(String taskArn)
The ARN of the task.
|
copy
applyMutation, build
Container.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 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 that creates an instance of theList.Builder
avoiding the need
to create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately and
its result is passed to #networkBindings(List)
.networkBindings
- a consumer that will call methods on List.Builder
#networkBindings(List)
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 that creates an instance of theList.Builder
avoiding the
need to create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately and
its result is passed to #networkInterfaces(List)
.networkInterfaces
- a consumer that will call methods on List.Builder
#networkInterfaces(List)
Container.Builder healthStatus(String healthStatus)
The health status of the container. If health checks are not 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 are not configured for this container in its task
definition, then it reports the health status as UNKNOWN
.HealthStatus
,
HealthStatus
Container.Builder healthStatus(HealthStatus healthStatus)
The health status of the container. If health checks are not 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 are not configured for this container in its task
definition, then it reports the health status as UNKNOWN
.HealthStatus
,
HealthStatus
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.