AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
OperationUpdate.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/lambda/Lambda_EXPORTS.h>
9#include <aws/lambda/model/CallbackOptions.h>
10#include <aws/lambda/model/ChainedInvokeOptions.h>
11#include <aws/lambda/model/ContextOptions.h>
12#include <aws/lambda/model/ErrorObject.h>
13#include <aws/lambda/model/OperationAction.h>
14#include <aws/lambda/model/OperationType.h>
15#include <aws/lambda/model/StepOptions.h>
16#include <aws/lambda/model/WaitOptions.h>
17
18#include <utility>
19
20namespace Aws {
21namespace Utils {
22namespace Json {
23class JsonValue;
24class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace Lambda {
28namespace Model {
29
37 public:
38 AWS_LAMBDA_API OperationUpdate() = default;
41 AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const;
42
44
47 inline const Aws::String& GetId() const { return m_id; }
48 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
49 template <typename IdT = Aws::String>
50 void SetId(IdT&& value) {
51 m_idHasBeenSet = true;
52 m_id = std::forward<IdT>(value);
53 }
54 template <typename IdT = Aws::String>
55 OperationUpdate& WithId(IdT&& value) {
56 SetId(std::forward<IdT>(value));
57 return *this;
58 }
60
62
66 inline const Aws::String& GetParentId() const { return m_parentId; }
67 inline bool ParentIdHasBeenSet() const { return m_parentIdHasBeenSet; }
68 template <typename ParentIdT = Aws::String>
69 void SetParentId(ParentIdT&& value) {
70 m_parentIdHasBeenSet = true;
71 m_parentId = std::forward<ParentIdT>(value);
72 }
73 template <typename ParentIdT = Aws::String>
74 OperationUpdate& WithParentId(ParentIdT&& value) {
75 SetParentId(std::forward<ParentIdT>(value));
76 return *this;
77 }
79
81
84 inline const Aws::String& GetName() const { return m_name; }
85 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
86 template <typename NameT = Aws::String>
87 void SetName(NameT&& value) {
88 m_nameHasBeenSet = true;
89 m_name = std::forward<NameT>(value);
90 }
91 template <typename NameT = Aws::String>
92 OperationUpdate& WithName(NameT&& value) {
93 SetName(std::forward<NameT>(value));
94 return *this;
95 }
97
99
102 inline OperationType GetType() const { return m_type; }
103 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
104 inline void SetType(OperationType value) {
105 m_typeHasBeenSet = true;
106 m_type = value;
107 }
109 SetType(value);
110 return *this;
111 }
113
115
118 inline const Aws::String& GetSubType() const { return m_subType; }
119 inline bool SubTypeHasBeenSet() const { return m_subTypeHasBeenSet; }
120 template <typename SubTypeT = Aws::String>
121 void SetSubType(SubTypeT&& value) {
122 m_subTypeHasBeenSet = true;
123 m_subType = std::forward<SubTypeT>(value);
124 }
125 template <typename SubTypeT = Aws::String>
126 OperationUpdate& WithSubType(SubTypeT&& value) {
127 SetSubType(std::forward<SubTypeT>(value));
128 return *this;
129 }
131
133
136 inline OperationAction GetAction() const { return m_action; }
137 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
138 inline void SetAction(OperationAction value) {
139 m_actionHasBeenSet = true;
140 m_action = value;
141 }
143 SetAction(value);
144 return *this;
145 }
147
149
152 inline const Aws::String& GetPayload() const { return m_payload; }
153 inline bool PayloadHasBeenSet() const { return m_payloadHasBeenSet; }
154 template <typename PayloadT = Aws::String>
155 void SetPayload(PayloadT&& value) {
156 m_payloadHasBeenSet = true;
157 m_payload = std::forward<PayloadT>(value);
158 }
159 template <typename PayloadT = Aws::String>
160 OperationUpdate& WithPayload(PayloadT&& value) {
161 SetPayload(std::forward<PayloadT>(value));
162 return *this;
163 }
165
167
170 inline const ErrorObject& GetError() const { return m_error; }
171 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
172 template <typename ErrorT = ErrorObject>
173 void SetError(ErrorT&& value) {
174 m_errorHasBeenSet = true;
175 m_error = std::forward<ErrorT>(value);
176 }
177 template <typename ErrorT = ErrorObject>
178 OperationUpdate& WithError(ErrorT&& value) {
179 SetError(std::forward<ErrorT>(value));
180 return *this;
181 }
183
185
188 inline const ContextOptions& GetContextOptions() const { return m_contextOptions; }
189 inline bool ContextOptionsHasBeenSet() const { return m_contextOptionsHasBeenSet; }
190 template <typename ContextOptionsT = ContextOptions>
191 void SetContextOptions(ContextOptionsT&& value) {
192 m_contextOptionsHasBeenSet = true;
193 m_contextOptions = std::forward<ContextOptionsT>(value);
194 }
195 template <typename ContextOptionsT = ContextOptions>
196 OperationUpdate& WithContextOptions(ContextOptionsT&& value) {
197 SetContextOptions(std::forward<ContextOptionsT>(value));
198 return *this;
199 }
201
203
206 inline const StepOptions& GetStepOptions() const { return m_stepOptions; }
207 inline bool StepOptionsHasBeenSet() const { return m_stepOptionsHasBeenSet; }
208 template <typename StepOptionsT = StepOptions>
209 void SetStepOptions(StepOptionsT&& value) {
210 m_stepOptionsHasBeenSet = true;
211 m_stepOptions = std::forward<StepOptionsT>(value);
212 }
213 template <typename StepOptionsT = StepOptions>
214 OperationUpdate& WithStepOptions(StepOptionsT&& value) {
215 SetStepOptions(std::forward<StepOptionsT>(value));
216 return *this;
217 }
219
221
224 inline const WaitOptions& GetWaitOptions() const { return m_waitOptions; }
225 inline bool WaitOptionsHasBeenSet() const { return m_waitOptionsHasBeenSet; }
226 template <typename WaitOptionsT = WaitOptions>
227 void SetWaitOptions(WaitOptionsT&& value) {
228 m_waitOptionsHasBeenSet = true;
229 m_waitOptions = std::forward<WaitOptionsT>(value);
230 }
231 template <typename WaitOptionsT = WaitOptions>
232 OperationUpdate& WithWaitOptions(WaitOptionsT&& value) {
233 SetWaitOptions(std::forward<WaitOptionsT>(value));
234 return *this;
235 }
237
239
240 inline const CallbackOptions& GetCallbackOptions() const { return m_callbackOptions; }
241 inline bool CallbackOptionsHasBeenSet() const { return m_callbackOptionsHasBeenSet; }
242 template <typename CallbackOptionsT = CallbackOptions>
243 void SetCallbackOptions(CallbackOptionsT&& value) {
244 m_callbackOptionsHasBeenSet = true;
245 m_callbackOptions = std::forward<CallbackOptionsT>(value);
246 }
247 template <typename CallbackOptionsT = CallbackOptions>
248 OperationUpdate& WithCallbackOptions(CallbackOptionsT&& value) {
249 SetCallbackOptions(std::forward<CallbackOptionsT>(value));
250 return *this;
251 }
253
255
256 inline const ChainedInvokeOptions& GetChainedInvokeOptions() const { return m_chainedInvokeOptions; }
257 inline bool ChainedInvokeOptionsHasBeenSet() const { return m_chainedInvokeOptionsHasBeenSet; }
258 template <typename ChainedInvokeOptionsT = ChainedInvokeOptions>
259 void SetChainedInvokeOptions(ChainedInvokeOptionsT&& value) {
260 m_chainedInvokeOptionsHasBeenSet = true;
261 m_chainedInvokeOptions = std::forward<ChainedInvokeOptionsT>(value);
262 }
263 template <typename ChainedInvokeOptionsT = ChainedInvokeOptions>
264 OperationUpdate& WithChainedInvokeOptions(ChainedInvokeOptionsT&& value) {
265 SetChainedInvokeOptions(std::forward<ChainedInvokeOptionsT>(value));
266 return *this;
267 }
269 private:
270 Aws::String m_id;
271
272 Aws::String m_parentId;
273
274 Aws::String m_name;
275
277
278 Aws::String m_subType;
279
281
282 Aws::String m_payload;
283
284 ErrorObject m_error;
285
286 ContextOptions m_contextOptions;
287
288 StepOptions m_stepOptions;
289
290 WaitOptions m_waitOptions;
291
292 CallbackOptions m_callbackOptions;
293
294 ChainedInvokeOptions m_chainedInvokeOptions;
295 bool m_idHasBeenSet = false;
296 bool m_parentIdHasBeenSet = false;
297 bool m_nameHasBeenSet = false;
298 bool m_typeHasBeenSet = false;
299 bool m_subTypeHasBeenSet = false;
300 bool m_actionHasBeenSet = false;
301 bool m_payloadHasBeenSet = false;
302 bool m_errorHasBeenSet = false;
303 bool m_contextOptionsHasBeenSet = false;
304 bool m_stepOptionsHasBeenSet = false;
305 bool m_waitOptionsHasBeenSet = false;
306 bool m_callbackOptionsHasBeenSet = false;
307 bool m_chainedInvokeOptionsHasBeenSet = false;
308};
309
310} // namespace Model
311} // namespace Lambda
312} // namespace Aws
OperationUpdate & WithSubType(SubTypeT &&value)
void SetParentId(ParentIdT &&value)
const Aws::String & GetName() const
const Aws::String & GetPayload() const
const Aws::String & GetParentId() const
OperationUpdate & WithStepOptions(StepOptionsT &&value)
OperationUpdate & WithPayload(PayloadT &&value)
const WaitOptions & GetWaitOptions() const
AWS_LAMBDA_API OperationUpdate(Aws::Utils::Json::JsonView jsonValue)
void SetCallbackOptions(CallbackOptionsT &&value)
const ContextOptions & GetContextOptions() const
void SetAction(OperationAction value)
const CallbackOptions & GetCallbackOptions() const
OperationUpdate & WithCallbackOptions(CallbackOptionsT &&value)
const Aws::String & GetId() const
void SetStepOptions(StepOptionsT &&value)
AWS_LAMBDA_API OperationUpdate()=default
OperationUpdate & WithChainedInvokeOptions(ChainedInvokeOptionsT &&value)
void SetType(OperationType value)
OperationUpdate & WithAction(OperationAction value)
OperationUpdate & WithType(OperationType value)
void SetContextOptions(ContextOptionsT &&value)
const ChainedInvokeOptions & GetChainedInvokeOptions() const
OperationUpdate & WithContextOptions(ContextOptionsT &&value)
void SetWaitOptions(WaitOptionsT &&value)
const Aws::String & GetSubType() const
OperationUpdate & WithName(NameT &&value)
OperationUpdate & WithWaitOptions(WaitOptionsT &&value)
OperationUpdate & WithParentId(ParentIdT &&value)
OperationUpdate & WithError(ErrorT &&value)
void SetChainedInvokeOptions(ChainedInvokeOptionsT &&value)
OperationUpdate & WithId(IdT &&value)
AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_LAMBDA_API OperationUpdate & operator=(Aws::Utils::Json::JsonView jsonValue)
const ErrorObject & GetError() const
const StepOptions & GetStepOptions() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue