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 Details

    • 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

      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 use ListTasks with filter name LocationId and Operator Equals with the ARN for the location.

      Parameters:
      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 use ListTasks with filter name LocationId and Operator Equals with 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 use ListTasks with filter name LocationId and Operator Equals with the ARN for the location.

      Parameters:
      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 use ListTasks with filter name LocationId and Operator Equals with the ARN for the location.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • 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 use ListTasks with filter name LocationId and Operator Equals with the ARN for the location.

      This is a convenience method that creates an instance of the TaskFilter.Builder avoiding the need to create one manually via TaskFilter.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to filters(List<TaskFilter>).

      Parameters:
      filters - a consumer that will call methods on TaskFilter.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • overrideConfiguration

      ListTasksRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.