AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CloudWatchAlarmDefinition.h
1
6#pragma once
7#include <aws/elasticmapreduce/EMR_EXPORTS.h>
8#include <aws/elasticmapreduce/model/ComparisonOperator.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/elasticmapreduce/model/Statistic.h>
11#include <aws/elasticmapreduce/model/Unit.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/elasticmapreduce/model/MetricDimension.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace EMR
27{
28namespace Model
29{
30
39 {
40 public:
45
46
48
52 inline const ComparisonOperator& GetComparisonOperator() const{ return m_comparisonOperator; }
53 inline bool ComparisonOperatorHasBeenSet() const { return m_comparisonOperatorHasBeenSet; }
54 inline void SetComparisonOperator(const ComparisonOperator& value) { m_comparisonOperatorHasBeenSet = true; m_comparisonOperator = value; }
55 inline void SetComparisonOperator(ComparisonOperator&& value) { m_comparisonOperatorHasBeenSet = true; m_comparisonOperator = std::move(value); }
59
61
66 inline int GetEvaluationPeriods() const{ return m_evaluationPeriods; }
67 inline bool EvaluationPeriodsHasBeenSet() const { return m_evaluationPeriodsHasBeenSet; }
68 inline void SetEvaluationPeriods(int value) { m_evaluationPeriodsHasBeenSet = true; m_evaluationPeriods = value; }
69 inline CloudWatchAlarmDefinition& WithEvaluationPeriods(int value) { SetEvaluationPeriods(value); return *this;}
71
73
77 inline const Aws::String& GetMetricName() const{ return m_metricName; }
78 inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
79 inline void SetMetricName(const Aws::String& value) { m_metricNameHasBeenSet = true; m_metricName = value; }
80 inline void SetMetricName(Aws::String&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); }
81 inline void SetMetricName(const char* value) { m_metricNameHasBeenSet = true; m_metricName.assign(value); }
82 inline CloudWatchAlarmDefinition& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;}
83 inline CloudWatchAlarmDefinition& WithMetricName(Aws::String&& value) { SetMetricName(std::move(value)); return *this;}
84 inline CloudWatchAlarmDefinition& WithMetricName(const char* value) { SetMetricName(value); return *this;}
86
88
92 inline const Aws::String& GetNamespace() const{ return m_namespace; }
93 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
94 inline void SetNamespace(const Aws::String& value) { m_namespaceHasBeenSet = true; m_namespace = value; }
95 inline void SetNamespace(Aws::String&& value) { m_namespaceHasBeenSet = true; m_namespace = std::move(value); }
96 inline void SetNamespace(const char* value) { m_namespaceHasBeenSet = true; m_namespace.assign(value); }
97 inline CloudWatchAlarmDefinition& WithNamespace(const Aws::String& value) { SetNamespace(value); return *this;}
98 inline CloudWatchAlarmDefinition& WithNamespace(Aws::String&& value) { SetNamespace(std::move(value)); return *this;}
99 inline CloudWatchAlarmDefinition& WithNamespace(const char* value) { SetNamespace(value); return *this;}
101
103
108 inline int GetPeriod() const{ return m_period; }
109 inline bool PeriodHasBeenSet() const { return m_periodHasBeenSet; }
110 inline void SetPeriod(int value) { m_periodHasBeenSet = true; m_period = value; }
111 inline CloudWatchAlarmDefinition& WithPeriod(int value) { SetPeriod(value); return *this;}
113
115
119 inline const Statistic& GetStatistic() const{ return m_statistic; }
120 inline bool StatisticHasBeenSet() const { return m_statisticHasBeenSet; }
121 inline void SetStatistic(const Statistic& value) { m_statisticHasBeenSet = true; m_statistic = value; }
122 inline void SetStatistic(Statistic&& value) { m_statisticHasBeenSet = true; m_statistic = std::move(value); }
123 inline CloudWatchAlarmDefinition& WithStatistic(const Statistic& value) { SetStatistic(value); return *this;}
124 inline CloudWatchAlarmDefinition& WithStatistic(Statistic&& value) { SetStatistic(std::move(value)); return *this;}
126
128
131 inline double GetThreshold() const{ return m_threshold; }
132 inline bool ThresholdHasBeenSet() const { return m_thresholdHasBeenSet; }
133 inline void SetThreshold(double value) { m_thresholdHasBeenSet = true; m_threshold = value; }
134 inline CloudWatchAlarmDefinition& WithThreshold(double value) { SetThreshold(value); return *this;}
136
138
143 inline const Unit& GetUnit() const{ return m_unit; }
144 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
145 inline void SetUnit(const Unit& value) { m_unitHasBeenSet = true; m_unit = value; }
146 inline void SetUnit(Unit&& value) { m_unitHasBeenSet = true; m_unit = std::move(value); }
147 inline CloudWatchAlarmDefinition& WithUnit(const Unit& value) { SetUnit(value); return *this;}
148 inline CloudWatchAlarmDefinition& WithUnit(Unit&& value) { SetUnit(std::move(value)); return *this;}
150
152
155 inline const Aws::Vector<MetricDimension>& GetDimensions() const{ return m_dimensions; }
156 inline bool DimensionsHasBeenSet() const { return m_dimensionsHasBeenSet; }
157 inline void SetDimensions(const Aws::Vector<MetricDimension>& value) { m_dimensionsHasBeenSet = true; m_dimensions = value; }
158 inline void SetDimensions(Aws::Vector<MetricDimension>&& value) { m_dimensionsHasBeenSet = true; m_dimensions = std::move(value); }
160 inline CloudWatchAlarmDefinition& WithDimensions(Aws::Vector<MetricDimension>&& value) { SetDimensions(std::move(value)); return *this;}
161 inline CloudWatchAlarmDefinition& AddDimensions(const MetricDimension& value) { m_dimensionsHasBeenSet = true; m_dimensions.push_back(value); return *this; }
162 inline CloudWatchAlarmDefinition& AddDimensions(MetricDimension&& value) { m_dimensionsHasBeenSet = true; m_dimensions.push_back(std::move(value)); return *this; }
164 private:
165
166 ComparisonOperator m_comparisonOperator;
167 bool m_comparisonOperatorHasBeenSet = false;
168
169 int m_evaluationPeriods;
170 bool m_evaluationPeriodsHasBeenSet = false;
171
172 Aws::String m_metricName;
173 bool m_metricNameHasBeenSet = false;
174
175 Aws::String m_namespace;
176 bool m_namespaceHasBeenSet = false;
177
178 int m_period;
179 bool m_periodHasBeenSet = false;
180
181 Statistic m_statistic;
182 bool m_statisticHasBeenSet = false;
183
184 double m_threshold;
185 bool m_thresholdHasBeenSet = false;
186
187 Unit m_unit;
188 bool m_unitHasBeenSet = false;
189
190 Aws::Vector<MetricDimension> m_dimensions;
191 bool m_dimensionsHasBeenSet = false;
192 };
193
194} // namespace Model
195} // namespace EMR
196} // namespace Aws
CloudWatchAlarmDefinition & WithPeriod(int value)
CloudWatchAlarmDefinition & WithDimensions(Aws::Vector< MetricDimension > &&value)
CloudWatchAlarmDefinition & WithDimensions(const Aws::Vector< MetricDimension > &value)
CloudWatchAlarmDefinition & WithStatistic(Statistic &&value)
CloudWatchAlarmDefinition & WithStatistic(const Statistic &value)
const Aws::Vector< MetricDimension > & GetDimensions() const
CloudWatchAlarmDefinition & WithMetricName(const char *value)
CloudWatchAlarmDefinition & WithUnit(const Unit &value)
void SetDimensions(Aws::Vector< MetricDimension > &&value)
CloudWatchAlarmDefinition & WithComparisonOperator(ComparisonOperator &&value)
CloudWatchAlarmDefinition & AddDimensions(MetricDimension &&value)
void SetComparisonOperator(const ComparisonOperator &value)
CloudWatchAlarmDefinition & WithEvaluationPeriods(int value)
CloudWatchAlarmDefinition & WithUnit(Unit &&value)
CloudWatchAlarmDefinition & WithComparisonOperator(const ComparisonOperator &value)
AWS_EMR_API CloudWatchAlarmDefinition & operator=(Aws::Utils::Json::JsonView jsonValue)
const ComparisonOperator & GetComparisonOperator() const
CloudWatchAlarmDefinition & WithMetricName(Aws::String &&value)
CloudWatchAlarmDefinition & WithMetricName(const Aws::String &value)
void SetDimensions(const Aws::Vector< MetricDimension > &value)
void SetComparisonOperator(ComparisonOperator &&value)
CloudWatchAlarmDefinition & WithNamespace(const Aws::String &value)
AWS_EMR_API Aws::Utils::Json::JsonValue Jsonize() const
CloudWatchAlarmDefinition & WithNamespace(const char *value)
AWS_EMR_API CloudWatchAlarmDefinition(Aws::Utils::Json::JsonView jsonValue)
CloudWatchAlarmDefinition & WithNamespace(Aws::String &&value)
CloudWatchAlarmDefinition & AddDimensions(const MetricDimension &value)
CloudWatchAlarmDefinition & WithThreshold(double value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue