AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Alarm.h
1
6#pragma once
7#include <aws/iotevents-data/IoTEventsData_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/iotevents-data/model/AlarmState.h>
10#include <aws/core/utils/DateTime.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace IoTEventsData
24{
25namespace Model
26{
27
33 class Alarm
34 {
35 public:
36 AWS_IOTEVENTSDATA_API Alarm();
37 AWS_IOTEVENTSDATA_API Alarm(Aws::Utils::Json::JsonView jsonValue);
38 AWS_IOTEVENTSDATA_API Alarm& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_IOTEVENTSDATA_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetAlarmModelName() const{ return m_alarmModelName; }
47 inline bool AlarmModelNameHasBeenSet() const { return m_alarmModelNameHasBeenSet; }
48 inline void SetAlarmModelName(const Aws::String& value) { m_alarmModelNameHasBeenSet = true; m_alarmModelName = value; }
49 inline void SetAlarmModelName(Aws::String&& value) { m_alarmModelNameHasBeenSet = true; m_alarmModelName = std::move(value); }
50 inline void SetAlarmModelName(const char* value) { m_alarmModelNameHasBeenSet = true; m_alarmModelName.assign(value); }
51 inline Alarm& WithAlarmModelName(const Aws::String& value) { SetAlarmModelName(value); return *this;}
52 inline Alarm& WithAlarmModelName(Aws::String&& value) { SetAlarmModelName(std::move(value)); return *this;}
53 inline Alarm& WithAlarmModelName(const char* value) { SetAlarmModelName(value); return *this;}
55
57
60 inline const Aws::String& GetAlarmModelVersion() const{ return m_alarmModelVersion; }
61 inline bool AlarmModelVersionHasBeenSet() const { return m_alarmModelVersionHasBeenSet; }
62 inline void SetAlarmModelVersion(const Aws::String& value) { m_alarmModelVersionHasBeenSet = true; m_alarmModelVersion = value; }
63 inline void SetAlarmModelVersion(Aws::String&& value) { m_alarmModelVersionHasBeenSet = true; m_alarmModelVersion = std::move(value); }
64 inline void SetAlarmModelVersion(const char* value) { m_alarmModelVersionHasBeenSet = true; m_alarmModelVersion.assign(value); }
65 inline Alarm& WithAlarmModelVersion(const Aws::String& value) { SetAlarmModelVersion(value); return *this;}
66 inline Alarm& WithAlarmModelVersion(Aws::String&& value) { SetAlarmModelVersion(std::move(value)); return *this;}
67 inline Alarm& WithAlarmModelVersion(const char* value) { SetAlarmModelVersion(value); return *this;}
69
71
76 inline const Aws::String& GetKeyValue() const{ return m_keyValue; }
77 inline bool KeyValueHasBeenSet() const { return m_keyValueHasBeenSet; }
78 inline void SetKeyValue(const Aws::String& value) { m_keyValueHasBeenSet = true; m_keyValue = value; }
79 inline void SetKeyValue(Aws::String&& value) { m_keyValueHasBeenSet = true; m_keyValue = std::move(value); }
80 inline void SetKeyValue(const char* value) { m_keyValueHasBeenSet = true; m_keyValue.assign(value); }
81 inline Alarm& WithKeyValue(const Aws::String& value) { SetKeyValue(value); return *this;}
82 inline Alarm& WithKeyValue(Aws::String&& value) { SetKeyValue(std::move(value)); return *this;}
83 inline Alarm& WithKeyValue(const char* value) { SetKeyValue(value); return *this;}
85
87
90 inline const AlarmState& GetAlarmState() const{ return m_alarmState; }
91 inline bool AlarmStateHasBeenSet() const { return m_alarmStateHasBeenSet; }
92 inline void SetAlarmState(const AlarmState& value) { m_alarmStateHasBeenSet = true; m_alarmState = value; }
93 inline void SetAlarmState(AlarmState&& value) { m_alarmStateHasBeenSet = true; m_alarmState = std::move(value); }
94 inline Alarm& WithAlarmState(const AlarmState& value) { SetAlarmState(value); return *this;}
95 inline Alarm& WithAlarmState(AlarmState&& value) { SetAlarmState(std::move(value)); return *this;}
97
99
102 inline int GetSeverity() const{ return m_severity; }
103 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
104 inline void SetSeverity(int value) { m_severityHasBeenSet = true; m_severity = value; }
105 inline Alarm& WithSeverity(int value) { SetSeverity(value); return *this;}
107
109
112 inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
113 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
114 inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
115 inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
116 inline Alarm& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
117 inline Alarm& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
119
121
124 inline const Aws::Utils::DateTime& GetLastUpdateTime() const{ return m_lastUpdateTime; }
125 inline bool LastUpdateTimeHasBeenSet() const { return m_lastUpdateTimeHasBeenSet; }
126 inline void SetLastUpdateTime(const Aws::Utils::DateTime& value) { m_lastUpdateTimeHasBeenSet = true; m_lastUpdateTime = value; }
127 inline void SetLastUpdateTime(Aws::Utils::DateTime&& value) { m_lastUpdateTimeHasBeenSet = true; m_lastUpdateTime = std::move(value); }
128 inline Alarm& WithLastUpdateTime(const Aws::Utils::DateTime& value) { SetLastUpdateTime(value); return *this;}
129 inline Alarm& WithLastUpdateTime(Aws::Utils::DateTime&& value) { SetLastUpdateTime(std::move(value)); return *this;}
131 private:
132
133 Aws::String m_alarmModelName;
134 bool m_alarmModelNameHasBeenSet = false;
135
136 Aws::String m_alarmModelVersion;
137 bool m_alarmModelVersionHasBeenSet = false;
138
139 Aws::String m_keyValue;
140 bool m_keyValueHasBeenSet = false;
141
142 AlarmState m_alarmState;
143 bool m_alarmStateHasBeenSet = false;
144
145 int m_severity;
146 bool m_severityHasBeenSet = false;
147
148 Aws::Utils::DateTime m_creationTime;
149 bool m_creationTimeHasBeenSet = false;
150
151 Aws::Utils::DateTime m_lastUpdateTime;
152 bool m_lastUpdateTimeHasBeenSet = false;
153 };
154
155} // namespace Model
156} // namespace IoTEventsData
157} // namespace Aws
bool SeverityHasBeenSet() const
Definition Alarm.h:103
Alarm & WithAlarmState(const AlarmState &value)
Definition Alarm.h:94
void SetSeverity(int value)
Definition Alarm.h:104
const Aws::String & GetAlarmModelName() const
Definition Alarm.h:46
AWS_IOTEVENTSDATA_API Alarm()
Alarm & WithCreationTime(Aws::Utils::DateTime &&value)
Definition Alarm.h:117
bool AlarmStateHasBeenSet() const
Definition Alarm.h:91
void SetKeyValue(const Aws::String &value)
Definition Alarm.h:78
Alarm & WithKeyValue(Aws::String &&value)
Definition Alarm.h:82
void SetAlarmState(AlarmState &&value)
Definition Alarm.h:93
const Aws::Utils::DateTime & GetLastUpdateTime() const
Definition Alarm.h:124
AWS_IOTEVENTSDATA_API Aws::Utils::Json::JsonValue Jsonize() const
void SetKeyValue(Aws::String &&value)
Definition Alarm.h:79
Alarm & WithKeyValue(const Aws::String &value)
Definition Alarm.h:81
bool CreationTimeHasBeenSet() const
Definition Alarm.h:113
Alarm & WithAlarmState(AlarmState &&value)
Definition Alarm.h:95
void SetAlarmModelName(const Aws::String &value)
Definition Alarm.h:48
void SetKeyValue(const char *value)
Definition Alarm.h:80
const Aws::Utils::DateTime & GetCreationTime() const
Definition Alarm.h:112
void SetAlarmModelVersion(const char *value)
Definition Alarm.h:64
void SetCreationTime(Aws::Utils::DateTime &&value)
Definition Alarm.h:115
const AlarmState & GetAlarmState() const
Definition Alarm.h:90
bool AlarmModelNameHasBeenSet() const
Definition Alarm.h:47
void SetAlarmModelVersion(const Aws::String &value)
Definition Alarm.h:62
AWS_IOTEVENTSDATA_API Alarm & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetAlarmModelVersion(Aws::String &&value)
Definition Alarm.h:63
Alarm & WithAlarmModelName(const Aws::String &value)
Definition Alarm.h:51
Alarm & WithAlarmModelVersion(Aws::String &&value)
Definition Alarm.h:66
bool LastUpdateTimeHasBeenSet() const
Definition Alarm.h:125
const Aws::String & GetAlarmModelVersion() const
Definition Alarm.h:60
const Aws::String & GetKeyValue() const
Definition Alarm.h:76
Alarm & WithSeverity(int value)
Definition Alarm.h:105
Alarm & WithLastUpdateTime(const Aws::Utils::DateTime &value)
Definition Alarm.h:128
Alarm & WithAlarmModelName(Aws::String &&value)
Definition Alarm.h:52
Alarm & WithKeyValue(const char *value)
Definition Alarm.h:83
void SetAlarmState(const AlarmState &value)
Definition Alarm.h:92
void SetCreationTime(const Aws::Utils::DateTime &value)
Definition Alarm.h:114
Alarm & WithAlarmModelVersion(const char *value)
Definition Alarm.h:67
AWS_IOTEVENTSDATA_API Alarm(Aws::Utils::Json::JsonView jsonValue)
void SetLastUpdateTime(Aws::Utils::DateTime &&value)
Definition Alarm.h:127
Alarm & WithAlarmModelName(const char *value)
Definition Alarm.h:53
bool AlarmModelVersionHasBeenSet() const
Definition Alarm.h:61
void SetAlarmModelName(Aws::String &&value)
Definition Alarm.h:49
Alarm & WithCreationTime(const Aws::Utils::DateTime &value)
Definition Alarm.h:116
bool KeyValueHasBeenSet() const
Definition Alarm.h:77
Alarm & WithLastUpdateTime(Aws::Utils::DateTime &&value)
Definition Alarm.h:129
void SetAlarmModelName(const char *value)
Definition Alarm.h:50
void SetLastUpdateTime(const Aws::Utils::DateTime &value)
Definition Alarm.h:126
Alarm & WithAlarmModelVersion(const Aws::String &value)
Definition Alarm.h:65
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue