AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CloudWatchAlarmConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/route53/Route53_EXPORTS.h>
10#include <aws/route53/model/ComparisonOperator.h>
11#include <aws/route53/model/Dimension.h>
12#include <aws/route53/model/Statistic.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Xml {
19class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace Route53 {
23namespace Model {
24
33 public:
34 AWS_ROUTE53_API CloudWatchAlarmConfiguration() = default;
37
38 AWS_ROUTE53_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
39
41
45 inline int GetEvaluationPeriods() const { return m_evaluationPeriods; }
46 inline bool EvaluationPeriodsHasBeenSet() const { return m_evaluationPeriodsHasBeenSet; }
47 inline void SetEvaluationPeriods(int value) {
48 m_evaluationPeriodsHasBeenSet = true;
49 m_evaluationPeriods = value;
50 }
53 return *this;
54 }
56
58
62 inline double GetThreshold() const { return m_threshold; }
63 inline bool ThresholdHasBeenSet() const { return m_thresholdHasBeenSet; }
64 inline void SetThreshold(double value) {
65 m_thresholdHasBeenSet = true;
66 m_threshold = value;
67 }
69 SetThreshold(value);
70 return *this;
71 }
73
75
79 inline ComparisonOperator GetComparisonOperator() const { return m_comparisonOperator; }
80 inline bool ComparisonOperatorHasBeenSet() const { return m_comparisonOperatorHasBeenSet; }
82 m_comparisonOperatorHasBeenSet = true;
83 m_comparisonOperator = value;
84 }
87 return *this;
88 }
90
92
96 inline int GetPeriod() const { return m_period; }
97 inline bool PeriodHasBeenSet() const { return m_periodHasBeenSet; }
98 inline void SetPeriod(int value) {
99 m_periodHasBeenSet = true;
100 m_period = value;
101 }
103 SetPeriod(value);
104 return *this;
105 }
107
109
112 inline const Aws::String& GetMetricName() const { return m_metricName; }
113 inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
114 template <typename MetricNameT = Aws::String>
115 void SetMetricName(MetricNameT&& value) {
116 m_metricNameHasBeenSet = true;
117 m_metricName = std::forward<MetricNameT>(value);
118 }
119 template <typename MetricNameT = Aws::String>
121 SetMetricName(std::forward<MetricNameT>(value));
122 return *this;
123 }
125
127
134 inline const Aws::String& GetNamespace() const { return m_namespace; }
135 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
136 template <typename NamespaceT = Aws::String>
137 void SetNamespace(NamespaceT&& value) {
138 m_namespaceHasBeenSet = true;
139 m_namespace = std::forward<NamespaceT>(value);
140 }
141 template <typename NamespaceT = Aws::String>
143 SetNamespace(std::forward<NamespaceT>(value));
144 return *this;
145 }
147
149
153 inline Statistic GetStatistic() const { return m_statistic; }
154 inline bool StatisticHasBeenSet() const { return m_statisticHasBeenSet; }
155 inline void SetStatistic(Statistic value) {
156 m_statisticHasBeenSet = true;
157 m_statistic = value;
158 }
160 SetStatistic(value);
161 return *this;
162 }
164
166
174 inline const Aws::Vector<Dimension>& GetDimensions() const { return m_dimensions; }
175 inline bool DimensionsHasBeenSet() const { return m_dimensionsHasBeenSet; }
176 template <typename DimensionsT = Aws::Vector<Dimension>>
177 void SetDimensions(DimensionsT&& value) {
178 m_dimensionsHasBeenSet = true;
179 m_dimensions = std::forward<DimensionsT>(value);
180 }
181 template <typename DimensionsT = Aws::Vector<Dimension>>
183 SetDimensions(std::forward<DimensionsT>(value));
184 return *this;
185 }
186 template <typename DimensionsT = Dimension>
188 m_dimensionsHasBeenSet = true;
189 m_dimensions.emplace_back(std::forward<DimensionsT>(value));
190 return *this;
191 }
193 private:
194 int m_evaluationPeriods{0};
195
196 double m_threshold{0.0};
197
199
200 int m_period{0};
201
202 Aws::String m_metricName;
203
204 Aws::String m_namespace;
205
206 Statistic m_statistic{Statistic::NOT_SET};
207
208 Aws::Vector<Dimension> m_dimensions;
209 bool m_evaluationPeriodsHasBeenSet = false;
210 bool m_thresholdHasBeenSet = false;
211 bool m_comparisonOperatorHasBeenSet = false;
212 bool m_periodHasBeenSet = false;
213 bool m_metricNameHasBeenSet = false;
214 bool m_namespaceHasBeenSet = false;
215 bool m_statisticHasBeenSet = false;
216 bool m_dimensionsHasBeenSet = false;
217};
218
219} // namespace Model
220} // namespace Route53
221} // namespace Aws
CloudWatchAlarmConfiguration & AddDimensions(DimensionsT &&value)
AWS_ROUTE53_API CloudWatchAlarmConfiguration & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
CloudWatchAlarmConfiguration & WithComparisonOperator(ComparisonOperator value)
CloudWatchAlarmConfiguration & WithNamespace(NamespaceT &&value)
AWS_ROUTE53_API CloudWatchAlarmConfiguration(const Aws::Utils::Xml::XmlNode &xmlNode)
CloudWatchAlarmConfiguration & WithEvaluationPeriods(int value)
CloudWatchAlarmConfiguration & WithStatistic(Statistic value)
CloudWatchAlarmConfiguration & WithMetricName(MetricNameT &&value)
AWS_ROUTE53_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
AWS_ROUTE53_API CloudWatchAlarmConfiguration()=default
CloudWatchAlarmConfiguration & WithDimensions(DimensionsT &&value)
CloudWatchAlarmConfiguration & WithThreshold(double value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector