AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename SetVariableT = SetVariableAction>
60 void SetSetVariable(SetVariableT&& value) { m_setVariableHasBeenSet = true; m_setVariable = std::forward<SetVariableT>(value); }
61 template<typename SetVariableT = SetVariableAction>
62 Action& WithSetVariable(SetVariableT&& value) { SetSetVariable(std::forward<SetVariableT>(value)); return *this;}
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) { m_snsHasBeenSet = true; m_sns = std::forward<SnsT>(value); }
73 template<typename SnsT = SNSTopicPublishAction>
74 Action& WithSns(SnsT&& value) { SetSns(std::forward<SnsT>(value)); return *this;}
76
78
82 inline const IotTopicPublishAction& GetIotTopicPublish() const { return m_iotTopicPublish; }
83 inline bool IotTopicPublishHasBeenSet() const { return m_iotTopicPublishHasBeenSet; }
84 template<typename IotTopicPublishT = IotTopicPublishAction>
85 void SetIotTopicPublish(IotTopicPublishT&& value) { m_iotTopicPublishHasBeenSet = true; m_iotTopicPublish = std::forward<IotTopicPublishT>(value); }
86 template<typename IotTopicPublishT = IotTopicPublishAction>
87 Action& WithIotTopicPublish(IotTopicPublishT&& value) { SetIotTopicPublish(std::forward<IotTopicPublishT>(value)); return *this;}
89
91
94 inline const SetTimerAction& GetSetTimer() const { return m_setTimer; }
95 inline bool SetTimerHasBeenSet() const { return m_setTimerHasBeenSet; }
96 template<typename SetTimerT = SetTimerAction>
97 void SetSetTimer(SetTimerT&& value) { m_setTimerHasBeenSet = true; m_setTimer = std::forward<SetTimerT>(value); }
98 template<typename SetTimerT = SetTimerAction>
99 Action& WithSetTimer(SetTimerT&& value) { SetSetTimer(std::forward<SetTimerT>(value)); return *this;}
101
103
106 inline const ClearTimerAction& GetClearTimer() const { return m_clearTimer; }
107 inline bool ClearTimerHasBeenSet() const { return m_clearTimerHasBeenSet; }
108 template<typename ClearTimerT = ClearTimerAction>
109 void SetClearTimer(ClearTimerT&& value) { m_clearTimerHasBeenSet = true; m_clearTimer = std::forward<ClearTimerT>(value); }
110 template<typename ClearTimerT = ClearTimerAction>
111 Action& WithClearTimer(ClearTimerT&& value) { SetClearTimer(std::forward<ClearTimerT>(value)); return *this;}
113
115
118 inline const ResetTimerAction& GetResetTimer() const { return m_resetTimer; }
119 inline bool ResetTimerHasBeenSet() const { return m_resetTimerHasBeenSet; }
120 template<typename ResetTimerT = ResetTimerAction>
121 void SetResetTimer(ResetTimerT&& value) { m_resetTimerHasBeenSet = true; m_resetTimer = std::forward<ResetTimerT>(value); }
122 template<typename ResetTimerT = ResetTimerAction>
123 Action& WithResetTimer(ResetTimerT&& value) { SetResetTimer(std::forward<ResetTimerT>(value)); return *this;}
125
127
131 inline const LambdaAction& GetLambda() const { return m_lambda; }
132 inline bool LambdaHasBeenSet() const { return m_lambdaHasBeenSet; }
133 template<typename LambdaT = LambdaAction>
134 void SetLambda(LambdaT&& value) { m_lambdaHasBeenSet = true; m_lambda = std::forward<LambdaT>(value); }
135 template<typename LambdaT = LambdaAction>
136 Action& WithLambda(LambdaT&& value) { SetLambda(std::forward<LambdaT>(value)); return *this;}
138
140
144 inline const IotEventsAction& GetIotEvents() const { return m_iotEvents; }
145 inline bool IotEventsHasBeenSet() const { return m_iotEventsHasBeenSet; }
146 template<typename IotEventsT = IotEventsAction>
147 void SetIotEvents(IotEventsT&& value) { m_iotEventsHasBeenSet = true; m_iotEvents = std::forward<IotEventsT>(value); }
148 template<typename IotEventsT = IotEventsAction>
149 Action& WithIotEvents(IotEventsT&& value) { SetIotEvents(std::forward<IotEventsT>(value)); return *this;}
151
153
157 inline const SqsAction& GetSqs() const { return m_sqs; }
158 inline bool SqsHasBeenSet() const { return m_sqsHasBeenSet; }
159 template<typename SqsT = SqsAction>
160 void SetSqs(SqsT&& value) { m_sqsHasBeenSet = true; m_sqs = std::forward<SqsT>(value); }
161 template<typename SqsT = SqsAction>
162 Action& WithSqs(SqsT&& value) { SetSqs(std::forward<SqsT>(value)); return *this;}
164
166
170 inline const FirehoseAction& GetFirehose() const { return m_firehose; }
171 inline bool FirehoseHasBeenSet() const { return m_firehoseHasBeenSet; }
172 template<typename FirehoseT = FirehoseAction>
173 void SetFirehose(FirehoseT&& value) { m_firehoseHasBeenSet = true; m_firehose = std::forward<FirehoseT>(value); }
174 template<typename FirehoseT = FirehoseAction>
175 Action& WithFirehose(FirehoseT&& value) { SetFirehose(std::forward<FirehoseT>(value)); return *this;}
177
179
189 inline const DynamoDBAction& GetDynamoDB() const { return m_dynamoDB; }
190 inline bool DynamoDBHasBeenSet() const { return m_dynamoDBHasBeenSet; }
191 template<typename DynamoDBT = DynamoDBAction>
192 void SetDynamoDB(DynamoDBT&& value) { m_dynamoDBHasBeenSet = true; m_dynamoDB = std::forward<DynamoDBT>(value); }
193 template<typename DynamoDBT = DynamoDBAction>
194 Action& WithDynamoDB(DynamoDBT&& value) { SetDynamoDB(std::forward<DynamoDBT>(value)); return *this;}
196
198
208 inline const DynamoDBv2Action& GetDynamoDBv2() const { return m_dynamoDBv2; }
209 inline bool DynamoDBv2HasBeenSet() const { return m_dynamoDBv2HasBeenSet; }
210 template<typename DynamoDBv2T = DynamoDBv2Action>
211 void SetDynamoDBv2(DynamoDBv2T&& value) { m_dynamoDBv2HasBeenSet = true; m_dynamoDBv2 = std::forward<DynamoDBv2T>(value); }
212 template<typename DynamoDBv2T = DynamoDBv2Action>
213 Action& WithDynamoDBv2(DynamoDBv2T&& value) { SetDynamoDBv2(std::forward<DynamoDBv2T>(value)); return *this;}
215
217
221 inline const IotSiteWiseAction& GetIotSiteWise() const { return m_iotSiteWise; }
222 inline bool IotSiteWiseHasBeenSet() const { return m_iotSiteWiseHasBeenSet; }
223 template<typename IotSiteWiseT = IotSiteWiseAction>
224 void SetIotSiteWise(IotSiteWiseT&& value) { m_iotSiteWiseHasBeenSet = true; m_iotSiteWise = std::forward<IotSiteWiseT>(value); }
225 template<typename IotSiteWiseT = IotSiteWiseAction>
226 Action& WithIotSiteWise(IotSiteWiseT&& value) { SetIotSiteWise(std::forward<IotSiteWiseT>(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
bool SetTimerHasBeenSet() const
Definition Action.h:95
const DynamoDBv2Action & GetDynamoDBv2() const
Definition Action.h:208
void SetSetTimer(SetTimerT &&value)
Definition Action.h:97
Action & WithLambda(LambdaT &&value)
Definition Action.h:136
const SetVariableAction & GetSetVariable() const
Definition Action.h:57
Action & WithFirehose(FirehoseT &&value)
Definition Action.h:175
void SetSetVariable(SetVariableT &&value)
Definition Action.h:60
bool IotSiteWiseHasBeenSet() const
Definition Action.h:222
const LambdaAction & GetLambda() const
Definition Action.h:131
const FirehoseAction & GetFirehose() const
Definition Action.h:170
Action & WithDynamoDB(DynamoDBT &&value)
Definition Action.h:194
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 & WithResetTimer(ResetTimerT &&value)
Definition Action.h:123
Action & WithSns(SnsT &&value)
Definition Action.h:74
void SetSns(SnsT &&value)
Definition Action.h:72
void SetDynamoDBv2(DynamoDBv2T &&value)
Definition Action.h:211
void SetIotSiteWise(IotSiteWiseT &&value)
Definition Action.h:224
AWS_IOTEVENTS_API Action & operator=(Aws::Utils::Json::JsonView jsonValue)
bool IotEventsHasBeenSet() const
Definition Action.h:145
Action & WithDynamoDBv2(DynamoDBv2T &&value)
Definition Action.h:213
Action & WithIotSiteWise(IotSiteWiseT &&value)
Definition Action.h:226
bool SetVariableHasBeenSet() const
Definition Action.h:58
const SetTimerAction & GetSetTimer() const
Definition Action.h:94
void SetDynamoDB(DynamoDBT &&value)
Definition Action.h:192
Action & WithIotEvents(IotEventsT &&value)
Definition Action.h:149
AWS_IOTEVENTS_API Action(Aws::Utils::Json::JsonView jsonValue)
bool LambdaHasBeenSet() const
Definition Action.h:132
void SetFirehose(FirehoseT &&value)
Definition Action.h:173
AWS_IOTEVENTS_API Action()=default
Action & WithIotTopicPublish(IotTopicPublishT &&value)
Definition Action.h:87
void SetResetTimer(ResetTimerT &&value)
Definition Action.h:121
void SetClearTimer(ClearTimerT &&value)
Definition Action.h:109
bool SnsHasBeenSet() const
Definition Action.h:70
Action & WithSetVariable(SetVariableT &&value)
Definition Action.h:62
const ResetTimerAction & GetResetTimer() const
Definition Action.h:118
const DynamoDBAction & GetDynamoDB() const
Definition Action.h:189
bool FirehoseHasBeenSet() const
Definition Action.h:171
const ClearTimerAction & GetClearTimer() const
Definition Action.h:106
bool DynamoDBv2HasBeenSet() const
Definition Action.h:209
Action & WithSetTimer(SetTimerT &&value)
Definition Action.h:99
void SetLambda(LambdaT &&value)
Definition Action.h:134
AWS_IOTEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const
Action & WithSqs(SqsT &&value)
Definition Action.h:162
const SqsAction & GetSqs() const
Definition Action.h:157
void SetIotEvents(IotEventsT &&value)
Definition Action.h:147
bool ClearTimerHasBeenSet() const
Definition Action.h:107
Action & WithClearTimer(ClearTimerT &&value)
Definition Action.h:111
void SetIotTopicPublish(IotTopicPublishT &&value)
Definition Action.h:85
void SetSqs(SqsT &&value)
Definition Action.h:160
bool IotTopicPublishHasBeenSet() const
Definition Action.h:83
const SNSTopicPublishAction & GetSns() const
Definition Action.h:69
Aws::Utils::Json::JsonValue JsonValue