Interface ListAssignmentsForHitResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<ListAssignmentsForHitResponse.Builder,
,ListAssignmentsForHitResponse> MTurkResponse.Builder
,SdkBuilder<ListAssignmentsForHitResponse.Builder,
,ListAssignmentsForHitResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
ListAssignmentsForHitResponse
public static interface ListAssignmentsForHitResponse.Builder
extends MTurkResponse.Builder, SdkPojo, CopyableBuilder<ListAssignmentsForHitResponse.Builder,ListAssignmentsForHitResponse>
-
Method Summary
Modifier and TypeMethodDescriptionassignments
(Collection<Assignment> assignments) The collection of Assignment data structures returned by this call.assignments
(Consumer<Assignment.Builder>... assignments) The collection of Assignment data structures returned by this call.assignments
(Assignment... assignments) The collection of Assignment data structures returned by this call.Sets 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.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 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.
-
assignments
The collection of Assignment data structures returned by this call.
- Parameters:
assignments
- The collection of Assignment data structures returned by this call.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
assignments
The collection of Assignment data structures returned by this call.
- Parameters:
assignments
- The collection of Assignment data structures returned by this call.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
assignments
The collection of Assignment data structures returned by this call.
This is a convenience method that creates an instance of theAssignment.Builder
avoiding the need to create one manually viaAssignment.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toassignments(List<Assignment>)
.- Parameters:
assignments
- a consumer that will call methods onAssignment.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-