Class DescribeTasksRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.ecs.model.DescribeTasksRequest
-
- All Implemented Interfaces:
ReadLimitInfo,Serializable,Cloneable
public class DescribeTasksRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description DescribeTasksRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DescribeTasksRequestclone()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 describe.List<String>getTasks()A space-separated list of task IDs or full Amazon Resource Name (ARN) entries.inthashCode()voidsetCluster(String cluster)The short name or full Amazon Resource Name (ARN) of the cluster that hosts the task to describe.voidsetTasks(Collection<String> tasks)A space-separated list of task IDs or full Amazon Resource Name (ARN) entries.StringtoString()Returns a string representation of this object; useful for testing and debugging.DescribeTasksRequestwithCluster(String cluster)The short name or full Amazon Resource Name (ARN) of the cluster that hosts the task to describe.DescribeTasksRequestwithTasks(String... tasks)A space-separated list of task IDs or full Amazon Resource Name (ARN) entries.DescribeTasksRequestwithTasks(Collection<String> tasks)A space-separated list of task IDs or full Amazon Resource Name (ARN) entries.-
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 describe. 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 describe. 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 describe. 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 describe. If you do not specify a cluster, the default cluster is assumed.
-
withCluster
public DescribeTasksRequest withCluster(String cluster)
The short name or full Amazon Resource Name (ARN) of the cluster that hosts the task to describe. 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 describe. 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.
-
getTasks
public List<String> getTasks()
A space-separated list of task IDs or full Amazon Resource Name (ARN) entries.
- Returns:
- A space-separated list of task IDs or full Amazon Resource Name (ARN) entries.
-
setTasks
public void setTasks(Collection<String> tasks)
A space-separated list of task IDs or full Amazon Resource Name (ARN) entries.
- Parameters:
tasks- A space-separated list of task IDs or full Amazon Resource Name (ARN) entries.
-
withTasks
public DescribeTasksRequest withTasks(String... tasks)
A space-separated list of task IDs or full Amazon Resource Name (ARN) entries.
NOTE: This method appends the values to the existing list (if any). Use
setTasks(java.util.Collection)orwithTasks(java.util.Collection)if you want to override the existing values.- Parameters:
tasks- A space-separated list of task IDs or full Amazon Resource Name (ARN) entries.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withTasks
public DescribeTasksRequest withTasks(Collection<String> tasks)
A space-separated list of task IDs or full Amazon Resource Name (ARN) entries.
- Parameters:
tasks- A space-separated list of task IDs or full Amazon Resource Name (ARN) entries.- 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 DescribeTasksRequest 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()
-
-