AWS SDK for C++

AWS SDK for C++ Version 1.11.771

Loading...
Searching...
No Matches
ReviewActionDetail.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/ReviewActionStatus.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 ReviewActionDetail() = default;
36 AWS_MTURK_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetActionId() const { return m_actionId; }
43 inline bool ActionIdHasBeenSet() const { return m_actionIdHasBeenSet; }
44 template <typename ActionIdT = Aws::String>
45 void SetActionId(ActionIdT&& value) {
46 m_actionIdHasBeenSet = true;
47 m_actionId = std::forward<ActionIdT>(value);
48 }
49 template <typename ActionIdT = Aws::String>
50 ReviewActionDetail& WithActionId(ActionIdT&& value) {
51 SetActionId(std::forward<ActionIdT>(value));
52 return *this;
53 }
55
57
62 inline const Aws::String& GetActionName() const { return m_actionName; }
63 inline bool ActionNameHasBeenSet() const { return m_actionNameHasBeenSet; }
64 template <typename ActionNameT = Aws::String>
65 void SetActionName(ActionNameT&& value) {
66 m_actionNameHasBeenSet = true;
67 m_actionName = std::forward<ActionNameT>(value);
68 }
69 template <typename ActionNameT = Aws::String>
70 ReviewActionDetail& WithActionName(ActionNameT&& value) {
71 SetActionName(std::forward<ActionNameT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetTargetId() const { return m_targetId; }
81 inline bool TargetIdHasBeenSet() const { return m_targetIdHasBeenSet; }
82 template <typename TargetIdT = Aws::String>
83 void SetTargetId(TargetIdT&& value) {
84 m_targetIdHasBeenSet = true;
85 m_targetId = std::forward<TargetIdT>(value);
86 }
87 template <typename TargetIdT = Aws::String>
88 ReviewActionDetail& WithTargetId(TargetIdT&& value) {
89 SetTargetId(std::forward<TargetIdT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::String& GetTargetType() const { return m_targetType; }
99 inline bool TargetTypeHasBeenSet() const { return m_targetTypeHasBeenSet; }
100 template <typename TargetTypeT = Aws::String>
101 void SetTargetType(TargetTypeT&& value) {
102 m_targetTypeHasBeenSet = true;
103 m_targetType = std::forward<TargetTypeT>(value);
104 }
105 template <typename TargetTypeT = Aws::String>
106 ReviewActionDetail& WithTargetType(TargetTypeT&& value) {
107 SetTargetType(std::forward<TargetTypeT>(value));
108 return *this;
109 }
111
113
117 inline ReviewActionStatus GetStatus() const { return m_status; }
118 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
119 inline void SetStatus(ReviewActionStatus value) {
120 m_statusHasBeenSet = true;
121 m_status = value;
122 }
124 SetStatus(value);
125 return *this;
126 }
128
130
133 inline const Aws::Utils::DateTime& GetCompleteTime() const { return m_completeTime; }
134 inline bool CompleteTimeHasBeenSet() const { return m_completeTimeHasBeenSet; }
135 template <typename CompleteTimeT = Aws::Utils::DateTime>
136 void SetCompleteTime(CompleteTimeT&& value) {
137 m_completeTimeHasBeenSet = true;
138 m_completeTime = std::forward<CompleteTimeT>(value);
139 }
140 template <typename CompleteTimeT = Aws::Utils::DateTime>
141 ReviewActionDetail& WithCompleteTime(CompleteTimeT&& value) {
142 SetCompleteTime(std::forward<CompleteTimeT>(value));
143 return *this;
144 }
146
148
151 inline const Aws::String& GetResult() const { return m_result; }
152 inline bool ResultHasBeenSet() const { return m_resultHasBeenSet; }
153 template <typename ResultT = Aws::String>
154 void SetResult(ResultT&& value) {
155 m_resultHasBeenSet = true;
156 m_result = std::forward<ResultT>(value);
157 }
158 template <typename ResultT = Aws::String>
159 ReviewActionDetail& WithResult(ResultT&& value) {
160 SetResult(std::forward<ResultT>(value));
161 return *this;
162 }
164
166
169 inline const Aws::String& GetErrorCode() const { return m_errorCode; }
170 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
171 template <typename ErrorCodeT = Aws::String>
172 void SetErrorCode(ErrorCodeT&& value) {
173 m_errorCodeHasBeenSet = true;
174 m_errorCode = std::forward<ErrorCodeT>(value);
175 }
176 template <typename ErrorCodeT = Aws::String>
177 ReviewActionDetail& WithErrorCode(ErrorCodeT&& value) {
178 SetErrorCode(std::forward<ErrorCodeT>(value));
179 return *this;
180 }
182 private:
183 Aws::String m_actionId;
184
185 Aws::String m_actionName;
186
187 Aws::String m_targetId;
188
189 Aws::String m_targetType;
190
192
193 Aws::Utils::DateTime m_completeTime{};
194
195 Aws::String m_result;
196
197 Aws::String m_errorCode;
198 bool m_actionIdHasBeenSet = false;
199 bool m_actionNameHasBeenSet = false;
200 bool m_targetIdHasBeenSet = false;
201 bool m_targetTypeHasBeenSet = false;
202 bool m_statusHasBeenSet = false;
203 bool m_completeTimeHasBeenSet = false;
204 bool m_resultHasBeenSet = false;
205 bool m_errorCodeHasBeenSet = false;
206};
207
208} // namespace Model
209} // namespace MTurk
210} // namespace Aws
const Aws::String & GetResult() const
ReviewActionDetail & WithErrorCode(ErrorCodeT &&value)
AWS_MTURK_API ReviewActionDetail()=default
ReviewActionDetail & WithCompleteTime(CompleteTimeT &&value)
const Aws::String & GetTargetType() const
ReviewActionDetail & WithActionName(ActionNameT &&value)
ReviewActionDetail & WithTargetType(TargetTypeT &&value)
ReviewActionDetail & WithStatus(ReviewActionStatus value)
void SetCompleteTime(CompleteTimeT &&value)
AWS_MTURK_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetTargetId() const
ReviewActionDetail & WithResult(ResultT &&value)
AWS_MTURK_API ReviewActionDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
ReviewActionDetail & WithTargetId(TargetIdT &&value)
AWS_MTURK_API ReviewActionDetail(Aws::Utils::Json::JsonView jsonValue)
void SetStatus(ReviewActionStatus value)
const Aws::String & GetErrorCode() const
void SetActionName(ActionNameT &&value)
ReviewActionDetail & WithActionId(ActionIdT &&value)
const Aws::String & GetActionName() const
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