public static interface CreateHitWithHitTypeResponse.Builder extends MTurkResponse.Builder, SdkPojo, CopyableBuilder<CreateHitWithHitTypeResponse.Builder,CreateHitWithHitTypeResponse>
| Modifier and Type | Method and Description |
|---|---|
default CreateHitWithHitTypeResponse.Builder |
hit(Consumer<HIT.Builder> hit)
Contains the newly created HIT data.
|
CreateHitWithHitTypeResponse.Builder |
hit(HIT hit)
Contains the newly created HIT data.
|
build, responseMetadata, responseMetadatasdkHttpResponse, sdkHttpResponseequalsBySdkFields, sdkFieldscopyapplyMutation, buildCreateHitWithHitTypeResponse.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 CreateHitWithHitTypeResponse.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 method 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.Builderhit(HIT)Copyright © 2023. All rights reserved.