Interface Container.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Container.Builder,
,Container> SdkBuilder<Container.Builder,
,Container> SdkPojo
- Enclosing class:
Container
-
Method Summary
Modifier and TypeMethodDescriptioncontainerArn
(String containerArn) The Amazon Resource Name (ARN) of the container.The number of CPU units set for the container.The exit code returned from the container.The IDs of each GPU assigned to the container.gpuIds
(Collection<String> gpuIds) The IDs of each GPU assigned to the container.healthStatus
(String healthStatus) The health status of the container.healthStatus
(HealthStatus healthStatus) The health status of the container.The image used for the container.imageDigest
(String imageDigest) The container image manifest digest.lastStatus
(String lastStatus) The last known status of the container.managedAgents
(Collection<ManagedAgent> managedAgents) The details of any Amazon ECS managed agents associated with the container.managedAgents
(Consumer<ManagedAgent.Builder>... managedAgents) The details of any Amazon ECS managed agents associated with the container.managedAgents
(ManagedAgent... managedAgents) The details of any Amazon ECS managed agents associated with the container.The hard limit (in MiB) of memory set for the container.memoryReservation
(String memoryReservation) The soft limit (in MiB) of memory set for the container.The name of the container.networkBindings
(Collection<NetworkBinding> networkBindings) The network bindings associated with the container.networkBindings
(Consumer<NetworkBinding.Builder>... networkBindings) The network bindings associated with the container.networkBindings
(NetworkBinding... networkBindings) The network bindings associated with the container.networkInterfaces
(Collection<NetworkInterface> networkInterfaces) The network interfaces associated with the container.networkInterfaces
(Consumer<NetworkInterface.Builder>... networkInterfaces) The network interfaces associated with the container.networkInterfaces
(NetworkInterface... networkInterfaces) The network interfaces associated with the container.A short (255 max characters) human-readable string to provide additional details about a running or stopped container.The ID of the Docker container.The ARN of the task.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
containerArn
The Amazon Resource Name (ARN) of the container.
- Parameters:
containerArn
- The Amazon Resource Name (ARN) of the container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
taskArn
The ARN of the task.
- Parameters:
taskArn
- The ARN of the task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
The name of the container.
- Parameters:
name
- The name of the container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
image
The image used for the container.
- Parameters:
image
- The image used for the container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
imageDigest
The container image manifest digest.
- Parameters:
imageDigest
- The container image manifest digest.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
runtimeId
The ID of the Docker container.
- Parameters:
runtimeId
- The ID of the Docker container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lastStatus
The last known status of the container.
- Parameters:
lastStatus
- The last known status of the container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
exitCode
The exit code returned from the container.
- Parameters:
exitCode
- The exit code returned from the container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
reason
A short (255 max characters) human-readable string to provide additional details about a running or stopped container.
- Parameters:
reason
- A short (255 max characters) human-readable string to provide additional details about a running or stopped container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
networkBindings
The network bindings associated with the container.
- Parameters:
networkBindings
- The network bindings associated with the container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
networkBindings
The network bindings associated with the container.
- Parameters:
networkBindings
- The network bindings associated with the container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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 viaNetworkBinding.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tonetworkBindings(List<NetworkBinding>)
.- Parameters:
networkBindings
- a consumer that will call methods onNetworkBinding.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
networkInterfaces
The network interfaces associated with the container.
- Parameters:
networkInterfaces
- The network interfaces associated with the container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
networkInterfaces
The network interfaces associated with the container.
- Parameters:
networkInterfaces
- The network interfaces associated with the container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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 viaNetworkInterface.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tonetworkInterfaces(List<NetworkInterface>)
.- Parameters:
networkInterfaces
- a consumer that will call methods onNetworkInterface.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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
.- Parameters:
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 asUNKNOWN
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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
.- Parameters:
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 asUNKNOWN
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
managedAgents
The details of any Amazon ECS managed agents associated with the container.
- Parameters:
managedAgents
- The details of any Amazon ECS managed agents associated with the container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
managedAgents
The details of any Amazon ECS managed agents associated with the container.
- Parameters:
managedAgents
- The details of any Amazon ECS managed agents associated with the container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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 viaManagedAgent.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tomanagedAgents(List<ManagedAgent>)
.- Parameters:
managedAgents
- a consumer that will call methods onManagedAgent.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.- Parameters:
cpu
- The number of CPU units set for the container. The value is0
if no value was specified in the container definition when the task definition was registered.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
memory
The hard limit (in MiB) of memory set for the container.
- Parameters:
memory
- The hard limit (in MiB) of memory set for the container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
memoryReservation
The soft limit (in MiB) of memory set for the container.
- Parameters:
memoryReservation
- The soft limit (in MiB) of memory set for the container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
gpuIds
The IDs of each GPU assigned to the container.
- Parameters:
gpuIds
- The IDs of each GPU assigned to the container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
gpuIds
The IDs of each GPU assigned to the container.
- Parameters:
gpuIds
- The IDs of each GPU assigned to the container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-