@Generated(value="com.amazonaws:aws-java-sdk-code-generator") 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 object for all fields except the handler context.
|
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 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 of the task to stop.
|
String |
toString()
Returns a string representation of this object.
|
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 of the task to stop.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, 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 of the task to stop.
task
- The task ID of the task to stop.public String getTask()
The task ID of the task to stop.
public StopTaskRequest withTask(String task)
The task ID of the task to stop.
task
- The task ID of the task to stop.public void setReason(String reason)
An optional message specified when a task is stopped. For example, if you're using a custom scheduler, you can use this parameter to specify the reason for stopping the task here, and the message appears in subsequent DescribeTasks API operations on this task.
reason
- An optional message specified when a task is stopped. For example, if you're using a custom scheduler, you
can use this parameter to specify the reason for stopping the task here, and the message appears in
subsequent DescribeTasks API operations on this task.public String getReason()
An optional message specified when a task is stopped. For example, if you're using a custom scheduler, you can use this parameter to specify the reason for stopping the task here, and the message appears in subsequent DescribeTasks API operations on this task.
public StopTaskRequest withReason(String reason)
An optional message specified when a task is stopped. For example, if you're using a custom scheduler, you can use this parameter to specify the reason for stopping the task here, and the message appears in subsequent DescribeTasks API operations on this task.
reason
- An optional message specified when a task is stopped. For example, if you're using a custom scheduler, you
can use this parameter to specify the reason for stopping the task here, and the message appears in
subsequent DescribeTasks API operations on this task.public String toString()
toString
in class Object
Object.toString()
public StopTaskRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()