AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Assignment.h
1
6#pragma once
7#include <aws/mturk-requester/MTurk_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/mturk-requester/model/AssignmentStatus.h>
10#include <aws/core/utils/DateTime.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace MTurk
24{
25namespace Model
26{
27
36 {
37 public:
38 AWS_MTURK_API Assignment();
39 AWS_MTURK_API Assignment(Aws::Utils::Json::JsonView jsonValue);
41 AWS_MTURK_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetAssignmentId() const{ return m_assignmentId; }
49 inline bool AssignmentIdHasBeenSet() const { return m_assignmentIdHasBeenSet; }
50 inline void SetAssignmentId(const Aws::String& value) { m_assignmentIdHasBeenSet = true; m_assignmentId = value; }
51 inline void SetAssignmentId(Aws::String&& value) { m_assignmentIdHasBeenSet = true; m_assignmentId = std::move(value); }
52 inline void SetAssignmentId(const char* value) { m_assignmentIdHasBeenSet = true; m_assignmentId.assign(value); }
53 inline Assignment& WithAssignmentId(const Aws::String& value) { SetAssignmentId(value); return *this;}
54 inline Assignment& WithAssignmentId(Aws::String&& value) { SetAssignmentId(std::move(value)); return *this;}
55 inline Assignment& WithAssignmentId(const char* value) { SetAssignmentId(value); return *this;}
57
59
62 inline const Aws::String& GetWorkerId() const{ return m_workerId; }
63 inline bool WorkerIdHasBeenSet() const { return m_workerIdHasBeenSet; }
64 inline void SetWorkerId(const Aws::String& value) { m_workerIdHasBeenSet = true; m_workerId = value; }
65 inline void SetWorkerId(Aws::String&& value) { m_workerIdHasBeenSet = true; m_workerId = std::move(value); }
66 inline void SetWorkerId(const char* value) { m_workerIdHasBeenSet = true; m_workerId.assign(value); }
67 inline Assignment& WithWorkerId(const Aws::String& value) { SetWorkerId(value); return *this;}
68 inline Assignment& WithWorkerId(Aws::String&& value) { SetWorkerId(std::move(value)); return *this;}
69 inline Assignment& WithWorkerId(const char* value) { SetWorkerId(value); return *this;}
71
73
76 inline const Aws::String& GetHITId() const{ return m_hITId; }
77 inline bool HITIdHasBeenSet() const { return m_hITIdHasBeenSet; }
78 inline void SetHITId(const Aws::String& value) { m_hITIdHasBeenSet = true; m_hITId = value; }
79 inline void SetHITId(Aws::String&& value) { m_hITIdHasBeenSet = true; m_hITId = std::move(value); }
80 inline void SetHITId(const char* value) { m_hITIdHasBeenSet = true; m_hITId.assign(value); }
81 inline Assignment& WithHITId(const Aws::String& value) { SetHITId(value); return *this;}
82 inline Assignment& WithHITId(Aws::String&& value) { SetHITId(std::move(value)); return *this;}
83 inline Assignment& WithHITId(const char* value) { SetHITId(value); return *this;}
85
87
90 inline const AssignmentStatus& GetAssignmentStatus() const{ return m_assignmentStatus; }
91 inline bool AssignmentStatusHasBeenSet() const { return m_assignmentStatusHasBeenSet; }
92 inline void SetAssignmentStatus(const AssignmentStatus& value) { m_assignmentStatusHasBeenSet = true; m_assignmentStatus = value; }
93 inline void SetAssignmentStatus(AssignmentStatus&& value) { m_assignmentStatusHasBeenSet = true; m_assignmentStatus = std::move(value); }
94 inline Assignment& WithAssignmentStatus(const AssignmentStatus& value) { SetAssignmentStatus(value); return *this;}
95 inline Assignment& WithAssignmentStatus(AssignmentStatus&& value) { SetAssignmentStatus(std::move(value)); return *this;}
97
99
107 inline const Aws::Utils::DateTime& GetAutoApprovalTime() const{ return m_autoApprovalTime; }
108 inline bool AutoApprovalTimeHasBeenSet() const { return m_autoApprovalTimeHasBeenSet; }
109 inline void SetAutoApprovalTime(const Aws::Utils::DateTime& value) { m_autoApprovalTimeHasBeenSet = true; m_autoApprovalTime = value; }
110 inline void SetAutoApprovalTime(Aws::Utils::DateTime&& value) { m_autoApprovalTimeHasBeenSet = true; m_autoApprovalTime = std::move(value); }
111 inline Assignment& WithAutoApprovalTime(const Aws::Utils::DateTime& value) { SetAutoApprovalTime(value); return *this;}
112 inline Assignment& WithAutoApprovalTime(Aws::Utils::DateTime&& value) { SetAutoApprovalTime(std::move(value)); return *this;}
114
116
119 inline const Aws::Utils::DateTime& GetAcceptTime() const{ return m_acceptTime; }
120 inline bool AcceptTimeHasBeenSet() const { return m_acceptTimeHasBeenSet; }
121 inline void SetAcceptTime(const Aws::Utils::DateTime& value) { m_acceptTimeHasBeenSet = true; m_acceptTime = value; }
122 inline void SetAcceptTime(Aws::Utils::DateTime&& value) { m_acceptTimeHasBeenSet = true; m_acceptTime = std::move(value); }
123 inline Assignment& WithAcceptTime(const Aws::Utils::DateTime& value) { SetAcceptTime(value); return *this;}
124 inline Assignment& WithAcceptTime(Aws::Utils::DateTime&& value) { SetAcceptTime(std::move(value)); return *this;}
126
128
133 inline const Aws::Utils::DateTime& GetSubmitTime() const{ return m_submitTime; }
134 inline bool SubmitTimeHasBeenSet() const { return m_submitTimeHasBeenSet; }
135 inline void SetSubmitTime(const Aws::Utils::DateTime& value) { m_submitTimeHasBeenSet = true; m_submitTime = value; }
136 inline void SetSubmitTime(Aws::Utils::DateTime&& value) { m_submitTimeHasBeenSet = true; m_submitTime = std::move(value); }
137 inline Assignment& WithSubmitTime(const Aws::Utils::DateTime& value) { SetSubmitTime(value); return *this;}
138 inline Assignment& WithSubmitTime(Aws::Utils::DateTime&& value) { SetSubmitTime(std::move(value)); return *this;}
140
142
148 inline const Aws::Utils::DateTime& GetApprovalTime() const{ return m_approvalTime; }
149 inline bool ApprovalTimeHasBeenSet() const { return m_approvalTimeHasBeenSet; }
150 inline void SetApprovalTime(const Aws::Utils::DateTime& value) { m_approvalTimeHasBeenSet = true; m_approvalTime = value; }
151 inline void SetApprovalTime(Aws::Utils::DateTime&& value) { m_approvalTimeHasBeenSet = true; m_approvalTime = std::move(value); }
152 inline Assignment& WithApprovalTime(const Aws::Utils::DateTime& value) { SetApprovalTime(value); return *this;}
153 inline Assignment& WithApprovalTime(Aws::Utils::DateTime&& value) { SetApprovalTime(std::move(value)); return *this;}
155
157
162 inline const Aws::Utils::DateTime& GetRejectionTime() const{ return m_rejectionTime; }
163 inline bool RejectionTimeHasBeenSet() const { return m_rejectionTimeHasBeenSet; }
164 inline void SetRejectionTime(const Aws::Utils::DateTime& value) { m_rejectionTimeHasBeenSet = true; m_rejectionTime = value; }
165 inline void SetRejectionTime(Aws::Utils::DateTime&& value) { m_rejectionTimeHasBeenSet = true; m_rejectionTime = std::move(value); }
166 inline Assignment& WithRejectionTime(const Aws::Utils::DateTime& value) { SetRejectionTime(value); return *this;}
167 inline Assignment& WithRejectionTime(Aws::Utils::DateTime&& value) { SetRejectionTime(std::move(value)); return *this;}
169
171
176 inline const Aws::Utils::DateTime& GetDeadline() const{ return m_deadline; }
177 inline bool DeadlineHasBeenSet() const { return m_deadlineHasBeenSet; }
178 inline void SetDeadline(const Aws::Utils::DateTime& value) { m_deadlineHasBeenSet = true; m_deadline = value; }
179 inline void SetDeadline(Aws::Utils::DateTime&& value) { m_deadlineHasBeenSet = true; m_deadline = std::move(value); }
180 inline Assignment& WithDeadline(const Aws::Utils::DateTime& value) { SetDeadline(value); return *this;}
181 inline Assignment& WithDeadline(Aws::Utils::DateTime&& value) { SetDeadline(std::move(value)); return *this;}
183
185
191 inline const Aws::String& GetAnswer() const{ return m_answer; }
192 inline bool AnswerHasBeenSet() const { return m_answerHasBeenSet; }
193 inline void SetAnswer(const Aws::String& value) { m_answerHasBeenSet = true; m_answer = value; }
194 inline void SetAnswer(Aws::String&& value) { m_answerHasBeenSet = true; m_answer = std::move(value); }
195 inline void SetAnswer(const char* value) { m_answerHasBeenSet = true; m_answer.assign(value); }
196 inline Assignment& WithAnswer(const Aws::String& value) { SetAnswer(value); return *this;}
197 inline Assignment& WithAnswer(Aws::String&& value) { SetAnswer(std::move(value)); return *this;}
198 inline Assignment& WithAnswer(const char* value) { SetAnswer(value); return *this;}
200
202
207 inline const Aws::String& GetRequesterFeedback() const{ return m_requesterFeedback; }
208 inline bool RequesterFeedbackHasBeenSet() const { return m_requesterFeedbackHasBeenSet; }
209 inline void SetRequesterFeedback(const Aws::String& value) { m_requesterFeedbackHasBeenSet = true; m_requesterFeedback = value; }
210 inline void SetRequesterFeedback(Aws::String&& value) { m_requesterFeedbackHasBeenSet = true; m_requesterFeedback = std::move(value); }
211 inline void SetRequesterFeedback(const char* value) { m_requesterFeedbackHasBeenSet = true; m_requesterFeedback.assign(value); }
212 inline Assignment& WithRequesterFeedback(const Aws::String& value) { SetRequesterFeedback(value); return *this;}
213 inline Assignment& WithRequesterFeedback(Aws::String&& value) { SetRequesterFeedback(std::move(value)); return *this;}
214 inline Assignment& WithRequesterFeedback(const char* value) { SetRequesterFeedback(value); return *this;}
216 private:
217
218 Aws::String m_assignmentId;
219 bool m_assignmentIdHasBeenSet = false;
220
221 Aws::String m_workerId;
222 bool m_workerIdHasBeenSet = false;
223
224 Aws::String m_hITId;
225 bool m_hITIdHasBeenSet = false;
226
227 AssignmentStatus m_assignmentStatus;
228 bool m_assignmentStatusHasBeenSet = false;
229
230 Aws::Utils::DateTime m_autoApprovalTime;
231 bool m_autoApprovalTimeHasBeenSet = false;
232
233 Aws::Utils::DateTime m_acceptTime;
234 bool m_acceptTimeHasBeenSet = false;
235
236 Aws::Utils::DateTime m_submitTime;
237 bool m_submitTimeHasBeenSet = false;
238
239 Aws::Utils::DateTime m_approvalTime;
240 bool m_approvalTimeHasBeenSet = false;
241
242 Aws::Utils::DateTime m_rejectionTime;
243 bool m_rejectionTimeHasBeenSet = false;
244
245 Aws::Utils::DateTime m_deadline;
246 bool m_deadlineHasBeenSet = false;
247
248 Aws::String m_answer;
249 bool m_answerHasBeenSet = false;
250
251 Aws::String m_requesterFeedback;
252 bool m_requesterFeedbackHasBeenSet = false;
253 };
254
255} // namespace Model
256} // namespace MTurk
257} // namespace Aws
Assignment & WithAnswer(Aws::String &&value)
Definition Assignment.h:197
Assignment & WithApprovalTime(Aws::Utils::DateTime &&value)
Definition Assignment.h:153
void SetRejectionTime(const Aws::Utils::DateTime &value)
Definition Assignment.h:164
Assignment & WithRequesterFeedback(const Aws::String &value)
Definition Assignment.h:212
const AssignmentStatus & GetAssignmentStatus() const
Definition Assignment.h:90
void SetAnswer(Aws::String &&value)
Definition Assignment.h:194
const Aws::String & GetRequesterFeedback() const
Definition Assignment.h:207
Assignment & WithAcceptTime(const Aws::Utils::DateTime &value)
Definition Assignment.h:123
Assignment & WithRequesterFeedback(Aws::String &&value)
Definition Assignment.h:213
const Aws::String & GetWorkerId() const
Definition Assignment.h:62
Assignment & WithAnswer(const Aws::String &value)
Definition Assignment.h:196
Assignment & WithAutoApprovalTime(const Aws::Utils::DateTime &value)
Definition Assignment.h:111
const Aws::String & GetAnswer() const
Definition Assignment.h:191
const Aws::Utils::DateTime & GetAutoApprovalTime() const
Definition Assignment.h:107
Assignment & WithAssignmentStatus(AssignmentStatus &&value)
Definition Assignment.h:95
void SetAnswer(const char *value)
Definition Assignment.h:195
Assignment & WithWorkerId(Aws::String &&value)
Definition Assignment.h:68
Assignment & WithAutoApprovalTime(Aws::Utils::DateTime &&value)
Definition Assignment.h:112
Assignment & WithApprovalTime(const Aws::Utils::DateTime &value)
Definition Assignment.h:152
Assignment & WithDeadline(Aws::Utils::DateTime &&value)
Definition Assignment.h:181
bool RejectionTimeHasBeenSet() const
Definition Assignment.h:163
void SetDeadline(Aws::Utils::DateTime &&value)
Definition Assignment.h:179
Assignment & WithHITId(Aws::String &&value)
Definition Assignment.h:82
void SetAssignmentId(const Aws::String &value)
Definition Assignment.h:50
void SetHITId(Aws::String &&value)
Definition Assignment.h:79
Assignment & WithRejectionTime(Aws::Utils::DateTime &&value)
Definition Assignment.h:167
void SetHITId(const Aws::String &value)
Definition Assignment.h:78
void SetSubmitTime(const Aws::Utils::DateTime &value)
Definition Assignment.h:135
void SetApprovalTime(Aws::Utils::DateTime &&value)
Definition Assignment.h:151
void SetAutoApprovalTime(Aws::Utils::DateTime &&value)
Definition Assignment.h:110
void SetRequesterFeedback(const Aws::String &value)
Definition Assignment.h:209
const Aws::Utils::DateTime & GetApprovalTime() const
Definition Assignment.h:148
bool AutoApprovalTimeHasBeenSet() const
Definition Assignment.h:108
void SetAssignmentId(const char *value)
Definition Assignment.h:52
void SetAssignmentStatus(AssignmentStatus &&value)
Definition Assignment.h:93
const Aws::Utils::DateTime & GetRejectionTime() const
Definition Assignment.h:162
const Aws::Utils::DateTime & GetSubmitTime() const
Definition Assignment.h:133
void SetWorkerId(Aws::String &&value)
Definition Assignment.h:65
const Aws::Utils::DateTime & GetAcceptTime() const
Definition Assignment.h:119
void SetAnswer(const Aws::String &value)
Definition Assignment.h:193
Assignment & WithRejectionTime(const Aws::Utils::DateTime &value)
Definition Assignment.h:166
void SetRequesterFeedback(Aws::String &&value)
Definition Assignment.h:210
const Aws::String & GetAssignmentId() const
Definition Assignment.h:48
Assignment & WithAssignmentId(const char *value)
Definition Assignment.h:55
AWS_MTURK_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAcceptTime(Aws::Utils::DateTime &&value)
Definition Assignment.h:122
Assignment & WithAcceptTime(Aws::Utils::DateTime &&value)
Definition Assignment.h:124
Assignment & WithAssignmentStatus(const AssignmentStatus &value)
Definition Assignment.h:94
bool RequesterFeedbackHasBeenSet() const
Definition Assignment.h:208
const Aws::String & GetHITId() const
Definition Assignment.h:76
Assignment & WithAssignmentId(const Aws::String &value)
Definition Assignment.h:53
void SetApprovalTime(const Aws::Utils::DateTime &value)
Definition Assignment.h:150
void SetWorkerId(const char *value)
Definition Assignment.h:66
bool ApprovalTimeHasBeenSet() const
Definition Assignment.h:149
const Aws::Utils::DateTime & GetDeadline() const
Definition Assignment.h:176
Assignment & WithDeadline(const Aws::Utils::DateTime &value)
Definition Assignment.h:180
void SetSubmitTime(Aws::Utils::DateTime &&value)
Definition Assignment.h:136
void SetHITId(const char *value)
Definition Assignment.h:80
Assignment & WithSubmitTime(const Aws::Utils::DateTime &value)
Definition Assignment.h:137
Assignment & WithHITId(const Aws::String &value)
Definition Assignment.h:81
Assignment & WithHITId(const char *value)
Definition Assignment.h:83
AWS_MTURK_API Assignment(Aws::Utils::Json::JsonView jsonValue)
Assignment & WithRequesterFeedback(const char *value)
Definition Assignment.h:214
Assignment & WithAssignmentId(Aws::String &&value)
Definition Assignment.h:54
void SetWorkerId(const Aws::String &value)
Definition Assignment.h:64
void SetAutoApprovalTime(const Aws::Utils::DateTime &value)
Definition Assignment.h:109
AWS_MTURK_API Assignment & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetRejectionTime(Aws::Utils::DateTime &&value)
Definition Assignment.h:165
Assignment & WithSubmitTime(Aws::Utils::DateTime &&value)
Definition Assignment.h:138
void SetRequesterFeedback(const char *value)
Definition Assignment.h:211
void SetAssignmentStatus(const AssignmentStatus &value)
Definition Assignment.h:92
Assignment & WithWorkerId(const char *value)
Definition Assignment.h:69
Assignment & WithWorkerId(const Aws::String &value)
Definition Assignment.h:67
void SetAcceptTime(const Aws::Utils::DateTime &value)
Definition Assignment.h:121
Assignment & WithAnswer(const char *value)
Definition Assignment.h:198
void SetDeadline(const Aws::Utils::DateTime &value)
Definition Assignment.h:178
bool AssignmentStatusHasBeenSet() const
Definition Assignment.h:91
void SetAssignmentId(Aws::String &&value)
Definition Assignment.h:51
bool AssignmentIdHasBeenSet() const
Definition Assignment.h:49
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue