AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CreateAlarmModelRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/iotevents/IoTEventsRequest.h>
10#include <aws/iotevents/IoTEvents_EXPORTS.h>
11#include <aws/iotevents/model/AlarmCapabilities.h>
12#include <aws/iotevents/model/AlarmEventActions.h>
13#include <aws/iotevents/model/AlarmNotification.h>
14#include <aws/iotevents/model/AlarmRule.h>
15#include <aws/iotevents/model/Tag.h>
16
17#include <utility>
18
19namespace Aws {
20namespace IoTEvents {
21namespace Model {
22
26 public:
27 AWS_IOTEVENTS_API CreateAlarmModelRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateAlarmModel"; }
34
35 AWS_IOTEVENTS_API Aws::String SerializePayload() const override;
36
38
42 inline const Aws::String& GetAlarmModelName() const { return m_alarmModelName; }
43 inline bool AlarmModelNameHasBeenSet() const { return m_alarmModelNameHasBeenSet; }
44 template <typename AlarmModelNameT = Aws::String>
45 void SetAlarmModelName(AlarmModelNameT&& value) {
46 m_alarmModelNameHasBeenSet = true;
47 m_alarmModelName = std::forward<AlarmModelNameT>(value);
48 }
49 template <typename AlarmModelNameT = Aws::String>
50 CreateAlarmModelRequest& WithAlarmModelName(AlarmModelNameT&& value) {
51 SetAlarmModelName(std::forward<AlarmModelNameT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetAlarmModelDescription() const { return m_alarmModelDescription; }
61 inline bool AlarmModelDescriptionHasBeenSet() const { return m_alarmModelDescriptionHasBeenSet; }
62 template <typename AlarmModelDescriptionT = Aws::String>
63 void SetAlarmModelDescription(AlarmModelDescriptionT&& value) {
64 m_alarmModelDescriptionHasBeenSet = true;
65 m_alarmModelDescription = std::forward<AlarmModelDescriptionT>(value);
66 }
67 template <typename AlarmModelDescriptionT = Aws::String>
68 CreateAlarmModelRequest& WithAlarmModelDescription(AlarmModelDescriptionT&& value) {
69 SetAlarmModelDescription(std::forward<AlarmModelDescriptionT>(value));
70 return *this;
71 }
73
75
81 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
82 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
83 template <typename RoleArnT = Aws::String>
84 void SetRoleArn(RoleArnT&& value) {
85 m_roleArnHasBeenSet = true;
86 m_roleArn = std::forward<RoleArnT>(value);
87 }
88 template <typename RoleArnT = Aws::String>
90 SetRoleArn(std::forward<RoleArnT>(value));
91 return *this;
92 }
94
96
103 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
104 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
105 template <typename TagsT = Aws::Vector<Tag>>
106 void SetTags(TagsT&& value) {
107 m_tagsHasBeenSet = true;
108 m_tags = std::forward<TagsT>(value);
109 }
110 template <typename TagsT = Aws::Vector<Tag>>
112 SetTags(std::forward<TagsT>(value));
113 return *this;
114 }
115 template <typename TagsT = Tag>
117 m_tagsHasBeenSet = true;
118 m_tags.emplace_back(std::forward<TagsT>(value));
119 return *this;
120 }
122
124
129 inline const Aws::String& GetKey() const { return m_key; }
130 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
131 template <typename KeyT = Aws::String>
132 void SetKey(KeyT&& value) {
133 m_keyHasBeenSet = true;
134 m_key = std::forward<KeyT>(value);
135 }
136 template <typename KeyT = Aws::String>
138 SetKey(std::forward<KeyT>(value));
139 return *this;
140 }
142
144
147 inline int GetSeverity() const { return m_severity; }
148 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
149 inline void SetSeverity(int value) {
150 m_severityHasBeenSet = true;
151 m_severity = value;
152 }
154 SetSeverity(value);
155 return *this;
156 }
158
160
163 inline const AlarmRule& GetAlarmRule() const { return m_alarmRule; }
164 inline bool AlarmRuleHasBeenSet() const { return m_alarmRuleHasBeenSet; }
165 template <typename AlarmRuleT = AlarmRule>
166 void SetAlarmRule(AlarmRuleT&& value) {
167 m_alarmRuleHasBeenSet = true;
168 m_alarmRule = std::forward<AlarmRuleT>(value);
169 }
170 template <typename AlarmRuleT = AlarmRule>
172 SetAlarmRule(std::forward<AlarmRuleT>(value));
173 return *this;
174 }
176
178
181 inline const AlarmNotification& GetAlarmNotification() const { return m_alarmNotification; }
182 inline bool AlarmNotificationHasBeenSet() const { return m_alarmNotificationHasBeenSet; }
183 template <typename AlarmNotificationT = AlarmNotification>
184 void SetAlarmNotification(AlarmNotificationT&& value) {
185 m_alarmNotificationHasBeenSet = true;
186 m_alarmNotification = std::forward<AlarmNotificationT>(value);
187 }
188 template <typename AlarmNotificationT = AlarmNotification>
189 CreateAlarmModelRequest& WithAlarmNotification(AlarmNotificationT&& value) {
190 SetAlarmNotification(std::forward<AlarmNotificationT>(value));
191 return *this;
192 }
194
196
199 inline const AlarmEventActions& GetAlarmEventActions() const { return m_alarmEventActions; }
200 inline bool AlarmEventActionsHasBeenSet() const { return m_alarmEventActionsHasBeenSet; }
201 template <typename AlarmEventActionsT = AlarmEventActions>
202 void SetAlarmEventActions(AlarmEventActionsT&& value) {
203 m_alarmEventActionsHasBeenSet = true;
204 m_alarmEventActions = std::forward<AlarmEventActionsT>(value);
205 }
206 template <typename AlarmEventActionsT = AlarmEventActions>
207 CreateAlarmModelRequest& WithAlarmEventActions(AlarmEventActionsT&& value) {
208 SetAlarmEventActions(std::forward<AlarmEventActionsT>(value));
209 return *this;
210 }
212
214
217 inline const AlarmCapabilities& GetAlarmCapabilities() const { return m_alarmCapabilities; }
218 inline bool AlarmCapabilitiesHasBeenSet() const { return m_alarmCapabilitiesHasBeenSet; }
219 template <typename AlarmCapabilitiesT = AlarmCapabilities>
220 void SetAlarmCapabilities(AlarmCapabilitiesT&& value) {
221 m_alarmCapabilitiesHasBeenSet = true;
222 m_alarmCapabilities = std::forward<AlarmCapabilitiesT>(value);
223 }
224 template <typename AlarmCapabilitiesT = AlarmCapabilities>
225 CreateAlarmModelRequest& WithAlarmCapabilities(AlarmCapabilitiesT&& value) {
226 SetAlarmCapabilities(std::forward<AlarmCapabilitiesT>(value));
227 return *this;
228 }
230 private:
231 Aws::String m_alarmModelName;
232
233 Aws::String m_alarmModelDescription;
234
235 Aws::String m_roleArn;
236
237 Aws::Vector<Tag> m_tags;
238
239 Aws::String m_key;
240
241 int m_severity{0};
242
243 AlarmRule m_alarmRule;
244
245 AlarmNotification m_alarmNotification;
246
247 AlarmEventActions m_alarmEventActions;
248
249 AlarmCapabilities m_alarmCapabilities;
250 bool m_alarmModelNameHasBeenSet = false;
251 bool m_alarmModelDescriptionHasBeenSet = false;
252 bool m_roleArnHasBeenSet = false;
253 bool m_tagsHasBeenSet = false;
254 bool m_keyHasBeenSet = false;
255 bool m_severityHasBeenSet = false;
256 bool m_alarmRuleHasBeenSet = false;
257 bool m_alarmNotificationHasBeenSet = false;
258 bool m_alarmEventActionsHasBeenSet = false;
259 bool m_alarmCapabilitiesHasBeenSet = false;
260};
261
262} // namespace Model
263} // namespace IoTEvents
264} // namespace Aws
CreateAlarmModelRequest & WithAlarmNotification(AlarmNotificationT &&value)
CreateAlarmModelRequest & WithKey(KeyT &&value)
void SetAlarmModelDescription(AlarmModelDescriptionT &&value)
CreateAlarmModelRequest & WithAlarmModelDescription(AlarmModelDescriptionT &&value)
CreateAlarmModelRequest & AddTags(TagsT &&value)
const AlarmCapabilities & GetAlarmCapabilities() const
const AlarmNotification & GetAlarmNotification() const
CreateAlarmModelRequest & WithAlarmRule(AlarmRuleT &&value)
AWS_IOTEVENTS_API CreateAlarmModelRequest()=default
CreateAlarmModelRequest & WithSeverity(int value)
CreateAlarmModelRequest & WithAlarmEventActions(AlarmEventActionsT &&value)
const AlarmEventActions & GetAlarmEventActions() const
CreateAlarmModelRequest & WithRoleArn(RoleArnT &&value)
AWS_IOTEVENTS_API Aws::String SerializePayload() const override
CreateAlarmModelRequest & WithAlarmModelName(AlarmModelNameT &&value)
CreateAlarmModelRequest & WithAlarmCapabilities(AlarmCapabilitiesT &&value)
virtual const char * GetServiceRequestName() const override
CreateAlarmModelRequest & WithTags(TagsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector