AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 const ComparisonOperator& GetComparisonOperator() const{ return m_comparisonOperator; }
74 inline bool ComparisonOperatorHasBeenSet() const { return m_comparisonOperatorHasBeenSet; }
75 inline void SetComparisonOperator(const ComparisonOperator& value) { m_comparisonOperatorHasBeenSet = true; m_comparisonOperator = value; }
76 inline void SetComparisonOperator(ComparisonOperator&& value) { m_comparisonOperatorHasBeenSet = true; m_comparisonOperator = std::move(value); }
80
82
86 inline int GetPeriod() const{ return m_period; }
87 inline bool PeriodHasBeenSet() const { return m_periodHasBeenSet; }
88 inline void SetPeriod(int value) { m_periodHasBeenSet = true; m_period = value; }
89 inline CloudWatchAlarmConfiguration& WithPeriod(int value) { SetPeriod(value); return *this;}
91
93
96 inline const Aws::String& GetMetricName() const{ return m_metricName; }
97 inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
98 inline void SetMetricName(const Aws::String& value) { m_metricNameHasBeenSet = true; m_metricName = value; }
99 inline void SetMetricName(Aws::String&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); }
100 inline void SetMetricName(const char* value) { m_metricNameHasBeenSet = true; m_metricName.assign(value); }
101 inline CloudWatchAlarmConfiguration& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;}
102 inline CloudWatchAlarmConfiguration& WithMetricName(Aws::String&& value) { SetMetricName(std::move(value)); return *this;}
103 inline CloudWatchAlarmConfiguration& WithMetricName(const char* value) { SetMetricName(value); return *this;}
105
107
114 inline const Aws::String& GetNamespace() const{ return m_namespace; }
115 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
116 inline void SetNamespace(const Aws::String& value) { m_namespaceHasBeenSet = true; m_namespace = value; }
117 inline void SetNamespace(Aws::String&& value) { m_namespaceHasBeenSet = true; m_namespace = std::move(value); }
118 inline void SetNamespace(const char* value) { m_namespaceHasBeenSet = true; m_namespace.assign(value); }
119 inline CloudWatchAlarmConfiguration& WithNamespace(const Aws::String& value) { SetNamespace(value); return *this;}
120 inline CloudWatchAlarmConfiguration& WithNamespace(Aws::String&& value) { SetNamespace(std::move(value)); return *this;}
121 inline CloudWatchAlarmConfiguration& WithNamespace(const char* value) { SetNamespace(value); return *this;}
123
125
129 inline const Statistic& GetStatistic() const{ return m_statistic; }
130 inline bool StatisticHasBeenSet() const { return m_statisticHasBeenSet; }
131 inline void SetStatistic(const Statistic& value) { m_statisticHasBeenSet = true; m_statistic = value; }
132 inline void SetStatistic(Statistic&& value) { m_statisticHasBeenSet = true; m_statistic = std::move(value); }
133 inline CloudWatchAlarmConfiguration& WithStatistic(const Statistic& value) { SetStatistic(value); return *this;}
134 inline CloudWatchAlarmConfiguration& WithStatistic(Statistic&& value) { SetStatistic(std::move(value)); return *this;}
136
138
146 inline const Aws::Vector<Dimension>& GetDimensions() const{ return m_dimensions; }
147 inline bool DimensionsHasBeenSet() const { return m_dimensionsHasBeenSet; }
148 inline void SetDimensions(const Aws::Vector<Dimension>& value) { m_dimensionsHasBeenSet = true; m_dimensions = value; }
149 inline void SetDimensions(Aws::Vector<Dimension>&& value) { m_dimensionsHasBeenSet = true; m_dimensions = std::move(value); }
151 inline CloudWatchAlarmConfiguration& WithDimensions(Aws::Vector<Dimension>&& value) { SetDimensions(std::move(value)); return *this;}
152 inline CloudWatchAlarmConfiguration& AddDimensions(const Dimension& value) { m_dimensionsHasBeenSet = true; m_dimensions.push_back(value); return *this; }
153 inline CloudWatchAlarmConfiguration& AddDimensions(Dimension&& value) { m_dimensionsHasBeenSet = true; m_dimensions.push_back(std::move(value)); return *this; }
155 private:
156
157 int m_evaluationPeriods;
158 bool m_evaluationPeriodsHasBeenSet = false;
159
160 double m_threshold;
161 bool m_thresholdHasBeenSet = false;
162
163 ComparisonOperator m_comparisonOperator;
164 bool m_comparisonOperatorHasBeenSet = false;
165
166 int m_period;
167 bool m_periodHasBeenSet = false;
168
169 Aws::String m_metricName;
170 bool m_metricNameHasBeenSet = false;
171
172 Aws::String m_namespace;
173 bool m_namespaceHasBeenSet = false;
174
175 Statistic m_statistic;
176 bool m_statisticHasBeenSet = false;
177
178 Aws::Vector<Dimension> m_dimensions;
179 bool m_dimensionsHasBeenSet = false;
180 };
181
182} // namespace Model
183} // namespace Route53
184} // namespace Aws
CloudWatchAlarmConfiguration & AddDimensions(const Dimension &value)
CloudWatchAlarmConfiguration & WithNamespace(Aws::String &&value)
CloudWatchAlarmConfiguration & WithDimensions(Aws::Vector< Dimension > &&value)
CloudWatchAlarmConfiguration & WithMetricName(const char *value)
AWS_ROUTE53_API CloudWatchAlarmConfiguration & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
CloudWatchAlarmConfiguration & WithNamespace(const char *value)
CloudWatchAlarmConfiguration & WithMetricName(const Aws::String &value)
CloudWatchAlarmConfiguration & WithMetricName(Aws::String &&value)
CloudWatchAlarmConfiguration & WithDimensions(const Aws::Vector< Dimension > &value)
CloudWatchAlarmConfiguration & WithNamespace(const Aws::String &value)
void SetDimensions(const Aws::Vector< Dimension > &value)
AWS_ROUTE53_API CloudWatchAlarmConfiguration(const Aws::Utils::Xml::XmlNode &xmlNode)
CloudWatchAlarmConfiguration & WithEvaluationPeriods(int value)
CloudWatchAlarmConfiguration & WithStatistic(const Statistic &value)
CloudWatchAlarmConfiguration & WithStatistic(Statistic &&value)
AWS_ROUTE53_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
void SetComparisonOperator(const ComparisonOperator &value)
CloudWatchAlarmConfiguration & WithComparisonOperator(ComparisonOperator &&value)
CloudWatchAlarmConfiguration & WithThreshold(double value)
CloudWatchAlarmConfiguration & AddDimensions(Dimension &&value)
CloudWatchAlarmConfiguration & WithComparisonOperator(const ComparisonOperator &value)
CloudWatchAlarmConfiguration & WithPeriod(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector