AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
Action.h
1
6#pragma once
7#include <aws/iotevents/IoTEvents_EXPORTS.h>
8#include <aws/iotevents/model/ClearTimerAction.h>
9#include <aws/iotevents/model/DynamoDBAction.h>
10#include <aws/iotevents/model/DynamoDBv2Action.h>
11#include <aws/iotevents/model/FirehoseAction.h>
12#include <aws/iotevents/model/IotEventsAction.h>
13#include <aws/iotevents/model/IotSiteWiseAction.h>
14#include <aws/iotevents/model/IotTopicPublishAction.h>
15#include <aws/iotevents/model/LambdaAction.h>
16#include <aws/iotevents/model/ResetTimerAction.h>
17#include <aws/iotevents/model/SNSTopicPublishAction.h>
18#include <aws/iotevents/model/SetTimerAction.h>
19#include <aws/iotevents/model/SetVariableAction.h>
20#include <aws/iotevents/model/SqsAction.h>
21
22#include <utility>
23
24namespace Aws {
25namespace Utils {
26namespace Json {
27class JsonValue;
28class JsonView;
29} // namespace Json
30} // namespace Utils
31namespace IoTEvents {
32namespace Model {
33
40class Action {
41 public:
42 AWS_IOTEVENTS_API Action() = default;
43 AWS_IOTEVENTS_API Action(Aws::Utils::Json::JsonView jsonValue);
44 AWS_IOTEVENTS_API Action& operator=(Aws::Utils::Json::JsonView jsonValue);
45 AWS_IOTEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const;
46
48
51 inline const SetVariableAction& GetSetVariable() const { return m_setVariable; }
52 inline bool SetVariableHasBeenSet() const { return m_setVariableHasBeenSet; }
53 template <typename SetVariableT = SetVariableAction>
54 void SetSetVariable(SetVariableT&& value) {
55 m_setVariableHasBeenSet = true;
56 m_setVariable = std::forward<SetVariableT>(value);
57 }
58 template <typename SetVariableT = SetVariableAction>
59 Action& WithSetVariable(SetVariableT&& value) {
60 SetSetVariable(std::forward<SetVariableT>(value));
61 return *this;
62 }
64
66
69 inline const SNSTopicPublishAction& GetSns() const { return m_sns; }
70 inline bool SnsHasBeenSet() const { return m_snsHasBeenSet; }
71 template <typename SnsT = SNSTopicPublishAction>
72 void SetSns(SnsT&& value) {
73 m_snsHasBeenSet = true;
74 m_sns = std::forward<SnsT>(value);
75 }
76 template <typename SnsT = SNSTopicPublishAction>
77 Action& WithSns(SnsT&& value) {
78 SetSns(std::forward<SnsT>(value));
79 return *this;
80 }
82
84
88 inline const IotTopicPublishAction& GetIotTopicPublish() const { return m_iotTopicPublish; }
89 inline bool IotTopicPublishHasBeenSet() const { return m_iotTopicPublishHasBeenSet; }
90 template <typename IotTopicPublishT = IotTopicPublishAction>
91 void SetIotTopicPublish(IotTopicPublishT&& value) {
92 m_iotTopicPublishHasBeenSet = true;
93 m_iotTopicPublish = std::forward<IotTopicPublishT>(value);
94 }
95 template <typename IotTopicPublishT = IotTopicPublishAction>
96 Action& WithIotTopicPublish(IotTopicPublishT&& value) {
97 SetIotTopicPublish(std::forward<IotTopicPublishT>(value));
98 return *this;
99 }
101
103
106 inline const SetTimerAction& GetSetTimer() const { return m_setTimer; }
107 inline bool SetTimerHasBeenSet() const { return m_setTimerHasBeenSet; }
108 template <typename SetTimerT = SetTimerAction>
109 void SetSetTimer(SetTimerT&& value) {
110 m_setTimerHasBeenSet = true;
111 m_setTimer = std::forward<SetTimerT>(value);
112 }
113 template <typename SetTimerT = SetTimerAction>
114 Action& WithSetTimer(SetTimerT&& value) {
115 SetSetTimer(std::forward<SetTimerT>(value));
116 return *this;
117 }
119
121
124 inline const ClearTimerAction& GetClearTimer() const { return m_clearTimer; }
125 inline bool ClearTimerHasBeenSet() const { return m_clearTimerHasBeenSet; }
126 template <typename ClearTimerT = ClearTimerAction>
127 void SetClearTimer(ClearTimerT&& value) {
128 m_clearTimerHasBeenSet = true;
129 m_clearTimer = std::forward<ClearTimerT>(value);
130 }
131 template <typename ClearTimerT = ClearTimerAction>
132 Action& WithClearTimer(ClearTimerT&& value) {
133 SetClearTimer(std::forward<ClearTimerT>(value));
134 return *this;
135 }
137
139
142 inline const ResetTimerAction& GetResetTimer() const { return m_resetTimer; }
143 inline bool ResetTimerHasBeenSet() const { return m_resetTimerHasBeenSet; }
144 template <typename ResetTimerT = ResetTimerAction>
145 void SetResetTimer(ResetTimerT&& value) {
146 m_resetTimerHasBeenSet = true;
147 m_resetTimer = std::forward<ResetTimerT>(value);
148 }
149 template <typename ResetTimerT = ResetTimerAction>
150 Action& WithResetTimer(ResetTimerT&& value) {
151 SetResetTimer(std::forward<ResetTimerT>(value));
152 return *this;
153 }
155
157
161 inline const LambdaAction& GetLambda() const { return m_lambda; }
162 inline bool LambdaHasBeenSet() const { return m_lambdaHasBeenSet; }
163 template <typename LambdaT = LambdaAction>
164 void SetLambda(LambdaT&& value) {
165 m_lambdaHasBeenSet = true;
166 m_lambda = std::forward<LambdaT>(value);
167 }
168 template <typename LambdaT = LambdaAction>
169 Action& WithLambda(LambdaT&& value) {
170 SetLambda(std::forward<LambdaT>(value));
171 return *this;
172 }
174
176
180 inline const IotEventsAction& GetIotEvents() const { return m_iotEvents; }
181 inline bool IotEventsHasBeenSet() const { return m_iotEventsHasBeenSet; }
182 template <typename IotEventsT = IotEventsAction>
183 void SetIotEvents(IotEventsT&& value) {
184 m_iotEventsHasBeenSet = true;
185 m_iotEvents = std::forward<IotEventsT>(value);
186 }
187 template <typename IotEventsT = IotEventsAction>
188 Action& WithIotEvents(IotEventsT&& value) {
189 SetIotEvents(std::forward<IotEventsT>(value));
190 return *this;
191 }
193
195
199 inline const SqsAction& GetSqs() const { return m_sqs; }
200 inline bool SqsHasBeenSet() const { return m_sqsHasBeenSet; }
201 template <typename SqsT = SqsAction>
202 void SetSqs(SqsT&& value) {
203 m_sqsHasBeenSet = true;
204 m_sqs = std::forward<SqsT>(value);
205 }
206 template <typename SqsT = SqsAction>
207 Action& WithSqs(SqsT&& value) {
208 SetSqs(std::forward<SqsT>(value));
209 return *this;
210 }
212
214
218 inline const FirehoseAction& GetFirehose() const { return m_firehose; }
219 inline bool FirehoseHasBeenSet() const { return m_firehoseHasBeenSet; }
220 template <typename FirehoseT = FirehoseAction>
221 void SetFirehose(FirehoseT&& value) {
222 m_firehoseHasBeenSet = true;
223 m_firehose = std::forward<FirehoseT>(value);
224 }
225 template <typename FirehoseT = FirehoseAction>
226 Action& WithFirehose(FirehoseT&& value) {
227 SetFirehose(std::forward<FirehoseT>(value));
228 return *this;
229 }
231
233
243 inline const DynamoDBAction& GetDynamoDB() const { return m_dynamoDB; }
244 inline bool DynamoDBHasBeenSet() const { return m_dynamoDBHasBeenSet; }
245 template <typename DynamoDBT = DynamoDBAction>
246 void SetDynamoDB(DynamoDBT&& value) {
247 m_dynamoDBHasBeenSet = true;
248 m_dynamoDB = std::forward<DynamoDBT>(value);
249 }
250 template <typename DynamoDBT = DynamoDBAction>
251 Action& WithDynamoDB(DynamoDBT&& value) {
252 SetDynamoDB(std::forward<DynamoDBT>(value));
253 return *this;
254 }
256
258
268 inline const DynamoDBv2Action& GetDynamoDBv2() const { return m_dynamoDBv2; }
269 inline bool DynamoDBv2HasBeenSet() const { return m_dynamoDBv2HasBeenSet; }
270 template <typename DynamoDBv2T = DynamoDBv2Action>
271 void SetDynamoDBv2(DynamoDBv2T&& value) {
272 m_dynamoDBv2HasBeenSet = true;
273 m_dynamoDBv2 = std::forward<DynamoDBv2T>(value);
274 }
275 template <typename DynamoDBv2T = DynamoDBv2Action>
276 Action& WithDynamoDBv2(DynamoDBv2T&& value) {
277 SetDynamoDBv2(std::forward<DynamoDBv2T>(value));
278 return *this;
279 }
281
283
287 inline const IotSiteWiseAction& GetIotSiteWise() const { return m_iotSiteWise; }
288 inline bool IotSiteWiseHasBeenSet() const { return m_iotSiteWiseHasBeenSet; }
289 template <typename IotSiteWiseT = IotSiteWiseAction>
290 void SetIotSiteWise(IotSiteWiseT&& value) {
291 m_iotSiteWiseHasBeenSet = true;
292 m_iotSiteWise = std::forward<IotSiteWiseT>(value);
293 }
294 template <typename IotSiteWiseT = IotSiteWiseAction>
295 Action& WithIotSiteWise(IotSiteWiseT&& value) {
296 SetIotSiteWise(std::forward<IotSiteWiseT>(value));
297 return *this;
298 }
300 private:
301 SetVariableAction m_setVariable;
302
304
305 IotTopicPublishAction m_iotTopicPublish;
306
307 SetTimerAction m_setTimer;
308
309 ClearTimerAction m_clearTimer;
310
311 ResetTimerAction m_resetTimer;
312
313 LambdaAction m_lambda;
314
315 IotEventsAction m_iotEvents;
316
317 SqsAction m_sqs;
318
319 FirehoseAction m_firehose;
320
321 DynamoDBAction m_dynamoDB;
322
323 DynamoDBv2Action m_dynamoDBv2;
324
325 IotSiteWiseAction m_iotSiteWise;
326 bool m_setVariableHasBeenSet = false;
327 bool m_snsHasBeenSet = false;
328 bool m_iotTopicPublishHasBeenSet = false;
329 bool m_setTimerHasBeenSet = false;
330 bool m_clearTimerHasBeenSet = false;
331 bool m_resetTimerHasBeenSet = false;
332 bool m_lambdaHasBeenSet = false;
333 bool m_iotEventsHasBeenSet = false;
334 bool m_sqsHasBeenSet = false;
335 bool m_firehoseHasBeenSet = false;
336 bool m_dynamoDBHasBeenSet = false;
337 bool m_dynamoDBv2HasBeenSet = false;
338 bool m_iotSiteWiseHasBeenSet = false;
339};
340
341} // namespace Model
342} // namespace IoTEvents
343} // namespace Aws
bool SetTimerHasBeenSet() const
Definition Action.h:107
const DynamoDBv2Action & GetDynamoDBv2() const
Definition Action.h:268
void SetSetTimer(SetTimerT &&value)
Definition Action.h:109
Action & WithLambda(LambdaT &&value)
Definition Action.h:169
const SetVariableAction & GetSetVariable() const
Definition Action.h:51
Action & WithFirehose(FirehoseT &&value)
Definition Action.h:226
void SetSetVariable(SetVariableT &&value)
Definition Action.h:54
bool IotSiteWiseHasBeenSet() const
Definition Action.h:288
const LambdaAction & GetLambda() const
Definition Action.h:161
const FirehoseAction & GetFirehose() const
Definition Action.h:218
Action & WithDynamoDB(DynamoDBT &&value)
Definition Action.h:251
bool DynamoDBHasBeenSet() const
Definition Action.h:244
const IotSiteWiseAction & GetIotSiteWise() const
Definition Action.h:287
const IotTopicPublishAction & GetIotTopicPublish() const
Definition Action.h:88
bool ResetTimerHasBeenSet() const
Definition Action.h:143
const IotEventsAction & GetIotEvents() const
Definition Action.h:180
Action & WithResetTimer(ResetTimerT &&value)
Definition Action.h:150
Action & WithSns(SnsT &&value)
Definition Action.h:77
void SetSns(SnsT &&value)
Definition Action.h:72
void SetDynamoDBv2(DynamoDBv2T &&value)
Definition Action.h:271
void SetIotSiteWise(IotSiteWiseT &&value)
Definition Action.h:290
AWS_IOTEVENTS_API Action & operator=(Aws::Utils::Json::JsonView jsonValue)
bool IotEventsHasBeenSet() const
Definition Action.h:181
Action & WithDynamoDBv2(DynamoDBv2T &&value)
Definition Action.h:276
Action & WithIotSiteWise(IotSiteWiseT &&value)
Definition Action.h:295
bool SetVariableHasBeenSet() const
Definition Action.h:52
const SetTimerAction & GetSetTimer() const
Definition Action.h:106
void SetDynamoDB(DynamoDBT &&value)
Definition Action.h:246
Action & WithIotEvents(IotEventsT &&value)
Definition Action.h:188
AWS_IOTEVENTS_API Action(Aws::Utils::Json::JsonView jsonValue)
bool LambdaHasBeenSet() const
Definition Action.h:162
void SetFirehose(FirehoseT &&value)
Definition Action.h:221
AWS_IOTEVENTS_API Action()=default
Action & WithIotTopicPublish(IotTopicPublishT &&value)
Definition Action.h:96
void SetResetTimer(ResetTimerT &&value)
Definition Action.h:145
void SetClearTimer(ClearTimerT &&value)
Definition Action.h:127
bool SnsHasBeenSet() const
Definition Action.h:70
Action & WithSetVariable(SetVariableT &&value)
Definition Action.h:59
const ResetTimerAction & GetResetTimer() const
Definition Action.h:142
const DynamoDBAction & GetDynamoDB() const
Definition Action.h:243
bool FirehoseHasBeenSet() const
Definition Action.h:219
const ClearTimerAction & GetClearTimer() const
Definition Action.h:124
bool DynamoDBv2HasBeenSet() const
Definition Action.h:269
Action & WithSetTimer(SetTimerT &&value)
Definition Action.h:114
void SetLambda(LambdaT &&value)
Definition Action.h:164
AWS_IOTEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const
Action & WithSqs(SqsT &&value)
Definition Action.h:207
const SqsAction & GetSqs() const
Definition Action.h:199
void SetIotEvents(IotEventsT &&value)
Definition Action.h:183
bool ClearTimerHasBeenSet() const
Definition Action.h:125
Action & WithClearTimer(ClearTimerT &&value)
Definition Action.h:132
void SetIotTopicPublish(IotTopicPublishT &&value)
Definition Action.h:91
void SetSqs(SqsT &&value)
Definition Action.h:202
bool IotTopicPublishHasBeenSet() const
Definition Action.h:89
const SNSTopicPublishAction & GetSns() const
Definition Action.h:69
Aws::Utils::Json::JsonValue JsonValue