AWS SDK for C++  1.9.104
AWS SDK for C++
BonusPayment.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace MTurk
23 {
24 namespace Model
25 {
26 
34  {
35  public:
40 
41 
45  inline const Aws::String& GetWorkerId() const{ return m_workerId; }
46 
50  inline bool WorkerIdHasBeenSet() const { return m_workerIdHasBeenSet; }
51 
55  inline void SetWorkerId(const Aws::String& value) { m_workerIdHasBeenSet = true; m_workerId = value; }
56 
60  inline void SetWorkerId(Aws::String&& value) { m_workerIdHasBeenSet = true; m_workerId = std::move(value); }
61 
65  inline void SetWorkerId(const char* value) { m_workerIdHasBeenSet = true; m_workerId.assign(value); }
66 
70  inline BonusPayment& WithWorkerId(const Aws::String& value) { SetWorkerId(value); return *this;}
71 
75  inline BonusPayment& WithWorkerId(Aws::String&& value) { SetWorkerId(std::move(value)); return *this;}
76 
80  inline BonusPayment& WithWorkerId(const char* value) { SetWorkerId(value); return *this;}
81 
82 
83 
84  inline const Aws::String& GetBonusAmount() const{ return m_bonusAmount; }
85 
86 
87  inline bool BonusAmountHasBeenSet() const { return m_bonusAmountHasBeenSet; }
88 
89 
90  inline void SetBonusAmount(const Aws::String& value) { m_bonusAmountHasBeenSet = true; m_bonusAmount = value; }
91 
92 
93  inline void SetBonusAmount(Aws::String&& value) { m_bonusAmountHasBeenSet = true; m_bonusAmount = std::move(value); }
94 
95 
96  inline void SetBonusAmount(const char* value) { m_bonusAmountHasBeenSet = true; m_bonusAmount.assign(value); }
97 
98 
99  inline BonusPayment& WithBonusAmount(const Aws::String& value) { SetBonusAmount(value); return *this;}
100 
101 
102  inline BonusPayment& WithBonusAmount(Aws::String&& value) { SetBonusAmount(std::move(value)); return *this;}
103 
104 
105  inline BonusPayment& WithBonusAmount(const char* value) { SetBonusAmount(value); return *this;}
106 
107 
111  inline const Aws::String& GetAssignmentId() const{ return m_assignmentId; }
112 
116  inline bool AssignmentIdHasBeenSet() const { return m_assignmentIdHasBeenSet; }
117 
121  inline void SetAssignmentId(const Aws::String& value) { m_assignmentIdHasBeenSet = true; m_assignmentId = value; }
122 
126  inline void SetAssignmentId(Aws::String&& value) { m_assignmentIdHasBeenSet = true; m_assignmentId = std::move(value); }
127 
131  inline void SetAssignmentId(const char* value) { m_assignmentIdHasBeenSet = true; m_assignmentId.assign(value); }
132 
136  inline BonusPayment& WithAssignmentId(const Aws::String& value) { SetAssignmentId(value); return *this;}
137 
141  inline BonusPayment& WithAssignmentId(Aws::String&& value) { SetAssignmentId(std::move(value)); return *this;}
142 
146  inline BonusPayment& WithAssignmentId(const char* value) { SetAssignmentId(value); return *this;}
147 
148 
152  inline const Aws::String& GetReason() const{ return m_reason; }
153 
157  inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
158 
162  inline void SetReason(const Aws::String& value) { m_reasonHasBeenSet = true; m_reason = value; }
163 
167  inline void SetReason(Aws::String&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
168 
172  inline void SetReason(const char* value) { m_reasonHasBeenSet = true; m_reason.assign(value); }
173 
177  inline BonusPayment& WithReason(const Aws::String& value) { SetReason(value); return *this;}
178 
182  inline BonusPayment& WithReason(Aws::String&& value) { SetReason(std::move(value)); return *this;}
183 
187  inline BonusPayment& WithReason(const char* value) { SetReason(value); return *this;}
188 
189 
193  inline const Aws::Utils::DateTime& GetGrantTime() const{ return m_grantTime; }
194 
198  inline bool GrantTimeHasBeenSet() const { return m_grantTimeHasBeenSet; }
199 
203  inline void SetGrantTime(const Aws::Utils::DateTime& value) { m_grantTimeHasBeenSet = true; m_grantTime = value; }
204 
208  inline void SetGrantTime(Aws::Utils::DateTime&& value) { m_grantTimeHasBeenSet = true; m_grantTime = std::move(value); }
209 
213  inline BonusPayment& WithGrantTime(const Aws::Utils::DateTime& value) { SetGrantTime(value); return *this;}
214 
218  inline BonusPayment& WithGrantTime(Aws::Utils::DateTime&& value) { SetGrantTime(std::move(value)); return *this;}
219 
220  private:
221 
222  Aws::String m_workerId;
223  bool m_workerIdHasBeenSet;
224 
225  Aws::String m_bonusAmount;
226  bool m_bonusAmountHasBeenSet;
227 
228  Aws::String m_assignmentId;
229  bool m_assignmentIdHasBeenSet;
230 
231  Aws::String m_reason;
232  bool m_reasonHasBeenSet;
233 
234  Aws::Utils::DateTime m_grantTime;
235  bool m_grantTimeHasBeenSet;
236  };
237 
238 } // namespace Model
239 } // namespace MTurk
240 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::MTurk::Model::BonusPayment::WorkerIdHasBeenSet
bool WorkerIdHasBeenSet() const
Definition: BonusPayment.h:50
Aws::MTurk::Model::BonusPayment::SetReason
void SetReason(const char *value)
Definition: BonusPayment.h:172
Aws::MTurk::Model::BonusPayment::ReasonHasBeenSet
bool ReasonHasBeenSet() const
Definition: BonusPayment.h:157
Aws::MTurk::Model::BonusPayment::WithReason
BonusPayment & WithReason(Aws::String &&value)
Definition: BonusPayment.h:182
Aws::MTurk::Model::BonusPayment::AssignmentIdHasBeenSet
bool AssignmentIdHasBeenSet() const
Definition: BonusPayment.h:116
Aws::MTurk::Model::BonusPayment::BonusPayment
BonusPayment(Aws::Utils::Json::JsonView jsonValue)
Aws::MTurk::Model::BonusPayment::BonusPayment
BonusPayment()
Aws::MTurk::Model::BonusPayment::WithBonusAmount
BonusPayment & WithBonusAmount(const char *value)
Definition: BonusPayment.h:105
Aws::MTurk::Model::BonusPayment::WithAssignmentId
BonusPayment & WithAssignmentId(const char *value)
Definition: BonusPayment.h:146
Aws::MTurk::Model::BonusPayment::GetBonusAmount
const Aws::String & GetBonusAmount() const
Definition: BonusPayment.h:84
DateTime.h
Aws::MTurk::Model::BonusPayment::SetReason
void SetReason(Aws::String &&value)
Definition: BonusPayment.h:167
Aws::MTurk::Model::BonusPayment::WithWorkerId
BonusPayment & WithWorkerId(const char *value)
Definition: BonusPayment.h:80
Aws::MTurk::Model::BonusPayment::WithWorkerId
BonusPayment & WithWorkerId(Aws::String &&value)
Definition: BonusPayment.h:75
Aws::MTurk::Model::BonusPayment::WithReason
BonusPayment & WithReason(const Aws::String &value)
Definition: BonusPayment.h:177
Aws::MTurk::Model::BonusPayment::SetReason
void SetReason(const Aws::String &value)
Definition: BonusPayment.h:162
Aws::MTurk::Model::BonusPayment::SetBonusAmount
void SetBonusAmount(Aws::String &&value)
Definition: BonusPayment.h:93
Aws::MTurk::Model::BonusPayment::WithBonusAmount
BonusPayment & WithBonusAmount(Aws::String &&value)
Definition: BonusPayment.h:102
Aws::MTurk::Model::BonusPayment::SetAssignmentId
void SetAssignmentId(const Aws::String &value)
Definition: BonusPayment.h:121
Aws::MTurk::Model::BonusPayment::GetReason
const Aws::String & GetReason() const
Definition: BonusPayment.h:152
Aws::MTurk::Model::BonusPayment::BonusAmountHasBeenSet
bool BonusAmountHasBeenSet() const
Definition: BonusPayment.h:87
Aws::MTurk::Model::BonusPayment::SetGrantTime
void SetGrantTime(Aws::Utils::DateTime &&value)
Definition: BonusPayment.h:208
Aws::MTurk::Model::BonusPayment::WithAssignmentId
BonusPayment & WithAssignmentId(const Aws::String &value)
Definition: BonusPayment.h:136
Aws::MTurk::Model::BonusPayment::SetWorkerId
void SetWorkerId(const char *value)
Definition: BonusPayment.h:65
Aws::MTurk::Model::BonusPayment::WithWorkerId
BonusPayment & WithWorkerId(const Aws::String &value)
Definition: BonusPayment.h:70
Aws::MTurk::Model::BonusPayment::SetWorkerId
void SetWorkerId(const Aws::String &value)
Definition: BonusPayment.h:55
Aws::MTurk::Model::BonusPayment::SetBonusAmount
void SetBonusAmount(const Aws::String &value)
Definition: BonusPayment.h:90
Aws::MTurk::Model::BonusPayment::GetAssignmentId
const Aws::String & GetAssignmentId() const
Definition: BonusPayment.h:111
Aws::MTurk::Model::BonusPayment::WithGrantTime
BonusPayment & WithGrantTime(Aws::Utils::DateTime &&value)
Definition: BonusPayment.h:218
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::MTurk::Model::BonusPayment::SetAssignmentId
void SetAssignmentId(Aws::String &&value)
Definition: BonusPayment.h:126
Aws::MTurk::Model::BonusPayment::WithReason
BonusPayment & WithReason(const char *value)
Definition: BonusPayment.h:187
Aws::MTurk::Model::BonusPayment
Definition: BonusPayment.h:34
Aws::MTurk::Model::BonusPayment::GetWorkerId
const Aws::String & GetWorkerId() const
Definition: BonusPayment.h:45
Aws::MTurk::Model::BonusPayment::SetBonusAmount
void SetBonusAmount(const char *value)
Definition: BonusPayment.h:96
Aws::MTurk::Model::BonusPayment::SetWorkerId
void SetWorkerId(Aws::String &&value)
Definition: BonusPayment.h:60
MTurk_EXPORTS.h
Aws::MTurk::Model::BonusPayment::WithBonusAmount
BonusPayment & WithBonusAmount(const Aws::String &value)
Definition: BonusPayment.h:99
Aws
Definition: AccessManagementClient.h:15
AWS_MTURK_API
#define AWS_MTURK_API
Definition: MTurk_EXPORTS.h:28
Aws::MTurk::Model::BonusPayment::GrantTimeHasBeenSet
bool GrantTimeHasBeenSet() const
Definition: BonusPayment.h:198
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::MTurk::Model::BonusPayment::SetGrantTime
void SetGrantTime(const Aws::Utils::DateTime &value)
Definition: BonusPayment.h:203
Aws::MTurk::Model::BonusPayment::WithGrantTime
BonusPayment & WithGrantTime(const Aws::Utils::DateTime &value)
Definition: BonusPayment.h:213
Aws::MTurk::Model::BonusPayment::operator=
BonusPayment & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::MTurk::Model::BonusPayment::GetGrantTime
const Aws::Utils::DateTime & GetGrantTime() const
Definition: BonusPayment.h:193
Aws::MTurk::Model::BonusPayment::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::MTurk::Model::BonusPayment::SetAssignmentId
void SetAssignmentId(const char *value)
Definition: BonusPayment.h:131
Aws::MTurk::Model::BonusPayment::WithAssignmentId
BonusPayment & WithAssignmentId(Aws::String &&value)
Definition: BonusPayment.h:141