@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ContainerStateChange extends Object implements Serializable, Cloneable, StructuredPojo
An object representing a change in state for a container.
| Constructor and Description |
|---|
ContainerStateChange() |
| Modifier and Type | Method and Description |
|---|---|
ContainerStateChange |
clone() |
boolean |
equals(Object obj) |
String |
getContainerName()
The name of the container.
|
Integer |
getExitCode()
The exit code for the container, if the state change is a result of the container exiting.
|
List<NetworkBinding> |
getNetworkBindings()
Any network bindings associated with the container.
|
String |
getReason()
The reason for the state change.
|
String |
getStatus()
The status of the container.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setContainerName(String containerName)
The name of the container.
|
void |
setExitCode(Integer exitCode)
The exit code for the container, if the state change is a result of the container exiting.
|
void |
setNetworkBindings(Collection<NetworkBinding> networkBindings)
Any network bindings associated with the container.
|
void |
setReason(String reason)
The reason for the state change.
|
void |
setStatus(String status)
The status of the container.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
ContainerStateChange |
withContainerName(String containerName)
The name of the container.
|
ContainerStateChange |
withExitCode(Integer exitCode)
The exit code for the container, if the state change is a result of the container exiting.
|
ContainerStateChange |
withNetworkBindings(Collection<NetworkBinding> networkBindings)
Any network bindings associated with the container.
|
ContainerStateChange |
withNetworkBindings(NetworkBinding... networkBindings)
Any network bindings associated with the container.
|
ContainerStateChange |
withReason(String reason)
The reason for the state change.
|
ContainerStateChange |
withStatus(String status)
The status of the container.
|
public void setContainerName(String containerName)
The name of the container.
containerName - The name of the container.public String getContainerName()
The name of the container.
public ContainerStateChange withContainerName(String containerName)
The name of the container.
containerName - The name of the container.public void setExitCode(Integer exitCode)
The exit code for the container, if the state change is a result of the container exiting.
exitCode - The exit code for the container, if the state change is a result of the container exiting.public Integer getExitCode()
The exit code for the container, if the state change is a result of the container exiting.
public ContainerStateChange withExitCode(Integer exitCode)
The exit code for the container, if the state change is a result of the container exiting.
exitCode - The exit code for the container, if the state change is a result of the container exiting.public List<NetworkBinding> getNetworkBindings()
Any network bindings associated with the container.
public void setNetworkBindings(Collection<NetworkBinding> networkBindings)
Any network bindings associated with the container.
networkBindings - Any network bindings associated with the container.public ContainerStateChange withNetworkBindings(NetworkBinding... networkBindings)
Any 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 - Any network bindings associated with the container.public ContainerStateChange withNetworkBindings(Collection<NetworkBinding> networkBindings)
Any network bindings associated with the container.
networkBindings - Any network bindings associated with the container.public void setReason(String reason)
The reason for the state change.
reason - The reason for the state change.public String getReason()
The reason for the state change.
public ContainerStateChange withReason(String reason)
The reason for the state change.
reason - The reason for the state change.public void setStatus(String status)
The status of the container.
status - The status of the container.public String getStatus()
The status of the container.
public ContainerStateChange withStatus(String status)
The status of the container.
status - The status of the container.public String toString()
toString in class ObjectObject.toString()public ContainerStateChange clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall in interface StructuredPojoCopyright © 2017. All rights reserved.