public class StopTaskRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
StopTask operation
.
Stops a running task.
When StopTask is called on a task, the equivalent of docker
stop
is issued to the containers running in the task. This
results in a SIGTERM
and a 30-second timeout, after which
SIGKILL
is sent and the containers are forcibly stopped.
If the container handles the SIGTERM
gracefully and exits
within 30 seconds from receiving it, no SIGKILL
is sent.
NOOP
Constructor and Description |
---|
StopTaskRequest() |
Modifier and Type | Method and Description |
---|---|
StopTaskRequest |
clone() |
boolean |
equals(Object obj) |
String |
getCluster()
The short name or full Amazon Resource Name (ARN) of the cluster that
hosts the task to stop.
|
String |
getTask()
The task ID or full Amazon Resource Name (ARN) entry of the task to
stop.
|
int |
hashCode() |
void |
setCluster(String cluster)
The short name or full Amazon Resource Name (ARN) of the cluster that
hosts the task to stop.
|
void |
setTask(String task)
The task ID or full Amazon Resource Name (ARN) entry of the task to
stop.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
StopTaskRequest |
withCluster(String cluster)
The short name or full Amazon Resource Name (ARN) of the cluster that
hosts the task to stop.
|
StopTaskRequest |
withTask(String task)
The task ID or full Amazon Resource Name (ARN) entry of the task to
stop.
|
copyBaseTo, getCloneRoot, getCloneSource, 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 task to stop. If you do not specify a cluster, the default
cluster is assumed..public StopTaskRequest 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 task to stop. If you do not specify a cluster, the default
cluster is assumed..public String getTask()
public void setTask(String task)
task
- The task ID or full Amazon Resource Name (ARN) entry of the task to
stop.public StopTaskRequest withTask(String task)
Returns a reference to this object so that method calls can be chained together.
task
- The task ID or full Amazon Resource Name (ARN) entry of the task to
stop.public String toString()
toString
in class Object
Object.toString()
public StopTaskRequest clone()
clone
in class AmazonWebServiceRequest
Copyright © 2015. All rights reserved.