AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAlarmName(const Aws::String& value) { m_alarmNameHasBeenSet = true; m_alarmName = value; }
52 inline void SetAlarmName(Aws::String&& value) { m_alarmNameHasBeenSet = true; m_alarmName = std::move(value); }
53 inline void SetAlarmName(const char* value) { m_alarmNameHasBeenSet = true; m_alarmName.assign(value); }
54 inline AlarmHistoryItem& WithAlarmName(const Aws::String& value) { SetAlarmName(value); return *this;}
55 inline AlarmHistoryItem& WithAlarmName(Aws::String&& value) { SetAlarmName(std::move(value)); return *this;}
56 inline AlarmHistoryItem& WithAlarmName(const char* value) { SetAlarmName(value); return *this;}
58
60
63 inline const AlarmType& GetAlarmType() const{ return m_alarmType; }
64 inline bool AlarmTypeHasBeenSet() const { return m_alarmTypeHasBeenSet; }
65 inline void SetAlarmType(const AlarmType& value) { m_alarmTypeHasBeenSet = true; m_alarmType = value; }
66 inline void SetAlarmType(AlarmType&& value) { m_alarmTypeHasBeenSet = true; m_alarmType = std::move(value); }
67 inline AlarmHistoryItem& WithAlarmType(const AlarmType& value) { SetAlarmType(value); return *this;}
68 inline AlarmHistoryItem& WithAlarmType(AlarmType&& value) { SetAlarmType(std::move(value)); return *this;}
70
72
75 inline const Aws::Utils::DateTime& GetTimestamp() const{ return m_timestamp; }
76 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
77 inline void SetTimestamp(const Aws::Utils::DateTime& value) { m_timestampHasBeenSet = true; m_timestamp = value; }
78 inline void SetTimestamp(Aws::Utils::DateTime&& value) { m_timestampHasBeenSet = true; m_timestamp = std::move(value); }
79 inline AlarmHistoryItem& WithTimestamp(const Aws::Utils::DateTime& value) { SetTimestamp(value); return *this;}
80 inline AlarmHistoryItem& WithTimestamp(Aws::Utils::DateTime&& value) { SetTimestamp(std::move(value)); return *this;}
82
84
87 inline const HistoryItemType& GetHistoryItemType() const{ return m_historyItemType; }
88 inline bool HistoryItemTypeHasBeenSet() const { return m_historyItemTypeHasBeenSet; }
89 inline void SetHistoryItemType(const HistoryItemType& value) { m_historyItemTypeHasBeenSet = true; m_historyItemType = value; }
90 inline void SetHistoryItemType(HistoryItemType&& value) { m_historyItemTypeHasBeenSet = true; m_historyItemType = std::move(value); }
91 inline AlarmHistoryItem& WithHistoryItemType(const HistoryItemType& value) { SetHistoryItemType(value); return *this;}
92 inline AlarmHistoryItem& WithHistoryItemType(HistoryItemType&& value) { SetHistoryItemType(std::move(value)); return *this;}
94
96
99 inline const Aws::String& GetHistorySummary() const{ return m_historySummary; }
100 inline bool HistorySummaryHasBeenSet() const { return m_historySummaryHasBeenSet; }
101 inline void SetHistorySummary(const Aws::String& value) { m_historySummaryHasBeenSet = true; m_historySummary = value; }
102 inline void SetHistorySummary(Aws::String&& value) { m_historySummaryHasBeenSet = true; m_historySummary = std::move(value); }
103 inline void SetHistorySummary(const char* value) { m_historySummaryHasBeenSet = true; m_historySummary.assign(value); }
104 inline AlarmHistoryItem& WithHistorySummary(const Aws::String& value) { SetHistorySummary(value); return *this;}
105 inline AlarmHistoryItem& WithHistorySummary(Aws::String&& value) { SetHistorySummary(std::move(value)); return *this;}
106 inline AlarmHistoryItem& WithHistorySummary(const char* value) { SetHistorySummary(value); return *this;}
108
110
113 inline const Aws::String& GetHistoryData() const{ return m_historyData; }
114 inline bool HistoryDataHasBeenSet() const { return m_historyDataHasBeenSet; }
115 inline void SetHistoryData(const Aws::String& value) { m_historyDataHasBeenSet = true; m_historyData = value; }
116 inline void SetHistoryData(Aws::String&& value) { m_historyDataHasBeenSet = true; m_historyData = std::move(value); }
117 inline void SetHistoryData(const char* value) { m_historyDataHasBeenSet = true; m_historyData.assign(value); }
118 inline AlarmHistoryItem& WithHistoryData(const Aws::String& value) { SetHistoryData(value); return *this;}
119 inline AlarmHistoryItem& WithHistoryData(Aws::String&& value) { SetHistoryData(std::move(value)); return *this;}
120 inline AlarmHistoryItem& WithHistoryData(const char* value) { SetHistoryData(value); return *this;}
122 private:
123
124 Aws::String m_alarmName;
125 bool m_alarmNameHasBeenSet = false;
126
127 AlarmType m_alarmType;
128 bool m_alarmTypeHasBeenSet = false;
129
130 Aws::Utils::DateTime m_timestamp;
131 bool m_timestampHasBeenSet = false;
132
133 HistoryItemType m_historyItemType;
134 bool m_historyItemTypeHasBeenSet = false;
135
136 Aws::String m_historySummary;
137 bool m_historySummaryHasBeenSet = false;
138
139 Aws::String m_historyData;
140 bool m_historyDataHasBeenSet = false;
141 };
142
143} // namespace Model
144} // namespace CloudWatch
145} // namespace Aws
const HistoryItemType & GetHistoryItemType() const
void SetHistoryItemType(HistoryItemType &&value)
AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetTimestamp(const Aws::Utils::DateTime &value)
AlarmHistoryItem & WithAlarmName(Aws::String &&value)
AlarmHistoryItem & WithHistoryItemType(HistoryItemType &&value)
void SetHistoryData(const Aws::String &value)
AlarmHistoryItem & WithAlarmName(const char *value)
const Aws::String & GetHistorySummary() const
const Aws::String & GetHistoryData() const
void SetAlarmType(const AlarmType &value)
const Aws::String & GetAlarmName() const
void SetHistorySummary(const Aws::String &value)
AlarmHistoryItem & WithAlarmName(const Aws::String &value)
void SetTimestamp(Aws::Utils::DateTime &&value)
AlarmHistoryItem & WithHistorySummary(Aws::String &&value)
const Aws::Utils::DateTime & GetTimestamp() const
AlarmHistoryItem & WithAlarmType(AlarmType &&value)
void SetHistorySummary(Aws::String &&value)
AlarmHistoryItem & WithHistorySummary(const char *value)
AlarmHistoryItem & WithHistoryData(Aws::String &&value)
AlarmHistoryItem & WithTimestamp(Aws::Utils::DateTime &&value)
AlarmHistoryItem & WithAlarmType(const AlarmType &value)
AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AlarmHistoryItem & WithHistorySummary(const Aws::String &value)
AWS_CLOUDWATCH_API AlarmHistoryItem(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetAlarmName(const Aws::String &value)
AlarmHistoryItem & WithHistoryItemType(const HistoryItemType &value)
AWS_CLOUDWATCH_API AlarmHistoryItem & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AlarmHistoryItem & WithHistoryData(const char *value)
AlarmHistoryItem & WithHistoryData(const Aws::String &value)
void SetHistoryItemType(const HistoryItemType &value)
AlarmHistoryItem & WithTimestamp(const Aws::Utils::DateTime &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream