Interface ListTasksRequest.Builder

    • 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 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

        ListTasksRequest.Builder filters​(Consumer<TaskFilter.Builder>... 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).

        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:
        #filters(java.util.Collection)