AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Action.h
1
6#pragma once
7#include <aws/iotevents/IoTEvents_EXPORTS.h>
8#include <aws/iotevents/model/SetVariableAction.h>
9#include <aws/iotevents/model/SNSTopicPublishAction.h>
10#include <aws/iotevents/model/IotTopicPublishAction.h>
11#include <aws/iotevents/model/SetTimerAction.h>
12#include <aws/iotevents/model/ClearTimerAction.h>
13#include <aws/iotevents/model/ResetTimerAction.h>
14#include <aws/iotevents/model/LambdaAction.h>
15#include <aws/iotevents/model/IotEventsAction.h>
16#include <aws/iotevents/model/SqsAction.h>
17#include <aws/iotevents/model/FirehoseAction.h>
18#include <aws/iotevents/model/DynamoDBAction.h>
19#include <aws/iotevents/model/DynamoDBv2Action.h>
20#include <aws/iotevents/model/IotSiteWiseAction.h>
21#include <utility>
22
23namespace Aws
24{
25namespace Utils
26{
27namespace Json
28{
29 class JsonValue;
30 class JsonView;
31} // namespace Json
32} // namespace Utils
33namespace IoTEvents
34{
35namespace Model
36{
37
44 class Action
45 {
46 public:
47 AWS_IOTEVENTS_API Action();
48 AWS_IOTEVENTS_API Action(Aws::Utils::Json::JsonView jsonValue);
49 AWS_IOTEVENTS_API Action& operator=(Aws::Utils::Json::JsonView jsonValue);
50 AWS_IOTEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const;
51
52
54
57 inline const SetVariableAction& GetSetVariable() const{ return m_setVariable; }
58 inline bool SetVariableHasBeenSet() const { return m_setVariableHasBeenSet; }
59 inline void SetSetVariable(const SetVariableAction& value) { m_setVariableHasBeenSet = true; m_setVariable = value; }
60 inline void SetSetVariable(SetVariableAction&& value) { m_setVariableHasBeenSet = true; m_setVariable = std::move(value); }
61 inline Action& WithSetVariable(const SetVariableAction& value) { SetSetVariable(value); return *this;}
62 inline Action& WithSetVariable(SetVariableAction&& value) { SetSetVariable(std::move(value)); return *this;}
64
66
69 inline const SNSTopicPublishAction& GetSns() const{ return m_sns; }
70 inline bool SnsHasBeenSet() const { return m_snsHasBeenSet; }
71 inline void SetSns(const SNSTopicPublishAction& value) { m_snsHasBeenSet = true; m_sns = value; }
72 inline void SetSns(SNSTopicPublishAction&& value) { m_snsHasBeenSet = true; m_sns = std::move(value); }
73 inline Action& WithSns(const SNSTopicPublishAction& value) { SetSns(value); return *this;}
74 inline Action& WithSns(SNSTopicPublishAction&& value) { SetSns(std::move(value)); return *this;}
76
78
82 inline const IotTopicPublishAction& GetIotTopicPublish() const{ return m_iotTopicPublish; }
83 inline bool IotTopicPublishHasBeenSet() const { return m_iotTopicPublishHasBeenSet; }
84 inline void SetIotTopicPublish(const IotTopicPublishAction& value) { m_iotTopicPublishHasBeenSet = true; m_iotTopicPublish = value; }
85 inline void SetIotTopicPublish(IotTopicPublishAction&& value) { m_iotTopicPublishHasBeenSet = true; m_iotTopicPublish = std::move(value); }
86 inline Action& WithIotTopicPublish(const IotTopicPublishAction& value) { SetIotTopicPublish(value); return *this;}
87 inline Action& WithIotTopicPublish(IotTopicPublishAction&& value) { SetIotTopicPublish(std::move(value)); return *this;}
89
91
94 inline const SetTimerAction& GetSetTimer() const{ return m_setTimer; }
95 inline bool SetTimerHasBeenSet() const { return m_setTimerHasBeenSet; }
96 inline void SetSetTimer(const SetTimerAction& value) { m_setTimerHasBeenSet = true; m_setTimer = value; }
97 inline void SetSetTimer(SetTimerAction&& value) { m_setTimerHasBeenSet = true; m_setTimer = std::move(value); }
98 inline Action& WithSetTimer(const SetTimerAction& value) { SetSetTimer(value); return *this;}
99 inline Action& WithSetTimer(SetTimerAction&& value) { SetSetTimer(std::move(value)); return *this;}
101
103
106 inline const ClearTimerAction& GetClearTimer() const{ return m_clearTimer; }
107 inline bool ClearTimerHasBeenSet() const { return m_clearTimerHasBeenSet; }
108 inline void SetClearTimer(const ClearTimerAction& value) { m_clearTimerHasBeenSet = true; m_clearTimer = value; }
109 inline void SetClearTimer(ClearTimerAction&& value) { m_clearTimerHasBeenSet = true; m_clearTimer = std::move(value); }
110 inline Action& WithClearTimer(const ClearTimerAction& value) { SetClearTimer(value); return *this;}
111 inline Action& WithClearTimer(ClearTimerAction&& value) { SetClearTimer(std::move(value)); return *this;}
113
115
118 inline const ResetTimerAction& GetResetTimer() const{ return m_resetTimer; }
119 inline bool ResetTimerHasBeenSet() const { return m_resetTimerHasBeenSet; }
120 inline void SetResetTimer(const ResetTimerAction& value) { m_resetTimerHasBeenSet = true; m_resetTimer = value; }
121 inline void SetResetTimer(ResetTimerAction&& value) { m_resetTimerHasBeenSet = true; m_resetTimer = std::move(value); }
122 inline Action& WithResetTimer(const ResetTimerAction& value) { SetResetTimer(value); return *this;}
123 inline Action& WithResetTimer(ResetTimerAction&& value) { SetResetTimer(std::move(value)); return *this;}
125
127
131 inline const LambdaAction& GetLambda() const{ return m_lambda; }
132 inline bool LambdaHasBeenSet() const { return m_lambdaHasBeenSet; }
133 inline void SetLambda(const LambdaAction& value) { m_lambdaHasBeenSet = true; m_lambda = value; }
134 inline void SetLambda(LambdaAction&& value) { m_lambdaHasBeenSet = true; m_lambda = std::move(value); }
135 inline Action& WithLambda(const LambdaAction& value) { SetLambda(value); return *this;}
136 inline Action& WithLambda(LambdaAction&& value) { SetLambda(std::move(value)); return *this;}
138
140
144 inline const IotEventsAction& GetIotEvents() const{ return m_iotEvents; }
145 inline bool IotEventsHasBeenSet() const { return m_iotEventsHasBeenSet; }
146 inline void SetIotEvents(const IotEventsAction& value) { m_iotEventsHasBeenSet = true; m_iotEvents = value; }
147 inline void SetIotEvents(IotEventsAction&& value) { m_iotEventsHasBeenSet = true; m_iotEvents = std::move(value); }
148 inline Action& WithIotEvents(const IotEventsAction& value) { SetIotEvents(value); return *this;}
149 inline Action& WithIotEvents(IotEventsAction&& value) { SetIotEvents(std::move(value)); return *this;}
151
153
157 inline const SqsAction& GetSqs() const{ return m_sqs; }
158 inline bool SqsHasBeenSet() const { return m_sqsHasBeenSet; }
159 inline void SetSqs(const SqsAction& value) { m_sqsHasBeenSet = true; m_sqs = value; }
160 inline void SetSqs(SqsAction&& value) { m_sqsHasBeenSet = true; m_sqs = std::move(value); }
161 inline Action& WithSqs(const SqsAction& value) { SetSqs(value); return *this;}
162 inline Action& WithSqs(SqsAction&& value) { SetSqs(std::move(value)); return *this;}
164
166
170 inline const FirehoseAction& GetFirehose() const{ return m_firehose; }
171 inline bool FirehoseHasBeenSet() const { return m_firehoseHasBeenSet; }
172 inline void SetFirehose(const FirehoseAction& value) { m_firehoseHasBeenSet = true; m_firehose = value; }
173 inline void SetFirehose(FirehoseAction&& value) { m_firehoseHasBeenSet = true; m_firehose = std::move(value); }
174 inline Action& WithFirehose(const FirehoseAction& value) { SetFirehose(value); return *this;}
175 inline Action& WithFirehose(FirehoseAction&& value) { SetFirehose(std::move(value)); return *this;}
177
179
189 inline const DynamoDBAction& GetDynamoDB() const{ return m_dynamoDB; }
190 inline bool DynamoDBHasBeenSet() const { return m_dynamoDBHasBeenSet; }
191 inline void SetDynamoDB(const DynamoDBAction& value) { m_dynamoDBHasBeenSet = true; m_dynamoDB = value; }
192 inline void SetDynamoDB(DynamoDBAction&& value) { m_dynamoDBHasBeenSet = true; m_dynamoDB = std::move(value); }
193 inline Action& WithDynamoDB(const DynamoDBAction& value) { SetDynamoDB(value); return *this;}
194 inline Action& WithDynamoDB(DynamoDBAction&& value) { SetDynamoDB(std::move(value)); return *this;}
196
198
208 inline const DynamoDBv2Action& GetDynamoDBv2() const{ return m_dynamoDBv2; }
209 inline bool DynamoDBv2HasBeenSet() const { return m_dynamoDBv2HasBeenSet; }
210 inline void SetDynamoDBv2(const DynamoDBv2Action& value) { m_dynamoDBv2HasBeenSet = true; m_dynamoDBv2 = value; }
211 inline void SetDynamoDBv2(DynamoDBv2Action&& value) { m_dynamoDBv2HasBeenSet = true; m_dynamoDBv2 = std::move(value); }
212 inline Action& WithDynamoDBv2(const DynamoDBv2Action& value) { SetDynamoDBv2(value); return *this;}
213 inline Action& WithDynamoDBv2(DynamoDBv2Action&& value) { SetDynamoDBv2(std::move(value)); return *this;}
215
217
221 inline const IotSiteWiseAction& GetIotSiteWise() const{ return m_iotSiteWise; }
222 inline bool IotSiteWiseHasBeenSet() const { return m_iotSiteWiseHasBeenSet; }
223 inline void SetIotSiteWise(const IotSiteWiseAction& value) { m_iotSiteWiseHasBeenSet = true; m_iotSiteWise = value; }
224 inline void SetIotSiteWise(IotSiteWiseAction&& value) { m_iotSiteWiseHasBeenSet = true; m_iotSiteWise = std::move(value); }
225 inline Action& WithIotSiteWise(const IotSiteWiseAction& value) { SetIotSiteWise(value); return *this;}
226 inline Action& WithIotSiteWise(IotSiteWiseAction&& value) { SetIotSiteWise(std::move(value)); return *this;}
228 private:
229
230 SetVariableAction m_setVariable;
231 bool m_setVariableHasBeenSet = false;
232
234 bool m_snsHasBeenSet = false;
235
236 IotTopicPublishAction m_iotTopicPublish;
237 bool m_iotTopicPublishHasBeenSet = false;
238
239 SetTimerAction m_setTimer;
240 bool m_setTimerHasBeenSet = false;
241
242 ClearTimerAction m_clearTimer;
243 bool m_clearTimerHasBeenSet = false;
244
245 ResetTimerAction m_resetTimer;
246 bool m_resetTimerHasBeenSet = false;
247
248 LambdaAction m_lambda;
249 bool m_lambdaHasBeenSet = false;
250
251 IotEventsAction m_iotEvents;
252 bool m_iotEventsHasBeenSet = false;
253
254 SqsAction m_sqs;
255 bool m_sqsHasBeenSet = false;
256
257 FirehoseAction m_firehose;
258 bool m_firehoseHasBeenSet = false;
259
260 DynamoDBAction m_dynamoDB;
261 bool m_dynamoDBHasBeenSet = false;
262
263 DynamoDBv2Action m_dynamoDBv2;
264 bool m_dynamoDBv2HasBeenSet = false;
265
266 IotSiteWiseAction m_iotSiteWise;
267 bool m_iotSiteWiseHasBeenSet = false;
268 };
269
270} // namespace Model
271} // namespace IoTEvents
272} // namespace Aws
Action & WithLambda(const LambdaAction &value)
Definition Action.h:135
void SetSetVariable(SetVariableAction &&value)
Definition Action.h:60
Action & WithIotSiteWise(const IotSiteWiseAction &value)
Definition Action.h:225
void SetSetVariable(const SetVariableAction &value)
Definition Action.h:59
Action & WithResetTimer(const ResetTimerAction &value)
Definition Action.h:122
void SetSns(const SNSTopicPublishAction &value)
Definition Action.h:71
bool SetTimerHasBeenSet() const
Definition Action.h:95
const DynamoDBv2Action & GetDynamoDBv2() const
Definition Action.h:208
void SetSns(SNSTopicPublishAction &&value)
Definition Action.h:72
const SetVariableAction & GetSetVariable() const
Definition Action.h:57
Action & WithClearTimer(const ClearTimerAction &value)
Definition Action.h:110
void SetClearTimer(const ClearTimerAction &value)
Definition Action.h:108
void SetSqs(SqsAction &&value)
Definition Action.h:160
bool IotSiteWiseHasBeenSet() const
Definition Action.h:222
const LambdaAction & GetLambda() const
Definition Action.h:131
const FirehoseAction & GetFirehose() const
Definition Action.h:170
void SetDynamoDBv2(DynamoDBv2Action &&value)
Definition Action.h:211
void SetIotTopicPublish(IotTopicPublishAction &&value)
Definition Action.h:85
void SetDynamoDBv2(const DynamoDBv2Action &value)
Definition Action.h:210
bool DynamoDBHasBeenSet() const
Definition Action.h:190
const IotSiteWiseAction & GetIotSiteWise() const
Definition Action.h:221
const IotTopicPublishAction & GetIotTopicPublish() const
Definition Action.h:82
bool ResetTimerHasBeenSet() const
Definition Action.h:119
const IotEventsAction & GetIotEvents() const
Definition Action.h:144
Action & WithSns(SNSTopicPublishAction &&value)
Definition Action.h:74
Action & WithIotEvents(const IotEventsAction &value)
Definition Action.h:148
AWS_IOTEVENTS_API Action()
Action & WithIotTopicPublish(IotTopicPublishAction &&value)
Definition Action.h:87
AWS_IOTEVENTS_API Action & operator=(Aws::Utils::Json::JsonView jsonValue)
Action & WithLambda(LambdaAction &&value)
Definition Action.h:136
Action & WithDynamoDB(DynamoDBAction &&value)
Definition Action.h:194
bool IotEventsHasBeenSet() const
Definition Action.h:145
bool SetVariableHasBeenSet() const
Definition Action.h:58
const SetTimerAction & GetSetTimer() const
Definition Action.h:94
Action & WithSetTimer(const SetTimerAction &value)
Definition Action.h:98
Action & WithIotTopicPublish(const IotTopicPublishAction &value)
Definition Action.h:86
void SetIotSiteWise(const IotSiteWiseAction &value)
Definition Action.h:223
void SetSetTimer(SetTimerAction &&value)
Definition Action.h:97
AWS_IOTEVENTS_API Action(Aws::Utils::Json::JsonView jsonValue)
void SetLambda(const LambdaAction &value)
Definition Action.h:133
bool LambdaHasBeenSet() const
Definition Action.h:132
Action & WithIotSiteWise(IotSiteWiseAction &&value)
Definition Action.h:226
void SetFirehose(FirehoseAction &&value)
Definition Action.h:173
bool SnsHasBeenSet() const
Definition Action.h:70
Action & WithSqs(const SqsAction &value)
Definition Action.h:161
const ResetTimerAction & GetResetTimer() const
Definition Action.h:118
void SetIotSiteWise(IotSiteWiseAction &&value)
Definition Action.h:224
void SetResetTimer(ResetTimerAction &&value)
Definition Action.h:121
Action & WithClearTimer(ClearTimerAction &&value)
Definition Action.h:111
const DynamoDBAction & GetDynamoDB() const
Definition Action.h:189
bool FirehoseHasBeenSet() const
Definition Action.h:171
const ClearTimerAction & GetClearTimer() const
Definition Action.h:106
void SetDynamoDB(DynamoDBAction &&value)
Definition Action.h:192
void SetClearTimer(ClearTimerAction &&value)
Definition Action.h:109
Action & WithFirehose(const FirehoseAction &value)
Definition Action.h:174
void SetResetTimer(const ResetTimerAction &value)
Definition Action.h:120
Action & WithSetTimer(SetTimerAction &&value)
Definition Action.h:99
bool DynamoDBv2HasBeenSet() const
Definition Action.h:209
Action & WithDynamoDBv2(DynamoDBv2Action &&value)
Definition Action.h:213
AWS_IOTEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const
Action & WithSetVariable(SetVariableAction &&value)
Definition Action.h:62
void SetFirehose(const FirehoseAction &value)
Definition Action.h:172
Action & WithDynamoDBv2(const DynamoDBv2Action &value)
Definition Action.h:212
Action & WithSns(const SNSTopicPublishAction &value)
Definition Action.h:73
Action & WithFirehose(FirehoseAction &&value)
Definition Action.h:175
Action & WithSetVariable(const SetVariableAction &value)
Definition Action.h:61
const SqsAction & GetSqs() const
Definition Action.h:157
void SetDynamoDB(const DynamoDBAction &value)
Definition Action.h:191
Action & WithSqs(SqsAction &&value)
Definition Action.h:162
void SetIotEvents(const IotEventsAction &value)
Definition Action.h:146
bool ClearTimerHasBeenSet() const
Definition Action.h:107
Action & WithIotEvents(IotEventsAction &&value)
Definition Action.h:149
void SetSetTimer(const SetTimerAction &value)
Definition Action.h:96
void SetSqs(const SqsAction &value)
Definition Action.h:159
Action & WithDynamoDB(const DynamoDBAction &value)
Definition Action.h:193
void SetLambda(LambdaAction &&value)
Definition Action.h:134
Action & WithResetTimer(ResetTimerAction &&value)
Definition Action.h:123
bool IotTopicPublishHasBeenSet() const
Definition Action.h:83
const SNSTopicPublishAction & GetSns() const
Definition Action.h:69
void SetIotTopicPublish(const IotTopicPublishAction &value)
Definition Action.h:84
void SetIotEvents(IotEventsAction &&value)
Definition Action.h:147
Aws::Utils::Json::JsonValue JsonValue