Interface ListTasksRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<ListTasksRequest.Builder,ListTasksRequest>,DataSyncRequest.Builder,SdkBuilder<ListTasksRequest.Builder,ListTasksRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- ListTasksRequest
public static interface ListTasksRequest.Builder extends DataSyncRequest.Builder, SdkPojo, CopyableBuilder<ListTasksRequest.Builder,ListTasksRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ListTasksRequest.Builderfilters(Collection<TaskFilter> filters)You can use API filters to narrow down the list of resources returned byListTasks.ListTasksRequest.Builderfilters(Consumer<TaskFilter.Builder>... filters)You can use API filters to narrow down the list of resources returned byListTasks.ListTasksRequest.Builderfilters(TaskFilter... filters)You can use API filters to narrow down the list of resources returned byListTasks.ListTasksRequest.BuildermaxResults(Integer maxResults)The maximum number of tasks to return.ListTasksRequest.BuildernextToken(String nextToken)An opaque string that indicates the position at which to begin the next list of tasks.ListTasksRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)ListTasksRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.datasync.model.DataSyncRequest.Builder
build
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
maxResults
ListTasksRequest.Builder maxResults(Integer maxResults)
The maximum number of tasks to return.
- Parameters:
maxResults- The maximum number of tasks to return.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
nextToken
ListTasksRequest.Builder nextToken(String nextToken)
An opaque string that indicates the position at which to begin the next list of tasks.
- Parameters:
nextToken- An opaque string that indicates the position at which to begin the next list of tasks.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
filters
ListTasksRequest.Builder filters(Collection<TaskFilter> filters)
You can use API filters to narrow down the list of resources returned by
ListTasks. For example, to retrieve all tasks on a specific source location, you can useListTaskswith filter nameLocationIdandOperator Equalswith the ARN for the location.- Parameters:
filters- You can use API filters to narrow down the list of resources returned byListTasks. For example, to retrieve all tasks on a specific source location, you can useListTaskswith filter nameLocationIdandOperator Equalswith the ARN for the location.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
filters
ListTasksRequest.Builder filters(TaskFilter... filters)
You can use API filters to narrow down the list of resources returned by
ListTasks. For example, to retrieve all tasks on a specific source location, you can useListTaskswith filter nameLocationIdandOperator Equalswith the ARN for the location.- Parameters:
filters- You can use API filters to narrow down the list of resources returned byListTasks. For example, to retrieve all tasks on a specific source location, you can useListTaskswith filter nameLocationIdandOperator Equalswith the ARN for the location.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
filters
ListTasksRequest.Builder filters(Consumer<TaskFilter.Builder>... filters)
You can use API filters to narrow down the list of resources returned by
This is a convenience method that creates an instance of theListTasks. For example, to retrieve all tasks on a specific source location, you can useListTaskswith filter nameLocationIdandOperator Equalswith the ARN for the location.TaskFilter.Builderavoiding the need to create one manually viaTaskFilter.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#filters(List.) - Parameters:
filters- a consumer that will call methods onTaskFilter.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#filters(java.util.Collection)
-
overrideConfiguration
ListTasksRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
ListTasksRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-