public static interface CreateHitResponse.Builder extends MTurkResponse.Builder, CopyableBuilder<CreateHitResponse.Builder,CreateHitResponse>
Modifier and Type | Method and Description |
---|---|
default CreateHitResponse.Builder |
hit(Consumer<HIT.Builder> hit)
Contains the newly created HIT data.
|
CreateHitResponse.Builder |
hit(HIT hit)
Contains the newly created HIT data.
|
build
sdkHttpResponse, sdkHttpResponse
copy
applyMutation, build
CreateHitResponse.Builder hit(HIT hit)
Contains the newly created HIT data. For a description of the HIT data structure as it appears in responses, see the HIT Data Structure documentation.
hit
- Contains the newly created HIT data. For a description of the HIT data structure as it appears in
responses, see the HIT Data Structure documentation.default CreateHitResponse.Builder hit(Consumer<HIT.Builder> hit)
Contains the newly created HIT data. For a description of the HIT data structure as it appears in responses, see the HIT Data Structure documentation.
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.