AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ReviewActionDetail.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/ReviewActionStatus.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 ReviewActionDetail();
41 AWS_MTURK_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetActionId() const{ return m_actionId; }
49 inline bool ActionIdHasBeenSet() const { return m_actionIdHasBeenSet; }
50 inline void SetActionId(const Aws::String& value) { m_actionIdHasBeenSet = true; m_actionId = value; }
51 inline void SetActionId(Aws::String&& value) { m_actionIdHasBeenSet = true; m_actionId = std::move(value); }
52 inline void SetActionId(const char* value) { m_actionIdHasBeenSet = true; m_actionId.assign(value); }
53 inline ReviewActionDetail& WithActionId(const Aws::String& value) { SetActionId(value); return *this;}
54 inline ReviewActionDetail& WithActionId(Aws::String&& value) { SetActionId(std::move(value)); return *this;}
55 inline ReviewActionDetail& WithActionId(const char* value) { SetActionId(value); return *this;}
57
59
64 inline const Aws::String& GetActionName() const{ return m_actionName; }
65 inline bool ActionNameHasBeenSet() const { return m_actionNameHasBeenSet; }
66 inline void SetActionName(const Aws::String& value) { m_actionNameHasBeenSet = true; m_actionName = value; }
67 inline void SetActionName(Aws::String&& value) { m_actionNameHasBeenSet = true; m_actionName = std::move(value); }
68 inline void SetActionName(const char* value) { m_actionNameHasBeenSet = true; m_actionName.assign(value); }
69 inline ReviewActionDetail& WithActionName(const Aws::String& value) { SetActionName(value); return *this;}
70 inline ReviewActionDetail& WithActionName(Aws::String&& value) { SetActionName(std::move(value)); return *this;}
71 inline ReviewActionDetail& WithActionName(const char* value) { SetActionName(value); return *this;}
73
75
78 inline const Aws::String& GetTargetId() const{ return m_targetId; }
79 inline bool TargetIdHasBeenSet() const { return m_targetIdHasBeenSet; }
80 inline void SetTargetId(const Aws::String& value) { m_targetIdHasBeenSet = true; m_targetId = value; }
81 inline void SetTargetId(Aws::String&& value) { m_targetIdHasBeenSet = true; m_targetId = std::move(value); }
82 inline void SetTargetId(const char* value) { m_targetIdHasBeenSet = true; m_targetId.assign(value); }
83 inline ReviewActionDetail& WithTargetId(const Aws::String& value) { SetTargetId(value); return *this;}
84 inline ReviewActionDetail& WithTargetId(Aws::String&& value) { SetTargetId(std::move(value)); return *this;}
85 inline ReviewActionDetail& WithTargetId(const char* value) { SetTargetId(value); return *this;}
87
89
92 inline const Aws::String& GetTargetType() const{ return m_targetType; }
93 inline bool TargetTypeHasBeenSet() const { return m_targetTypeHasBeenSet; }
94 inline void SetTargetType(const Aws::String& value) { m_targetTypeHasBeenSet = true; m_targetType = value; }
95 inline void SetTargetType(Aws::String&& value) { m_targetTypeHasBeenSet = true; m_targetType = std::move(value); }
96 inline void SetTargetType(const char* value) { m_targetTypeHasBeenSet = true; m_targetType.assign(value); }
97 inline ReviewActionDetail& WithTargetType(const Aws::String& value) { SetTargetType(value); return *this;}
98 inline ReviewActionDetail& WithTargetType(Aws::String&& value) { SetTargetType(std::move(value)); return *this;}
99 inline ReviewActionDetail& WithTargetType(const char* value) { SetTargetType(value); return *this;}
101
103
107 inline const ReviewActionStatus& GetStatus() const{ return m_status; }
108 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
109 inline void SetStatus(const ReviewActionStatus& value) { m_statusHasBeenSet = true; m_status = value; }
110 inline void SetStatus(ReviewActionStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
111 inline ReviewActionDetail& WithStatus(const ReviewActionStatus& value) { SetStatus(value); return *this;}
112 inline ReviewActionDetail& WithStatus(ReviewActionStatus&& value) { SetStatus(std::move(value)); return *this;}
114
116
119 inline const Aws::Utils::DateTime& GetCompleteTime() const{ return m_completeTime; }
120 inline bool CompleteTimeHasBeenSet() const { return m_completeTimeHasBeenSet; }
121 inline void SetCompleteTime(const Aws::Utils::DateTime& value) { m_completeTimeHasBeenSet = true; m_completeTime = value; }
122 inline void SetCompleteTime(Aws::Utils::DateTime&& value) { m_completeTimeHasBeenSet = true; m_completeTime = std::move(value); }
123 inline ReviewActionDetail& WithCompleteTime(const Aws::Utils::DateTime& value) { SetCompleteTime(value); return *this;}
124 inline ReviewActionDetail& WithCompleteTime(Aws::Utils::DateTime&& value) { SetCompleteTime(std::move(value)); return *this;}
126
128
131 inline const Aws::String& GetResult() const{ return m_result; }
132 inline bool ResultHasBeenSet() const { return m_resultHasBeenSet; }
133 inline void SetResult(const Aws::String& value) { m_resultHasBeenSet = true; m_result = value; }
134 inline void SetResult(Aws::String&& value) { m_resultHasBeenSet = true; m_result = std::move(value); }
135 inline void SetResult(const char* value) { m_resultHasBeenSet = true; m_result.assign(value); }
136 inline ReviewActionDetail& WithResult(const Aws::String& value) { SetResult(value); return *this;}
137 inline ReviewActionDetail& WithResult(Aws::String&& value) { SetResult(std::move(value)); return *this;}
138 inline ReviewActionDetail& WithResult(const char* value) { SetResult(value); return *this;}
140
142
145 inline const Aws::String& GetErrorCode() const{ return m_errorCode; }
146 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
147 inline void SetErrorCode(const Aws::String& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
148 inline void SetErrorCode(Aws::String&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); }
149 inline void SetErrorCode(const char* value) { m_errorCodeHasBeenSet = true; m_errorCode.assign(value); }
150 inline ReviewActionDetail& WithErrorCode(const Aws::String& value) { SetErrorCode(value); return *this;}
151 inline ReviewActionDetail& WithErrorCode(Aws::String&& value) { SetErrorCode(std::move(value)); return *this;}
152 inline ReviewActionDetail& WithErrorCode(const char* value) { SetErrorCode(value); return *this;}
154 private:
155
156 Aws::String m_actionId;
157 bool m_actionIdHasBeenSet = false;
158
159 Aws::String m_actionName;
160 bool m_actionNameHasBeenSet = false;
161
162 Aws::String m_targetId;
163 bool m_targetIdHasBeenSet = false;
164
165 Aws::String m_targetType;
166 bool m_targetTypeHasBeenSet = false;
167
168 ReviewActionStatus m_status;
169 bool m_statusHasBeenSet = false;
170
171 Aws::Utils::DateTime m_completeTime;
172 bool m_completeTimeHasBeenSet = false;
173
174 Aws::String m_result;
175 bool m_resultHasBeenSet = false;
176
177 Aws::String m_errorCode;
178 bool m_errorCodeHasBeenSet = false;
179 };
180
181} // namespace Model
182} // namespace MTurk
183} // namespace Aws
const Aws::String & GetResult() const
ReviewActionDetail & WithStatus(ReviewActionStatus &&value)
void SetStatus(const ReviewActionStatus &value)
ReviewActionDetail & WithCompleteTime(const Aws::Utils::DateTime &value)
void SetErrorCode(const Aws::String &value)
ReviewActionDetail & WithActionName(const Aws::String &value)
ReviewActionDetail & WithResult(const char *value)
void SetActionName(const Aws::String &value)
const Aws::String & GetTargetType() const
ReviewActionDetail & WithActionName(Aws::String &&value)
ReviewActionDetail & WithTargetType(const Aws::String &value)
void SetActionId(const Aws::String &value)
ReviewActionDetail & WithActionName(const char *value)
ReviewActionDetail & WithTargetType(Aws::String &&value)
ReviewActionDetail & WithTargetType(const char *value)
ReviewActionDetail & WithTargetId(const Aws::String &value)
AWS_MTURK_API Aws::Utils::Json::JsonValue Jsonize() const
void SetCompleteTime(const Aws::Utils::DateTime &value)
const Aws::String & GetTargetId() const
ReviewActionDetail & WithTargetId(Aws::String &&value)
void SetActionName(Aws::String &&value)
ReviewActionDetail & WithResult(Aws::String &&value)
AWS_MTURK_API ReviewActionDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_MTURK_API ReviewActionDetail(Aws::Utils::Json::JsonView jsonValue)
ReviewActionDetail & WithResult(const Aws::String &value)
const Aws::String & GetErrorCode() const
void SetResult(const Aws::String &value)
void SetStatus(ReviewActionStatus &&value)
ReviewActionDetail & WithErrorCode(const char *value)
void SetTargetType(Aws::String &&value)
const ReviewActionStatus & GetStatus() const
ReviewActionDetail & WithCompleteTime(Aws::Utils::DateTime &&value)
ReviewActionDetail & WithErrorCode(const Aws::String &value)
ReviewActionDetail & WithActionId(const Aws::String &value)
ReviewActionDetail & WithActionId(const char *value)
void SetCompleteTime(Aws::Utils::DateTime &&value)
void SetTargetId(const Aws::String &value)
void SetTargetType(const Aws::String &value)
ReviewActionDetail & WithActionId(Aws::String &&value)
const Aws::String & GetActionName() const
ReviewActionDetail & WithErrorCode(Aws::String &&value)
ReviewActionDetail & WithStatus(const ReviewActionStatus &value)
ReviewActionDetail & WithTargetId(const char *value)
const Aws::String & GetActionId() const
const Aws::Utils::DateTime & GetCompleteTime() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue