public static interface ListWorkerBlocksResponse.Builder extends MTurkResponse.Builder, CopyableBuilder<ListWorkerBlocksResponse.Builder,ListWorkerBlocksResponse>
Modifier and Type | Method and Description |
---|---|
ListWorkerBlocksResponse.Builder |
nextToken(String nextToken)
Sets the value of the NextToken property for this object.
|
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.
|
ListWorkerBlocksResponse.Builder |
workerBlocks(Collection<WorkerBlock> workerBlocks)
The list of WorkerBlocks, containing the collection of Worker IDs and reasons for blocking.
|
ListWorkerBlocksResponse.Builder |
workerBlocks(Consumer<WorkerBlock.Builder>... workerBlocks)
The list of WorkerBlocks, containing the collection of Worker IDs and reasons for blocking.
|
ListWorkerBlocksResponse.Builder |
workerBlocks(WorkerBlock... workerBlocks)
The list of WorkerBlocks, containing the collection of Worker IDs and reasons for blocking.
|
build
sdkHttpResponse, sdkHttpResponse
copy
applyMutation, build
ListWorkerBlocksResponse.Builder nextToken(String nextToken)
nextToken
- The new value for the NextToken property for this object.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.
numResults
- The number of assignments on the page in the filtered results list, equivalent to the number of
assignments returned by this call.ListWorkerBlocksResponse.Builder workerBlocks(Collection<WorkerBlock> workerBlocks)
The list of WorkerBlocks, containing the collection of Worker IDs and reasons for blocking.
workerBlocks
- The list of WorkerBlocks, containing the collection of Worker IDs and reasons for blocking.ListWorkerBlocksResponse.Builder workerBlocks(WorkerBlock... workerBlocks)
The list of WorkerBlocks, containing the collection of Worker IDs and reasons for blocking.
workerBlocks
- The list of WorkerBlocks, containing the collection of Worker IDs and reasons for blocking.ListWorkerBlocksResponse.Builder workerBlocks(Consumer<WorkerBlock.Builder>... workerBlocks)
The list of WorkerBlocks, containing the collection of Worker IDs and reasons for blocking.
This is a convenience that creates an instance of theList.Builder
avoiding the need to
create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately and its
result is passed to #workerBlocks(List)
.workerBlocks
- a consumer that will call methods on List.Builder
#workerBlocks(List)
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.