AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
Operation.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/lambda/Lambda_EXPORTS.h>
10#include <aws/lambda/model/CallbackDetails.h>
11#include <aws/lambda/model/ChainedInvokeDetails.h>
12#include <aws/lambda/model/ContextDetails.h>
13#include <aws/lambda/model/ExecutionDetails.h>
14#include <aws/lambda/model/OperationStatus.h>
15#include <aws/lambda/model/OperationType.h>
16#include <aws/lambda/model/StepDetails.h>
17#include <aws/lambda/model/WaitDetails.h>
18
19#include <utility>
20
21namespace Aws {
22namespace Utils {
23namespace Json {
24class JsonValue;
25class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace Lambda {
29namespace Model {
30
37class Operation {
38 public:
39 AWS_LAMBDA_API Operation() = default;
40 AWS_LAMBDA_API Operation(Aws::Utils::Json::JsonView jsonValue);
42 AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const;
43
45
48 inline const Aws::String& GetId() const { return m_id; }
49 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
50 template <typename IdT = Aws::String>
51 void SetId(IdT&& value) {
52 m_idHasBeenSet = true;
53 m_id = std::forward<IdT>(value);
54 }
55 template <typename IdT = Aws::String>
56 Operation& WithId(IdT&& value) {
57 SetId(std::forward<IdT>(value));
58 return *this;
59 }
61
63
67 inline const Aws::String& GetParentId() const { return m_parentId; }
68 inline bool ParentIdHasBeenSet() const { return m_parentIdHasBeenSet; }
69 template <typename ParentIdT = Aws::String>
70 void SetParentId(ParentIdT&& value) {
71 m_parentIdHasBeenSet = true;
72 m_parentId = std::forward<ParentIdT>(value);
73 }
74 template <typename ParentIdT = Aws::String>
75 Operation& WithParentId(ParentIdT&& value) {
76 SetParentId(std::forward<ParentIdT>(value));
77 return *this;
78 }
80
82
85 inline const Aws::String& GetName() const { return m_name; }
86 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
87 template <typename NameT = Aws::String>
88 void SetName(NameT&& value) {
89 m_nameHasBeenSet = true;
90 m_name = std::forward<NameT>(value);
91 }
92 template <typename NameT = Aws::String>
93 Operation& WithName(NameT&& value) {
94 SetName(std::forward<NameT>(value));
95 return *this;
96 }
98
100
103 inline OperationType GetType() const { return m_type; }
104 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
105 inline void SetType(OperationType value) {
106 m_typeHasBeenSet = true;
107 m_type = value;
108 }
110 SetType(value);
111 return *this;
112 }
114
116
119 inline const Aws::String& GetSubType() const { return m_subType; }
120 inline bool SubTypeHasBeenSet() const { return m_subTypeHasBeenSet; }
121 template <typename SubTypeT = Aws::String>
122 void SetSubType(SubTypeT&& value) {
123 m_subTypeHasBeenSet = true;
124 m_subType = std::forward<SubTypeT>(value);
125 }
126 template <typename SubTypeT = Aws::String>
127 Operation& WithSubType(SubTypeT&& value) {
128 SetSubType(std::forward<SubTypeT>(value));
129 return *this;
130 }
132
134
139 inline const Aws::Utils::DateTime& GetStartTimestamp() const { return m_startTimestamp; }
140 inline bool StartTimestampHasBeenSet() const { return m_startTimestampHasBeenSet; }
141 template <typename StartTimestampT = Aws::Utils::DateTime>
142 void SetStartTimestamp(StartTimestampT&& value) {
143 m_startTimestampHasBeenSet = true;
144 m_startTimestamp = std::forward<StartTimestampT>(value);
145 }
146 template <typename StartTimestampT = Aws::Utils::DateTime>
147 Operation& WithStartTimestamp(StartTimestampT&& value) {
148 SetStartTimestamp(std::forward<StartTimestampT>(value));
149 return *this;
150 }
152
154
159 inline const Aws::Utils::DateTime& GetEndTimestamp() const { return m_endTimestamp; }
160 inline bool EndTimestampHasBeenSet() const { return m_endTimestampHasBeenSet; }
161 template <typename EndTimestampT = Aws::Utils::DateTime>
162 void SetEndTimestamp(EndTimestampT&& value) {
163 m_endTimestampHasBeenSet = true;
164 m_endTimestamp = std::forward<EndTimestampT>(value);
165 }
166 template <typename EndTimestampT = Aws::Utils::DateTime>
167 Operation& WithEndTimestamp(EndTimestampT&& value) {
168 SetEndTimestamp(std::forward<EndTimestampT>(value));
169 return *this;
170 }
172
174
177 inline OperationStatus GetStatus() const { return m_status; }
178 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
179 inline void SetStatus(OperationStatus value) {
180 m_statusHasBeenSet = true;
181 m_status = value;
182 }
184 SetStatus(value);
185 return *this;
186 }
188
190
193 inline const ExecutionDetails& GetExecutionDetails() const { return m_executionDetails; }
194 inline bool ExecutionDetailsHasBeenSet() const { return m_executionDetailsHasBeenSet; }
195 template <typename ExecutionDetailsT = ExecutionDetails>
196 void SetExecutionDetails(ExecutionDetailsT&& value) {
197 m_executionDetailsHasBeenSet = true;
198 m_executionDetails = std::forward<ExecutionDetailsT>(value);
199 }
200 template <typename ExecutionDetailsT = ExecutionDetails>
201 Operation& WithExecutionDetails(ExecutionDetailsT&& value) {
202 SetExecutionDetails(std::forward<ExecutionDetailsT>(value));
203 return *this;
204 }
206
208
211 inline const ContextDetails& GetContextDetails() const { return m_contextDetails; }
212 inline bool ContextDetailsHasBeenSet() const { return m_contextDetailsHasBeenSet; }
213 template <typename ContextDetailsT = ContextDetails>
214 void SetContextDetails(ContextDetailsT&& value) {
215 m_contextDetailsHasBeenSet = true;
216 m_contextDetails = std::forward<ContextDetailsT>(value);
217 }
218 template <typename ContextDetailsT = ContextDetails>
219 Operation& WithContextDetails(ContextDetailsT&& value) {
220 SetContextDetails(std::forward<ContextDetailsT>(value));
221 return *this;
222 }
224
226
229 inline const StepDetails& GetStepDetails() const { return m_stepDetails; }
230 inline bool StepDetailsHasBeenSet() const { return m_stepDetailsHasBeenSet; }
231 template <typename StepDetailsT = StepDetails>
232 void SetStepDetails(StepDetailsT&& value) {
233 m_stepDetailsHasBeenSet = true;
234 m_stepDetails = std::forward<StepDetailsT>(value);
235 }
236 template <typename StepDetailsT = StepDetails>
237 Operation& WithStepDetails(StepDetailsT&& value) {
238 SetStepDetails(std::forward<StepDetailsT>(value));
239 return *this;
240 }
242
244
247 inline const WaitDetails& GetWaitDetails() const { return m_waitDetails; }
248 inline bool WaitDetailsHasBeenSet() const { return m_waitDetailsHasBeenSet; }
249 template <typename WaitDetailsT = WaitDetails>
250 void SetWaitDetails(WaitDetailsT&& value) {
251 m_waitDetailsHasBeenSet = true;
252 m_waitDetails = std::forward<WaitDetailsT>(value);
253 }
254 template <typename WaitDetailsT = WaitDetails>
255 Operation& WithWaitDetails(WaitDetailsT&& value) {
256 SetWaitDetails(std::forward<WaitDetailsT>(value));
257 return *this;
258 }
260
262
263 inline const CallbackDetails& GetCallbackDetails() const { return m_callbackDetails; }
264 inline bool CallbackDetailsHasBeenSet() const { return m_callbackDetailsHasBeenSet; }
265 template <typename CallbackDetailsT = CallbackDetails>
266 void SetCallbackDetails(CallbackDetailsT&& value) {
267 m_callbackDetailsHasBeenSet = true;
268 m_callbackDetails = std::forward<CallbackDetailsT>(value);
269 }
270 template <typename CallbackDetailsT = CallbackDetails>
271 Operation& WithCallbackDetails(CallbackDetailsT&& value) {
272 SetCallbackDetails(std::forward<CallbackDetailsT>(value));
273 return *this;
274 }
276
278
279 inline const ChainedInvokeDetails& GetChainedInvokeDetails() const { return m_chainedInvokeDetails; }
280 inline bool ChainedInvokeDetailsHasBeenSet() const { return m_chainedInvokeDetailsHasBeenSet; }
281 template <typename ChainedInvokeDetailsT = ChainedInvokeDetails>
282 void SetChainedInvokeDetails(ChainedInvokeDetailsT&& value) {
283 m_chainedInvokeDetailsHasBeenSet = true;
284 m_chainedInvokeDetails = std::forward<ChainedInvokeDetailsT>(value);
285 }
286 template <typename ChainedInvokeDetailsT = ChainedInvokeDetails>
287 Operation& WithChainedInvokeDetails(ChainedInvokeDetailsT&& value) {
288 SetChainedInvokeDetails(std::forward<ChainedInvokeDetailsT>(value));
289 return *this;
290 }
292 private:
293 Aws::String m_id;
294
295 Aws::String m_parentId;
296
297 Aws::String m_name;
298
300
301 Aws::String m_subType;
302
303 Aws::Utils::DateTime m_startTimestamp{};
304
305 Aws::Utils::DateTime m_endTimestamp{};
306
308
309 ExecutionDetails m_executionDetails;
310
311 ContextDetails m_contextDetails;
312
313 StepDetails m_stepDetails;
314
315 WaitDetails m_waitDetails;
316
317 CallbackDetails m_callbackDetails;
318
319 ChainedInvokeDetails m_chainedInvokeDetails;
320 bool m_idHasBeenSet = false;
321 bool m_parentIdHasBeenSet = false;
322 bool m_nameHasBeenSet = false;
323 bool m_typeHasBeenSet = false;
324 bool m_subTypeHasBeenSet = false;
325 bool m_startTimestampHasBeenSet = false;
326 bool m_endTimestampHasBeenSet = false;
327 bool m_statusHasBeenSet = false;
328 bool m_executionDetailsHasBeenSet = false;
329 bool m_contextDetailsHasBeenSet = false;
330 bool m_stepDetailsHasBeenSet = false;
331 bool m_waitDetailsHasBeenSet = false;
332 bool m_callbackDetailsHasBeenSet = false;
333 bool m_chainedInvokeDetailsHasBeenSet = false;
334};
335
336} // namespace Model
337} // namespace Lambda
338} // namespace Aws
const Aws::Utils::DateTime & GetEndTimestamp() const
Definition Operation.h:159
Operation & WithExecutionDetails(ExecutionDetailsT &&value)
Definition Operation.h:201
bool EndTimestampHasBeenSet() const
Definition Operation.h:160
void SetSubType(SubTypeT &&value)
Definition Operation.h:122
bool ExecutionDetailsHasBeenSet() const
Definition Operation.h:194
const Aws::String & GetParentId() const
Definition Operation.h:67
Operation & WithSubType(SubTypeT &&value)
Definition Operation.h:127
AWS_LAMBDA_API Operation()=default
bool CallbackDetailsHasBeenSet() const
Definition Operation.h:264
void SetExecutionDetails(ExecutionDetailsT &&value)
Definition Operation.h:196
const ExecutionDetails & GetExecutionDetails() const
Definition Operation.h:193
void SetWaitDetails(WaitDetailsT &&value)
Definition Operation.h:250
Operation & WithStatus(OperationStatus value)
Definition Operation.h:183
const ContextDetails & GetContextDetails() const
Definition Operation.h:211
const CallbackDetails & GetCallbackDetails() const
Definition Operation.h:263
bool ParentIdHasBeenSet() const
Definition Operation.h:68
Operation & WithId(IdT &&value)
Definition Operation.h:56
Operation & WithStartTimestamp(StartTimestampT &&value)
Definition Operation.h:147
void SetCallbackDetails(CallbackDetailsT &&value)
Definition Operation.h:266
Operation & WithParentId(ParentIdT &&value)
Definition Operation.h:75
void SetStartTimestamp(StartTimestampT &&value)
Definition Operation.h:142
AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const
bool ChainedInvokeDetailsHasBeenSet() const
Definition Operation.h:280
Operation & WithType(OperationType value)
Definition Operation.h:109
void SetChainedInvokeDetails(ChainedInvokeDetailsT &&value)
Definition Operation.h:282
Operation & WithCallbackDetails(CallbackDetailsT &&value)
Definition Operation.h:271
const Aws::Utils::DateTime & GetStartTimestamp() const
Definition Operation.h:139
AWS_LAMBDA_API Operation & operator=(Aws::Utils::Json::JsonView jsonValue)
Operation & WithWaitDetails(WaitDetailsT &&value)
Definition Operation.h:255
bool StartTimestampHasBeenSet() const
Definition Operation.h:140
const Aws::String & GetId() const
Definition Operation.h:48
void SetStepDetails(StepDetailsT &&value)
Definition Operation.h:232
Operation & WithChainedInvokeDetails(ChainedInvokeDetailsT &&value)
Definition Operation.h:287
const Aws::String & GetName() const
Definition Operation.h:85
Operation & WithStepDetails(StepDetailsT &&value)
Definition Operation.h:237
const WaitDetails & GetWaitDetails() const
Definition Operation.h:247
OperationType GetType() const
Definition Operation.h:103
void SetParentId(ParentIdT &&value)
Definition Operation.h:70
void SetEndTimestamp(EndTimestampT &&value)
Definition Operation.h:162
void SetStatus(OperationStatus value)
Definition Operation.h:179
void SetId(IdT &&value)
Definition Operation.h:51
Operation & WithEndTimestamp(EndTimestampT &&value)
Definition Operation.h:167
Operation & WithName(NameT &&value)
Definition Operation.h:93
OperationStatus GetStatus() const
Definition Operation.h:177
bool StepDetailsHasBeenSet() const
Definition Operation.h:230
void SetContextDetails(ContextDetailsT &&value)
Definition Operation.h:214
bool WaitDetailsHasBeenSet() const
Definition Operation.h:248
bool ContextDetailsHasBeenSet() const
Definition Operation.h:212
const ChainedInvokeDetails & GetChainedInvokeDetails() const
Definition Operation.h:279
void SetName(NameT &&value)
Definition Operation.h:88
const Aws::String & GetSubType() const
Definition Operation.h:119
AWS_LAMBDA_API Operation(Aws::Utils::Json::JsonView jsonValue)
void SetType(OperationType value)
Definition Operation.h:105
const StepDetails & GetStepDetails() const
Definition Operation.h:229
Operation & WithContextDetails(ContextDetailsT &&value)
Definition Operation.h:219
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue