/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace MTurk { namespace Model { /** */ class SendBonusRequest : public MTurkRequest { public: AWS_MTURK_API SendBonusRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "SendBonus"; } AWS_MTURK_API Aws::String SerializePayload() const override; AWS_MTURK_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The ID of the Worker being paid the bonus.

*/ inline const Aws::String& GetWorkerId() const{ return m_workerId; } /** *

The ID of the Worker being paid the bonus.

*/ inline bool WorkerIdHasBeenSet() const { return m_workerIdHasBeenSet; } /** *

The ID of the Worker being paid the bonus.

*/ inline void SetWorkerId(const Aws::String& value) { m_workerIdHasBeenSet = true; m_workerId = value; } /** *

The ID of the Worker being paid the bonus.

*/ inline void SetWorkerId(Aws::String&& value) { m_workerIdHasBeenSet = true; m_workerId = std::move(value); } /** *

The ID of the Worker being paid the bonus.

*/ inline void SetWorkerId(const char* value) { m_workerIdHasBeenSet = true; m_workerId.assign(value); } /** *

The ID of the Worker being paid the bonus.

*/ inline SendBonusRequest& WithWorkerId(const Aws::String& value) { SetWorkerId(value); return *this;} /** *

The ID of the Worker being paid the bonus.

*/ inline SendBonusRequest& WithWorkerId(Aws::String&& value) { SetWorkerId(std::move(value)); return *this;} /** *

The ID of the Worker being paid the bonus.

*/ inline SendBonusRequest& WithWorkerId(const char* value) { SetWorkerId(value); return *this;} /** *

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.

*/ inline const Aws::String& GetBonusAmount() const{ return m_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.

*/ inline bool BonusAmountHasBeenSet() const { return m_bonusAmountHasBeenSet; } /** *

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.

*/ inline void SetBonusAmount(const Aws::String& value) { m_bonusAmountHasBeenSet = true; m_bonusAmount = value; } /** *

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.

*/ inline void SetBonusAmount(Aws::String&& value) { m_bonusAmountHasBeenSet = true; m_bonusAmount = std::move(value); } /** *

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.

*/ inline void SetBonusAmount(const char* value) { m_bonusAmountHasBeenSet = true; m_bonusAmount.assign(value); } /** *

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.

*/ inline SendBonusRequest& WithBonusAmount(const Aws::String& value) { SetBonusAmount(value); return *this;} /** *

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.

*/ inline SendBonusRequest& WithBonusAmount(Aws::String&& value) { SetBonusAmount(std::move(value)); return *this;} /** *

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.

*/ inline SendBonusRequest& WithBonusAmount(const char* value) { SetBonusAmount(value); return *this;} /** *

The ID of the assignment for which this bonus is paid.

*/ inline const Aws::String& GetAssignmentId() const{ return m_assignmentId; } /** *

The ID of the assignment for which this bonus is paid.

*/ inline bool AssignmentIdHasBeenSet() const { return m_assignmentIdHasBeenSet; } /** *

The ID of the assignment for which this bonus is paid.

*/ inline void SetAssignmentId(const Aws::String& value) { m_assignmentIdHasBeenSet = true; m_assignmentId = value; } /** *

The ID of the assignment for which this bonus is paid.

*/ inline void SetAssignmentId(Aws::String&& value) { m_assignmentIdHasBeenSet = true; m_assignmentId = std::move(value); } /** *

The ID of the assignment for which this bonus is paid.

*/ inline void SetAssignmentId(const char* value) { m_assignmentIdHasBeenSet = true; m_assignmentId.assign(value); } /** *

The ID of the assignment for which this bonus is paid.

*/ inline SendBonusRequest& WithAssignmentId(const Aws::String& value) { SetAssignmentId(value); return *this;} /** *

The ID of the assignment for which this bonus is paid.

*/ inline SendBonusRequest& WithAssignmentId(Aws::String&& value) { SetAssignmentId(std::move(value)); return *this;} /** *

The ID of the assignment for which this bonus is paid.

*/ inline SendBonusRequest& WithAssignmentId(const char* value) { SetAssignmentId(value); return *this;} /** *

A message that explains the reason for the bonus payment. The Worker * receiving the bonus can see this message.

*/ inline const Aws::String& GetReason() const{ return m_reason; } /** *

A message that explains the reason for the bonus payment. The Worker * receiving the bonus can see this message.

*/ inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; } /** *

A message that explains the reason for the bonus payment. The Worker * receiving the bonus can see this message.

*/ inline void SetReason(const Aws::String& value) { m_reasonHasBeenSet = true; m_reason = value; } /** *

A message that explains the reason for the bonus payment. The Worker * receiving the bonus can see this message.

*/ inline void SetReason(Aws::String&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); } /** *

A message that explains the reason for the bonus payment. The Worker * receiving the bonus can see this message.

*/ inline void SetReason(const char* value) { m_reasonHasBeenSet = true; m_reason.assign(value); } /** *

A message that explains the reason for the bonus payment. The Worker * receiving the bonus can see this message.

*/ inline SendBonusRequest& WithReason(const Aws::String& value) { SetReason(value); return *this;} /** *

A message that explains the reason for the bonus payment. The Worker * receiving the bonus can see this message.

*/ inline SendBonusRequest& WithReason(Aws::String&& value) { SetReason(std::move(value)); return *this;} /** *

A message that explains the reason for the bonus payment. The Worker * receiving the bonus can see this message.

*/ inline SendBonusRequest& WithReason(const char* value) { SetReason(value); return *this;} /** *

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.

*/ inline const Aws::String& GetUniqueRequestToken() const{ return m_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.

*/ inline bool UniqueRequestTokenHasBeenSet() const { return m_uniqueRequestTokenHasBeenSet; } /** *

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.

*/ inline void SetUniqueRequestToken(const Aws::String& value) { m_uniqueRequestTokenHasBeenSet = true; m_uniqueRequestToken = value; } /** *

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.

*/ inline void SetUniqueRequestToken(Aws::String&& value) { m_uniqueRequestTokenHasBeenSet = true; m_uniqueRequestToken = std::move(value); } /** *

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.

*/ inline void SetUniqueRequestToken(const char* value) { m_uniqueRequestTokenHasBeenSet = true; m_uniqueRequestToken.assign(value); } /** *

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.

*/ inline SendBonusRequest& WithUniqueRequestToken(const Aws::String& value) { SetUniqueRequestToken(value); return *this;} /** *

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.

*/ inline SendBonusRequest& WithUniqueRequestToken(Aws::String&& value) { SetUniqueRequestToken(std::move(value)); return *this;} /** *

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.

*/ inline SendBonusRequest& WithUniqueRequestToken(const char* value) { SetUniqueRequestToken(value); return *this;} private: Aws::String m_workerId; bool m_workerIdHasBeenSet = false; Aws::String m_bonusAmount; bool m_bonusAmountHasBeenSet = false; Aws::String m_assignmentId; bool m_assignmentIdHasBeenSet = false; Aws::String m_reason; bool m_reasonHasBeenSet = false; Aws::String m_uniqueRequestToken; bool m_uniqueRequestTokenHasBeenSet = false; }; } // namespace Model } // namespace MTurk } // namespace Aws