@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) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
reason()
A message that explains the reason for the bonus payment.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends SendBonusRequest.Builder> |
serializableBuilderClass() |
SendBonusRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
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.
|
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String workerId()
The ID of the Worker being paid the bonus.
public final 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 final String assignmentId()
The ID of the assignment for which this bonus is paid.
public final String reason()
A message that explains the reason for the bonus payment. The Worker receiving the bonus can see this message.
public final 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()
toBuilder in interface ToCopyableBuilder<SendBonusRequest.Builder,SendBonusRequest>toBuilder in class MTurkRequestpublic static SendBonusRequest.Builder builder()
public static Class<? extends SendBonusRequest.Builder> serializableBuilderClass()
public final int hashCode()
hashCode in class AwsRequestpublic final boolean equals(Object obj)
equals in class AwsRequestpublic final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkRequestCopyright © 2023. All rights reserved.