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()booleanThe 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.inthashCode()voidsetContainerArn(String containerArn) The Amazon Resource Name (ARN) of the container.voidsetExitCode(Integer exitCode) The exit code returned from the container.voidsetLastStatus(String lastStatus) The last known status of the container.voidThe name of the container.voidsetNetworkBindings(Collection<NetworkBinding> networkBindings) The network bindings associated with the container.voidA short (255 max characters) human-readable string to provide additional detail about a running or stopped container.voidsetTaskArn(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
-
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
-
setName
The name of the container.
- Parameters:
name- The name of the container.
-
getName
-
withName
-
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
-
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
-
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
-
equals
-
hashCode
-
clone
-