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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default GetAssignmentResponse.Builderassignment(Consumer<Assignment.Builder> assignment)The assignment.GetAssignmentResponse.Builderassignment(Assignment assignment)The assignment.default GetAssignmentResponse.Builderhit(Consumer<HIT.Builder> hit)The HIT associated with this assignment.GetAssignmentResponse.Builderhit(HIT hit)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 Detail
-
assignment
GetAssignmentResponse.Builder assignment(Assignment 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
default GetAssignmentResponse.Builder assignment(Consumer<Assignment.Builder> 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:
assignment(Assignment)
-
hit
GetAssignmentResponse.Builder hit(HIT 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
default GetAssignmentResponse.Builder hit(Consumer<HIT.Builder> 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:
hit(HIT)
-
-