Interface GetAssignmentResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<GetAssignmentResponse.Builder,
,GetAssignmentResponse> MTurkResponse.Builder
,SdkBuilder<GetAssignmentResponse.Builder,
,GetAssignmentResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
GetAssignmentResponse
public static interface GetAssignmentResponse.Builder
extends MTurkResponse.Builder, SdkPojo, CopyableBuilder<GetAssignmentResponse.Builder,GetAssignmentResponse>
-
Method Summary
Modifier and TypeMethodDescriptiondefault GetAssignmentResponse.Builder
assignment
(Consumer<Assignment.Builder> assignment) The assignment.assignment
(Assignment assignment) The assignment.default GetAssignmentResponse.Builder
hit
(Consumer<HIT.Builder> hit) The HIT associated with this assignment.The HIT associated with this assignment.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
-
assignment
The assignment. The response includes one Assignment element.
- Parameters:
assignment
- The assignment. The response includes one Assignment element.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
assignment
The assignment. The response includes one Assignment element.
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 toassignment(Assignment)
.- Parameters:
assignment
- 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:
-
hit
The HIT associated with this assignment. The response includes one HIT element.
- Parameters:
hit
- The HIT associated with this assignment. The response includes one HIT element.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
hit
The HIT associated with this assignment. The response includes one HIT element.
This is a convenience method that creates an instance of theHIT.Builder
avoiding the need to create one manually viaHIT.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tohit(HIT)
.- Parameters:
hit
- a consumer that will call methods onHIT.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-