Interface CreateHitWithHitTypeResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<CreateHitWithHitTypeResponse.Builder,CreateHitWithHitTypeResponse>,MTurkResponse.Builder,SdkBuilder<CreateHitWithHitTypeResponse.Builder,CreateHitWithHitTypeResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- CreateHitWithHitTypeResponse
public static interface CreateHitWithHitTypeResponse.Builder extends MTurkResponse.Builder, SdkPojo, CopyableBuilder<CreateHitWithHitTypeResponse.Builder,CreateHitWithHitTypeResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default CreateHitWithHitTypeResponse.Builderhit(Consumer<HIT.Builder> hit)Contains the newly created HIT data.CreateHitWithHitTypeResponse.Builderhit(HIT hit)Contains the newly created HIT data.-
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, sdkFieldNameToField, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
-
-
-
Method Detail
-
hit
CreateHitWithHitTypeResponse.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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
hit
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.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)
-
-