AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AlarmAction.h
1
6#pragma once
7#include <aws/iotevents/IoTEvents_EXPORTS.h>
8#include <aws/iotevents/model/SNSTopicPublishAction.h>
9#include <aws/iotevents/model/IotTopicPublishAction.h>
10#include <aws/iotevents/model/LambdaAction.h>
11#include <aws/iotevents/model/IotEventsAction.h>
12#include <aws/iotevents/model/SqsAction.h>
13#include <aws/iotevents/model/FirehoseAction.h>
14#include <aws/iotevents/model/DynamoDBAction.h>
15#include <aws/iotevents/model/DynamoDBv2Action.h>
16#include <aws/iotevents/model/IotSiteWiseAction.h>
17#include <utility>
18
19namespace Aws
20{
21namespace Utils
22{
23namespace Json
24{
25 class JsonValue;
26 class JsonView;
27} // namespace Json
28} // namespace Utils
29namespace IoTEvents
30{
31namespace Model
32{
33
41 {
42 public:
43 AWS_IOTEVENTS_API AlarmAction() = default;
44 AWS_IOTEVENTS_API AlarmAction(Aws::Utils::Json::JsonView jsonValue);
45 AWS_IOTEVENTS_API AlarmAction& operator=(Aws::Utils::Json::JsonView jsonValue);
46 AWS_IOTEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const;
47
48
50
51 inline const SNSTopicPublishAction& GetSns() const { return m_sns; }
52 inline bool SnsHasBeenSet() const { return m_snsHasBeenSet; }
53 template<typename SnsT = SNSTopicPublishAction>
54 void SetSns(SnsT&& value) { m_snsHasBeenSet = true; m_sns = std::forward<SnsT>(value); }
55 template<typename SnsT = SNSTopicPublishAction>
56 AlarmAction& WithSns(SnsT&& value) { SetSns(std::forward<SnsT>(value)); return *this;}
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) { m_iotTopicPublishHasBeenSet = true; m_iotTopicPublish = std::forward<IotTopicPublishT>(value); }
65 template<typename IotTopicPublishT = IotTopicPublishAction>
66 AlarmAction& WithIotTopicPublish(IotTopicPublishT&& value) { SetIotTopicPublish(std::forward<IotTopicPublishT>(value)); return *this;}
68
70
71 inline const LambdaAction& GetLambda() const { return m_lambda; }
72 inline bool LambdaHasBeenSet() const { return m_lambdaHasBeenSet; }
73 template<typename LambdaT = LambdaAction>
74 void SetLambda(LambdaT&& value) { m_lambdaHasBeenSet = true; m_lambda = std::forward<LambdaT>(value); }
75 template<typename LambdaT = LambdaAction>
76 AlarmAction& WithLambda(LambdaT&& value) { SetLambda(std::forward<LambdaT>(value)); return *this;}
78
80
81 inline const IotEventsAction& GetIotEvents() const { return m_iotEvents; }
82 inline bool IotEventsHasBeenSet() const { return m_iotEventsHasBeenSet; }
83 template<typename IotEventsT = IotEventsAction>
84 void SetIotEvents(IotEventsT&& value) { m_iotEventsHasBeenSet = true; m_iotEvents = std::forward<IotEventsT>(value); }
85 template<typename IotEventsT = IotEventsAction>
86 AlarmAction& WithIotEvents(IotEventsT&& value) { SetIotEvents(std::forward<IotEventsT>(value)); return *this;}
88
90
91 inline const SqsAction& GetSqs() const { return m_sqs; }
92 inline bool SqsHasBeenSet() const { return m_sqsHasBeenSet; }
93 template<typename SqsT = SqsAction>
94 void SetSqs(SqsT&& value) { m_sqsHasBeenSet = true; m_sqs = std::forward<SqsT>(value); }
95 template<typename SqsT = SqsAction>
96 AlarmAction& WithSqs(SqsT&& value) { SetSqs(std::forward<SqsT>(value)); return *this;}
98
100
101 inline const FirehoseAction& GetFirehose() const { return m_firehose; }
102 inline bool FirehoseHasBeenSet() const { return m_firehoseHasBeenSet; }
103 template<typename FirehoseT = FirehoseAction>
104 void SetFirehose(FirehoseT&& value) { m_firehoseHasBeenSet = true; m_firehose = std::forward<FirehoseT>(value); }
105 template<typename FirehoseT = FirehoseAction>
106 AlarmAction& WithFirehose(FirehoseT&& value) { SetFirehose(std::forward<FirehoseT>(value)); return *this;}
108
110
111 inline const DynamoDBAction& GetDynamoDB() const { return m_dynamoDB; }
112 inline bool DynamoDBHasBeenSet() const { return m_dynamoDBHasBeenSet; }
113 template<typename DynamoDBT = DynamoDBAction>
114 void SetDynamoDB(DynamoDBT&& value) { m_dynamoDBHasBeenSet = true; m_dynamoDB = std::forward<DynamoDBT>(value); }
115 template<typename DynamoDBT = DynamoDBAction>
116 AlarmAction& WithDynamoDB(DynamoDBT&& value) { SetDynamoDB(std::forward<DynamoDBT>(value)); return *this;}
118
120
121 inline const DynamoDBv2Action& GetDynamoDBv2() const { return m_dynamoDBv2; }
122 inline bool DynamoDBv2HasBeenSet() const { return m_dynamoDBv2HasBeenSet; }
123 template<typename DynamoDBv2T = DynamoDBv2Action>
124 void SetDynamoDBv2(DynamoDBv2T&& value) { m_dynamoDBv2HasBeenSet = true; m_dynamoDBv2 = std::forward<DynamoDBv2T>(value); }
125 template<typename DynamoDBv2T = DynamoDBv2Action>
126 AlarmAction& WithDynamoDBv2(DynamoDBv2T&& value) { SetDynamoDBv2(std::forward<DynamoDBv2T>(value)); return *this;}
128
130
131 inline const IotSiteWiseAction& GetIotSiteWise() const { return m_iotSiteWise; }
132 inline bool IotSiteWiseHasBeenSet() const { return m_iotSiteWiseHasBeenSet; }
133 template<typename IotSiteWiseT = IotSiteWiseAction>
134 void SetIotSiteWise(IotSiteWiseT&& value) { m_iotSiteWiseHasBeenSet = true; m_iotSiteWise = std::forward<IotSiteWiseT>(value); }
135 template<typename IotSiteWiseT = IotSiteWiseAction>
136 AlarmAction& WithIotSiteWise(IotSiteWiseT&& value) { SetIotSiteWise(std::forward<IotSiteWiseT>(value)); return *this;}
138 private:
139
141 bool m_snsHasBeenSet = false;
142
143 IotTopicPublishAction m_iotTopicPublish;
144 bool m_iotTopicPublishHasBeenSet = false;
145
146 LambdaAction m_lambda;
147 bool m_lambdaHasBeenSet = false;
148
149 IotEventsAction m_iotEvents;
150 bool m_iotEventsHasBeenSet = false;
151
152 SqsAction m_sqs;
153 bool m_sqsHasBeenSet = false;
154
155 FirehoseAction m_firehose;
156 bool m_firehoseHasBeenSet = false;
157
158 DynamoDBAction m_dynamoDB;
159 bool m_dynamoDBHasBeenSet = false;
160
161 DynamoDBv2Action m_dynamoDBv2;
162 bool m_dynamoDBv2HasBeenSet = false;
163
164 IotSiteWiseAction m_iotSiteWise;
165 bool m_iotSiteWiseHasBeenSet = false;
166 };
167
168} // namespace Model
169} // namespace IoTEvents
170} // namespace Aws
AlarmAction & WithDynamoDBv2(DynamoDBv2T &&value)
AlarmAction & WithSns(SnsT &&value)
Definition AlarmAction.h:56
AlarmAction & WithIotTopicPublish(IotTopicPublishT &&value)
Definition AlarmAction.h:66
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
Definition AlarmAction.h:91
void SetLambda(LambdaT &&value)
Definition AlarmAction.h:74
AWS_IOTEVENTS_API AlarmAction()=default
void SetIotSiteWise(IotSiteWiseT &&value)
AlarmAction & WithIotEvents(IotEventsT &&value)
Definition AlarmAction.h:86
AlarmAction & WithFirehose(FirehoseT &&value)
const SNSTopicPublishAction & GetSns() const
Definition AlarmAction.h:51
AlarmAction & WithLambda(LambdaT &&value)
Definition AlarmAction.h:76
AlarmAction & WithSqs(SqsT &&value)
Definition AlarmAction.h:96
AlarmAction & WithIotSiteWise(IotSiteWiseT &&value)
const IotEventsAction & GetIotEvents() const
Definition AlarmAction.h:81
AWS_IOTEVENTS_API AlarmAction & operator=(Aws::Utils::Json::JsonView jsonValue)
const IotSiteWiseAction & GetIotSiteWise() const
const LambdaAction & GetLambda() const
Definition AlarmAction.h:71
void SetFirehose(FirehoseT &&value)
void SetDynamoDBv2(DynamoDBv2T &&value)
void SetIotEvents(IotEventsT &&value)
Definition AlarmAction.h:84
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