AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetSns(const SNSTopicPublishAction& value) { m_snsHasBeenSet = true; m_sns = value; }
54 inline void SetSns(SNSTopicPublishAction&& value) { m_snsHasBeenSet = true; m_sns = std::move(value); }
55 inline AlarmAction& WithSns(const SNSTopicPublishAction& value) { SetSns(value); return *this;}
56 inline AlarmAction& WithSns(SNSTopicPublishAction&& value) { SetSns(std::move(value)); return *this;}
58
60
61 inline const IotTopicPublishAction& GetIotTopicPublish() const{ return m_iotTopicPublish; }
62 inline bool IotTopicPublishHasBeenSet() const { return m_iotTopicPublishHasBeenSet; }
63 inline void SetIotTopicPublish(const IotTopicPublishAction& value) { m_iotTopicPublishHasBeenSet = true; m_iotTopicPublish = value; }
64 inline void SetIotTopicPublish(IotTopicPublishAction&& value) { m_iotTopicPublishHasBeenSet = true; m_iotTopicPublish = std::move(value); }
65 inline AlarmAction& WithIotTopicPublish(const IotTopicPublishAction& value) { SetIotTopicPublish(value); return *this;}
66 inline AlarmAction& WithIotTopicPublish(IotTopicPublishAction&& value) { SetIotTopicPublish(std::move(value)); return *this;}
68
70
71 inline const LambdaAction& GetLambda() const{ return m_lambda; }
72 inline bool LambdaHasBeenSet() const { return m_lambdaHasBeenSet; }
73 inline void SetLambda(const LambdaAction& value) { m_lambdaHasBeenSet = true; m_lambda = value; }
74 inline void SetLambda(LambdaAction&& value) { m_lambdaHasBeenSet = true; m_lambda = std::move(value); }
75 inline AlarmAction& WithLambda(const LambdaAction& value) { SetLambda(value); return *this;}
76 inline AlarmAction& WithLambda(LambdaAction&& value) { SetLambda(std::move(value)); return *this;}
78
80
81 inline const IotEventsAction& GetIotEvents() const{ return m_iotEvents; }
82 inline bool IotEventsHasBeenSet() const { return m_iotEventsHasBeenSet; }
83 inline void SetIotEvents(const IotEventsAction& value) { m_iotEventsHasBeenSet = true; m_iotEvents = value; }
84 inline void SetIotEvents(IotEventsAction&& value) { m_iotEventsHasBeenSet = true; m_iotEvents = std::move(value); }
85 inline AlarmAction& WithIotEvents(const IotEventsAction& value) { SetIotEvents(value); return *this;}
86 inline AlarmAction& WithIotEvents(IotEventsAction&& value) { SetIotEvents(std::move(value)); return *this;}
88
90
91 inline const SqsAction& GetSqs() const{ return m_sqs; }
92 inline bool SqsHasBeenSet() const { return m_sqsHasBeenSet; }
93 inline void SetSqs(const SqsAction& value) { m_sqsHasBeenSet = true; m_sqs = value; }
94 inline void SetSqs(SqsAction&& value) { m_sqsHasBeenSet = true; m_sqs = std::move(value); }
95 inline AlarmAction& WithSqs(const SqsAction& value) { SetSqs(value); return *this;}
96 inline AlarmAction& WithSqs(SqsAction&& value) { SetSqs(std::move(value)); return *this;}
98
100
101 inline const FirehoseAction& GetFirehose() const{ return m_firehose; }
102 inline bool FirehoseHasBeenSet() const { return m_firehoseHasBeenSet; }
103 inline void SetFirehose(const FirehoseAction& value) { m_firehoseHasBeenSet = true; m_firehose = value; }
104 inline void SetFirehose(FirehoseAction&& value) { m_firehoseHasBeenSet = true; m_firehose = std::move(value); }
105 inline AlarmAction& WithFirehose(const FirehoseAction& value) { SetFirehose(value); return *this;}
106 inline AlarmAction& WithFirehose(FirehoseAction&& value) { SetFirehose(std::move(value)); return *this;}
108
110
111 inline const DynamoDBAction& GetDynamoDB() const{ return m_dynamoDB; }
112 inline bool DynamoDBHasBeenSet() const { return m_dynamoDBHasBeenSet; }
113 inline void SetDynamoDB(const DynamoDBAction& value) { m_dynamoDBHasBeenSet = true; m_dynamoDB = value; }
114 inline void SetDynamoDB(DynamoDBAction&& value) { m_dynamoDBHasBeenSet = true; m_dynamoDB = std::move(value); }
115 inline AlarmAction& WithDynamoDB(const DynamoDBAction& value) { SetDynamoDB(value); return *this;}
116 inline AlarmAction& WithDynamoDB(DynamoDBAction&& value) { SetDynamoDB(std::move(value)); return *this;}
118
120
121 inline const DynamoDBv2Action& GetDynamoDBv2() const{ return m_dynamoDBv2; }
122 inline bool DynamoDBv2HasBeenSet() const { return m_dynamoDBv2HasBeenSet; }
123 inline void SetDynamoDBv2(const DynamoDBv2Action& value) { m_dynamoDBv2HasBeenSet = true; m_dynamoDBv2 = value; }
124 inline void SetDynamoDBv2(DynamoDBv2Action&& value) { m_dynamoDBv2HasBeenSet = true; m_dynamoDBv2 = std::move(value); }
125 inline AlarmAction& WithDynamoDBv2(const DynamoDBv2Action& value) { SetDynamoDBv2(value); return *this;}
126 inline AlarmAction& WithDynamoDBv2(DynamoDBv2Action&& value) { SetDynamoDBv2(std::move(value)); return *this;}
128
130
131 inline const IotSiteWiseAction& GetIotSiteWise() const{ return m_iotSiteWise; }
132 inline bool IotSiteWiseHasBeenSet() const { return m_iotSiteWiseHasBeenSet; }
133 inline void SetIotSiteWise(const IotSiteWiseAction& value) { m_iotSiteWiseHasBeenSet = true; m_iotSiteWise = value; }
134 inline void SetIotSiteWise(IotSiteWiseAction&& value) { m_iotSiteWiseHasBeenSet = true; m_iotSiteWise = std::move(value); }
135 inline AlarmAction& WithIotSiteWise(const IotSiteWiseAction& value) { SetIotSiteWise(value); return *this;}
136 inline AlarmAction& WithIotSiteWise(IotSiteWiseAction&& value) { SetIotSiteWise(std::move(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 & WithSqs(SqsAction &&value)
Definition AlarmAction.h:96
const DynamoDBAction & GetDynamoDB() const
AlarmAction & WithLambda(LambdaAction &&value)
Definition AlarmAction.h:76
void SetDynamoDB(const DynamoDBAction &value)
AWS_IOTEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const
AlarmAction & WithIotTopicPublish(const IotTopicPublishAction &value)
Definition AlarmAction.h:65
AlarmAction & WithIotTopicPublish(IotTopicPublishAction &&value)
Definition AlarmAction.h:66
const DynamoDBv2Action & GetDynamoDBv2() const
void SetIotTopicPublish(IotTopicPublishAction &&value)
Definition AlarmAction.h:64
AlarmAction & WithIotSiteWise(IotSiteWiseAction &&value)
AlarmAction & WithDynamoDBv2(DynamoDBv2Action &&value)
AlarmAction & WithDynamoDB(const DynamoDBAction &value)
AlarmAction & WithIotEvents(const IotEventsAction &value)
Definition AlarmAction.h:85
AlarmAction & WithFirehose(const FirehoseAction &value)
const FirehoseAction & GetFirehose() const
void SetSqs(const SqsAction &value)
Definition AlarmAction.h:93
void SetDynamoDBv2(const DynamoDBv2Action &value)
const SqsAction & GetSqs() const
Definition AlarmAction.h:91
AlarmAction & WithLambda(const LambdaAction &value)
Definition AlarmAction.h:75
AlarmAction & WithSns(SNSTopicPublishAction &&value)
Definition AlarmAction.h:56
AlarmAction & WithFirehose(FirehoseAction &&value)
void SetSns(SNSTopicPublishAction &&value)
Definition AlarmAction.h:54
AlarmAction & WithSqs(const SqsAction &value)
Definition AlarmAction.h:95
void SetIotTopicPublish(const IotTopicPublishAction &value)
Definition AlarmAction.h:63
const SNSTopicPublishAction & GetSns() const
Definition AlarmAction.h:51
void SetSqs(SqsAction &&value)
Definition AlarmAction.h:94
AlarmAction & WithIotSiteWise(const IotSiteWiseAction &value)
const IotEventsAction & GetIotEvents() const
Definition AlarmAction.h:81
AWS_IOTEVENTS_API AlarmAction & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetSns(const SNSTopicPublishAction &value)
Definition AlarmAction.h:53
const IotSiteWiseAction & GetIotSiteWise() const
const LambdaAction & GetLambda() const
Definition AlarmAction.h:71
void SetDynamoDB(DynamoDBAction &&value)
void SetLambda(LambdaAction &&value)
Definition AlarmAction.h:74
void SetIotEvents(const IotEventsAction &value)
Definition AlarmAction.h:83
void SetFirehose(FirehoseAction &&value)
void SetDynamoDBv2(DynamoDBv2Action &&value)
void SetIotSiteWise(const IotSiteWiseAction &value)
AWS_IOTEVENTS_API AlarmAction(Aws::Utils::Json::JsonView jsonValue)
AlarmAction & WithSns(const SNSTopicPublishAction &value)
Definition AlarmAction.h:55
void SetIotSiteWise(IotSiteWiseAction &&value)
void SetLambda(const LambdaAction &value)
Definition AlarmAction.h:73
const IotTopicPublishAction & GetIotTopicPublish() const
Definition AlarmAction.h:61
AlarmAction & WithIotEvents(IotEventsAction &&value)
Definition AlarmAction.h:86
void SetIotEvents(IotEventsAction &&value)
Definition AlarmAction.h:84
AlarmAction & WithDynamoDBv2(const DynamoDBv2Action &value)
void SetFirehose(const FirehoseAction &value)
AlarmAction & WithDynamoDB(DynamoDBAction &&value)
Aws::Utils::Json::JsonValue JsonValue