@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 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.
|
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 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 © 2013 Amazon Web Services, Inc. All Rights Reserved.