Class StopTaskRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.ecs.model.StopTaskRequest
-
- All Implemented Interfaces:
ReadLimitInfo,Serializable,Cloneable
public class StopTaskRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description StopTaskRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StopTaskRequestclone()Creates a shallow clone of this request.booleanequals(Object obj)StringgetCluster()The short name or full Amazon Resource Name (ARN) of the cluster that hosts the task to stop.StringgetReason()An optional message specified when a task is stopped.StringgetTask()The task ID or full Amazon Resource Name (ARN) entry of the task to stop.inthashCode()voidsetCluster(String cluster)The short name or full Amazon Resource Name (ARN) of the cluster that hosts the task to stop.voidsetReason(String reason)An optional message specified when a task is stopped.voidsetTask(String task)The task ID or full Amazon Resource Name (ARN) entry of the task to stop.StringtoString()Returns a string representation of this object; useful for testing and debugging.StopTaskRequestwithCluster(String cluster)The short name or full Amazon Resource Name (ARN) of the cluster that hosts the task to stop.StopTaskRequestwithReason(String reason)An optional message specified when a task is stopped.StopTaskRequestwithTask(String task)The task ID or full Amazon Resource Name (ARN) entry of the task to stop.-
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
-
-
-
-
Method Detail
-
setCluster
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..
- Parameters:
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..
-
getCluster
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..
- Returns:
- 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..
-
withCluster
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..
- Parameters:
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..- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setTask
public void setTask(String task)
The task ID or full Amazon Resource Name (ARN) entry of the task to stop.
- Parameters:
task- The task ID or full Amazon Resource Name (ARN) entry of the task to stop.
-
getTask
public String getTask()
The task ID or full Amazon Resource Name (ARN) entry of the task to stop.
- Returns:
- The task ID or full Amazon Resource Name (ARN) entry of the task to stop.
-
withTask
public StopTaskRequest withTask(String task)
The task ID or full Amazon Resource Name (ARN) entry of the task to stop.
- Parameters:
task- The task ID or full Amazon Resource Name (ARN) entry of the task to stop.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setReason
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.
- Parameters:
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.
-
getReason
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.
- Returns:
- 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.
-
withReason
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public StopTaskRequest clone()
Description copied from class:AmazonWebServiceRequestCreates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clonein classAmazonWebServiceRequest- See Also:
Object.clone()
-
-