public class StopTaskRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
StopTaskRequest() |
Modifier and Type | Method and Description |
---|---|
StopTaskRequest |
clone()
Creates a shallow clone of this request.
|
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 |
getReason()
An optional message specified when a task is stopped.
|
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 |
setReason(String reason)
An optional message specified when a task is stopped.
|
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 |
withReason(String reason)
An optional message specified when a task is stopped.
|
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, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setCluster(String 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..
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 getCluster()
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)
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..
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 void setTask(String task)
The task ID or full Amazon Resource Name (ARN) entry of the task to stop.
task
- The task ID or full Amazon Resource Name (ARN) entry of the task
to stop.public String getTask()
The task ID or full Amazon Resource Name (ARN) entry of the task to stop.
public StopTaskRequest withTask(String task)
The task ID or full Amazon Resource Name (ARN) entry of the task to stop.
task
- The task ID or full Amazon Resource Name (ARN) entry of the task
to stop.public void setReason(String reason)
An optional message specified when a task is stopped. For example, if you are using a custom scheduler, you can use this parameter to specify the reason for stopping the task here, and the message will appear in subsequent DescribeTasks API operations on this task. Up to 255 characters are allowed in this message.
reason
- An optional message specified when a task is stopped. For example,
if you are using a custom scheduler, you can use this parameter to
specify the reason for stopping the task here, and the message
will appear in subsequent DescribeTasks API operations on
this task. Up to 255 characters are allowed in this message.public String getReason()
An optional message specified when a task is stopped. For example, if you are using a custom scheduler, you can use this parameter to specify the reason for stopping the task here, and the message will appear in subsequent DescribeTasks API operations on this task. Up to 255 characters are allowed in this message.
public StopTaskRequest withReason(String reason)
An optional message specified when a task is stopped. For example, if you are using a custom scheduler, you can use this parameter to specify the reason for stopping the task here, and the message will appear in subsequent DescribeTasks API operations on this task. Up to 255 characters are allowed in this message.
reason
- An optional message specified when a task is stopped. For example,
if you are using a custom scheduler, you can use this parameter to
specify the reason for stopping the task here, and the message
will appear in subsequent DescribeTasks API operations on
this task. Up to 255 characters are allowed in this message.public String toString()
toString
in class Object
Object.toString()
public StopTaskRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2015. All rights reserved.