public class Container
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
A Docker container that is part of a task.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
containerArn
The Amazon Resource Name (ARN) of the container.
|
private java.lang.Integer |
exitCode
The exit code returned from the container.
|
private java.lang.String |
lastStatus
The last known status of the container.
|
private java.lang.String |
name
The name of the container.
|
private SdkInternalList<NetworkBinding> |
networkBindings
The network bindings associated with the container.
|
private java.lang.String |
reason
A short (255 max characters) human-readable string to provide additional
detail about a running or stopped container.
|
private java.lang.String |
taskArn
The Amazon Resource Name (ARN) of the task.
|
Constructor and Description |
---|
Container() |
Modifier and Type | Method and Description |
---|---|
Container |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getContainerArn()
The Amazon Resource Name (ARN) of the container.
|
java.lang.Integer |
getExitCode()
The exit code returned from the container.
|
java.lang.String |
getLastStatus()
The last known status of the container.
|
java.lang.String |
getName()
The name of the container.
|
java.util.List<NetworkBinding> |
getNetworkBindings()
The network bindings associated with the container.
|
java.lang.String |
getReason()
A short (255 max characters) human-readable string to provide additional
detail about a running or stopped container.
|
java.lang.String |
getTaskArn()
The Amazon Resource Name (ARN) of the task.
|
int |
hashCode() |
void |
setContainerArn(java.lang.String containerArn)
The Amazon Resource Name (ARN) of the container.
|
void |
setExitCode(java.lang.Integer exitCode)
The exit code returned from the container.
|
void |
setLastStatus(java.lang.String lastStatus)
The last known status of the container.
|
void |
setName(java.lang.String name)
The name of the container.
|
void |
setNetworkBindings(java.util.Collection<NetworkBinding> networkBindings)
The network bindings associated with the container.
|
void |
setReason(java.lang.String reason)
A short (255 max characters) human-readable string to provide additional
detail about a running or stopped container.
|
void |
setTaskArn(java.lang.String taskArn)
The Amazon Resource Name (ARN) of the task.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Container |
withContainerArn(java.lang.String containerArn)
The Amazon Resource Name (ARN) of the container.
|
Container |
withExitCode(java.lang.Integer exitCode)
The exit code returned from the container.
|
Container |
withLastStatus(java.lang.String lastStatus)
The last known status of the container.
|
Container |
withName(java.lang.String name)
The name of the container.
|
Container |
withNetworkBindings(java.util.Collection<NetworkBinding> networkBindings)
The network bindings associated with the container.
|
Container |
withNetworkBindings(NetworkBinding... networkBindings)
The network bindings associated with the container.
|
Container |
withReason(java.lang.String reason)
A short (255 max characters) human-readable string to provide additional
detail about a running or stopped container.
|
Container |
withTaskArn(java.lang.String taskArn)
The Amazon Resource Name (ARN) of the task.
|
private java.lang.String containerArn
The Amazon Resource Name (ARN) of the container.
private java.lang.String taskArn
The Amazon Resource Name (ARN) of the task.
private java.lang.String name
The name of the container.
private java.lang.String lastStatus
The last known status of the container.
private java.lang.Integer exitCode
The exit code returned from the container.
private java.lang.String reason
A short (255 max characters) human-readable string to provide additional detail about a running or stopped container.
private SdkInternalList<NetworkBinding> networkBindings
The network bindings associated with the container.
public void setContainerArn(java.lang.String containerArn)
The Amazon Resource Name (ARN) of the container.
containerArn
- The Amazon Resource Name (ARN) of the container.public java.lang.String getContainerArn()
The Amazon Resource Name (ARN) of the container.
public Container withContainerArn(java.lang.String containerArn)
The Amazon Resource Name (ARN) of the container.
containerArn
- The Amazon Resource Name (ARN) of the container.public void setTaskArn(java.lang.String taskArn)
The Amazon Resource Name (ARN) of the task.
taskArn
- The Amazon Resource Name (ARN) of the task.public java.lang.String getTaskArn()
The Amazon Resource Name (ARN) of the task.
public Container withTaskArn(java.lang.String taskArn)
The Amazon Resource Name (ARN) of the task.
taskArn
- The Amazon Resource Name (ARN) of the task.public void setName(java.lang.String name)
The name of the container.
name
- The name of the container.public java.lang.String getName()
The name of the container.
public Container withName(java.lang.String name)
The name of the container.
name
- The name of the container.public void setLastStatus(java.lang.String lastStatus)
The last known status of the container.
lastStatus
- The last known status of the container.public java.lang.String getLastStatus()
The last known status of the container.
public Container withLastStatus(java.lang.String lastStatus)
The last known status of the container.
lastStatus
- The last known status of the container.public void setExitCode(java.lang.Integer exitCode)
The exit code returned from the container.
exitCode
- The exit code returned from the container.public java.lang.Integer getExitCode()
The exit code returned from the container.
public Container withExitCode(java.lang.Integer exitCode)
The exit code returned from the container.
exitCode
- The exit code returned from the container.public void setReason(java.lang.String reason)
A short (255 max characters) human-readable string to provide additional detail about a running or stopped container.
reason
- A short (255 max characters) human-readable string to provide
additional detail about a running or stopped container.public java.lang.String getReason()
A short (255 max characters) human-readable string to provide additional detail about a running or stopped container.
public Container withReason(java.lang.String reason)
A short (255 max characters) human-readable string to provide additional detail about a running or stopped container.
reason
- A short (255 max characters) human-readable string to provide
additional detail about a running or stopped container.public java.util.List<NetworkBinding> getNetworkBindings()
The network bindings associated with the container.
public void setNetworkBindings(java.util.Collection<NetworkBinding> networkBindings)
The network bindings associated with the container.
networkBindings
- The network bindings associated with the container.public Container withNetworkBindings(NetworkBinding... networkBindings)
The network bindings associated with the container.
NOTE: This method appends the values to the existing list (if
any). Use setNetworkBindings(java.util.Collection)
or
withNetworkBindings(java.util.Collection)
if you want to
override the existing values.
networkBindings
- The network bindings associated with the container.public Container withNetworkBindings(java.util.Collection<NetworkBinding> networkBindings)
The network bindings associated with the container.
networkBindings
- The network bindings associated with the container.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public Container clone()
clone
in class java.lang.Object