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.Builderassignment(Consumer<Assignment.Builder> assignment) The assignment.assignment(Assignment assignment) The assignment.default GetAssignmentResponse.Builderhit(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
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
-
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.Builderavoiding the need to create one manually viaAssignment.builder().When the
Consumercompletes,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.Builderavoiding the need to create one manually viaHIT.builder().When the
Consumercompletes,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:
-