AWS SDK for C++

AWS SDK for C++ Version 1.11.771

Loading...
Searching...
No Matches
DescribeAlarmModelResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.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/AlarmModelVersionStatus.h>
14#include <aws/iotevents/model/AlarmNotification.h>
15#include <aws/iotevents/model/AlarmRule.h>
16
17#include <utility>
18
19namespace Aws {
20template <typename RESULT_TYPE>
21class AmazonWebServiceResult;
22
23namespace Utils {
24namespace Json {
25class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace IoTEvents {
29namespace Model {
31 public:
32 AWS_IOTEVENTS_API DescribeAlarmModelResult() = default;
35
37
40 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
41 template <typename CreationTimeT = Aws::Utils::DateTime>
42 void SetCreationTime(CreationTimeT&& value) {
43 m_creationTimeHasBeenSet = true;
44 m_creationTime = std::forward<CreationTimeT>(value);
45 }
46 template <typename CreationTimeT = Aws::Utils::DateTime>
48 SetCreationTime(std::forward<CreationTimeT>(value));
49 return *this;
50 }
52
54
59 inline const Aws::String& GetAlarmModelArn() const { return m_alarmModelArn; }
60 template <typename AlarmModelArnT = Aws::String>
61 void SetAlarmModelArn(AlarmModelArnT&& value) {
62 m_alarmModelArnHasBeenSet = true;
63 m_alarmModelArn = std::forward<AlarmModelArnT>(value);
64 }
65 template <typename AlarmModelArnT = Aws::String>
67 SetAlarmModelArn(std::forward<AlarmModelArnT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetAlarmModelVersion() const { return m_alarmModelVersion; }
77 template <typename AlarmModelVersionT = Aws::String>
78 void SetAlarmModelVersion(AlarmModelVersionT&& value) {
79 m_alarmModelVersionHasBeenSet = true;
80 m_alarmModelVersion = std::forward<AlarmModelVersionT>(value);
81 }
82 template <typename AlarmModelVersionT = Aws::String>
83 DescribeAlarmModelResult& WithAlarmModelVersion(AlarmModelVersionT&& value) {
84 SetAlarmModelVersion(std::forward<AlarmModelVersionT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::Utils::DateTime& GetLastUpdateTime() const { return m_lastUpdateTime; }
94 template <typename LastUpdateTimeT = Aws::Utils::DateTime>
95 void SetLastUpdateTime(LastUpdateTimeT&& value) {
96 m_lastUpdateTimeHasBeenSet = true;
97 m_lastUpdateTime = std::forward<LastUpdateTimeT>(value);
98 }
99 template <typename LastUpdateTimeT = Aws::Utils::DateTime>
101 SetLastUpdateTime(std::forward<LastUpdateTimeT>(value));
102 return *this;
103 }
105
107
118 inline AlarmModelVersionStatus GetStatus() const { return m_status; }
120 m_statusHasBeenSet = true;
121 m_status = value;
122 }
124 SetStatus(value);
125 return *this;
126 }
128
130
133 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
134 template <typename StatusMessageT = Aws::String>
135 void SetStatusMessage(StatusMessageT&& value) {
136 m_statusMessageHasBeenSet = true;
137 m_statusMessage = std::forward<StatusMessageT>(value);
138 }
139 template <typename StatusMessageT = Aws::String>
141 SetStatusMessage(std::forward<StatusMessageT>(value));
142 return *this;
143 }
145
147
150 inline const Aws::String& GetAlarmModelName() const { return m_alarmModelName; }
151 template <typename AlarmModelNameT = Aws::String>
152 void SetAlarmModelName(AlarmModelNameT&& value) {
153 m_alarmModelNameHasBeenSet = true;
154 m_alarmModelName = std::forward<AlarmModelNameT>(value);
155 }
156 template <typename AlarmModelNameT = Aws::String>
158 SetAlarmModelName(std::forward<AlarmModelNameT>(value));
159 return *this;
160 }
162
164
167 inline const Aws::String& GetAlarmModelDescription() const { return m_alarmModelDescription; }
168 template <typename AlarmModelDescriptionT = Aws::String>
169 void SetAlarmModelDescription(AlarmModelDescriptionT&& value) {
170 m_alarmModelDescriptionHasBeenSet = true;
171 m_alarmModelDescription = std::forward<AlarmModelDescriptionT>(value);
172 }
173 template <typename AlarmModelDescriptionT = Aws::String>
174 DescribeAlarmModelResult& WithAlarmModelDescription(AlarmModelDescriptionT&& value) {
175 SetAlarmModelDescription(std::forward<AlarmModelDescriptionT>(value));
176 return *this;
177 }
179
181
187 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
188 template <typename RoleArnT = Aws::String>
189 void SetRoleArn(RoleArnT&& value) {
190 m_roleArnHasBeenSet = true;
191 m_roleArn = std::forward<RoleArnT>(value);
192 }
193 template <typename RoleArnT = Aws::String>
195 SetRoleArn(std::forward<RoleArnT>(value));
196 return *this;
197 }
199
201
206 inline const Aws::String& GetKey() const { return m_key; }
207 template <typename KeyT = Aws::String>
208 void SetKey(KeyT&& value) {
209 m_keyHasBeenSet = true;
210 m_key = std::forward<KeyT>(value);
211 }
212 template <typename KeyT = Aws::String>
214 SetKey(std::forward<KeyT>(value));
215 return *this;
216 }
218
220
223 inline int GetSeverity() const { return m_severity; }
224 inline void SetSeverity(int value) {
225 m_severityHasBeenSet = true;
226 m_severity = value;
227 }
229 SetSeverity(value);
230 return *this;
231 }
233
235
238 inline const AlarmRule& GetAlarmRule() const { return m_alarmRule; }
239 template <typename AlarmRuleT = AlarmRule>
240 void SetAlarmRule(AlarmRuleT&& value) {
241 m_alarmRuleHasBeenSet = true;
242 m_alarmRule = std::forward<AlarmRuleT>(value);
243 }
244 template <typename AlarmRuleT = AlarmRule>
246 SetAlarmRule(std::forward<AlarmRuleT>(value));
247 return *this;
248 }
250
252
255 inline const AlarmNotification& GetAlarmNotification() const { return m_alarmNotification; }
256 template <typename AlarmNotificationT = AlarmNotification>
257 void SetAlarmNotification(AlarmNotificationT&& value) {
258 m_alarmNotificationHasBeenSet = true;
259 m_alarmNotification = std::forward<AlarmNotificationT>(value);
260 }
261 template <typename AlarmNotificationT = AlarmNotification>
262 DescribeAlarmModelResult& WithAlarmNotification(AlarmNotificationT&& value) {
263 SetAlarmNotification(std::forward<AlarmNotificationT>(value));
264 return *this;
265 }
267
269
272 inline const AlarmEventActions& GetAlarmEventActions() const { return m_alarmEventActions; }
273 template <typename AlarmEventActionsT = AlarmEventActions>
274 void SetAlarmEventActions(AlarmEventActionsT&& value) {
275 m_alarmEventActionsHasBeenSet = true;
276 m_alarmEventActions = std::forward<AlarmEventActionsT>(value);
277 }
278 template <typename AlarmEventActionsT = AlarmEventActions>
279 DescribeAlarmModelResult& WithAlarmEventActions(AlarmEventActionsT&& value) {
280 SetAlarmEventActions(std::forward<AlarmEventActionsT>(value));
281 return *this;
282 }
284
286
289 inline const AlarmCapabilities& GetAlarmCapabilities() const { return m_alarmCapabilities; }
290 template <typename AlarmCapabilitiesT = AlarmCapabilities>
291 void SetAlarmCapabilities(AlarmCapabilitiesT&& value) {
292 m_alarmCapabilitiesHasBeenSet = true;
293 m_alarmCapabilities = std::forward<AlarmCapabilitiesT>(value);
294 }
295 template <typename AlarmCapabilitiesT = AlarmCapabilities>
296 DescribeAlarmModelResult& WithAlarmCapabilities(AlarmCapabilitiesT&& value) {
297 SetAlarmCapabilities(std::forward<AlarmCapabilitiesT>(value));
298 return *this;
299 }
301
303
304 inline const Aws::String& GetRequestId() const { return m_requestId; }
305 template <typename RequestIdT = Aws::String>
306 void SetRequestId(RequestIdT&& value) {
307 m_requestIdHasBeenSet = true;
308 m_requestId = std::forward<RequestIdT>(value);
309 }
310 template <typename RequestIdT = Aws::String>
312 SetRequestId(std::forward<RequestIdT>(value));
313 return *this;
314 }
316 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
317
318 private:
319 Aws::Utils::DateTime m_creationTime{};
320
321 Aws::String m_alarmModelArn;
322
323 Aws::String m_alarmModelVersion;
324
325 Aws::Utils::DateTime m_lastUpdateTime{};
326
328
329 Aws::String m_statusMessage;
330
331 Aws::String m_alarmModelName;
332
333 Aws::String m_alarmModelDescription;
334
335 Aws::String m_roleArn;
336
337 Aws::String m_key;
338
339 int m_severity{0};
340
341 AlarmRule m_alarmRule;
342
343 AlarmNotification m_alarmNotification;
344
345 AlarmEventActions m_alarmEventActions;
346
347 AlarmCapabilities m_alarmCapabilities;
348
349 Aws::String m_requestId;
350 Aws::Http::HttpResponseCode m_HttpResponseCode;
351 bool m_creationTimeHasBeenSet = false;
352 bool m_alarmModelArnHasBeenSet = false;
353 bool m_alarmModelVersionHasBeenSet = false;
354 bool m_lastUpdateTimeHasBeenSet = false;
355 bool m_statusHasBeenSet = false;
356 bool m_statusMessageHasBeenSet = false;
357 bool m_alarmModelNameHasBeenSet = false;
358 bool m_alarmModelDescriptionHasBeenSet = false;
359 bool m_roleArnHasBeenSet = false;
360 bool m_keyHasBeenSet = false;
361 bool m_severityHasBeenSet = false;
362 bool m_alarmRuleHasBeenSet = false;
363 bool m_alarmNotificationHasBeenSet = false;
364 bool m_alarmEventActionsHasBeenSet = false;
365 bool m_alarmCapabilitiesHasBeenSet = false;
366 bool m_requestIdHasBeenSet = false;
367};
368
369} // namespace Model
370} // namespace IoTEvents
371} // namespace Aws
AWS_IOTEVENTS_API DescribeAlarmModelResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeAlarmModelResult & WithAlarmModelDescription(AlarmModelDescriptionT &&value)
DescribeAlarmModelResult & WithAlarmModelName(AlarmModelNameT &&value)
DescribeAlarmModelResult & WithStatus(AlarmModelVersionStatus value)
DescribeAlarmModelResult & WithRoleArn(RoleArnT &&value)
DescribeAlarmModelResult & WithLastUpdateTime(LastUpdateTimeT &&value)
DescribeAlarmModelResult & WithStatusMessage(StatusMessageT &&value)
DescribeAlarmModelResult & WithAlarmCapabilities(AlarmCapabilitiesT &&value)
const Aws::Utils::DateTime & GetCreationTime() const
DescribeAlarmModelResult & WithKey(KeyT &&value)
const Aws::Utils::DateTime & GetLastUpdateTime() const
void SetAlarmModelDescription(AlarmModelDescriptionT &&value)
DescribeAlarmModelResult & WithAlarmEventActions(AlarmEventActionsT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
DescribeAlarmModelResult & WithAlarmNotification(AlarmNotificationT &&value)
AWS_IOTEVENTS_API DescribeAlarmModelResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeAlarmModelResult & WithAlarmRule(AlarmRuleT &&value)
DescribeAlarmModelResult & WithSeverity(int value)
AWS_IOTEVENTS_API DescribeAlarmModelResult()=default
DescribeAlarmModelResult & WithCreationTime(CreationTimeT &&value)
DescribeAlarmModelResult & WithAlarmModelArn(AlarmModelArnT &&value)
DescribeAlarmModelResult & WithRequestId(RequestIdT &&value)
DescribeAlarmModelResult & WithAlarmModelVersion(AlarmModelVersionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue