public class SubmitContainerStateChangeRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
SubmitContainerStateChange operation
.
NOTE: This action is only used by the Amazon EC2 Container Service agent, and it is not intended for use outside of the agent.
Sent to acknowledge that a container changed states.
NOOP
Constructor and Description |
---|
SubmitContainerStateChangeRequest() |
Modifier and Type | Method and Description |
---|---|
SubmitContainerStateChangeRequest |
clone() |
boolean |
equals(Object obj) |
String |
getCluster()
The short name or full Amazon Resource Name (ARN) of the cluster that
hosts the container.
|
String |
getContainerName()
The name of the container.
|
Integer |
getExitCode()
The exit code returned for the state change request.
|
List<NetworkBinding> |
getNetworkBindings()
The network bindings of the container.
|
String |
getReason()
The reason for the state change request.
|
String |
getStatus()
The status of the state change request.
|
String |
getTask()
The task UUID or full Amazon Resource Name (ARN) of the task that
hosts the container.
|
int |
hashCode() |
void |
setCluster(String cluster)
The short name or full Amazon Resource Name (ARN) of the cluster that
hosts the container.
|
void |
setContainerName(String containerName)
The name of the container.
|
void |
setExitCode(Integer exitCode)
The exit code returned for the state change request.
|
void |
setNetworkBindings(Collection<NetworkBinding> networkBindings)
The network bindings of the container.
|
void |
setReason(String reason)
The reason for the state change request.
|
void |
setStatus(String status)
The status of the state change request.
|
void |
setTask(String task)
The task UUID or full Amazon Resource Name (ARN) of the task that
hosts the container.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
SubmitContainerStateChangeRequest |
withCluster(String cluster)
The short name or full Amazon Resource Name (ARN) of the cluster that
hosts the container.
|
SubmitContainerStateChangeRequest |
withContainerName(String containerName)
The name of the container.
|
SubmitContainerStateChangeRequest |
withExitCode(Integer exitCode)
The exit code returned for the state change request.
|
SubmitContainerStateChangeRequest |
withNetworkBindings(Collection<NetworkBinding> networkBindings)
The network bindings of the container.
|
SubmitContainerStateChangeRequest |
withNetworkBindings(NetworkBinding... networkBindings)
The network bindings of the container.
|
SubmitContainerStateChangeRequest |
withReason(String reason)
The reason for the state change request.
|
SubmitContainerStateChangeRequest |
withStatus(String status)
The status of the state change request.
|
SubmitContainerStateChangeRequest |
withTask(String task)
The task UUID or full Amazon Resource Name (ARN) of the task that
hosts the container.
|
copyBaseTo, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public String getCluster()
public void setCluster(String cluster)
cluster
- The short name or full Amazon Resource Name (ARN) of the cluster that
hosts the container.public SubmitContainerStateChangeRequest withCluster(String cluster)
Returns a reference to this object so that method calls can be chained together.
cluster
- The short name or full Amazon Resource Name (ARN) of the cluster that
hosts the container.public String getTask()
public void setTask(String task)
task
- The task UUID or full Amazon Resource Name (ARN) of the task that
hosts the container.public SubmitContainerStateChangeRequest withTask(String task)
Returns a reference to this object so that method calls can be chained together.
task
- The task UUID or full Amazon Resource Name (ARN) of the task that
hosts the container.public String getContainerName()
public void setContainerName(String containerName)
containerName
- The name of the container.public SubmitContainerStateChangeRequest withContainerName(String containerName)
Returns a reference to this object so that method calls can be chained together.
containerName
- The name of the container.public String getStatus()
public void setStatus(String status)
status
- The status of the state change request.public SubmitContainerStateChangeRequest withStatus(String status)
Returns a reference to this object so that method calls can be chained together.
status
- The status of the state change request.public Integer getExitCode()
public void setExitCode(Integer exitCode)
exitCode
- The exit code returned for the state change request.public SubmitContainerStateChangeRequest withExitCode(Integer exitCode)
Returns a reference to this object so that method calls can be chained together.
exitCode
- The exit code returned for the state change request.public String getReason()
public void setReason(String reason)
reason
- The reason for the state change request.public SubmitContainerStateChangeRequest withReason(String reason)
Returns a reference to this object so that method calls can be chained together.
reason
- The reason for the state change request.public List<NetworkBinding> getNetworkBindings()
public void setNetworkBindings(Collection<NetworkBinding> networkBindings)
networkBindings
- The network bindings of the container.public SubmitContainerStateChangeRequest withNetworkBindings(NetworkBinding... networkBindings)
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.
Returns a reference to this object so that method calls can be chained together.
networkBindings
- The network bindings of the container.public SubmitContainerStateChangeRequest withNetworkBindings(Collection<NetworkBinding> networkBindings)
Returns a reference to this object so that method calls can be chained together.
networkBindings
- The network bindings of the container.public String toString()
toString
in class Object
Object.toString()
public SubmitContainerStateChangeRequest clone()
clone
in class AmazonWebServiceRequest
Copyright © 2015. All rights reserved.