@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.
|
String |
getImageDigest()
The container image SHA 256 digest.
|
List<NetworkBinding> |
getNetworkBindings()
Any network bindings associated with the container.
|
String |
getReason()
The reason for the state change.
|
String |
getRuntimeId()
The ID of the Docker container.
|
String |
getStatus()
The status of the container.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
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 |
setImageDigest(String imageDigest)
The container image SHA 256 digest.
|
void |
setNetworkBindings(Collection<NetworkBinding> networkBindings)
Any network bindings associated with the container.
|
void |
setReason(String reason)
The reason for the state change.
|
void |
setRuntimeId(String runtimeId)
The ID of the Docker container.
|
void |
setStatus(String status)
The status of the container.
|
String |
toString()
Returns a string representation of this object.
|
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 |
withImageDigest(String imageDigest)
The container image SHA 256 digest.
|
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 |
withRuntimeId(String runtimeId)
The ID of the Docker container.
|
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 setImageDigest(String imageDigest)
The container image SHA 256 digest.
imageDigest
- The container image SHA 256 digest.public String getImageDigest()
The container image SHA 256 digest.
public ContainerStateChange withImageDigest(String imageDigest)
The container image SHA 256 digest.
imageDigest
- The container image SHA 256 digest.public void setRuntimeId(String runtimeId)
The ID of the Docker container.
runtimeId
- The ID of the Docker container.public String getRuntimeId()
The ID of the Docker container.
public ContainerStateChange withRuntimeId(String runtimeId)
The ID of the Docker container.
runtimeId
- The ID of the Docker 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 Object
Object.toString()
public ContainerStateChange clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.