AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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 <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Xml
20{
21 class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace CloudWatch
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_CLOUDWATCH_API AlarmHistoryItem() = default;
38 AWS_CLOUDWATCH_API AlarmHistoryItem(const Aws::Utils::Xml::XmlNode& xmlNode);
39 AWS_CLOUDWATCH_API AlarmHistoryItem& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
40
41 AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42 AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
43
44
46
49 inline const Aws::String& GetAlarmName() const { return m_alarmName; }
50 inline bool AlarmNameHasBeenSet() const { return m_alarmNameHasBeenSet; }
51 template<typename AlarmNameT = Aws::String>
52 void SetAlarmName(AlarmNameT&& value) { m_alarmNameHasBeenSet = true; m_alarmName = std::forward<AlarmNameT>(value); }
53 template<typename AlarmNameT = Aws::String>
54 AlarmHistoryItem& WithAlarmName(AlarmNameT&& value) { SetAlarmName(std::forward<AlarmNameT>(value)); return *this;}
56
58
61 inline AlarmType GetAlarmType() const { return m_alarmType; }
62 inline bool AlarmTypeHasBeenSet() const { return m_alarmTypeHasBeenSet; }
63 inline void SetAlarmType(AlarmType value) { m_alarmTypeHasBeenSet = true; m_alarmType = value; }
64 inline AlarmHistoryItem& WithAlarmType(AlarmType value) { SetAlarmType(value); return *this;}
66
68
71 inline const Aws::Utils::DateTime& GetTimestamp() const { return m_timestamp; }
72 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
73 template<typename TimestampT = Aws::Utils::DateTime>
74 void SetTimestamp(TimestampT&& value) { m_timestampHasBeenSet = true; m_timestamp = std::forward<TimestampT>(value); }
75 template<typename TimestampT = Aws::Utils::DateTime>
76 AlarmHistoryItem& WithTimestamp(TimestampT&& value) { SetTimestamp(std::forward<TimestampT>(value)); return *this;}
78
80
83 inline HistoryItemType GetHistoryItemType() const { return m_historyItemType; }
84 inline bool HistoryItemTypeHasBeenSet() const { return m_historyItemTypeHasBeenSet; }
85 inline void SetHistoryItemType(HistoryItemType value) { m_historyItemTypeHasBeenSet = true; m_historyItemType = value; }
88
90
93 inline const Aws::String& GetHistorySummary() const { return m_historySummary; }
94 inline bool HistorySummaryHasBeenSet() const { return m_historySummaryHasBeenSet; }
95 template<typename HistorySummaryT = Aws::String>
96 void SetHistorySummary(HistorySummaryT&& value) { m_historySummaryHasBeenSet = true; m_historySummary = std::forward<HistorySummaryT>(value); }
97 template<typename HistorySummaryT = Aws::String>
98 AlarmHistoryItem& WithHistorySummary(HistorySummaryT&& value) { SetHistorySummary(std::forward<HistorySummaryT>(value)); return *this;}
100
102
105 inline const Aws::String& GetHistoryData() const { return m_historyData; }
106 inline bool HistoryDataHasBeenSet() const { return m_historyDataHasBeenSet; }
107 template<typename HistoryDataT = Aws::String>
108 void SetHistoryData(HistoryDataT&& value) { m_historyDataHasBeenSet = true; m_historyData = std::forward<HistoryDataT>(value); }
109 template<typename HistoryDataT = Aws::String>
110 AlarmHistoryItem& WithHistoryData(HistoryDataT&& value) { SetHistoryData(std::forward<HistoryDataT>(value)); return *this;}
112 private:
113
114 Aws::String m_alarmName;
115 bool m_alarmNameHasBeenSet = false;
116
117 AlarmType m_alarmType{AlarmType::NOT_SET};
118 bool m_alarmTypeHasBeenSet = false;
119
120 Aws::Utils::DateTime m_timestamp{};
121 bool m_timestampHasBeenSet = false;
122
123 HistoryItemType m_historyItemType{HistoryItemType::NOT_SET};
124 bool m_historyItemTypeHasBeenSet = false;
125
126 Aws::String m_historySummary;
127 bool m_historySummaryHasBeenSet = false;
128
129 Aws::String m_historyData;
130 bool m_historyDataHasBeenSet = false;
131 };
132
133} // namespace Model
134} // namespace CloudWatch
135} // 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)
const Aws::String & GetHistorySummary() const
const Aws::String & GetHistoryData() const
const Aws::String & GetAlarmName() const
void SetHistoryItemType(HistoryItemType value)
AlarmHistoryItem & WithHistoryItemType(HistoryItemType value)
const Aws::Utils::DateTime & GetTimestamp() const
AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream &oStream, const char *location) const
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::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream