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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ListBonusPaymentsResponse.BuilderbonusPayments(Collection<BonusPayment> bonusPayments)A successful request to the ListBonusPayments operation returns a list of BonusPayment objects.ListBonusPaymentsResponse.BuilderbonusPayments(Consumer<BonusPayment.Builder>... bonusPayments)A successful request to the ListBonusPayments operation returns a list of BonusPayment objects.ListBonusPaymentsResponse.BuilderbonusPayments(BonusPayment... bonusPayments)A successful request to the ListBonusPayments operation returns a list of BonusPayment objects.ListBonusPaymentsResponse.BuildernextToken(String nextToken)Sets the value of the NextToken property for this object.ListBonusPaymentsResponse.BuildernumResults(Integer 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.-
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, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
-
-
-
Method Detail
-
numResults
ListBonusPaymentsResponse.Builder numResults(Integer 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
ListBonusPaymentsResponse.Builder nextToken(String 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
ListBonusPaymentsResponse.Builder bonusPayments(Collection<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
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
ListBonusPaymentsResponse.Builder bonusPayments(Consumer<BonusPayment.Builder>... bonusPayments)
A successful request to the ListBonusPayments operation returns a list of BonusPayment objects.
This is a convenience method that creates an instance of theBonusPayment.Builderavoiding the need to create one manually viaBonusPayment.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#bonusPayments(List.) - Parameters:
bonusPayments- a consumer that will call methods onBonusPayment.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#bonusPayments(java.util.Collection)
-
-