AWS SDK for C++

AWS SDK for C++ Version 1.11.644

Loading...
Searching...
No Matches
AlarmHistoryItem.h
1
6#pragma once
7#include <aws/monitoring/CloudWatch_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/monitoring/model/AlarmType.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/monitoring/model/HistoryItemType.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Xml
21{
22 class XmlNode;
23} // namespace Xml
24} // namespace Utils
25namespace CloudWatch
26{
27namespace Model
28{
29
36 {
37 public:
38 AWS_CLOUDWATCH_API AlarmHistoryItem() = default;
39 AWS_CLOUDWATCH_API AlarmHistoryItem(const Aws::Utils::Xml::XmlNode& xmlNode);
40 AWS_CLOUDWATCH_API AlarmHistoryItem& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
41
42 AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43 AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
44
45
47
50 inline const Aws::String& GetAlarmName() const { return m_alarmName; }
51 inline bool AlarmNameHasBeenSet() const { return m_alarmNameHasBeenSet; }
52 template<typename AlarmNameT = Aws::String>
53 void SetAlarmName(AlarmNameT&& value) { m_alarmNameHasBeenSet = true; m_alarmName = std::forward<AlarmNameT>(value); }
54 template<typename AlarmNameT = Aws::String>
55 AlarmHistoryItem& WithAlarmName(AlarmNameT&& value) { SetAlarmName(std::forward<AlarmNameT>(value)); return *this;}
57
59
63 inline const Aws::String& GetAlarmContributorId() const { return m_alarmContributorId; }
64 inline bool AlarmContributorIdHasBeenSet() const { return m_alarmContributorIdHasBeenSet; }
65 template<typename AlarmContributorIdT = Aws::String>
66 void SetAlarmContributorId(AlarmContributorIdT&& value) { m_alarmContributorIdHasBeenSet = true; m_alarmContributorId = std::forward<AlarmContributorIdT>(value); }
67 template<typename AlarmContributorIdT = Aws::String>
68 AlarmHistoryItem& WithAlarmContributorId(AlarmContributorIdT&& value) { SetAlarmContributorId(std::forward<AlarmContributorIdT>(value)); return *this;}
70
72
75 inline AlarmType GetAlarmType() const { return m_alarmType; }
76 inline bool AlarmTypeHasBeenSet() const { return m_alarmTypeHasBeenSet; }
77 inline void SetAlarmType(AlarmType value) { m_alarmTypeHasBeenSet = true; m_alarmType = value; }
78 inline AlarmHistoryItem& WithAlarmType(AlarmType value) { SetAlarmType(value); return *this;}
80
82
85 inline const Aws::Utils::DateTime& GetTimestamp() const { return m_timestamp; }
86 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
87 template<typename TimestampT = Aws::Utils::DateTime>
88 void SetTimestamp(TimestampT&& value) { m_timestampHasBeenSet = true; m_timestamp = std::forward<TimestampT>(value); }
89 template<typename TimestampT = Aws::Utils::DateTime>
90 AlarmHistoryItem& WithTimestamp(TimestampT&& value) { SetTimestamp(std::forward<TimestampT>(value)); return *this;}
92
94
97 inline HistoryItemType GetHistoryItemType() const { return m_historyItemType; }
98 inline bool HistoryItemTypeHasBeenSet() const { return m_historyItemTypeHasBeenSet; }
99 inline void SetHistoryItemType(HistoryItemType value) { m_historyItemTypeHasBeenSet = true; m_historyItemType = value; }
102
104
107 inline const Aws::String& GetHistorySummary() const { return m_historySummary; }
108 inline bool HistorySummaryHasBeenSet() const { return m_historySummaryHasBeenSet; }
109 template<typename HistorySummaryT = Aws::String>
110 void SetHistorySummary(HistorySummaryT&& value) { m_historySummaryHasBeenSet = true; m_historySummary = std::forward<HistorySummaryT>(value); }
111 template<typename HistorySummaryT = Aws::String>
112 AlarmHistoryItem& WithHistorySummary(HistorySummaryT&& value) { SetHistorySummary(std::forward<HistorySummaryT>(value)); return *this;}
114
116
119 inline const Aws::String& GetHistoryData() const { return m_historyData; }
120 inline bool HistoryDataHasBeenSet() const { return m_historyDataHasBeenSet; }
121 template<typename HistoryDataT = Aws::String>
122 void SetHistoryData(HistoryDataT&& value) { m_historyDataHasBeenSet = true; m_historyData = std::forward<HistoryDataT>(value); }
123 template<typename HistoryDataT = Aws::String>
124 AlarmHistoryItem& WithHistoryData(HistoryDataT&& value) { SetHistoryData(std::forward<HistoryDataT>(value)); return *this;}
126
128
133 inline const Aws::Map<Aws::String, Aws::String>& GetAlarmContributorAttributes() const { return m_alarmContributorAttributes; }
134 inline bool AlarmContributorAttributesHasBeenSet() const { return m_alarmContributorAttributesHasBeenSet; }
135 template<typename AlarmContributorAttributesT = Aws::Map<Aws::String, Aws::String>>
136 void SetAlarmContributorAttributes(AlarmContributorAttributesT&& value) { m_alarmContributorAttributesHasBeenSet = true; m_alarmContributorAttributes = std::forward<AlarmContributorAttributesT>(value); }
137 template<typename AlarmContributorAttributesT = Aws::Map<Aws::String, Aws::String>>
138 AlarmHistoryItem& WithAlarmContributorAttributes(AlarmContributorAttributesT&& value) { SetAlarmContributorAttributes(std::forward<AlarmContributorAttributesT>(value)); return *this;}
139 template<typename AlarmContributorAttributesKeyT = Aws::String, typename AlarmContributorAttributesValueT = Aws::String>
140 AlarmHistoryItem& AddAlarmContributorAttributes(AlarmContributorAttributesKeyT&& key, AlarmContributorAttributesValueT&& value) {
141 m_alarmContributorAttributesHasBeenSet = true; m_alarmContributorAttributes.emplace(std::forward<AlarmContributorAttributesKeyT>(key), std::forward<AlarmContributorAttributesValueT>(value)); return *this;
142 }
144 private:
145
146 Aws::String m_alarmName;
147 bool m_alarmNameHasBeenSet = false;
148
149 Aws::String m_alarmContributorId;
150 bool m_alarmContributorIdHasBeenSet = false;
151
152 AlarmType m_alarmType{AlarmType::NOT_SET};
153 bool m_alarmTypeHasBeenSet = false;
154
155 Aws::Utils::DateTime m_timestamp{};
156 bool m_timestampHasBeenSet = false;
157
158 HistoryItemType m_historyItemType{HistoryItemType::NOT_SET};
159 bool m_historyItemTypeHasBeenSet = false;
160
161 Aws::String m_historySummary;
162 bool m_historySummaryHasBeenSet = false;
163
164 Aws::String m_historyData;
165 bool m_historyDataHasBeenSet = false;
166
167 Aws::Map<Aws::String, Aws::String> m_alarmContributorAttributes;
168 bool m_alarmContributorAttributesHasBeenSet = false;
169 };
170
171} // namespace Model
172} // namespace CloudWatch
173} // namespace Aws
AlarmHistoryItem & WithAlarmName(AlarmNameT &&value)
void SetHistoryData(HistoryDataT &&value)
AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetHistorySummary(HistorySummaryT &&value)
AlarmHistoryItem & WithTimestamp(TimestampT &&value)
AlarmHistoryItem & WithHistoryData(HistoryDataT &&value)
AlarmHistoryItem & WithAlarmContributorAttributes(AlarmContributorAttributesT &&value)
const Aws::String & GetHistorySummary() const
const Aws::String & GetHistoryData() const
const Aws::String & GetAlarmName() const
const Aws::String & GetAlarmContributorId() const
void SetAlarmContributorAttributes(AlarmContributorAttributesT &&value)
void SetHistoryItemType(HistoryItemType value)
const Aws::Map< Aws::String, Aws::String > & GetAlarmContributorAttributes() const
AlarmHistoryItem & WithHistoryItemType(HistoryItemType value)
const Aws::Utils::DateTime & GetTimestamp() const
void SetAlarmContributorId(AlarmContributorIdT &&value)
AlarmHistoryItem & AddAlarmContributorAttributes(AlarmContributorAttributesKeyT &&key, AlarmContributorAttributesValueT &&value)
AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AlarmHistoryItem & WithAlarmContributorId(AlarmContributorIdT &&value)
AWS_CLOUDWATCH_API AlarmHistoryItem(const Aws::Utils::Xml::XmlNode &xmlNode)
AlarmHistoryItem & WithHistorySummary(HistorySummaryT &&value)
AWS_CLOUDWATCH_API AlarmHistoryItem()=default
AWS_CLOUDWATCH_API AlarmHistoryItem & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AlarmHistoryItem & WithAlarmType(AlarmType value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream