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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ListWorkerBlocksResponse.BuildernextToken(String nextToken)Sets the value of the NextToken property for this object.ListWorkerBlocksResponse.BuildernumResults(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.BuilderworkerBlocks(Collection<WorkerBlock> workerBlocks)The list of WorkerBlocks, containing the collection of Worker IDs and reasons for blocking.ListWorkerBlocksResponse.BuilderworkerBlocks(Consumer<WorkerBlock.Builder>... workerBlocks)The list of WorkerBlocks, containing the collection of Worker IDs and reasons for blocking.ListWorkerBlocksResponse.BuilderworkerBlocks(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
copy
-
Methods inherited from interface software.amazon.awssdk.services.mturk.model.MTurkResponse.Builder
build, responseMetadata, responseMetadata
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
-
-
-
Method Detail
-
nextToken
ListWorkerBlocksResponse.Builder nextToken(String 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
ListWorkerBlocksResponse.Builder workerBlocks(Collection<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
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
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 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 to#workerBlocks(List.) - 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:
#workerBlocks(java.util.Collection)
-
-