AWS SDK for C++

AWS SDK for C++ Version 1.11.771

Loading...
Searching...
No Matches
Assignment.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/mturk-requester/MTurk_EXPORTS.h>
10#include <aws/mturk-requester/model/AssignmentStatus.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace MTurk {
22namespace Model {
23
32 public:
33 AWS_MTURK_API Assignment() = default;
34 AWS_MTURK_API Assignment(Aws::Utils::Json::JsonView jsonValue);
36 AWS_MTURK_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetAssignmentId() const { return m_assignmentId; }
43 inline bool AssignmentIdHasBeenSet() const { return m_assignmentIdHasBeenSet; }
44 template <typename AssignmentIdT = Aws::String>
45 void SetAssignmentId(AssignmentIdT&& value) {
46 m_assignmentIdHasBeenSet = true;
47 m_assignmentId = std::forward<AssignmentIdT>(value);
48 }
49 template <typename AssignmentIdT = Aws::String>
50 Assignment& WithAssignmentId(AssignmentIdT&& value) {
51 SetAssignmentId(std::forward<AssignmentIdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetWorkerId() const { return m_workerId; }
61 inline bool WorkerIdHasBeenSet() const { return m_workerIdHasBeenSet; }
62 template <typename WorkerIdT = Aws::String>
63 void SetWorkerId(WorkerIdT&& value) {
64 m_workerIdHasBeenSet = true;
65 m_workerId = std::forward<WorkerIdT>(value);
66 }
67 template <typename WorkerIdT = Aws::String>
68 Assignment& WithWorkerId(WorkerIdT&& value) {
69 SetWorkerId(std::forward<WorkerIdT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetHITId() const { return m_hITId; }
79 inline bool HITIdHasBeenSet() const { return m_hITIdHasBeenSet; }
80 template <typename HITIdT = Aws::String>
81 void SetHITId(HITIdT&& value) {
82 m_hITIdHasBeenSet = true;
83 m_hITId = std::forward<HITIdT>(value);
84 }
85 template <typename HITIdT = Aws::String>
86 Assignment& WithHITId(HITIdT&& value) {
87 SetHITId(std::forward<HITIdT>(value));
88 return *this;
89 }
91
93
96 inline AssignmentStatus GetAssignmentStatus() const { return m_assignmentStatus; }
97 inline bool AssignmentStatusHasBeenSet() const { return m_assignmentStatusHasBeenSet; }
99 m_assignmentStatusHasBeenSet = true;
100 m_assignmentStatus = value;
101 }
103 SetAssignmentStatus(value);
104 return *this;
105 }
107
109
117 inline const Aws::Utils::DateTime& GetAutoApprovalTime() const { return m_autoApprovalTime; }
118 inline bool AutoApprovalTimeHasBeenSet() const { return m_autoApprovalTimeHasBeenSet; }
119 template <typename AutoApprovalTimeT = Aws::Utils::DateTime>
120 void SetAutoApprovalTime(AutoApprovalTimeT&& value) {
121 m_autoApprovalTimeHasBeenSet = true;
122 m_autoApprovalTime = std::forward<AutoApprovalTimeT>(value);
123 }
124 template <typename AutoApprovalTimeT = Aws::Utils::DateTime>
125 Assignment& WithAutoApprovalTime(AutoApprovalTimeT&& value) {
126 SetAutoApprovalTime(std::forward<AutoApprovalTimeT>(value));
127 return *this;
128 }
130
132
135 inline const Aws::Utils::DateTime& GetAcceptTime() const { return m_acceptTime; }
136 inline bool AcceptTimeHasBeenSet() const { return m_acceptTimeHasBeenSet; }
137 template <typename AcceptTimeT = Aws::Utils::DateTime>
138 void SetAcceptTime(AcceptTimeT&& value) {
139 m_acceptTimeHasBeenSet = true;
140 m_acceptTime = std::forward<AcceptTimeT>(value);
141 }
142 template <typename AcceptTimeT = Aws::Utils::DateTime>
143 Assignment& WithAcceptTime(AcceptTimeT&& value) {
144 SetAcceptTime(std::forward<AcceptTimeT>(value));
145 return *this;
146 }
148
150
155 inline const Aws::Utils::DateTime& GetSubmitTime() const { return m_submitTime; }
156 inline bool SubmitTimeHasBeenSet() const { return m_submitTimeHasBeenSet; }
157 template <typename SubmitTimeT = Aws::Utils::DateTime>
158 void SetSubmitTime(SubmitTimeT&& value) {
159 m_submitTimeHasBeenSet = true;
160 m_submitTime = std::forward<SubmitTimeT>(value);
161 }
162 template <typename SubmitTimeT = Aws::Utils::DateTime>
163 Assignment& WithSubmitTime(SubmitTimeT&& value) {
164 SetSubmitTime(std::forward<SubmitTimeT>(value));
165 return *this;
166 }
168
170
176 inline const Aws::Utils::DateTime& GetApprovalTime() const { return m_approvalTime; }
177 inline bool ApprovalTimeHasBeenSet() const { return m_approvalTimeHasBeenSet; }
178 template <typename ApprovalTimeT = Aws::Utils::DateTime>
179 void SetApprovalTime(ApprovalTimeT&& value) {
180 m_approvalTimeHasBeenSet = true;
181 m_approvalTime = std::forward<ApprovalTimeT>(value);
182 }
183 template <typename ApprovalTimeT = Aws::Utils::DateTime>
184 Assignment& WithApprovalTime(ApprovalTimeT&& value) {
185 SetApprovalTime(std::forward<ApprovalTimeT>(value));
186 return *this;
187 }
189
191
196 inline const Aws::Utils::DateTime& GetRejectionTime() const { return m_rejectionTime; }
197 inline bool RejectionTimeHasBeenSet() const { return m_rejectionTimeHasBeenSet; }
198 template <typename RejectionTimeT = Aws::Utils::DateTime>
199 void SetRejectionTime(RejectionTimeT&& value) {
200 m_rejectionTimeHasBeenSet = true;
201 m_rejectionTime = std::forward<RejectionTimeT>(value);
202 }
203 template <typename RejectionTimeT = Aws::Utils::DateTime>
204 Assignment& WithRejectionTime(RejectionTimeT&& value) {
205 SetRejectionTime(std::forward<RejectionTimeT>(value));
206 return *this;
207 }
209
211
216 inline const Aws::Utils::DateTime& GetDeadline() const { return m_deadline; }
217 inline bool DeadlineHasBeenSet() const { return m_deadlineHasBeenSet; }
218 template <typename DeadlineT = Aws::Utils::DateTime>
219 void SetDeadline(DeadlineT&& value) {
220 m_deadlineHasBeenSet = true;
221 m_deadline = std::forward<DeadlineT>(value);
222 }
223 template <typename DeadlineT = Aws::Utils::DateTime>
224 Assignment& WithDeadline(DeadlineT&& value) {
225 SetDeadline(std::forward<DeadlineT>(value));
226 return *this;
227 }
229
231
237 inline const Aws::String& GetAnswer() const { return m_answer; }
238 inline bool AnswerHasBeenSet() const { return m_answerHasBeenSet; }
239 template <typename AnswerT = Aws::String>
240 void SetAnswer(AnswerT&& value) {
241 m_answerHasBeenSet = true;
242 m_answer = std::forward<AnswerT>(value);
243 }
244 template <typename AnswerT = Aws::String>
245 Assignment& WithAnswer(AnswerT&& value) {
246 SetAnswer(std::forward<AnswerT>(value));
247 return *this;
248 }
250
252
257 inline const Aws::String& GetRequesterFeedback() const { return m_requesterFeedback; }
258 inline bool RequesterFeedbackHasBeenSet() const { return m_requesterFeedbackHasBeenSet; }
259 template <typename RequesterFeedbackT = Aws::String>
260 void SetRequesterFeedback(RequesterFeedbackT&& value) {
261 m_requesterFeedbackHasBeenSet = true;
262 m_requesterFeedback = std::forward<RequesterFeedbackT>(value);
263 }
264 template <typename RequesterFeedbackT = Aws::String>
265 Assignment& WithRequesterFeedback(RequesterFeedbackT&& value) {
266 SetRequesterFeedback(std::forward<RequesterFeedbackT>(value));
267 return *this;
268 }
270 private:
271 Aws::String m_assignmentId;
272
273 Aws::String m_workerId;
274
275 Aws::String m_hITId;
276
278
279 Aws::Utils::DateTime m_autoApprovalTime{};
280
281 Aws::Utils::DateTime m_acceptTime{};
282
283 Aws::Utils::DateTime m_submitTime{};
284
285 Aws::Utils::DateTime m_approvalTime{};
286
287 Aws::Utils::DateTime m_rejectionTime{};
288
289 Aws::Utils::DateTime m_deadline{};
290
291 Aws::String m_answer;
292
293 Aws::String m_requesterFeedback;
294 bool m_assignmentIdHasBeenSet = false;
295 bool m_workerIdHasBeenSet = false;
296 bool m_hITIdHasBeenSet = false;
297 bool m_assignmentStatusHasBeenSet = false;
298 bool m_autoApprovalTimeHasBeenSet = false;
299 bool m_acceptTimeHasBeenSet = false;
300 bool m_submitTimeHasBeenSet = false;
301 bool m_approvalTimeHasBeenSet = false;
302 bool m_rejectionTimeHasBeenSet = false;
303 bool m_deadlineHasBeenSet = false;
304 bool m_answerHasBeenSet = false;
305 bool m_requesterFeedbackHasBeenSet = false;
306};
307
308} // namespace Model
309} // namespace MTurk
310} // namespace Aws
const Aws::String & GetRequesterFeedback() const
Definition Assignment.h:257
const Aws::String & GetWorkerId() const
Definition Assignment.h:60
const Aws::String & GetAnswer() const
Definition Assignment.h:237
const Aws::Utils::DateTime & GetAutoApprovalTime() const
Definition Assignment.h:117
Assignment & WithAnswer(AnswerT &&value)
Definition Assignment.h:245
void SetRequesterFeedback(RequesterFeedbackT &&value)
Definition Assignment.h:260
bool RejectionTimeHasBeenSet() const
Definition Assignment.h:197
Assignment & WithRequesterFeedback(RequesterFeedbackT &&value)
Definition Assignment.h:265
Assignment & WithAutoApprovalTime(AutoApprovalTimeT &&value)
Definition Assignment.h:125
Assignment & WithHITId(HITIdT &&value)
Definition Assignment.h:86
void SetAnswer(AnswerT &&value)
Definition Assignment.h:240
const Aws::Utils::DateTime & GetApprovalTime() const
Definition Assignment.h:176
Assignment & WithWorkerId(WorkerIdT &&value)
Definition Assignment.h:68
bool AutoApprovalTimeHasBeenSet() const
Definition Assignment.h:118
void SetWorkerId(WorkerIdT &&value)
Definition Assignment.h:63
void SetRejectionTime(RejectionTimeT &&value)
Definition Assignment.h:199
AssignmentStatus GetAssignmentStatus() const
Definition Assignment.h:96
const Aws::Utils::DateTime & GetRejectionTime() const
Definition Assignment.h:196
const Aws::Utils::DateTime & GetSubmitTime() const
Definition Assignment.h:155
Assignment & WithSubmitTime(SubmitTimeT &&value)
Definition Assignment.h:163
const Aws::Utils::DateTime & GetAcceptTime() const
Definition Assignment.h:135
Assignment & WithAcceptTime(AcceptTimeT &&value)
Definition Assignment.h:143
Assignment & WithAssignmentId(AssignmentIdT &&value)
Definition Assignment.h:50
void SetSubmitTime(SubmitTimeT &&value)
Definition Assignment.h:158
const Aws::String & GetAssignmentId() const
Definition Assignment.h:42
AWS_MTURK_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAutoApprovalTime(AutoApprovalTimeT &&value)
Definition Assignment.h:120
bool RequesterFeedbackHasBeenSet() const
Definition Assignment.h:258
const Aws::String & GetHITId() const
Definition Assignment.h:78
void SetAcceptTime(AcceptTimeT &&value)
Definition Assignment.h:138
Assignment & WithRejectionTime(RejectionTimeT &&value)
Definition Assignment.h:204
Assignment & WithApprovalTime(ApprovalTimeT &&value)
Definition Assignment.h:184
void SetAssignmentStatus(AssignmentStatus value)
Definition Assignment.h:98
void SetDeadline(DeadlineT &&value)
Definition Assignment.h:219
bool ApprovalTimeHasBeenSet() const
Definition Assignment.h:177
const Aws::Utils::DateTime & GetDeadline() const
Definition Assignment.h:216
Assignment & WithDeadline(DeadlineT &&value)
Definition Assignment.h:224
AWS_MTURK_API Assignment(Aws::Utils::Json::JsonView jsonValue)
Assignment & WithAssignmentStatus(AssignmentStatus value)
Definition Assignment.h:102
AWS_MTURK_API Assignment & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_MTURK_API Assignment()=default
void SetHITId(HITIdT &&value)
Definition Assignment.h:81
void SetApprovalTime(ApprovalTimeT &&value)
Definition Assignment.h:179
void SetAssignmentId(AssignmentIdT &&value)
Definition Assignment.h:45
bool AssignmentStatusHasBeenSet() const
Definition Assignment.h:97
bool AssignmentIdHasBeenSet() const
Definition Assignment.h:43
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue