Class Container
- All Implemented Interfaces:
Serializable
,Cloneable
A Docker container that is part of a task.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
The Amazon Resource Name (ARN) of the container.The exit code returned from the container.The last known status of the container.getName()
The name of the container.The network bindings associated with the container.A short (255 max characters) human-readable string to provide additional detail about a running or stopped container.The Amazon Resource Name (ARN) of the task.int
hashCode()
void
setContainerArn
(String containerArn) The Amazon Resource Name (ARN) of the container.void
setExitCode
(Integer exitCode) The exit code returned from the container.void
setLastStatus
(String lastStatus) The last known status of the container.void
The name of the container.void
setNetworkBindings
(Collection<NetworkBinding> networkBindings) The network bindings associated with the container.void
A short (255 max characters) human-readable string to provide additional detail about a running or stopped container.void
setTaskArn
(String taskArn) The Amazon Resource Name (ARN) of the task.toString()
Returns a string representation of this object; useful for testing and debugging.withContainerArn
(String containerArn) The Amazon Resource Name (ARN) of the container.withExitCode
(Integer exitCode) The exit code returned from the container.withLastStatus
(String lastStatus) The last known status of the container.The name of the container.withNetworkBindings
(NetworkBinding... networkBindings) The network bindings associated with the container.withNetworkBindings
(Collection<NetworkBinding> networkBindings) The network bindings associated with the container.withReason
(String reason) A short (255 max characters) human-readable string to provide additional detail about a running or stopped container.withTaskArn
(String taskArn) The Amazon Resource Name (ARN) of the task.
-
Constructor Details
-
Container
public Container()
-
-
Method Details
-
setContainerArn
The Amazon Resource Name (ARN) of the container.
- Parameters:
containerArn
- The Amazon Resource Name (ARN) of the container.
-
getContainerArn
The Amazon Resource Name (ARN) of the container.
- Returns:
- The Amazon Resource Name (ARN) of the container.
-
withContainerArn
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.
-
setTaskArn
The Amazon Resource Name (ARN) of the task.
- Parameters:
taskArn
- The Amazon Resource Name (ARN) of the task.
-
getTaskArn
The Amazon Resource Name (ARN) of the task.
- Returns:
- The Amazon Resource Name (ARN) of the task.
-
withTaskArn
The Amazon Resource Name (ARN) of the task.
- Parameters:
taskArn
- The Amazon Resource Name (ARN) of the task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setName
The name of the container.
- Parameters:
name
- The name of the container.
-
getName
The name of the container.
- Returns:
- The name of the container.
-
withName
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.
-
setLastStatus
The last known status of the container.
- Parameters:
lastStatus
- The last known status of the container.
-
getLastStatus
The last known status of the container.
- Returns:
- The last known status of the container.
-
withLastStatus
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.
-
setExitCode
The exit code returned from the container.
- Parameters:
exitCode
- The exit code returned from the container.
-
getExitCode
The exit code returned from the container.
- Returns:
- The exit code returned from the container.
-
withExitCode
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.
-
setReason
A short (255 max characters) human-readable string to provide additional detail about a running or stopped container.
- Parameters:
reason
- A short (255 max characters) human-readable string to provide additional detail about a running or stopped container.
-
getReason
A short (255 max characters) human-readable string to provide additional detail about a running or stopped container.
- Returns:
- A short (255 max characters) human-readable string to provide additional detail about a running or stopped container.
-
withReason
A short (255 max characters) human-readable string to provide additional detail about a running or stopped container.
- Parameters:
reason
- A short (255 max characters) human-readable string to provide additional detail about a running or stopped container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getNetworkBindings
The network bindings associated with the container.
- Returns:
- The network bindings associated with the container.
-
setNetworkBindings
The network bindings associated with the container.
- Parameters:
networkBindings
- The network bindings associated with the container.
-
withNetworkBindings
The network bindings associated with the container.
NOTE: This method appends the values to the existing list (if any). Use
setNetworkBindings(java.util.Collection)
orwithNetworkBindings(java.util.Collection)
if you want to override the existing values.- Parameters:
networkBindings
- The network bindings associated with the container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withNetworkBindings
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.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-