Interface ListBonusPaymentsResponse.Builder

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

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

    • numResults

      The number of bonus payments on this page in the filtered results list, equivalent to the number of bonus payments being returned by this call.

      Parameters:
      numResults - The number of bonus payments on this page in the filtered results list, equivalent to the number of bonus payments being returned by this call.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • nextToken

      Sets the value of the NextToken property for this object.
      Parameters:
      nextToken - The new value for the NextToken property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • bonusPayments

      A successful request to the ListBonusPayments operation returns a list of BonusPayment objects.

      Parameters:
      bonusPayments - A successful request to the ListBonusPayments operation returns a list of BonusPayment objects.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • bonusPayments

      ListBonusPaymentsResponse.Builder bonusPayments(BonusPayment... bonusPayments)

      A successful request to the ListBonusPayments operation returns a list of BonusPayment objects.

      Parameters:
      bonusPayments - A successful request to the ListBonusPayments operation returns a list of BonusPayment objects.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • bonusPayments

      A successful request to the ListBonusPayments operation returns a list of BonusPayment objects.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to bonusPayments(List<BonusPayment>).

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