@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SendBonusRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
SendBonusRequest() |
Modifier and Type | Method and Description |
---|---|
SendBonusRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getAssignmentId()
The ID of the assignment for which this bonus is paid.
|
String |
getBonusAmount()
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).
|
String |
getReason()
A message that explains the reason for the bonus payment.
|
String |
getUniqueRequestToken()
A unique identifier for this request, which allows you to retry the call on error without granting multiple
bonuses.
|
String |
getWorkerId()
The ID of the Worker being paid the bonus.
|
int |
hashCode() |
void |
setAssignmentId(String assignmentId)
The ID of the assignment for which this bonus is paid.
|
void |
setBonusAmount(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).
|
void |
setReason(String reason)
A message that explains the reason for the bonus payment.
|
void |
setUniqueRequestToken(String uniqueRequestToken)
A unique identifier for this request, which allows you to retry the call on error without granting multiple
bonuses.
|
void |
setWorkerId(String workerId)
The ID of the Worker being paid the bonus.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
SendBonusRequest |
withAssignmentId(String assignmentId)
The ID of the assignment for which this bonus is paid.
|
SendBonusRequest |
withBonusAmount(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 |
withReason(String reason)
A message that explains the reason for the bonus payment.
|
SendBonusRequest |
withUniqueRequestToken(String uniqueRequestToken)
A unique identifier for this request, which allows you to retry the call on error without granting multiple
bonuses.
|
SendBonusRequest |
withWorkerId(String workerId)
The ID of the Worker being paid the bonus.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setWorkerId(String workerId)
The ID of the Worker being paid the bonus.
workerId
- The ID of the Worker being paid the bonus.public String getWorkerId()
The ID of the Worker being paid the bonus.
public SendBonusRequest withWorkerId(String workerId)
The ID of the Worker being paid the bonus.
workerId
- The ID of the Worker being paid the bonus.public void setBonusAmount(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.public String getBonusAmount()
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 SendBonusRequest withBonusAmount(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.public void setAssignmentId(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.public String getAssignmentId()
The ID of the assignment for which this bonus is paid.
public SendBonusRequest withAssignmentId(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.public void setReason(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.public String getReason()
A message that explains the reason for the bonus payment. The Worker receiving the bonus can see this message.
public SendBonusRequest withReason(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.public void setUniqueRequestToken(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.public String getUniqueRequestToken()
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 withUniqueRequestToken(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.public String toString()
toString
in class Object
Object.toString()
public SendBonusRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.