public static interface GetAssignmentResponse.Builder extends MTurkResponse.Builder, CopyableBuilder<GetAssignmentResponse.Builder,GetAssignmentResponse>
Modifier and Type | Method and Description |
---|---|
GetAssignmentResponse.Builder |
assignment(Assignment assignment)
The assignment.
|
default GetAssignmentResponse.Builder |
assignment(Consumer<Assignment.Builder> assignment)
The assignment.
|
default GetAssignmentResponse.Builder |
hit(Consumer<HIT.Builder> hit)
The HIT associated with this assignment.
|
GetAssignmentResponse.Builder |
hit(HIT hit)
The HIT associated with this assignment.
|
build
sdkHttpResponse, sdkHttpResponse
copy
applyMutation, build
GetAssignmentResponse.Builder assignment(Assignment assignment)
The assignment. The response includes one Assignment element.
assignment
- The assignment. The response includes one Assignment element.default GetAssignmentResponse.Builder assignment(Consumer<Assignment.Builder> assignment)
The assignment. The response includes one Assignment element.
This is a convenience that creates an instance of theAssignment.Builder
avoiding the need to create
one manually via Assignment.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its result
is passed to assignment(Assignment)
.assignment
- a consumer that will call methods on Assignment.Builder
assignment(Assignment)
GetAssignmentResponse.Builder hit(HIT hit)
The HIT associated with this assignment. The response includes one HIT element.
hit
- The HIT associated with this assignment. The response includes one HIT element.default GetAssignmentResponse.Builder hit(Consumer<HIT.Builder> hit)
The HIT associated with this assignment. The response includes one HIT element.
This is a convenience that creates an instance of theHIT.Builder
avoiding the need to create one
manually via HIT.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its result is
passed to hit(HIT)
.hit
- a consumer that will call methods on HIT.Builder
hit(HIT)
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.