AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
AlarmSummary.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/AlarmStateName.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
34 {
35 public:
36 AWS_IOTEVENTSDATA_API AlarmSummary() = default;
37 AWS_IOTEVENTSDATA_API AlarmSummary(Aws::Utils::Json::JsonView jsonValue);
38 AWS_IOTEVENTSDATA_API AlarmSummary& 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 template<typename AlarmModelNameT = Aws::String>
49 void SetAlarmModelName(AlarmModelNameT&& value) { m_alarmModelNameHasBeenSet = true; m_alarmModelName = std::forward<AlarmModelNameT>(value); }
50 template<typename AlarmModelNameT = Aws::String>
51 AlarmSummary& WithAlarmModelName(AlarmModelNameT&& value) { SetAlarmModelName(std::forward<AlarmModelNameT>(value)); return *this;}
53
55
58 inline const Aws::String& GetAlarmModelVersion() const { return m_alarmModelVersion; }
59 inline bool AlarmModelVersionHasBeenSet() const { return m_alarmModelVersionHasBeenSet; }
60 template<typename AlarmModelVersionT = Aws::String>
61 void SetAlarmModelVersion(AlarmModelVersionT&& value) { m_alarmModelVersionHasBeenSet = true; m_alarmModelVersion = std::forward<AlarmModelVersionT>(value); }
62 template<typename AlarmModelVersionT = Aws::String>
63 AlarmSummary& WithAlarmModelVersion(AlarmModelVersionT&& value) { SetAlarmModelVersion(std::forward<AlarmModelVersionT>(value)); return *this;}
65
67
72 inline const Aws::String& GetKeyValue() const { return m_keyValue; }
73 inline bool KeyValueHasBeenSet() const { return m_keyValueHasBeenSet; }
74 template<typename KeyValueT = Aws::String>
75 void SetKeyValue(KeyValueT&& value) { m_keyValueHasBeenSet = true; m_keyValue = std::forward<KeyValueT>(value); }
76 template<typename KeyValueT = Aws::String>
77 AlarmSummary& WithKeyValue(KeyValueT&& value) { SetKeyValue(std::forward<KeyValueT>(value)); return *this;}
79
81
100 inline AlarmStateName GetStateName() const { return m_stateName; }
101 inline bool StateNameHasBeenSet() const { return m_stateNameHasBeenSet; }
102 inline void SetStateName(AlarmStateName value) { m_stateNameHasBeenSet = true; m_stateName = value; }
103 inline AlarmSummary& WithStateName(AlarmStateName value) { SetStateName(value); return *this;}
105
107
110 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
111 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
112 template<typename CreationTimeT = Aws::Utils::DateTime>
113 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
114 template<typename CreationTimeT = Aws::Utils::DateTime>
115 AlarmSummary& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
117
119
122 inline const Aws::Utils::DateTime& GetLastUpdateTime() const { return m_lastUpdateTime; }
123 inline bool LastUpdateTimeHasBeenSet() const { return m_lastUpdateTimeHasBeenSet; }
124 template<typename LastUpdateTimeT = Aws::Utils::DateTime>
125 void SetLastUpdateTime(LastUpdateTimeT&& value) { m_lastUpdateTimeHasBeenSet = true; m_lastUpdateTime = std::forward<LastUpdateTimeT>(value); }
126 template<typename LastUpdateTimeT = Aws::Utils::DateTime>
127 AlarmSummary& WithLastUpdateTime(LastUpdateTimeT&& value) { SetLastUpdateTime(std::forward<LastUpdateTimeT>(value)); return *this;}
129 private:
130
131 Aws::String m_alarmModelName;
132 bool m_alarmModelNameHasBeenSet = false;
133
134 Aws::String m_alarmModelVersion;
135 bool m_alarmModelVersionHasBeenSet = false;
136
137 Aws::String m_keyValue;
138 bool m_keyValueHasBeenSet = false;
139
141 bool m_stateNameHasBeenSet = false;
142
143 Aws::Utils::DateTime m_creationTime{};
144 bool m_creationTimeHasBeenSet = false;
145
146 Aws::Utils::DateTime m_lastUpdateTime{};
147 bool m_lastUpdateTimeHasBeenSet = false;
148 };
149
150} // namespace Model
151} // namespace IoTEventsData
152} // namespace Aws
AlarmSummary & WithStateName(AlarmStateName value)
AWS_IOTEVENTSDATA_API AlarmSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetStateName(AlarmStateName value)
AlarmSummary & WithLastUpdateTime(LastUpdateTimeT &&value)
AWS_IOTEVENTSDATA_API AlarmSummary(Aws::Utils::Json::JsonView jsonValue)
void SetKeyValue(KeyValueT &&value)
const Aws::Utils::DateTime & GetLastUpdateTime() const
AlarmSummary & WithAlarmModelName(AlarmModelNameT &&value)
void SetLastUpdateTime(LastUpdateTimeT &&value)
AlarmSummary & WithAlarmModelVersion(AlarmModelVersionT &&value)
AWS_IOTEVENTSDATA_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAlarmModelName(AlarmModelNameT &&value)
const Aws::String & GetKeyValue() const
AlarmSummary & WithCreationTime(CreationTimeT &&value)
const Aws::String & GetAlarmModelVersion() const
const Aws::String & GetAlarmModelName() const
AWS_IOTEVENTSDATA_API AlarmSummary()=default
void SetAlarmModelVersion(AlarmModelVersionT &&value)
const Aws::Utils::DateTime & GetCreationTime() const
void SetCreationTime(CreationTimeT &&value)
AlarmSummary & WithKeyValue(KeyValueT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue