AWS SDK for C++  1.9.40
AWS SDK for C++
SendBonusRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace MTurk
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "SendBonus"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
40  inline const Aws::String& GetWorkerId() const{ return m_workerId; }
41 
45  inline bool WorkerIdHasBeenSet() const { return m_workerIdHasBeenSet; }
46 
50  inline void SetWorkerId(const Aws::String& value) { m_workerIdHasBeenSet = true; m_workerId = value; }
51 
55  inline void SetWorkerId(Aws::String&& value) { m_workerIdHasBeenSet = true; m_workerId = std::move(value); }
56 
60  inline void SetWorkerId(const char* value) { m_workerIdHasBeenSet = true; m_workerId.assign(value); }
61 
65  inline SendBonusRequest& WithWorkerId(const Aws::String& value) { SetWorkerId(value); return *this;}
66 
70  inline SendBonusRequest& WithWorkerId(Aws::String&& value) { SetWorkerId(std::move(value)); return *this;}
71 
75  inline SendBonusRequest& WithWorkerId(const char* value) { SetWorkerId(value); return *this;}
76 
77 
83  inline const Aws::String& GetBonusAmount() const{ return m_bonusAmount; }
84 
90  inline bool BonusAmountHasBeenSet() const { return m_bonusAmountHasBeenSet; }
91 
97  inline void SetBonusAmount(const Aws::String& value) { m_bonusAmountHasBeenSet = true; m_bonusAmount = value; }
98 
104  inline void SetBonusAmount(Aws::String&& value) { m_bonusAmountHasBeenSet = true; m_bonusAmount = std::move(value); }
105 
111  inline void SetBonusAmount(const char* value) { m_bonusAmountHasBeenSet = true; m_bonusAmount.assign(value); }
112 
118  inline SendBonusRequest& WithBonusAmount(const Aws::String& value) { SetBonusAmount(value); return *this;}
119 
125  inline SendBonusRequest& WithBonusAmount(Aws::String&& value) { SetBonusAmount(std::move(value)); return *this;}
126 
132  inline SendBonusRequest& WithBonusAmount(const char* value) { SetBonusAmount(value); return *this;}
133 
134 
138  inline const Aws::String& GetAssignmentId() const{ return m_assignmentId; }
139 
143  inline bool AssignmentIdHasBeenSet() const { return m_assignmentIdHasBeenSet; }
144 
148  inline void SetAssignmentId(const Aws::String& value) { m_assignmentIdHasBeenSet = true; m_assignmentId = value; }
149 
153  inline void SetAssignmentId(Aws::String&& value) { m_assignmentIdHasBeenSet = true; m_assignmentId = std::move(value); }
154 
158  inline void SetAssignmentId(const char* value) { m_assignmentIdHasBeenSet = true; m_assignmentId.assign(value); }
159 
163  inline SendBonusRequest& WithAssignmentId(const Aws::String& value) { SetAssignmentId(value); return *this;}
164 
168  inline SendBonusRequest& WithAssignmentId(Aws::String&& value) { SetAssignmentId(std::move(value)); return *this;}
169 
173  inline SendBonusRequest& WithAssignmentId(const char* value) { SetAssignmentId(value); return *this;}
174 
175 
180  inline const Aws::String& GetReason() const{ return m_reason; }
181 
186  inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
187 
192  inline void SetReason(const Aws::String& value) { m_reasonHasBeenSet = true; m_reason = value; }
193 
198  inline void SetReason(Aws::String&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
199 
204  inline void SetReason(const char* value) { m_reasonHasBeenSet = true; m_reason.assign(value); }
205 
210  inline SendBonusRequest& WithReason(const Aws::String& value) { SetReason(value); return *this;}
211 
216  inline SendBonusRequest& WithReason(Aws::String&& value) { SetReason(std::move(value)); return *this;}
217 
222  inline SendBonusRequest& WithReason(const char* value) { SetReason(value); return *this;}
223 
224 
233  inline const Aws::String& GetUniqueRequestToken() const{ return m_uniqueRequestToken; }
234 
243  inline bool UniqueRequestTokenHasBeenSet() const { return m_uniqueRequestTokenHasBeenSet; }
244 
253  inline void SetUniqueRequestToken(const Aws::String& value) { m_uniqueRequestTokenHasBeenSet = true; m_uniqueRequestToken = value; }
254 
263  inline void SetUniqueRequestToken(Aws::String&& value) { m_uniqueRequestTokenHasBeenSet = true; m_uniqueRequestToken = std::move(value); }
264 
273  inline void SetUniqueRequestToken(const char* value) { m_uniqueRequestTokenHasBeenSet = true; m_uniqueRequestToken.assign(value); }
274 
283  inline SendBonusRequest& WithUniqueRequestToken(const Aws::String& value) { SetUniqueRequestToken(value); return *this;}
284 
293  inline SendBonusRequest& WithUniqueRequestToken(Aws::String&& value) { SetUniqueRequestToken(std::move(value)); return *this;}
294 
303  inline SendBonusRequest& WithUniqueRequestToken(const char* value) { SetUniqueRequestToken(value); return *this;}
304 
305  private:
306 
307  Aws::String m_workerId;
308  bool m_workerIdHasBeenSet;
309 
310  Aws::String m_bonusAmount;
311  bool m_bonusAmountHasBeenSet;
312 
313  Aws::String m_assignmentId;
314  bool m_assignmentIdHasBeenSet;
315 
316  Aws::String m_reason;
317  bool m_reasonHasBeenSet;
318 
319  Aws::String m_uniqueRequestToken;
320  bool m_uniqueRequestTokenHasBeenSet;
321  };
322 
323 } // namespace Model
324 } // namespace MTurk
325 } // namespace Aws
Aws::MTurk::Model::SendBonusRequest::WithReason
SendBonusRequest & WithReason(const char *value)
Definition: SendBonusRequest.h:222
Aws::MTurk::Model::SendBonusRequest::GetUniqueRequestToken
const Aws::String & GetUniqueRequestToken() const
Definition: SendBonusRequest.h:233
Aws::MTurk::Model::SendBonusRequest::SetAssignmentId
void SetAssignmentId(const char *value)
Definition: SendBonusRequest.h:158
Aws::MTurk::Model::SendBonusRequest::WorkerIdHasBeenSet
bool WorkerIdHasBeenSet() const
Definition: SendBonusRequest.h:45
Aws::MTurk::Model::SendBonusRequest::WithReason
SendBonusRequest & WithReason(const Aws::String &value)
Definition: SendBonusRequest.h:210
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::MTurk::Model::SendBonusRequest::WithAssignmentId
SendBonusRequest & WithAssignmentId(Aws::String &&value)
Definition: SendBonusRequest.h:168
Aws::MTurk::Model::SendBonusRequest::WithBonusAmount
SendBonusRequest & WithBonusAmount(Aws::String &&value)
Definition: SendBonusRequest.h:125
Aws::MTurk::Model::SendBonusRequest::SetWorkerId
void SetWorkerId(const Aws::String &value)
Definition: SendBonusRequest.h:50
Aws::MTurk::Model::SendBonusRequest::SetAssignmentId
void SetAssignmentId(const Aws::String &value)
Definition: SendBonusRequest.h:148
Aws::MTurk::Model::SendBonusRequest::WithWorkerId
SendBonusRequest & WithWorkerId(const Aws::String &value)
Definition: SendBonusRequest.h:65
Aws::MTurk::Model::SendBonusRequest::SetReason
void SetReason(const char *value)
Definition: SendBonusRequest.h:204
Aws::MTurk::Model::SendBonusRequest::WithUniqueRequestToken
SendBonusRequest & WithUniqueRequestToken(Aws::String &&value)
Definition: SendBonusRequest.h:293
Aws::MTurk::Model::SendBonusRequest::WithWorkerId
SendBonusRequest & WithWorkerId(const char *value)
Definition: SendBonusRequest.h:75
Aws::MTurk::Model::SendBonusRequest::GetAssignmentId
const Aws::String & GetAssignmentId() const
Definition: SendBonusRequest.h:138
Aws::MTurk::MTurkRequest
Definition: MTurkRequest.h:17
Aws::MTurk::Model::SendBonusRequest::ReasonHasBeenSet
bool ReasonHasBeenSet() const
Definition: SendBonusRequest.h:186
Aws::MTurk::Model::SendBonusRequest::SetReason
void SetReason(const Aws::String &value)
Definition: SendBonusRequest.h:192
Aws::MTurk::Model::SendBonusRequest::SetAssignmentId
void SetAssignmentId(Aws::String &&value)
Definition: SendBonusRequest.h:153
MTurkRequest.h
Aws::MTurk::Model::SendBonusRequest::SetBonusAmount
void SetBonusAmount(const char *value)
Definition: SendBonusRequest.h:111
Aws::MTurk::Model::SendBonusRequest::WithReason
SendBonusRequest & WithReason(Aws::String &&value)
Definition: SendBonusRequest.h:216
Aws::MTurk::Model::SendBonusRequest::SetBonusAmount
void SetBonusAmount(Aws::String &&value)
Definition: SendBonusRequest.h:104
Aws::MTurk::Model::SendBonusRequest::GetBonusAmount
const Aws::String & GetBonusAmount() const
Definition: SendBonusRequest.h:83
Aws::MTurk::Model::SendBonusRequest::WithAssignmentId
SendBonusRequest & WithAssignmentId(const char *value)
Definition: SendBonusRequest.h:173
Aws::MTurk::Model::SendBonusRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: SendBonusRequest.h:30
AWSString.h
Aws::MTurk::Model::SendBonusRequest::SetReason
void SetReason(Aws::String &&value)
Definition: SendBonusRequest.h:198
Aws::MTurk::Model::SendBonusRequest::WithBonusAmount
SendBonusRequest & WithBonusAmount(const char *value)
Definition: SendBonusRequest.h:132
Aws::MTurk::Model::SendBonusRequest::SetUniqueRequestToken
void SetUniqueRequestToken(Aws::String &&value)
Definition: SendBonusRequest.h:263
Aws::MTurk::Model::SendBonusRequest::WithAssignmentId
SendBonusRequest & WithAssignmentId(const Aws::String &value)
Definition: SendBonusRequest.h:163
Aws::MTurk::Model::SendBonusRequest::WithUniqueRequestToken
SendBonusRequest & WithUniqueRequestToken(const char *value)
Definition: SendBonusRequest.h:303
Aws::MTurk::Model::SendBonusRequest::WithBonusAmount
SendBonusRequest & WithBonusAmount(const Aws::String &value)
Definition: SendBonusRequest.h:118
Aws::MTurk::Model::SendBonusRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::MTurk::Model::SendBonusRequest
Definition: SendBonusRequest.h:22
MTurk_EXPORTS.h
Aws::MTurk::Model::SendBonusRequest::SetUniqueRequestToken
void SetUniqueRequestToken(const Aws::String &value)
Definition: SendBonusRequest.h:253
Aws::MTurk::Model::SendBonusRequest::SetUniqueRequestToken
void SetUniqueRequestToken(const char *value)
Definition: SendBonusRequest.h:273
Aws
Definition: AccessManagementClient.h:15
Aws::MTurk::Model::SendBonusRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_MTURK_API
#define AWS_MTURK_API
Definition: MTurk_EXPORTS.h:28
Aws::MTurk::Model::SendBonusRequest::AssignmentIdHasBeenSet
bool AssignmentIdHasBeenSet() const
Definition: SendBonusRequest.h:143
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::MTurk::Model::SendBonusRequest::SendBonusRequest
SendBonusRequest()
Aws::MTurk::Model::SendBonusRequest::UniqueRequestTokenHasBeenSet
bool UniqueRequestTokenHasBeenSet() const
Definition: SendBonusRequest.h:243
Aws::MTurk::Model::SendBonusRequest::SetWorkerId
void SetWorkerId(const char *value)
Definition: SendBonusRequest.h:60
Aws::MTurk::Model::SendBonusRequest::WithUniqueRequestToken
SendBonusRequest & WithUniqueRequestToken(const Aws::String &value)
Definition: SendBonusRequest.h:283
Aws::MTurk::Model::SendBonusRequest::SetBonusAmount
void SetBonusAmount(const Aws::String &value)
Definition: SendBonusRequest.h:97
Aws::MTurk::Model::SendBonusRequest::GetWorkerId
const Aws::String & GetWorkerId() const
Definition: SendBonusRequest.h:40
Aws::MTurk::Model::SendBonusRequest::SetWorkerId
void SetWorkerId(Aws::String &&value)
Definition: SendBonusRequest.h:55
Aws::MTurk::Model::SendBonusRequest::WithWorkerId
SendBonusRequest & WithWorkerId(Aws::String &&value)
Definition: SendBonusRequest.h:70
Aws::MTurk::Model::SendBonusRequest::BonusAmountHasBeenSet
bool BonusAmountHasBeenSet() const
Definition: SendBonusRequest.h:90
Aws::MTurk::Model::SendBonusRequest::GetReason
const Aws::String & GetReason() const
Definition: SendBonusRequest.h:180