Interface ListWorkerBlocksResponse.Builder

  • Method Details

    • nextToken

      Sets the value of the NextToken property for this object.
      Parameters:
      nextToken - The new value for the NextToken property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • numResults

      ListWorkerBlocksResponse.Builder numResults(Integer numResults)

      The number of assignments on the page in the filtered results list, equivalent to the number of assignments returned by this call.

      Parameters:
      numResults - The number of assignments on the page in the filtered results list, equivalent to the number of assignments returned by this call.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • workerBlocks

      The list of WorkerBlocks, containing the collection of Worker IDs and reasons for blocking.

      Parameters:
      workerBlocks - The list of WorkerBlocks, containing the collection of Worker IDs and reasons for blocking.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • workerBlocks

      ListWorkerBlocksResponse.Builder workerBlocks(WorkerBlock... workerBlocks)

      The list of WorkerBlocks, containing the collection of Worker IDs and reasons for blocking.

      Parameters:
      workerBlocks - The list of WorkerBlocks, containing the collection of Worker IDs and reasons for blocking.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • workerBlocks

      The list of WorkerBlocks, containing the collection of Worker IDs and reasons for blocking.

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

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

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