Class ListTasksRequest
- All Implemented Interfaces:
ReadLimitInfo, Serializable, Cloneable
- See Also:
-
Field Summary
Fields inherited from class AmazonWebServiceRequest
NOOP -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Creates a shallow clone of this request.booleanThe short name or full Amazon Resource Name (ARN) of the cluster that hosts the tasks to list.The container instance ID or full Amazon Resource Name (ARN) of the container instance with which to filter theListTasksresults.The task status with which to filter theListTasksresults.The name of the family with which to filter theListTasksresults.The maximum number of task results returned byListTasksin paginated output.ThenextTokenvalue returned from a previous paginatedListTasksrequest wheremaxResultswas used and the results exceeded the value of that parameter.The name of the service with which to filter theListTasksresults.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.voidThe 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.toString()Returns a string representation of this object; useful for testing and debugging.withCluster(String cluster) The short name or full Amazon Resource Name (ARN) of the cluster that hosts the tasks to list.withContainerInstance(String containerInstance) The container instance ID or full Amazon Resource Name (ARN) of the container instance with which to filter theListTasksresults.withDesiredStatus(DesiredStatus desiredStatus) The task status with which to filter theListTasksresults.withDesiredStatus(String desiredStatus) The task status with which to filter theListTasksresults.withFamily(String family) The name of the family with which to filter theListTasksresults.withMaxResults(Integer maxResults) The maximum number of task results returned byListTasksin paginated output.withNextToken(String nextToken) ThenextTokenvalue returned from a previous paginatedListTasksrequest wheremaxResultswas used and the results exceeded the value of that parameter.withServiceName(String serviceName) The name of the service with which to filter theListTasksresults.withStartedBy(String startedBy) ThestartedByvalue with which to filter the task results.Methods inherited from class 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
-
Constructor Details
-
ListTasksRequest
public ListTasksRequest()
-
-
Method Details
-
setCluster
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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:
-
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:
-
withDesiredStatus
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:
-
setDesiredStatus
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:
-
withDesiredStatus
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:
-
toString
-
equals
-
hashCode
-
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:
-