AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CloudWatchAlarmConfiguration.h
1
6#pragma once
7#include <aws/route53/Route53_EXPORTS.h>
8#include <aws/route53/model/ComparisonOperator.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/route53/model/Statistic.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/route53/model/Dimension.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Xml
20{
21 class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace Route53
25{
26namespace Model
27{
28
37 {
38 public:
39 AWS_ROUTE53_API CloudWatchAlarmConfiguration() = default;
42
43 AWS_ROUTE53_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
44
45
47
51 inline int GetEvaluationPeriods() const { return m_evaluationPeriods; }
52 inline bool EvaluationPeriodsHasBeenSet() const { return m_evaluationPeriodsHasBeenSet; }
53 inline void SetEvaluationPeriods(int value) { m_evaluationPeriodsHasBeenSet = true; m_evaluationPeriods = value; }
56
58
62 inline double GetThreshold() const { return m_threshold; }
63 inline bool ThresholdHasBeenSet() const { return m_thresholdHasBeenSet; }
64 inline void SetThreshold(double value) { m_thresholdHasBeenSet = true; m_threshold = value; }
65 inline CloudWatchAlarmConfiguration& WithThreshold(double value) { SetThreshold(value); return *this;}
67
69
73 inline ComparisonOperator GetComparisonOperator() const { return m_comparisonOperator; }
74 inline bool ComparisonOperatorHasBeenSet() const { return m_comparisonOperatorHasBeenSet; }
75 inline void SetComparisonOperator(ComparisonOperator value) { m_comparisonOperatorHasBeenSet = true; m_comparisonOperator = value; }
78
80
84 inline int GetPeriod() const { return m_period; }
85 inline bool PeriodHasBeenSet() const { return m_periodHasBeenSet; }
86 inline void SetPeriod(int value) { m_periodHasBeenSet = true; m_period = value; }
87 inline CloudWatchAlarmConfiguration& WithPeriod(int value) { SetPeriod(value); return *this;}
89
91
94 inline const Aws::String& GetMetricName() const { return m_metricName; }
95 inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
96 template<typename MetricNameT = Aws::String>
97 void SetMetricName(MetricNameT&& value) { m_metricNameHasBeenSet = true; m_metricName = std::forward<MetricNameT>(value); }
98 template<typename MetricNameT = Aws::String>
99 CloudWatchAlarmConfiguration& WithMetricName(MetricNameT&& value) { SetMetricName(std::forward<MetricNameT>(value)); return *this;}
101
103
110 inline const Aws::String& GetNamespace() const { return m_namespace; }
111 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
112 template<typename NamespaceT = Aws::String>
113 void SetNamespace(NamespaceT&& value) { m_namespaceHasBeenSet = true; m_namespace = std::forward<NamespaceT>(value); }
114 template<typename NamespaceT = Aws::String>
115 CloudWatchAlarmConfiguration& WithNamespace(NamespaceT&& value) { SetNamespace(std::forward<NamespaceT>(value)); return *this;}
117
119
123 inline Statistic GetStatistic() const { return m_statistic; }
124 inline bool StatisticHasBeenSet() const { return m_statisticHasBeenSet; }
125 inline void SetStatistic(Statistic value) { m_statisticHasBeenSet = true; m_statistic = value; }
126 inline CloudWatchAlarmConfiguration& WithStatistic(Statistic value) { SetStatistic(value); return *this;}
128
130
138 inline const Aws::Vector<Dimension>& GetDimensions() const { return m_dimensions; }
139 inline bool DimensionsHasBeenSet() const { return m_dimensionsHasBeenSet; }
140 template<typename DimensionsT = Aws::Vector<Dimension>>
141 void SetDimensions(DimensionsT&& value) { m_dimensionsHasBeenSet = true; m_dimensions = std::forward<DimensionsT>(value); }
142 template<typename DimensionsT = Aws::Vector<Dimension>>
143 CloudWatchAlarmConfiguration& WithDimensions(DimensionsT&& value) { SetDimensions(std::forward<DimensionsT>(value)); return *this;}
144 template<typename DimensionsT = Dimension>
145 CloudWatchAlarmConfiguration& AddDimensions(DimensionsT&& value) { m_dimensionsHasBeenSet = true; m_dimensions.emplace_back(std::forward<DimensionsT>(value)); return *this; }
147 private:
148
149 int m_evaluationPeriods{0};
150 bool m_evaluationPeriodsHasBeenSet = false;
151
152 double m_threshold{0.0};
153 bool m_thresholdHasBeenSet = false;
154
156 bool m_comparisonOperatorHasBeenSet = false;
157
158 int m_period{0};
159 bool m_periodHasBeenSet = false;
160
161 Aws::String m_metricName;
162 bool m_metricNameHasBeenSet = false;
163
164 Aws::String m_namespace;
165 bool m_namespaceHasBeenSet = false;
166
167 Statistic m_statistic{Statistic::NOT_SET};
168 bool m_statisticHasBeenSet = false;
169
170 Aws::Vector<Dimension> m_dimensions;
171 bool m_dimensionsHasBeenSet = false;
172 };
173
174} // namespace Model
175} // namespace Route53
176} // 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)
CloudWatchAlarmConfiguration & WithPeriod(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector