Interface ListTasksRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,ContextRequest.Builder,CopyableBuilder<ListTasksRequest.Builder,,ListTasksRequest> SdkBuilder<ListTasksRequest.Builder,,ListTasksRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
ListTasksRequest
@Mutable
@NotThreadSafe
public static interface ListTasksRequest.Builder
extends ContextRequest.Builder, SdkPojo, CopyableBuilder<ListTasksRequest.Builder,ListTasksRequest>
-
Method Summary
Modifier and TypeMethodDescriptionagentContextId(String agentContextId) The agent context, as an ID or ARN.maxResults(Integer maxResults) The maximum number of tasks to return in one page, from 1–100.The pagination token from a previous ListTasks response.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.Specify a status to list only the tasks with that status.status(TaskStatus status) Specify a status to list only the tasks with that status.Specify a type to list only the tasks of that type.Specify a type to list only the tasks of that type.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.services.context.model.ContextRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
agentContextId
The agent context, as an ID or ARN.
- Parameters:
agentContextId- The agent context, as an ID or ARN.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
Specify a status to list only the tasks with that status.
- Parameters:
status- Specify a status to list only the tasks with that status.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
Specify a status to list only the tasks with that status.
- Parameters:
status- Specify a status to list only the tasks with that status.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
type
Specify a type to list only the tasks of that type.
- Parameters:
type- Specify a type to list only the tasks of that type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
type
Specify a type to list only the tasks of that type.
- Parameters:
type- Specify a type to list only the tasks of that type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
maxResults
The maximum number of tasks to return in one page, from 1–100. The service can return fewer. Defaults to 20. A value outside 1–100 fails with
ValidationException.- Parameters:
maxResults- The maximum number of tasks to return in one page, from 1–100. The service can return fewer. Defaults to 20. A value outside 1–100 fails withValidationException.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
nextToken
The pagination token from a previous ListTasks response. Omit it for the first page, and keep the
statusandtypefilters the same on every page.- Parameters:
nextToken- The pagination token from a previous ListTasks response. Omit it for the first page, and keep thestatusandtypefilters the same on every page.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
ListTasksRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
ListTasksRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-