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 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 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: