Class SendBonusRequest
- java.lang.Object
-
- software.amazon.awssdk.core.SdkRequest
-
- software.amazon.awssdk.awscore.AwsRequest
-
- software.amazon.awssdk.services.mturk.model.MTurkRequest
-
- software.amazon.awssdk.services.mturk.model.SendBonusRequest
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<SendBonusRequest.Builder,SendBonusRequest>
@Generated("software.amazon.awssdk:codegen") public final class SendBonusRequest extends MTurkRequest implements ToCopyableBuilder<SendBonusRequest.Builder,SendBonusRequest>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceSendBonusRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringassignmentId()The ID of the assignment for which this bonus is paid.StringbonusAmount()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.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Stringreason()A message that explains the reason for the bonus payment.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends SendBonusRequest.Builder>serializableBuilderClass()SendBonusRequest.BuildertoBuilder()StringtoString()Returns a string representation of this object.StringuniqueRequestToken()A unique identifier for this request, which allows you to retry the call on error without granting multiple bonuses.StringworkerId()The ID of the Worker being paid the bonus.-
Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfiguration
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
workerId
public final String workerId()
The ID of the Worker being paid the bonus.
- Returns:
- The ID of the Worker being paid the bonus.
-
bonusAmount
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.
- Returns:
- 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.
-
assignmentId
public final String assignmentId()
The ID of the assignment for which this bonus is paid.
- Returns:
- The ID of the assignment for which this bonus is paid.
-
reason
public final String reason()
A message that explains the reason for the bonus payment. The Worker receiving the bonus can see this message.
- Returns:
- A message that explains the reason for the bonus payment. The Worker receiving the bonus can see this message.
-
uniqueRequestToken
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.
- Returns:
- 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.
-
toBuilder
public SendBonusRequest.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<SendBonusRequest.Builder,SendBonusRequest>- Specified by:
toBuilderin classMTurkRequest
-
builder
public static SendBonusRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends SendBonusRequest.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsRequest
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsRequest
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForFieldin classSdkRequest
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-