public static interface SendBonusRequest.Builder extends MTurkRequest.Builder, CopyableBuilder<SendBonusRequest.Builder,SendBonusRequest>
Modifier and Type | Method and Description |
---|---|
SendBonusRequest.Builder |
assignmentId(String assignmentId)
The ID of the assignment for which this bonus is paid.
|
SendBonusRequest.Builder |
bonusAmount(String bonusAmount)
The Bonus amount is a US Dollar amount specified using a string (for example, "5" represents $5.00 USD and
"101.42" represents $101.42 USD).
|
SendBonusRequest.Builder |
reason(String reason)
A message that explains the reason for the bonus payment.
|
SendBonusRequest.Builder |
requestOverrideConfig(AwsRequestOverrideConfig awsRequestOverrideConfig)
Add an optional request override configuration.
|
SendBonusRequest.Builder |
uniqueRequestToken(String uniqueRequestToken)
A unique identifier for this request, which allows you to retry the call on error without granting multiple
bonuses.
|
SendBonusRequest.Builder |
workerId(String workerId)
The ID of the Worker being paid the bonus.
|
build
requestOverrideConfig, requestOverrideConfig
copy
apply, build
SendBonusRequest.Builder workerId(String workerId)
The ID of the Worker being paid the bonus.
workerId
- The ID of the Worker being paid the bonus.SendBonusRequest.Builder bonusAmount(String bonusAmount)
The Bonus amount is a US Dollar amount specified using a string (for example, "5" represents $5.00 USD and "101.42" represents $101.42 USD). Do not include currency symbols or currency codes.
bonusAmount
- The Bonus amount is a US Dollar amount specified using a string (for example, "5" represents $5.00 USD
and "101.42" represents $101.42 USD). Do not include currency symbols or currency codes.SendBonusRequest.Builder assignmentId(String assignmentId)
The ID of the assignment for which this bonus is paid.
assignmentId
- The ID of the assignment for which this bonus is paid.SendBonusRequest.Builder reason(String reason)
A message that explains the reason for the bonus payment. The Worker receiving the bonus can see this message.
reason
- A message that explains the reason for the bonus payment. The Worker receiving the bonus can see this
message.SendBonusRequest.Builder uniqueRequestToken(String uniqueRequestToken)
A unique identifier for this request, which allows you to retry the call on error without granting multiple bonuses. This is useful in cases such as network timeouts where it is unclear whether or not the call succeeded on the server. If the bonus already exists in the system from a previous call using the same UniqueRequestToken, subsequent calls will return an error with a message containing the request ID.
uniqueRequestToken
- A unique identifier for this request, which allows you to retry the call on error without granting
multiple bonuses. This is useful in cases such as network timeouts where it is unclear whether or not
the call succeeded on the server. If the bonus already exists in the system from a previous call using
the same UniqueRequestToken, subsequent calls will return an error with a message containing the
request ID.SendBonusRequest.Builder requestOverrideConfig(AwsRequestOverrideConfig awsRequestOverrideConfig)
AwsRequest.Builder
requestOverrideConfig
in interface AwsRequest.Builder
awsRequestOverrideConfig
- The override configuration.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.