Interface CreateHitResponse.Builder

All Superinterfaces:
AwsResponse.Builder, Buildable, CopyableBuilder<CreateHitResponse.Builder,CreateHitResponse>, MTurkResponse.Builder, SdkBuilder<CreateHitResponse.Builder,CreateHitResponse>, SdkPojo, SdkResponse.Builder
Enclosing class:
CreateHitResponse

public static interface CreateHitResponse.Builder extends MTurkResponse.Builder, SdkPojo, CopyableBuilder<CreateHitResponse.Builder,CreateHitResponse>
  • Method Details

    • 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

      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 the HIT.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).

      Parameters:
      hit - a consumer that will call methods on HIT.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: