@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Container extends Object implements Serializable, Cloneable, StructuredPojo
A Docker container that is part of a task.
Constructor and Description |
---|
Container() |
Modifier and Type | Method and Description |
---|---|
Container |
clone() |
boolean |
equals(Object obj) |
String |
getContainerArn()
The Amazon Resource Name (ARN) of the container.
|
Integer |
getExitCode()
The exit code returned from the container.
|
String |
getLastStatus()
The last known status of the container.
|
String |
getName()
The name of the container.
|
List<NetworkBinding> |
getNetworkBindings()
The network bindings associated with the container.
|
String |
getReason()
A short (255 max characters) human-readable string to provide additional details about a running or stopped
container.
|
String |
getTaskArn()
The Amazon Resource Name (ARN) of the task.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
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 |
setName(String name)
The name of the container.
|
void |
setNetworkBindings(Collection<NetworkBinding> networkBindings)
The network bindings associated with the container.
|
void |
setReason(String reason)
A short (255 max characters) human-readable string to provide additional details about a running or stopped
container.
|
void |
setTaskArn(String taskArn)
The Amazon Resource Name (ARN) of the task.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
Container |
withContainerArn(String containerArn)
The Amazon Resource Name (ARN) of the container.
|
Container |
withExitCode(Integer exitCode)
The exit code returned from the container.
|
Container |
withLastStatus(String lastStatus)
The last known status of the container.
|
Container |
withName(String name)
The name of the container.
|
Container |
withNetworkBindings(Collection<NetworkBinding> networkBindings)
The network bindings associated with the container.
|
Container |
withNetworkBindings(NetworkBinding... networkBindings)
The network bindings associated with the container.
|
Container |
withReason(String reason)
A short (255 max characters) human-readable string to provide additional details about a running or stopped
container.
|
Container |
withTaskArn(String taskArn)
The Amazon Resource Name (ARN) of the task.
|
public void setContainerArn(String containerArn)
The Amazon Resource Name (ARN) of the container.
containerArn
- The Amazon Resource Name (ARN) of the container.public String getContainerArn()
The Amazon Resource Name (ARN) of the container.
public Container withContainerArn(String containerArn)
The Amazon Resource Name (ARN) of the container.
containerArn
- The Amazon Resource Name (ARN) of the container.public void setTaskArn(String taskArn)
The Amazon Resource Name (ARN) of the task.
taskArn
- The Amazon Resource Name (ARN) of the task.public String getTaskArn()
The Amazon Resource Name (ARN) of the task.
public Container withTaskArn(String taskArn)
The Amazon Resource Name (ARN) of the task.
taskArn
- The Amazon Resource Name (ARN) of the task.public void setName(String name)
The name of the container.
name
- The name of the container.public String getName()
The name of the container.
public Container withName(String name)
The name of the container.
name
- The name of the container.public void setLastStatus(String lastStatus)
The last known status of the container.
lastStatus
- The last known status of the container.public String getLastStatus()
The last known status of the container.
public Container withLastStatus(String lastStatus)
The last known status of the container.
lastStatus
- The last known status of the container.public void setExitCode(Integer exitCode)
The exit code returned from the container.
exitCode
- The exit code returned from the container.public Integer getExitCode()
The exit code returned from the container.
public Container withExitCode(Integer exitCode)
The exit code returned from the container.
exitCode
- The exit code returned from the container.public void setReason(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.public String getReason()
A short (255 max characters) human-readable string to provide additional details about a running or stopped container.
public Container withReason(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.public List<NetworkBinding> getNetworkBindings()
The network bindings associated with the container.
public void setNetworkBindings(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(Collection<NetworkBinding> networkBindings)
The network bindings associated with the container.
networkBindings
- The network bindings associated with the container.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.