Interface GetHitResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetHitResponse.Builder,,GetHitResponse> MTurkResponse.Builder,SdkBuilder<GetHitResponse.Builder,,GetHitResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
GetHitResponse
public static interface GetHitResponse.Builder
extends MTurkResponse.Builder, SdkPojo, CopyableBuilder<GetHitResponse.Builder,GetHitResponse>
-
Method Summary
Modifier and TypeMethodDescriptiondefault GetHitResponse.Builderhit(Consumer<HIT.Builder> hit) Contains the requested HIT data.Contains the requested HIT data.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
-
hit
Contains the requested HIT data.
- Parameters:
hit- Contains the requested HIT data.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
hit
Contains the requested HIT data.
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:
-