AWS SDK for C++  1.9.106
AWS SDK for C++
ReviewActionDetail.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace MTurk
24 {
25 namespace Model
26 {
27 
36  {
37  public:
42 
43 
47  inline const Aws::String& GetActionId() const{ return m_actionId; }
48 
52  inline bool ActionIdHasBeenSet() const { return m_actionIdHasBeenSet; }
53 
57  inline void SetActionId(const Aws::String& value) { m_actionIdHasBeenSet = true; m_actionId = value; }
58 
62  inline void SetActionId(Aws::String&& value) { m_actionIdHasBeenSet = true; m_actionId = std::move(value); }
63 
67  inline void SetActionId(const char* value) { m_actionIdHasBeenSet = true; m_actionId.assign(value); }
68 
72  inline ReviewActionDetail& WithActionId(const Aws::String& value) { SetActionId(value); return *this;}
73 
77  inline ReviewActionDetail& WithActionId(Aws::String&& value) { SetActionId(std::move(value)); return *this;}
78 
82  inline ReviewActionDetail& WithActionId(const char* value) { SetActionId(value); return *this;}
83 
84 
90  inline const Aws::String& GetActionName() const{ return m_actionName; }
91 
97  inline bool ActionNameHasBeenSet() const { return m_actionNameHasBeenSet; }
98 
104  inline void SetActionName(const Aws::String& value) { m_actionNameHasBeenSet = true; m_actionName = value; }
105 
111  inline void SetActionName(Aws::String&& value) { m_actionNameHasBeenSet = true; m_actionName = std::move(value); }
112 
118  inline void SetActionName(const char* value) { m_actionNameHasBeenSet = true; m_actionName.assign(value); }
119 
125  inline ReviewActionDetail& WithActionName(const Aws::String& value) { SetActionName(value); return *this;}
126 
132  inline ReviewActionDetail& WithActionName(Aws::String&& value) { SetActionName(std::move(value)); return *this;}
133 
139  inline ReviewActionDetail& WithActionName(const char* value) { SetActionName(value); return *this;}
140 
141 
145  inline const Aws::String& GetTargetId() const{ return m_targetId; }
146 
150  inline bool TargetIdHasBeenSet() const { return m_targetIdHasBeenSet; }
151 
155  inline void SetTargetId(const Aws::String& value) { m_targetIdHasBeenSet = true; m_targetId = value; }
156 
160  inline void SetTargetId(Aws::String&& value) { m_targetIdHasBeenSet = true; m_targetId = std::move(value); }
161 
165  inline void SetTargetId(const char* value) { m_targetIdHasBeenSet = true; m_targetId.assign(value); }
166 
170  inline ReviewActionDetail& WithTargetId(const Aws::String& value) { SetTargetId(value); return *this;}
171 
175  inline ReviewActionDetail& WithTargetId(Aws::String&& value) { SetTargetId(std::move(value)); return *this;}
176 
180  inline ReviewActionDetail& WithTargetId(const char* value) { SetTargetId(value); return *this;}
181 
182 
186  inline const Aws::String& GetTargetType() const{ return m_targetType; }
187 
191  inline bool TargetTypeHasBeenSet() const { return m_targetTypeHasBeenSet; }
192 
196  inline void SetTargetType(const Aws::String& value) { m_targetTypeHasBeenSet = true; m_targetType = value; }
197 
201  inline void SetTargetType(Aws::String&& value) { m_targetTypeHasBeenSet = true; m_targetType = std::move(value); }
202 
206  inline void SetTargetType(const char* value) { m_targetTypeHasBeenSet = true; m_targetType.assign(value); }
207 
211  inline ReviewActionDetail& WithTargetType(const Aws::String& value) { SetTargetType(value); return *this;}
212 
216  inline ReviewActionDetail& WithTargetType(Aws::String&& value) { SetTargetType(std::move(value)); return *this;}
217 
221  inline ReviewActionDetail& WithTargetType(const char* value) { SetTargetType(value); return *this;}
222 
223 
228  inline const ReviewActionStatus& GetStatus() const{ return m_status; }
229 
234  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
235 
240  inline void SetStatus(const ReviewActionStatus& value) { m_statusHasBeenSet = true; m_status = value; }
241 
246  inline void SetStatus(ReviewActionStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
247 
252  inline ReviewActionDetail& WithStatus(const ReviewActionStatus& value) { SetStatus(value); return *this;}
253 
258  inline ReviewActionDetail& WithStatus(ReviewActionStatus&& value) { SetStatus(std::move(value)); return *this;}
259 
260 
264  inline const Aws::Utils::DateTime& GetCompleteTime() const{ return m_completeTime; }
265 
269  inline bool CompleteTimeHasBeenSet() const { return m_completeTimeHasBeenSet; }
270 
274  inline void SetCompleteTime(const Aws::Utils::DateTime& value) { m_completeTimeHasBeenSet = true; m_completeTime = value; }
275 
279  inline void SetCompleteTime(Aws::Utils::DateTime&& value) { m_completeTimeHasBeenSet = true; m_completeTime = std::move(value); }
280 
284  inline ReviewActionDetail& WithCompleteTime(const Aws::Utils::DateTime& value) { SetCompleteTime(value); return *this;}
285 
289  inline ReviewActionDetail& WithCompleteTime(Aws::Utils::DateTime&& value) { SetCompleteTime(std::move(value)); return *this;}
290 
291 
295  inline const Aws::String& GetResult() const{ return m_result; }
296 
300  inline bool ResultHasBeenSet() const { return m_resultHasBeenSet; }
301 
305  inline void SetResult(const Aws::String& value) { m_resultHasBeenSet = true; m_result = value; }
306 
310  inline void SetResult(Aws::String&& value) { m_resultHasBeenSet = true; m_result = std::move(value); }
311 
315  inline void SetResult(const char* value) { m_resultHasBeenSet = true; m_result.assign(value); }
316 
320  inline ReviewActionDetail& WithResult(const Aws::String& value) { SetResult(value); return *this;}
321 
325  inline ReviewActionDetail& WithResult(Aws::String&& value) { SetResult(std::move(value)); return *this;}
326 
330  inline ReviewActionDetail& WithResult(const char* value) { SetResult(value); return *this;}
331 
332 
336  inline const Aws::String& GetErrorCode() const{ return m_errorCode; }
337 
341  inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
342 
346  inline void SetErrorCode(const Aws::String& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
347 
351  inline void SetErrorCode(Aws::String&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); }
352 
356  inline void SetErrorCode(const char* value) { m_errorCodeHasBeenSet = true; m_errorCode.assign(value); }
357 
361  inline ReviewActionDetail& WithErrorCode(const Aws::String& value) { SetErrorCode(value); return *this;}
362 
366  inline ReviewActionDetail& WithErrorCode(Aws::String&& value) { SetErrorCode(std::move(value)); return *this;}
367 
371  inline ReviewActionDetail& WithErrorCode(const char* value) { SetErrorCode(value); return *this;}
372 
373  private:
374 
375  Aws::String m_actionId;
376  bool m_actionIdHasBeenSet;
377 
378  Aws::String m_actionName;
379  bool m_actionNameHasBeenSet;
380 
381  Aws::String m_targetId;
382  bool m_targetIdHasBeenSet;
383 
384  Aws::String m_targetType;
385  bool m_targetTypeHasBeenSet;
386 
387  ReviewActionStatus m_status;
388  bool m_statusHasBeenSet;
389 
390  Aws::Utils::DateTime m_completeTime;
391  bool m_completeTimeHasBeenSet;
392 
393  Aws::String m_result;
394  bool m_resultHasBeenSet;
395 
396  Aws::String m_errorCode;
397  bool m_errorCodeHasBeenSet;
398  };
399 
400 } // namespace Model
401 } // namespace MTurk
402 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::MTurk::Model::ReviewActionDetail::WithActionName
ReviewActionDetail & WithActionName(const Aws::String &value)
Definition: ReviewActionDetail.h:125
Aws::MTurk::Model::ReviewActionDetail::SetActionId
void SetActionId(const Aws::String &value)
Definition: ReviewActionDetail.h:57
Aws::MTurk::Model::ReviewActionDetail::SetErrorCode
void SetErrorCode(const char *value)
Definition: ReviewActionDetail.h:356
Aws::MTurk::Model::ReviewActionDetail::SetCompleteTime
void SetCompleteTime(const Aws::Utils::DateTime &value)
Definition: ReviewActionDetail.h:274
Aws::MTurk::Model::ReviewActionDetail::WithActionId
ReviewActionDetail & WithActionId(Aws::String &&value)
Definition: ReviewActionDetail.h:77
Aws::MTurk::Model::ReviewActionDetail::ActionIdHasBeenSet
bool ActionIdHasBeenSet() const
Definition: ReviewActionDetail.h:52
Aws::MTurk::Model::ReviewActionDetail::SetTargetType
void SetTargetType(Aws::String &&value)
Definition: ReviewActionDetail.h:201
Aws::MTurk::Model::ReviewActionDetail::SetActionId
void SetActionId(const char *value)
Definition: ReviewActionDetail.h:67
Aws::MTurk::Model::ReviewActionDetail::GetErrorCode
const Aws::String & GetErrorCode() const
Definition: ReviewActionDetail.h:336
Aws::MTurk::Model::ReviewActionDetail::SetActionName
void SetActionName(Aws::String &&value)
Definition: ReviewActionDetail.h:111
DateTime.h
Aws::MTurk::Model::ReviewActionDetail::WithTargetType
ReviewActionDetail & WithTargetType(const Aws::String &value)
Definition: ReviewActionDetail.h:211
Aws::MTurk::Model::ReviewActionDetail::ErrorCodeHasBeenSet
bool ErrorCodeHasBeenSet() const
Definition: ReviewActionDetail.h:341
Aws::MTurk::Model::ReviewActionDetail::SetTargetId
void SetTargetId(const Aws::String &value)
Definition: ReviewActionDetail.h:155
Aws::MTurk::Model::ReviewActionDetail
Definition: ReviewActionDetail.h:36
Aws::MTurk::Model::ReviewActionDetail::CompleteTimeHasBeenSet
bool CompleteTimeHasBeenSet() const
Definition: ReviewActionDetail.h:269
Aws::MTurk::Model::ReviewActionDetail::SetTargetId
void SetTargetId(Aws::String &&value)
Definition: ReviewActionDetail.h:160
Aws::MTurk::Model::ReviewActionDetail::ReviewActionDetail
ReviewActionDetail()
Aws::MTurk::Model::ReviewActionDetail::operator=
ReviewActionDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::MTurk::Model::ReviewActionDetail::SetErrorCode
void SetErrorCode(const Aws::String &value)
Definition: ReviewActionDetail.h:346
Aws::MTurk::Model::ReviewActionDetail::SetResult
void SetResult(const char *value)
Definition: ReviewActionDetail.h:315
Aws::MTurk::Model::ReviewActionDetail::GetCompleteTime
const Aws::Utils::DateTime & GetCompleteTime() const
Definition: ReviewActionDetail.h:264
Aws::MTurk::Model::ReviewActionDetail::WithErrorCode
ReviewActionDetail & WithErrorCode(const Aws::String &value)
Definition: ReviewActionDetail.h:361
Aws::MTurk::Model::ReviewActionDetail::WithTargetId
ReviewActionDetail & WithTargetId(Aws::String &&value)
Definition: ReviewActionDetail.h:175
Aws::MTurk::Model::ReviewActionDetail::ReviewActionDetail
ReviewActionDetail(Aws::Utils::Json::JsonView jsonValue)
Aws::MTurk::Model::ReviewActionDetail::TargetIdHasBeenSet
bool TargetIdHasBeenSet() const
Definition: ReviewActionDetail.h:150
Aws::MTurk::Model::ReviewActionDetail::WithCompleteTime
ReviewActionDetail & WithCompleteTime(const Aws::Utils::DateTime &value)
Definition: ReviewActionDetail.h:284
Aws::MTurk::Model::ReviewActionDetail::WithTargetType
ReviewActionDetail & WithTargetType(const char *value)
Definition: ReviewActionDetail.h:221
Aws::MTurk::Model::ReviewActionDetail::GetStatus
const ReviewActionStatus & GetStatus() const
Definition: ReviewActionDetail.h:228
ReviewActionStatus.h
Aws::MTurk::Model::ReviewActionDetail::WithTargetId
ReviewActionDetail & WithTargetId(const Aws::String &value)
Definition: ReviewActionDetail.h:170
Aws::MTurk::Model::ReviewActionDetail::WithTargetId
ReviewActionDetail & WithTargetId(const char *value)
Definition: ReviewActionDetail.h:180
Aws::MTurk::Model::ReviewActionDetail::SetStatus
void SetStatus(const ReviewActionStatus &value)
Definition: ReviewActionDetail.h:240
Aws::MTurk::Model::ReviewActionDetail::WithActionId
ReviewActionDetail & WithActionId(const char *value)
Definition: ReviewActionDetail.h:82
Aws::MTurk::Model::ReviewActionDetail::WithActionName
ReviewActionDetail & WithActionName(const char *value)
Definition: ReviewActionDetail.h:139
Aws::MTurk::Model::ReviewActionDetail::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::MTurk::Model::ReviewActionDetail::WithResult
ReviewActionDetail & WithResult(const Aws::String &value)
Definition: ReviewActionDetail.h:320
Aws::MTurk::Model::ReviewActionDetail::GetActionId
const Aws::String & GetActionId() const
Definition: ReviewActionDetail.h:47
Aws::MTurk::Model::ReviewActionDetail::SetResult
void SetResult(Aws::String &&value)
Definition: ReviewActionDetail.h:310
Aws::MTurk::Model::ReviewActionDetail::WithActionName
ReviewActionDetail & WithActionName(Aws::String &&value)
Definition: ReviewActionDetail.h:132
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::MTurk::Model::ReviewActionDetail::GetTargetType
const Aws::String & GetTargetType() const
Definition: ReviewActionDetail.h:186
AWSString.h
Aws::MTurk::Model::ReviewActionDetail::SetStatus
void SetStatus(ReviewActionStatus &&value)
Definition: ReviewActionDetail.h:246
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::MTurk::Model::ReviewActionDetail::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: ReviewActionDetail.h:234
Aws::MTurk::Model::ReviewActionDetail::SetActionName
void SetActionName(const Aws::String &value)
Definition: ReviewActionDetail.h:104
Aws::MTurk::Model::ReviewActionDetail::WithErrorCode
ReviewActionDetail & WithErrorCode(Aws::String &&value)
Definition: ReviewActionDetail.h:366
Aws::MTurk::Model::ReviewActionDetail::SetTargetType
void SetTargetType(const char *value)
Definition: ReviewActionDetail.h:206
Aws::MTurk::Model::ReviewActionDetail::TargetTypeHasBeenSet
bool TargetTypeHasBeenSet() const
Definition: ReviewActionDetail.h:191
MTurk_EXPORTS.h
Aws::MTurk::Model::ReviewActionDetail::SetResult
void SetResult(const Aws::String &value)
Definition: ReviewActionDetail.h:305
Aws
Definition: AccessManagementClient.h:15
Aws::MTurk::Model::ReviewActionDetail::WithStatus
ReviewActionDetail & WithStatus(ReviewActionStatus &&value)
Definition: ReviewActionDetail.h:258
AWS_MTURK_API
#define AWS_MTURK_API
Definition: MTurk_EXPORTS.h:28
Aws::MTurk::Model::ReviewActionDetail::SetCompleteTime
void SetCompleteTime(Aws::Utils::DateTime &&value)
Definition: ReviewActionDetail.h:279
Aws::MTurk::Model::ReviewActionDetail::WithResult
ReviewActionDetail & WithResult(const char *value)
Definition: ReviewActionDetail.h:330
Aws::MTurk::Model::ReviewActionDetail::SetTargetId
void SetTargetId(const char *value)
Definition: ReviewActionDetail.h:165
Aws::MTurk::Model::ReviewActionDetail::ActionNameHasBeenSet
bool ActionNameHasBeenSet() const
Definition: ReviewActionDetail.h:97
Aws::MTurk::Model::ReviewActionDetail::WithStatus
ReviewActionDetail & WithStatus(const ReviewActionStatus &value)
Definition: ReviewActionDetail.h:252
Aws::MTurk::Model::ReviewActionDetail::SetTargetType
void SetTargetType(const Aws::String &value)
Definition: ReviewActionDetail.h:196
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::MTurk::Model::ReviewActionDetail::SetActionId
void SetActionId(Aws::String &&value)
Definition: ReviewActionDetail.h:62
Aws::MTurk::Model::ReviewActionDetail::SetErrorCode
void SetErrorCode(Aws::String &&value)
Definition: ReviewActionDetail.h:351
Aws::MTurk::Model::ReviewActionDetail::WithErrorCode
ReviewActionDetail & WithErrorCode(const char *value)
Definition: ReviewActionDetail.h:371
Aws::MTurk::Model::ReviewActionDetail::ResultHasBeenSet
bool ResultHasBeenSet() const
Definition: ReviewActionDetail.h:300
Aws::MTurk::Model::ReviewActionDetail::WithActionId
ReviewActionDetail & WithActionId(const Aws::String &value)
Definition: ReviewActionDetail.h:72
Aws::MTurk::Model::ReviewActionDetail::GetActionName
const Aws::String & GetActionName() const
Definition: ReviewActionDetail.h:90
Aws::MTurk::Model::ReviewActionDetail::WithResult
ReviewActionDetail & WithResult(Aws::String &&value)
Definition: ReviewActionDetail.h:325
Aws::MTurk::Model::ReviewActionDetail::WithCompleteTime
ReviewActionDetail & WithCompleteTime(Aws::Utils::DateTime &&value)
Definition: ReviewActionDetail.h:289
Aws::MTurk::Model::ReviewActionDetail::SetActionName
void SetActionName(const char *value)
Definition: ReviewActionDetail.h:118
Aws::MTurk::Model::ReviewActionDetail::GetResult
const Aws::String & GetResult() const
Definition: ReviewActionDetail.h:295
Aws::MTurk::Model::ReviewActionStatus
ReviewActionStatus
Definition: ReviewActionStatus.h:17
Aws::MTurk::Model::ReviewActionDetail::GetTargetId
const Aws::String & GetTargetId() const
Definition: ReviewActionDetail.h:145
Aws::MTurk::Model::ReviewActionDetail::WithTargetType
ReviewActionDetail & WithTargetType(Aws::String &&value)
Definition: ReviewActionDetail.h:216