Class ListTasksRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.ecs.model.ListTasksRequest
-
- All Implemented Interfaces:
ReadLimitInfo,Serializable,Cloneable
public class ListTasksRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description ListTasksRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ListTasksRequestclone()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 tasks to list.StringgetContainerInstance()The container instance ID or full Amazon Resource Name (ARN) of the container instance with which to filter theListTasksresults.StringgetDesiredStatus()The task status with which to filter theListTasksresults.StringgetFamily()The name of the family with which to filter theListTasksresults.IntegergetMaxResults()The maximum number of task results returned byListTasksin paginated output.StringgetNextToken()ThenextTokenvalue returned from a previous paginatedListTasksrequest wheremaxResultswas used and the results exceeded the value of that parameter.StringgetServiceName()The name of the service with which to filter theListTasksresults.StringgetStartedBy()ThestartedByvalue with which to filter the task results.inthashCode()voidsetCluster(String cluster)The short name or full Amazon Resource Name (ARN) of the cluster that hosts the tasks to list.voidsetContainerInstance(String containerInstance)The container instance ID or full Amazon Resource Name (ARN) of the container instance with which to filter theListTasksresults.voidsetDesiredStatus(DesiredStatus desiredStatus)The task status with which to filter theListTasksresults.voidsetDesiredStatus(String desiredStatus)The task status with which to filter theListTasksresults.voidsetFamily(String family)The name of the family with which to filter theListTasksresults.voidsetMaxResults(Integer maxResults)The maximum number of task results returned byListTasksin paginated output.voidsetNextToken(String nextToken)ThenextTokenvalue returned from a previous paginatedListTasksrequest wheremaxResultswas used and the results exceeded the value of that parameter.voidsetServiceName(String serviceName)The name of the service with which to filter theListTasksresults.voidsetStartedBy(String startedBy)ThestartedByvalue with which to filter the task results.StringtoString()Returns a string representation of this object; useful for testing and debugging.ListTasksRequestwithCluster(String cluster)The short name or full Amazon Resource Name (ARN) of the cluster that hosts the tasks to list.ListTasksRequestwithContainerInstance(String containerInstance)The container instance ID or full Amazon Resource Name (ARN) of the container instance with which to filter theListTasksresults.ListTasksRequestwithDesiredStatus(DesiredStatus desiredStatus)The task status with which to filter theListTasksresults.ListTasksRequestwithDesiredStatus(String desiredStatus)The task status with which to filter theListTasksresults.ListTasksRequestwithFamily(String family)The name of the family with which to filter theListTasksresults.ListTasksRequestwithMaxResults(Integer maxResults)The maximum number of task results returned byListTasksin paginated output.ListTasksRequestwithNextToken(String nextToken)ThenextTokenvalue returned from a previous paginatedListTasksrequest wheremaxResultswas used and the results exceeded the value of that parameter.ListTasksRequestwithServiceName(String serviceName)The name of the service with which to filter theListTasksresults.ListTasksRequestwithStartedBy(String startedBy)ThestartedByvalue with which to filter the task results.-
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 tasks to list. 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 tasks to list. 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 tasks to list. 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 tasks to list. If you do not specify a cluster, the default cluster is assumed..
-
withCluster
public ListTasksRequest withCluster(String cluster)
The short name or full Amazon Resource Name (ARN) of the cluster that hosts the tasks to list. 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 tasks to list. 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.
-
setContainerInstance
public void setContainerInstance(String containerInstance)
The container instance ID or full Amazon Resource Name (ARN) of the container instance with which to filter the
ListTasksresults. Specifying acontainerInstancelimits the results to tasks that belong to that container instance.- Parameters:
containerInstance- The container instance ID or full Amazon Resource Name (ARN) of the container instance with which to filter theListTasksresults. Specifying acontainerInstancelimits the results to tasks that belong to that container instance.
-
getContainerInstance
public String getContainerInstance()
The container instance ID or full Amazon Resource Name (ARN) of the container instance with which to filter the
ListTasksresults. Specifying acontainerInstancelimits the results to tasks that belong to that container instance.- Returns:
- The container instance ID or full Amazon Resource Name (ARN) of
the container instance with which to filter the
ListTasksresults. Specifying acontainerInstancelimits the results to tasks that belong to that container instance.
-
withContainerInstance
public ListTasksRequest withContainerInstance(String containerInstance)
The container instance ID or full Amazon Resource Name (ARN) of the container instance with which to filter the
ListTasksresults. Specifying acontainerInstancelimits the results to tasks that belong to that container instance.- Parameters:
containerInstance- The container instance ID or full Amazon Resource Name (ARN) of the container instance with which to filter theListTasksresults. Specifying acontainerInstancelimits the results to tasks that belong to that container instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setFamily
public void setFamily(String family)
The name of the family with which to filter the
ListTasksresults. Specifying afamilylimits the results to tasks that belong to that family.- Parameters:
family- The name of the family with which to filter theListTasksresults. Specifying afamilylimits the results to tasks that belong to that family.
-
getFamily
public String getFamily()
The name of the family with which to filter the
ListTasksresults. Specifying afamilylimits the results to tasks that belong to that family.- Returns:
- The name of the family with which to filter the
ListTasksresults. Specifying afamilylimits the results to tasks that belong to that family.
-
withFamily
public ListTasksRequest withFamily(String family)
The name of the family with which to filter the
ListTasksresults. Specifying afamilylimits the results to tasks that belong to that family.- Parameters:
family- The name of the family with which to filter theListTasksresults. Specifying afamilylimits the results to tasks that belong to that family.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setNextToken
public void setNextToken(String nextToken)
The
nextTokenvalue returned from a previous paginatedListTasksrequest wheremaxResultswas used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned thenextTokenvalue. This value isnullwhen there are no more results to return.This token should be treated as an opaque identifier that is only used to retrieve the next items in a list and not for other programmatic purposes.
- Parameters:
nextToken- ThenextTokenvalue returned from a previous paginatedListTasksrequest wheremaxResultswas used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned thenextTokenvalue. This value isnullwhen there are no more results to return.This token should be treated as an opaque identifier that is only used to retrieve the next items in a list and not for other programmatic purposes.
-
getNextToken
public String getNextToken()
The
nextTokenvalue returned from a previous paginatedListTasksrequest wheremaxResultswas used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned thenextTokenvalue. This value isnullwhen there are no more results to return.This token should be treated as an opaque identifier that is only used to retrieve the next items in a list and not for other programmatic purposes.
- Returns:
- The
nextTokenvalue returned from a previous paginatedListTasksrequest wheremaxResultswas used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned thenextTokenvalue. This value isnullwhen there are no more results to return.This token should be treated as an opaque identifier that is only used to retrieve the next items in a list and not for other programmatic purposes.
-
withNextToken
public ListTasksRequest withNextToken(String nextToken)
The
nextTokenvalue returned from a previous paginatedListTasksrequest wheremaxResultswas used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned thenextTokenvalue. This value isnullwhen there are no more results to return.This token should be treated as an opaque identifier that is only used to retrieve the next items in a list and not for other programmatic purposes.
- Parameters:
nextToken- ThenextTokenvalue returned from a previous paginatedListTasksrequest wheremaxResultswas used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned thenextTokenvalue. This value isnullwhen there are no more results to return.This token should be treated as an opaque identifier that is only used to retrieve the next items in a list and not for other programmatic purposes.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setMaxResults
public void setMaxResults(Integer maxResults)
The maximum number of task results returned by
ListTasksin paginated output. When this parameter is used,ListTasksonly returnsmaxResultsresults in a single page along with anextTokenresponse element. The remaining results of the initial request can be seen by sending anotherListTasksrequest with the returnednextTokenvalue. This value can be between 1 and 100. If this parameter is not used, thenListTasksreturns up to 100 results and anextTokenvalue if applicable.- Parameters:
maxResults- The maximum number of task results returned byListTasksin paginated output. When this parameter is used,ListTasksonly returnsmaxResultsresults in a single page along with anextTokenresponse element. The remaining results of the initial request can be seen by sending anotherListTasksrequest with the returnednextTokenvalue. This value can be between 1 and 100. If this parameter is not used, thenListTasksreturns up to 100 results and anextTokenvalue if applicable.
-
getMaxResults
public Integer getMaxResults()
The maximum number of task results returned by
ListTasksin paginated output. When this parameter is used,ListTasksonly returnsmaxResultsresults in a single page along with anextTokenresponse element. The remaining results of the initial request can be seen by sending anotherListTasksrequest with the returnednextTokenvalue. This value can be between 1 and 100. If this parameter is not used, thenListTasksreturns up to 100 results and anextTokenvalue if applicable.- Returns:
- The maximum number of task results returned by
ListTasksin paginated output. When this parameter is used,ListTasksonly returnsmaxResultsresults in a single page along with anextTokenresponse element. The remaining results of the initial request can be seen by sending anotherListTasksrequest with the returnednextTokenvalue. This value can be between 1 and 100. If this parameter is not used, thenListTasksreturns up to 100 results and anextTokenvalue if applicable.
-
withMaxResults
public ListTasksRequest withMaxResults(Integer maxResults)
The maximum number of task results returned by
ListTasksin paginated output. When this parameter is used,ListTasksonly returnsmaxResultsresults in a single page along with anextTokenresponse element. The remaining results of the initial request can be seen by sending anotherListTasksrequest with the returnednextTokenvalue. This value can be between 1 and 100. If this parameter is not used, thenListTasksreturns up to 100 results and anextTokenvalue if applicable.- Parameters:
maxResults- The maximum number of task results returned byListTasksin paginated output. When this parameter is used,ListTasksonly returnsmaxResultsresults in a single page along with anextTokenresponse element. The remaining results of the initial request can be seen by sending anotherListTasksrequest with the returnednextTokenvalue. This value can be between 1 and 100. If this parameter is not used, thenListTasksreturns up to 100 results and anextTokenvalue if applicable.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setStartedBy
public void setStartedBy(String startedBy)
The
startedByvalue with which to filter the task results. Specifying astartedByvalue limits the results to tasks that were started with that value.- Parameters:
startedBy- ThestartedByvalue with which to filter the task results. Specifying astartedByvalue limits the results to tasks that were started with that value.
-
getStartedBy
public String getStartedBy()
The
startedByvalue with which to filter the task results. Specifying astartedByvalue limits the results to tasks that were started with that value.- Returns:
- The
startedByvalue with which to filter the task results. Specifying astartedByvalue limits the results to tasks that were started with that value.
-
withStartedBy
public ListTasksRequest withStartedBy(String startedBy)
The
startedByvalue with which to filter the task results. Specifying astartedByvalue limits the results to tasks that were started with that value.- Parameters:
startedBy- ThestartedByvalue with which to filter the task results. Specifying astartedByvalue limits the results to tasks that were started with that value.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setServiceName
public void setServiceName(String serviceName)
The name of the service with which to filter the
ListTasksresults. Specifying aserviceNamelimits the results to tasks that belong to that service.- Parameters:
serviceName- The name of the service with which to filter theListTasksresults. Specifying aserviceNamelimits the results to tasks that belong to that service.
-
getServiceName
public String getServiceName()
The name of the service with which to filter the
ListTasksresults. Specifying aserviceNamelimits the results to tasks that belong to that service.- Returns:
- The name of the service with which to filter the
ListTasksresults. Specifying aserviceNamelimits the results to tasks that belong to that service.
-
withServiceName
public ListTasksRequest withServiceName(String serviceName)
The name of the service with which to filter the
ListTasksresults. Specifying aserviceNamelimits the results to tasks that belong to that service.- Parameters:
serviceName- The name of the service with which to filter theListTasksresults. Specifying aserviceNamelimits the results to tasks that belong to that service.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDesiredStatus
public void setDesiredStatus(String desiredStatus)
The task status with which to filter the
ListTasksresults. Specifying adesiredStatusofSTOPPEDlimits the results to tasks that are in theSTOPPEDstatus, which can be useful for debugging tasks that are not starting properly or have died or finished. The default status filter isRUNNING.- Parameters:
desiredStatus- The task status with which to filter theListTasksresults. Specifying adesiredStatusofSTOPPEDlimits the results to tasks that are in theSTOPPEDstatus, which can be useful for debugging tasks that are not starting properly or have died or finished. The default status filter isRUNNING.- See Also:
DesiredStatus
-
getDesiredStatus
public String getDesiredStatus()
The task status with which to filter the
ListTasksresults. Specifying adesiredStatusofSTOPPEDlimits the results to tasks that are in theSTOPPEDstatus, which can be useful for debugging tasks that are not starting properly or have died or finished. The default status filter isRUNNING.- Returns:
- The task status with which to filter the
ListTasksresults. Specifying adesiredStatusofSTOPPEDlimits the results to tasks that are in theSTOPPEDstatus, which can be useful for debugging tasks that are not starting properly or have died or finished. The default status filter isRUNNING. - See Also:
DesiredStatus
-
withDesiredStatus
public ListTasksRequest withDesiredStatus(String desiredStatus)
The task status with which to filter the
ListTasksresults. Specifying adesiredStatusofSTOPPEDlimits the results to tasks that are in theSTOPPEDstatus, which can be useful for debugging tasks that are not starting properly or have died or finished. The default status filter isRUNNING.- Parameters:
desiredStatus- The task status with which to filter theListTasksresults. Specifying adesiredStatusofSTOPPEDlimits the results to tasks that are in theSTOPPEDstatus, which can be useful for debugging tasks that are not starting properly or have died or finished. The default status filter isRUNNING.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
DesiredStatus
-
setDesiredStatus
public void setDesiredStatus(DesiredStatus desiredStatus)
The task status with which to filter the
ListTasksresults. Specifying adesiredStatusofSTOPPEDlimits the results to tasks that are in theSTOPPEDstatus, which can be useful for debugging tasks that are not starting properly or have died or finished. The default status filter isRUNNING.- Parameters:
desiredStatus- The task status with which to filter theListTasksresults. Specifying adesiredStatusofSTOPPEDlimits the results to tasks that are in theSTOPPEDstatus, which can be useful for debugging tasks that are not starting properly or have died or finished. The default status filter isRUNNING.- See Also:
DesiredStatus
-
withDesiredStatus
public ListTasksRequest withDesiredStatus(DesiredStatus desiredStatus)
The task status with which to filter the
ListTasksresults. Specifying adesiredStatusofSTOPPEDlimits the results to tasks that are in theSTOPPEDstatus, which can be useful for debugging tasks that are not starting properly or have died or finished. The default status filter isRUNNING.- Parameters:
desiredStatus- The task status with which to filter theListTasksresults. Specifying adesiredStatusofSTOPPEDlimits the results to tasks that are in theSTOPPEDstatus, which can be useful for debugging tasks that are not starting properly or have died or finished. The default status filter isRUNNING.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
DesiredStatus
-
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 ListTasksRequest 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()
-
-