Interface ListWorkerBlocksResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<ListWorkerBlocksResponse.Builder,,ListWorkerBlocksResponse> MTurkResponse.Builder,SdkBuilder<ListWorkerBlocksResponse.Builder,,ListWorkerBlocksResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
ListWorkerBlocksResponse
public static interface ListWorkerBlocksResponse.Builder
extends MTurkResponse.Builder, SdkPojo, CopyableBuilder<ListWorkerBlocksResponse.Builder,ListWorkerBlocksResponse>
-
Method Summary
Modifier and TypeMethodDescriptionSets the value of the NextToken property for this object.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.workerBlocks(Collection<WorkerBlock> workerBlocks) The list of WorkerBlocks, containing the collection of Worker IDs and reasons for blocking.workerBlocks(Consumer<WorkerBlock.Builder>... workerBlocks) The list of WorkerBlocks, containing the collection of Worker IDs and reasons for blocking.workerBlocks(WorkerBlock... workerBlocks) The list of WorkerBlocks, containing the collection of Worker IDs and reasons for blocking.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.mturk.model.MTurkResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
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
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
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 theWorkerBlock.Builderavoiding the need to create one manually viaWorkerBlock.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toworkerBlocks(List<WorkerBlock>).- Parameters:
workerBlocks- a consumer that will call methods onWorkerBlock.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-