@Generated(value="software.amazon.awssdk:codegen") public final class SendBonusRequest extends MTurkRequest implements ToCopyableBuilder<SendBonusRequest.Builder,SendBonusRequest>
Modifier and Type | Class and Description |
---|---|
static interface |
SendBonusRequest.Builder |
Modifier and Type | Method and Description |
---|---|
String |
assignmentId()
The ID of the assignment for which this bonus is paid.
|
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).
|
static SendBonusRequest.Builder |
builder() |
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz)
Used to retrieve the value of a field from any class that extends
SdkRequest . |
int |
hashCode() |
String |
reason()
A message that explains the reason for the bonus payment.
|
static Class<? extends SendBonusRequest.Builder> |
serializableBuilderClass() |
SendBonusRequest.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
String |
uniqueRequestToken()
A unique identifier for this request, which allows you to retry the call on error without granting multiple
bonuses.
|
String |
workerId()
The ID of the Worker being paid the bonus.
|
overrideConfiguration
copy
public String workerId()
The ID of the Worker being paid the bonus.
public 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.
public String assignmentId()
The ID of the assignment for which this bonus is paid.
public String reason()
A message that explains the reason for the bonus payment. The Worker receiving the bonus can see this message.
public 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.
public SendBonusRequest.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<SendBonusRequest.Builder,SendBonusRequest>
toBuilder
in class MTurkRequest
public static SendBonusRequest.Builder builder()
public static Class<? extends SendBonusRequest.Builder> serializableBuilderClass()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
SdkRequest
SdkRequest
. The field name
specified should match the member name from the corresponding service-2.json model specified in the
codegen-resources folder for a given service. The class specifies what class to cast the returned value to.
If the returned value is also a modeled class, the SdkRequest.getValueForField(String, Class)
method will
again be available.getValueForField
in class SdkRequest
fieldName
- The name of the member to be retrieved.clazz
- The class to cast the returned object to.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.