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>
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>
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>
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>
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>
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>
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>>
139 template<
typename AlarmContributorAttributesKeyT = Aws::String,
typename AlarmContributorAttributesValueT = Aws::String>
141 m_alarmContributorAttributesHasBeenSet =
true; m_alarmContributorAttributes.emplace(std::forward<AlarmContributorAttributesKeyT>(key), std::forward<AlarmContributorAttributesValueT>(value));
return *
this;
147 bool m_alarmNameHasBeenSet =
false;
150 bool m_alarmContributorIdHasBeenSet =
false;
153 bool m_alarmTypeHasBeenSet =
false;
156 bool m_timestampHasBeenSet =
false;
159 bool m_historyItemTypeHasBeenSet =
false;
162 bool m_historySummaryHasBeenSet =
false;
165 bool m_historyDataHasBeenSet =
false;
168 bool m_alarmContributorAttributesHasBeenSet =
false;
AlarmHistoryItem & WithAlarmName(AlarmNameT &&value)
bool AlarmTypeHasBeenSet() const
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
AlarmType GetAlarmType() const
void SetAlarmName(AlarmNameT &&value)
const Aws::String & GetAlarmName() const
bool AlarmContributorIdHasBeenSet() const
bool AlarmContributorAttributesHasBeenSet() const
const Aws::String & GetAlarmContributorId() const
void SetAlarmContributorAttributes(AlarmContributorAttributesT &&value)
void SetHistoryItemType(HistoryItemType value)
void SetTimestamp(TimestampT &&value)
const Aws::Map< Aws::String, Aws::String > & GetAlarmContributorAttributes() const
bool HistorySummaryHasBeenSet() const
bool AlarmNameHasBeenSet() 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
HistoryItemType GetHistoryItemType() const
bool TimestampHasBeenSet() 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)
bool HistoryItemTypeHasBeenSet() const
bool HistoryDataHasBeenSet() const
AlarmHistoryItem & WithAlarmType(AlarmType value)
void SetAlarmType(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