AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DescribeAlarmModelResult.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/iotevents/IoTEvents_EXPORTS.h>
10#include <aws/iotevents/model/AlarmCapabilities.h>
11#include <aws/iotevents/model/AlarmEventActions.h>
12#include <aws/iotevents/model/AlarmModelVersionStatus.h>
13#include <aws/iotevents/model/AlarmNotification.h>
14#include <aws/iotevents/model/AlarmRule.h>
15
16#include <utility>
17
18namespace Aws {
19template <typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils {
23namespace Json {
24class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace IoTEvents {
28namespace Model {
30 public:
31 AWS_IOTEVENTS_API DescribeAlarmModelResult() = default;
34
36
39 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
40 template <typename CreationTimeT = Aws::Utils::DateTime>
41 void SetCreationTime(CreationTimeT&& value) {
42 m_creationTimeHasBeenSet = true;
43 m_creationTime = std::forward<CreationTimeT>(value);
44 }
45 template <typename CreationTimeT = Aws::Utils::DateTime>
47 SetCreationTime(std::forward<CreationTimeT>(value));
48 return *this;
49 }
51
53
58 inline const Aws::String& GetAlarmModelArn() const { return m_alarmModelArn; }
59 template <typename AlarmModelArnT = Aws::String>
60 void SetAlarmModelArn(AlarmModelArnT&& value) {
61 m_alarmModelArnHasBeenSet = true;
62 m_alarmModelArn = std::forward<AlarmModelArnT>(value);
63 }
64 template <typename AlarmModelArnT = Aws::String>
66 SetAlarmModelArn(std::forward<AlarmModelArnT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetAlarmModelVersion() const { return m_alarmModelVersion; }
76 template <typename AlarmModelVersionT = Aws::String>
77 void SetAlarmModelVersion(AlarmModelVersionT&& value) {
78 m_alarmModelVersionHasBeenSet = true;
79 m_alarmModelVersion = std::forward<AlarmModelVersionT>(value);
80 }
81 template <typename AlarmModelVersionT = Aws::String>
82 DescribeAlarmModelResult& WithAlarmModelVersion(AlarmModelVersionT&& value) {
83 SetAlarmModelVersion(std::forward<AlarmModelVersionT>(value));
84 return *this;
85 }
87
89
92 inline const Aws::Utils::DateTime& GetLastUpdateTime() const { return m_lastUpdateTime; }
93 template <typename LastUpdateTimeT = Aws::Utils::DateTime>
94 void SetLastUpdateTime(LastUpdateTimeT&& value) {
95 m_lastUpdateTimeHasBeenSet = true;
96 m_lastUpdateTime = std::forward<LastUpdateTimeT>(value);
97 }
98 template <typename LastUpdateTimeT = Aws::Utils::DateTime>
99 DescribeAlarmModelResult& WithLastUpdateTime(LastUpdateTimeT&& value) {
100 SetLastUpdateTime(std::forward<LastUpdateTimeT>(value));
101 return *this;
102 }
104
106
117 inline AlarmModelVersionStatus GetStatus() const { return m_status; }
119 m_statusHasBeenSet = true;
120 m_status = value;
121 }
123 SetStatus(value);
124 return *this;
125 }
127
129
132 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
133 template <typename StatusMessageT = Aws::String>
134 void SetStatusMessage(StatusMessageT&& value) {
135 m_statusMessageHasBeenSet = true;
136 m_statusMessage = std::forward<StatusMessageT>(value);
137 }
138 template <typename StatusMessageT = Aws::String>
140 SetStatusMessage(std::forward<StatusMessageT>(value));
141 return *this;
142 }
144
146
149 inline const Aws::String& GetAlarmModelName() const { return m_alarmModelName; }
150 template <typename AlarmModelNameT = Aws::String>
151 void SetAlarmModelName(AlarmModelNameT&& value) {
152 m_alarmModelNameHasBeenSet = true;
153 m_alarmModelName = std::forward<AlarmModelNameT>(value);
154 }
155 template <typename AlarmModelNameT = Aws::String>
157 SetAlarmModelName(std::forward<AlarmModelNameT>(value));
158 return *this;
159 }
161
163
166 inline const Aws::String& GetAlarmModelDescription() const { return m_alarmModelDescription; }
167 template <typename AlarmModelDescriptionT = Aws::String>
168 void SetAlarmModelDescription(AlarmModelDescriptionT&& value) {
169 m_alarmModelDescriptionHasBeenSet = true;
170 m_alarmModelDescription = std::forward<AlarmModelDescriptionT>(value);
171 }
172 template <typename AlarmModelDescriptionT = Aws::String>
173 DescribeAlarmModelResult& WithAlarmModelDescription(AlarmModelDescriptionT&& value) {
174 SetAlarmModelDescription(std::forward<AlarmModelDescriptionT>(value));
175 return *this;
176 }
178
180
186 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
187 template <typename RoleArnT = Aws::String>
188 void SetRoleArn(RoleArnT&& value) {
189 m_roleArnHasBeenSet = true;
190 m_roleArn = std::forward<RoleArnT>(value);
191 }
192 template <typename RoleArnT = Aws::String>
194 SetRoleArn(std::forward<RoleArnT>(value));
195 return *this;
196 }
198
200
205 inline const Aws::String& GetKey() const { return m_key; }
206 template <typename KeyT = Aws::String>
207 void SetKey(KeyT&& value) {
208 m_keyHasBeenSet = true;
209 m_key = std::forward<KeyT>(value);
210 }
211 template <typename KeyT = Aws::String>
213 SetKey(std::forward<KeyT>(value));
214 return *this;
215 }
217
219
222 inline int GetSeverity() const { return m_severity; }
223 inline void SetSeverity(int value) {
224 m_severityHasBeenSet = true;
225 m_severity = value;
226 }
228 SetSeverity(value);
229 return *this;
230 }
232
234
237 inline const AlarmRule& GetAlarmRule() const { return m_alarmRule; }
238 template <typename AlarmRuleT = AlarmRule>
239 void SetAlarmRule(AlarmRuleT&& value) {
240 m_alarmRuleHasBeenSet = true;
241 m_alarmRule = std::forward<AlarmRuleT>(value);
242 }
243 template <typename AlarmRuleT = AlarmRule>
245 SetAlarmRule(std::forward<AlarmRuleT>(value));
246 return *this;
247 }
249
251
254 inline const AlarmNotification& GetAlarmNotification() const { return m_alarmNotification; }
255 template <typename AlarmNotificationT = AlarmNotification>
256 void SetAlarmNotification(AlarmNotificationT&& value) {
257 m_alarmNotificationHasBeenSet = true;
258 m_alarmNotification = std::forward<AlarmNotificationT>(value);
259 }
260 template <typename AlarmNotificationT = AlarmNotification>
261 DescribeAlarmModelResult& WithAlarmNotification(AlarmNotificationT&& value) {
262 SetAlarmNotification(std::forward<AlarmNotificationT>(value));
263 return *this;
264 }
266
268
271 inline const AlarmEventActions& GetAlarmEventActions() const { return m_alarmEventActions; }
272 template <typename AlarmEventActionsT = AlarmEventActions>
273 void SetAlarmEventActions(AlarmEventActionsT&& value) {
274 m_alarmEventActionsHasBeenSet = true;
275 m_alarmEventActions = std::forward<AlarmEventActionsT>(value);
276 }
277 template <typename AlarmEventActionsT = AlarmEventActions>
278 DescribeAlarmModelResult& WithAlarmEventActions(AlarmEventActionsT&& value) {
279 SetAlarmEventActions(std::forward<AlarmEventActionsT>(value));
280 return *this;
281 }
283
285
288 inline const AlarmCapabilities& GetAlarmCapabilities() const { return m_alarmCapabilities; }
289 template <typename AlarmCapabilitiesT = AlarmCapabilities>
290 void SetAlarmCapabilities(AlarmCapabilitiesT&& value) {
291 m_alarmCapabilitiesHasBeenSet = true;
292 m_alarmCapabilities = std::forward<AlarmCapabilitiesT>(value);
293 }
294 template <typename AlarmCapabilitiesT = AlarmCapabilities>
295 DescribeAlarmModelResult& WithAlarmCapabilities(AlarmCapabilitiesT&& value) {
296 SetAlarmCapabilities(std::forward<AlarmCapabilitiesT>(value));
297 return *this;
298 }
300
302
303 inline const Aws::String& GetRequestId() const { return m_requestId; }
304 template <typename RequestIdT = Aws::String>
305 void SetRequestId(RequestIdT&& value) {
306 m_requestIdHasBeenSet = true;
307 m_requestId = std::forward<RequestIdT>(value);
308 }
309 template <typename RequestIdT = Aws::String>
311 SetRequestId(std::forward<RequestIdT>(value));
312 return *this;
313 }
315 private:
316 Aws::Utils::DateTime m_creationTime{};
317
318 Aws::String m_alarmModelArn;
319
320 Aws::String m_alarmModelVersion;
321
322 Aws::Utils::DateTime m_lastUpdateTime{};
323
325
326 Aws::String m_statusMessage;
327
328 Aws::String m_alarmModelName;
329
330 Aws::String m_alarmModelDescription;
331
332 Aws::String m_roleArn;
333
334 Aws::String m_key;
335
336 int m_severity{0};
337
338 AlarmRule m_alarmRule;
339
340 AlarmNotification m_alarmNotification;
341
342 AlarmEventActions m_alarmEventActions;
343
344 AlarmCapabilities m_alarmCapabilities;
345
346 Aws::String m_requestId;
347 bool m_creationTimeHasBeenSet = false;
348 bool m_alarmModelArnHasBeenSet = false;
349 bool m_alarmModelVersionHasBeenSet = false;
350 bool m_lastUpdateTimeHasBeenSet = false;
351 bool m_statusHasBeenSet = false;
352 bool m_statusMessageHasBeenSet = false;
353 bool m_alarmModelNameHasBeenSet = false;
354 bool m_alarmModelDescriptionHasBeenSet = false;
355 bool m_roleArnHasBeenSet = false;
356 bool m_keyHasBeenSet = false;
357 bool m_severityHasBeenSet = false;
358 bool m_alarmRuleHasBeenSet = false;
359 bool m_alarmNotificationHasBeenSet = false;
360 bool m_alarmEventActionsHasBeenSet = false;
361 bool m_alarmCapabilitiesHasBeenSet = false;
362 bool m_requestIdHasBeenSet = false;
363};
364
365} // namespace Model
366} // namespace IoTEvents
367} // 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)
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