Interface PublicWorkforceTaskPrice.Builder

All Superinterfaces:
Buildable, CopyableBuilder<PublicWorkforceTaskPrice.Builder,PublicWorkforceTaskPrice>, SdkBuilder<PublicWorkforceTaskPrice.Builder,PublicWorkforceTaskPrice>, SdkPojo
Enclosing class:
PublicWorkforceTaskPrice

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

    • amountInUsd

      PublicWorkforceTaskPrice.Builder amountInUsd(USD amountInUsd)

      Defines the amount of money paid to an Amazon Mechanical Turk worker in United States dollars.

      Parameters:
      amountInUsd - Defines the amount of money paid to an Amazon Mechanical Turk worker in United States dollars.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • amountInUsd

      default PublicWorkforceTaskPrice.Builder amountInUsd(Consumer<USD.Builder> amountInUsd)

      Defines the amount of money paid to an Amazon Mechanical Turk worker in United States dollars.

      This is a convenience method that creates an instance of the USD.Builder avoiding the need to create one manually via USD.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to amountInUsd(USD).

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