AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
AlarmAction.h
1
6#pragma once
7#include <aws/iotevents/IoTEvents_EXPORTS.h>
8#include <aws/iotevents/model/DynamoDBAction.h>
9#include <aws/iotevents/model/DynamoDBv2Action.h>
10#include <aws/iotevents/model/FirehoseAction.h>
11#include <aws/iotevents/model/IotEventsAction.h>
12#include <aws/iotevents/model/IotSiteWiseAction.h>
13#include <aws/iotevents/model/IotTopicPublishAction.h>
14#include <aws/iotevents/model/LambdaAction.h>
15#include <aws/iotevents/model/SNSTopicPublishAction.h>
16#include <aws/iotevents/model/SqsAction.h>
17
18#include <utility>
19
20namespace Aws {
21namespace Utils {
22namespace Json {
23class JsonValue;
24class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace IoTEvents {
28namespace Model {
29
37 public:
38 AWS_IOTEVENTS_API AlarmAction() = default;
39 AWS_IOTEVENTS_API AlarmAction(Aws::Utils::Json::JsonView jsonValue);
40 AWS_IOTEVENTS_API AlarmAction& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_IOTEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const;
42
44
45 inline const SNSTopicPublishAction& GetSns() const { return m_sns; }
46 inline bool SnsHasBeenSet() const { return m_snsHasBeenSet; }
47 template <typename SnsT = SNSTopicPublishAction>
48 void SetSns(SnsT&& value) {
49 m_snsHasBeenSet = true;
50 m_sns = std::forward<SnsT>(value);
51 }
52 template <typename SnsT = SNSTopicPublishAction>
53 AlarmAction& WithSns(SnsT&& value) {
54 SetSns(std::forward<SnsT>(value));
55 return *this;
56 }
58
60
61 inline const IotTopicPublishAction& GetIotTopicPublish() const { return m_iotTopicPublish; }
62 inline bool IotTopicPublishHasBeenSet() const { return m_iotTopicPublishHasBeenSet; }
63 template <typename IotTopicPublishT = IotTopicPublishAction>
64 void SetIotTopicPublish(IotTopicPublishT&& value) {
65 m_iotTopicPublishHasBeenSet = true;
66 m_iotTopicPublish = std::forward<IotTopicPublishT>(value);
67 }
68 template <typename IotTopicPublishT = IotTopicPublishAction>
69 AlarmAction& WithIotTopicPublish(IotTopicPublishT&& value) {
70 SetIotTopicPublish(std::forward<IotTopicPublishT>(value));
71 return *this;
72 }
74
76
77 inline const LambdaAction& GetLambda() const { return m_lambda; }
78 inline bool LambdaHasBeenSet() const { return m_lambdaHasBeenSet; }
79 template <typename LambdaT = LambdaAction>
80 void SetLambda(LambdaT&& value) {
81 m_lambdaHasBeenSet = true;
82 m_lambda = std::forward<LambdaT>(value);
83 }
84 template <typename LambdaT = LambdaAction>
85 AlarmAction& WithLambda(LambdaT&& value) {
86 SetLambda(std::forward<LambdaT>(value));
87 return *this;
88 }
90
92
93 inline const IotEventsAction& GetIotEvents() const { return m_iotEvents; }
94 inline bool IotEventsHasBeenSet() const { return m_iotEventsHasBeenSet; }
95 template <typename IotEventsT = IotEventsAction>
96 void SetIotEvents(IotEventsT&& value) {
97 m_iotEventsHasBeenSet = true;
98 m_iotEvents = std::forward<IotEventsT>(value);
99 }
100 template <typename IotEventsT = IotEventsAction>
101 AlarmAction& WithIotEvents(IotEventsT&& value) {
102 SetIotEvents(std::forward<IotEventsT>(value));
103 return *this;
104 }
106
108
109 inline const SqsAction& GetSqs() const { return m_sqs; }
110 inline bool SqsHasBeenSet() const { return m_sqsHasBeenSet; }
111 template <typename SqsT = SqsAction>
112 void SetSqs(SqsT&& value) {
113 m_sqsHasBeenSet = true;
114 m_sqs = std::forward<SqsT>(value);
115 }
116 template <typename SqsT = SqsAction>
117 AlarmAction& WithSqs(SqsT&& value) {
118 SetSqs(std::forward<SqsT>(value));
119 return *this;
120 }
122
124
125 inline const FirehoseAction& GetFirehose() const { return m_firehose; }
126 inline bool FirehoseHasBeenSet() const { return m_firehoseHasBeenSet; }
127 template <typename FirehoseT = FirehoseAction>
128 void SetFirehose(FirehoseT&& value) {
129 m_firehoseHasBeenSet = true;
130 m_firehose = std::forward<FirehoseT>(value);
131 }
132 template <typename FirehoseT = FirehoseAction>
133 AlarmAction& WithFirehose(FirehoseT&& value) {
134 SetFirehose(std::forward<FirehoseT>(value));
135 return *this;
136 }
138
140
141 inline const DynamoDBAction& GetDynamoDB() const { return m_dynamoDB; }
142 inline bool DynamoDBHasBeenSet() const { return m_dynamoDBHasBeenSet; }
143 template <typename DynamoDBT = DynamoDBAction>
144 void SetDynamoDB(DynamoDBT&& value) {
145 m_dynamoDBHasBeenSet = true;
146 m_dynamoDB = std::forward<DynamoDBT>(value);
147 }
148 template <typename DynamoDBT = DynamoDBAction>
149 AlarmAction& WithDynamoDB(DynamoDBT&& value) {
150 SetDynamoDB(std::forward<DynamoDBT>(value));
151 return *this;
152 }
154
156
157 inline const DynamoDBv2Action& GetDynamoDBv2() const { return m_dynamoDBv2; }
158 inline bool DynamoDBv2HasBeenSet() const { return m_dynamoDBv2HasBeenSet; }
159 template <typename DynamoDBv2T = DynamoDBv2Action>
160 void SetDynamoDBv2(DynamoDBv2T&& value) {
161 m_dynamoDBv2HasBeenSet = true;
162 m_dynamoDBv2 = std::forward<DynamoDBv2T>(value);
163 }
164 template <typename DynamoDBv2T = DynamoDBv2Action>
165 AlarmAction& WithDynamoDBv2(DynamoDBv2T&& value) {
166 SetDynamoDBv2(std::forward<DynamoDBv2T>(value));
167 return *this;
168 }
170
172
173 inline const IotSiteWiseAction& GetIotSiteWise() const { return m_iotSiteWise; }
174 inline bool IotSiteWiseHasBeenSet() const { return m_iotSiteWiseHasBeenSet; }
175 template <typename IotSiteWiseT = IotSiteWiseAction>
176 void SetIotSiteWise(IotSiteWiseT&& value) {
177 m_iotSiteWiseHasBeenSet = true;
178 m_iotSiteWise = std::forward<IotSiteWiseT>(value);
179 }
180 template <typename IotSiteWiseT = IotSiteWiseAction>
181 AlarmAction& WithIotSiteWise(IotSiteWiseT&& value) {
182 SetIotSiteWise(std::forward<IotSiteWiseT>(value));
183 return *this;
184 }
186 private:
188
189 IotTopicPublishAction m_iotTopicPublish;
190
191 LambdaAction m_lambda;
192
193 IotEventsAction m_iotEvents;
194
195 SqsAction m_sqs;
196
197 FirehoseAction m_firehose;
198
199 DynamoDBAction m_dynamoDB;
200
201 DynamoDBv2Action m_dynamoDBv2;
202
203 IotSiteWiseAction m_iotSiteWise;
204 bool m_snsHasBeenSet = false;
205 bool m_iotTopicPublishHasBeenSet = false;
206 bool m_lambdaHasBeenSet = false;
207 bool m_iotEventsHasBeenSet = false;
208 bool m_sqsHasBeenSet = false;
209 bool m_firehoseHasBeenSet = false;
210 bool m_dynamoDBHasBeenSet = false;
211 bool m_dynamoDBv2HasBeenSet = false;
212 bool m_iotSiteWiseHasBeenSet = false;
213};
214
215} // namespace Model
216} // namespace IoTEvents
217} // namespace Aws
AlarmAction & WithDynamoDBv2(DynamoDBv2T &&value)
AlarmAction & WithSns(SnsT &&value)
Definition AlarmAction.h:53
AlarmAction & WithIotTopicPublish(IotTopicPublishT &&value)
Definition AlarmAction.h:69
const DynamoDBAction & GetDynamoDB() const
AWS_IOTEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const
const DynamoDBv2Action & GetDynamoDBv2() const
void SetDynamoDB(DynamoDBT &&value)
void SetIotTopicPublish(IotTopicPublishT &&value)
Definition AlarmAction.h:64
const FirehoseAction & GetFirehose() const
const SqsAction & GetSqs() const
void SetLambda(LambdaT &&value)
Definition AlarmAction.h:80
AWS_IOTEVENTS_API AlarmAction()=default
void SetIotSiteWise(IotSiteWiseT &&value)
AlarmAction & WithIotEvents(IotEventsT &&value)
AlarmAction & WithFirehose(FirehoseT &&value)
const SNSTopicPublishAction & GetSns() const
Definition AlarmAction.h:45
AlarmAction & WithLambda(LambdaT &&value)
Definition AlarmAction.h:85
AlarmAction & WithSqs(SqsT &&value)
AlarmAction & WithIotSiteWise(IotSiteWiseT &&value)
const IotEventsAction & GetIotEvents() const
Definition AlarmAction.h:93
AWS_IOTEVENTS_API AlarmAction & operator=(Aws::Utils::Json::JsonView jsonValue)
const IotSiteWiseAction & GetIotSiteWise() const
const LambdaAction & GetLambda() const
Definition AlarmAction.h:77
void SetFirehose(FirehoseT &&value)
void SetDynamoDBv2(DynamoDBv2T &&value)
void SetIotEvents(IotEventsT &&value)
Definition AlarmAction.h:96
AWS_IOTEVENTS_API AlarmAction(Aws::Utils::Json::JsonView jsonValue)
const IotTopicPublishAction & GetIotTopicPublish() const
Definition AlarmAction.h:61
AlarmAction & WithDynamoDB(DynamoDBT &&value)
Aws::Utils::Json::JsonValue JsonValue