AWS SDK for C++  1.9.20
AWS SDK for C++
CloudWatchAlarmDefinition.h
Go to the documentation of this file.
1 
6 #pragma once
14 #include <utility>
15 
16 namespace Aws
17 {
18 namespace Utils
19 {
20 namespace Json
21 {
22  class JsonValue;
23  class JsonView;
24 } // namespace Json
25 } // namespace Utils
26 namespace EMR
27 {
28 namespace Model
29 {
30 
39  {
40  public:
45 
46 
51  inline const ComparisonOperator& GetComparisonOperator() const{ return m_comparisonOperator; }
52 
57  inline bool ComparisonOperatorHasBeenSet() const { return m_comparisonOperatorHasBeenSet; }
58 
63  inline void SetComparisonOperator(const ComparisonOperator& value) { m_comparisonOperatorHasBeenSet = true; m_comparisonOperator = value; }
64 
69  inline void SetComparisonOperator(ComparisonOperator&& value) { m_comparisonOperatorHasBeenSet = true; m_comparisonOperator = std::move(value); }
70 
75  inline CloudWatchAlarmDefinition& WithComparisonOperator(const ComparisonOperator& value) { SetComparisonOperator(value); return *this;}
76 
81  inline CloudWatchAlarmDefinition& WithComparisonOperator(ComparisonOperator&& value) { SetComparisonOperator(std::move(value)); return *this;}
82 
83 
89  inline int GetEvaluationPeriods() const{ return m_evaluationPeriods; }
90 
96  inline bool EvaluationPeriodsHasBeenSet() const { return m_evaluationPeriodsHasBeenSet; }
97 
103  inline void SetEvaluationPeriods(int value) { m_evaluationPeriodsHasBeenSet = true; m_evaluationPeriods = value; }
104 
110  inline CloudWatchAlarmDefinition& WithEvaluationPeriods(int value) { SetEvaluationPeriods(value); return *this;}
111 
112 
117  inline const Aws::String& GetMetricName() const{ return m_metricName; }
118 
123  inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
124 
129  inline void SetMetricName(const Aws::String& value) { m_metricNameHasBeenSet = true; m_metricName = value; }
130 
135  inline void SetMetricName(Aws::String&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); }
136 
141  inline void SetMetricName(const char* value) { m_metricNameHasBeenSet = true; m_metricName.assign(value); }
142 
147  inline CloudWatchAlarmDefinition& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;}
148 
153  inline CloudWatchAlarmDefinition& WithMetricName(Aws::String&& value) { SetMetricName(std::move(value)); return *this;}
154 
159  inline CloudWatchAlarmDefinition& WithMetricName(const char* value) { SetMetricName(value); return *this;}
160 
161 
166  inline const Aws::String& GetNamespace() const{ return m_namespace; }
167 
172  inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
173 
178  inline void SetNamespace(const Aws::String& value) { m_namespaceHasBeenSet = true; m_namespace = value; }
179 
184  inline void SetNamespace(Aws::String&& value) { m_namespaceHasBeenSet = true; m_namespace = std::move(value); }
185 
190  inline void SetNamespace(const char* value) { m_namespaceHasBeenSet = true; m_namespace.assign(value); }
191 
196  inline CloudWatchAlarmDefinition& WithNamespace(const Aws::String& value) { SetNamespace(value); return *this;}
197 
202  inline CloudWatchAlarmDefinition& WithNamespace(Aws::String&& value) { SetNamespace(std::move(value)); return *this;}
203 
208  inline CloudWatchAlarmDefinition& WithNamespace(const char* value) { SetNamespace(value); return *this;}
209 
210 
216  inline int GetPeriod() const{ return m_period; }
217 
223  inline bool PeriodHasBeenSet() const { return m_periodHasBeenSet; }
224 
230  inline void SetPeriod(int value) { m_periodHasBeenSet = true; m_period = value; }
231 
237  inline CloudWatchAlarmDefinition& WithPeriod(int value) { SetPeriod(value); return *this;}
238 
239 
244  inline const Statistic& GetStatistic() const{ return m_statistic; }
245 
250  inline bool StatisticHasBeenSet() const { return m_statisticHasBeenSet; }
251 
256  inline void SetStatistic(const Statistic& value) { m_statisticHasBeenSet = true; m_statistic = value; }
257 
262  inline void SetStatistic(Statistic&& value) { m_statisticHasBeenSet = true; m_statistic = std::move(value); }
263 
268  inline CloudWatchAlarmDefinition& WithStatistic(const Statistic& value) { SetStatistic(value); return *this;}
269 
274  inline CloudWatchAlarmDefinition& WithStatistic(Statistic&& value) { SetStatistic(std::move(value)); return *this;}
275 
276 
280  inline double GetThreshold() const{ return m_threshold; }
281 
285  inline bool ThresholdHasBeenSet() const { return m_thresholdHasBeenSet; }
286 
290  inline void SetThreshold(double value) { m_thresholdHasBeenSet = true; m_threshold = value; }
291 
295  inline CloudWatchAlarmDefinition& WithThreshold(double value) { SetThreshold(value); return *this;}
296 
297 
303  inline const Unit& GetUnit() const{ return m_unit; }
304 
310  inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
311 
317  inline void SetUnit(const Unit& value) { m_unitHasBeenSet = true; m_unit = value; }
318 
324  inline void SetUnit(Unit&& value) { m_unitHasBeenSet = true; m_unit = std::move(value); }
325 
331  inline CloudWatchAlarmDefinition& WithUnit(const Unit& value) { SetUnit(value); return *this;}
332 
338  inline CloudWatchAlarmDefinition& WithUnit(Unit&& value) { SetUnit(std::move(value)); return *this;}
339 
340 
344  inline const Aws::Vector<MetricDimension>& GetDimensions() const{ return m_dimensions; }
345 
349  inline bool DimensionsHasBeenSet() const { return m_dimensionsHasBeenSet; }
350 
354  inline void SetDimensions(const Aws::Vector<MetricDimension>& value) { m_dimensionsHasBeenSet = true; m_dimensions = value; }
355 
359  inline void SetDimensions(Aws::Vector<MetricDimension>&& value) { m_dimensionsHasBeenSet = true; m_dimensions = std::move(value); }
360 
364  inline CloudWatchAlarmDefinition& WithDimensions(const Aws::Vector<MetricDimension>& value) { SetDimensions(value); return *this;}
365 
369  inline CloudWatchAlarmDefinition& WithDimensions(Aws::Vector<MetricDimension>&& value) { SetDimensions(std::move(value)); return *this;}
370 
374  inline CloudWatchAlarmDefinition& AddDimensions(const MetricDimension& value) { m_dimensionsHasBeenSet = true; m_dimensions.push_back(value); return *this; }
375 
379  inline CloudWatchAlarmDefinition& AddDimensions(MetricDimension&& value) { m_dimensionsHasBeenSet = true; m_dimensions.push_back(std::move(value)); return *this; }
380 
381  private:
382 
383  ComparisonOperator m_comparisonOperator;
384  bool m_comparisonOperatorHasBeenSet;
385 
386  int m_evaluationPeriods;
387  bool m_evaluationPeriodsHasBeenSet;
388 
389  Aws::String m_metricName;
390  bool m_metricNameHasBeenSet;
391 
392  Aws::String m_namespace;
393  bool m_namespaceHasBeenSet;
394 
395  int m_period;
396  bool m_periodHasBeenSet;
397 
398  Statistic m_statistic;
399  bool m_statisticHasBeenSet;
400 
401  double m_threshold;
402  bool m_thresholdHasBeenSet;
403 
404  Unit m_unit;
405  bool m_unitHasBeenSet;
406 
407  Aws::Vector<MetricDimension> m_dimensions;
408  bool m_dimensionsHasBeenSet;
409  };
410 
411 } // namespace Model
412 } // namespace EMR
413 } // namespace Aws
Aws::EMR::Model::CloudWatchAlarmDefinition::SetComparisonOperator
void SetComparisonOperator(ComparisonOperator &&value)
Definition: CloudWatchAlarmDefinition.h:69
Aws::EMR::Model::CloudWatchAlarmDefinition::SetNamespace
void SetNamespace(Aws::String &&value)
Definition: CloudWatchAlarmDefinition.h:184
Aws::EMR::Model::CloudWatchAlarmDefinition::WithNamespace
CloudWatchAlarmDefinition & WithNamespace(Aws::String &&value)
Definition: CloudWatchAlarmDefinition.h:202
Aws::EMR::Model::CloudWatchAlarmDefinition::SetStatistic
void SetStatistic(const Statistic &value)
Definition: CloudWatchAlarmDefinition.h:256
Aws::EMR::Model::CloudWatchAlarmDefinition::WithNamespace
CloudWatchAlarmDefinition & WithNamespace(const Aws::String &value)
Definition: CloudWatchAlarmDefinition.h:196
Aws::EMR::Model::CloudWatchAlarmDefinition::SetDimensions
void SetDimensions(const Aws::Vector< MetricDimension > &value)
Definition: CloudWatchAlarmDefinition.h:354
Aws::EMR::Model::CloudWatchAlarmDefinition::GetStatistic
const Statistic & GetStatistic() const
Definition: CloudWatchAlarmDefinition.h:244
EMR_EXPORTS.h
Aws::EMR::Model::CloudWatchAlarmDefinition::StatisticHasBeenSet
bool StatisticHasBeenSet() const
Definition: CloudWatchAlarmDefinition.h:250
Aws::EMR::Model::CloudWatchAlarmDefinition::WithMetricName
CloudWatchAlarmDefinition & WithMetricName(const char *value)
Definition: CloudWatchAlarmDefinition.h:159
Aws::EMR::Model::CloudWatchAlarmDefinition::SetEvaluationPeriods
void SetEvaluationPeriods(int value)
Definition: CloudWatchAlarmDefinition.h:103
Aws::EMR::Model::CloudWatchAlarmDefinition::SetUnit
void SetUnit(Unit &&value)
Definition: CloudWatchAlarmDefinition.h:324
Unit.h
Aws::EMR::Model::CloudWatchAlarmDefinition::SetMetricName
void SetMetricName(Aws::String &&value)
Definition: CloudWatchAlarmDefinition.h:135
Aws::EMR::Model::CloudWatchAlarmDefinition::SetPeriod
void SetPeriod(int value)
Definition: CloudWatchAlarmDefinition.h:230
Aws::EMR::Model::CloudWatchAlarmDefinition::WithDimensions
CloudWatchAlarmDefinition & WithDimensions(Aws::Vector< MetricDimension > &&value)
Definition: CloudWatchAlarmDefinition.h:369
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EMR::Model::CloudWatchAlarmDefinition::UnitHasBeenSet
bool UnitHasBeenSet() const
Definition: CloudWatchAlarmDefinition.h:310
AWSVector.h
Aws::EMR::Model::CloudWatchAlarmDefinition::GetThreshold
double GetThreshold() const
Definition: CloudWatchAlarmDefinition.h:280
Aws::EMR::Model::CloudWatchAlarmDefinition::DimensionsHasBeenSet
bool DimensionsHasBeenSet() const
Definition: CloudWatchAlarmDefinition.h:349
Aws::EMR::Model::CloudWatchAlarmDefinition::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::EMR::Model::CloudWatchAlarmDefinition::SetMetricName
void SetMetricName(const char *value)
Definition: CloudWatchAlarmDefinition.h:141
Aws::EMR::Model::CloudWatchAlarmDefinition::GetEvaluationPeriods
int GetEvaluationPeriods() const
Definition: CloudWatchAlarmDefinition.h:89
ComparisonOperator.h
Aws::EMR::Model::CloudWatchAlarmDefinition::WithPeriod
CloudWatchAlarmDefinition & WithPeriod(int value)
Definition: CloudWatchAlarmDefinition.h:237
Aws::EMR::Model::Statistic
Statistic
Definition: Statistic.h:17
Aws::EMR::Model::CloudWatchAlarmDefinition::MetricNameHasBeenSet
bool MetricNameHasBeenSet() const
Definition: CloudWatchAlarmDefinition.h:123
Aws::EMR::Model::CloudWatchAlarmDefinition::WithDimensions
CloudWatchAlarmDefinition & WithDimensions(const Aws::Vector< MetricDimension > &value)
Definition: CloudWatchAlarmDefinition.h:364
Aws::EMR::Model::CloudWatchAlarmDefinition::GetUnit
const Unit & GetUnit() const
Definition: CloudWatchAlarmDefinition.h:303
Aws::EMR::Model::CloudWatchAlarmDefinition::WithNamespace
CloudWatchAlarmDefinition & WithNamespace(const char *value)
Definition: CloudWatchAlarmDefinition.h:208
Aws::EMR::Model::CloudWatchAlarmDefinition::AddDimensions
CloudWatchAlarmDefinition & AddDimensions(MetricDimension &&value)
Definition: CloudWatchAlarmDefinition.h:379
Aws::EMR::Model::CloudWatchAlarmDefinition::CloudWatchAlarmDefinition
CloudWatchAlarmDefinition()
Aws::EMR::Model::CloudWatchAlarmDefinition::PeriodHasBeenSet
bool PeriodHasBeenSet() const
Definition: CloudWatchAlarmDefinition.h:223
Aws::EMR::Model::CloudWatchAlarmDefinition::WithUnit
CloudWatchAlarmDefinition & WithUnit(Unit &&value)
Definition: CloudWatchAlarmDefinition.h:338
Aws::EMR::Model::CloudWatchAlarmDefinition::SetStatistic
void SetStatistic(Statistic &&value)
Definition: CloudWatchAlarmDefinition.h:262
MetricDimension.h
Aws::EMR::Model::CloudWatchAlarmDefinition::SetUnit
void SetUnit(const Unit &value)
Definition: CloudWatchAlarmDefinition.h:317
Aws::EMR::Model::ExecutionEngineType::NOT_SET
@ NOT_SET
Aws::EMR::Model::CloudWatchAlarmDefinition::WithMetricName
CloudWatchAlarmDefinition & WithMetricName(Aws::String &&value)
Definition: CloudWatchAlarmDefinition.h:153
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::EMR::Model::CloudWatchAlarmDefinition::SetDimensions
void SetDimensions(Aws::Vector< MetricDimension > &&value)
Definition: CloudWatchAlarmDefinition.h:359
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::EMR::Model::CloudWatchAlarmDefinition::WithComparisonOperator
CloudWatchAlarmDefinition & WithComparisonOperator(ComparisonOperator &&value)
Definition: CloudWatchAlarmDefinition.h:81
Aws::EMR::Model::CloudWatchAlarmDefinition::WithStatistic
CloudWatchAlarmDefinition & WithStatistic(const Statistic &value)
Definition: CloudWatchAlarmDefinition.h:268
Aws::EMR::Model::CloudWatchAlarmDefinition::WithEvaluationPeriods
CloudWatchAlarmDefinition & WithEvaluationPeriods(int value)
Definition: CloudWatchAlarmDefinition.h:110
Aws::EMR::Model::CloudWatchAlarmDefinition::AddDimensions
CloudWatchAlarmDefinition & AddDimensions(const MetricDimension &value)
Definition: CloudWatchAlarmDefinition.h:374
Aws::EMR::Model::CloudWatchAlarmDefinition::WithUnit
CloudWatchAlarmDefinition & WithUnit(const Unit &value)
Definition: CloudWatchAlarmDefinition.h:331
Aws::EMR::Model::CloudWatchAlarmDefinition::CloudWatchAlarmDefinition
CloudWatchAlarmDefinition(Aws::Utils::Json::JsonView jsonValue)
Aws::EMR::Model::CloudWatchAlarmDefinition
Definition: CloudWatchAlarmDefinition.h:39
Aws::EMR::Model::CloudWatchAlarmDefinition::WithThreshold
CloudWatchAlarmDefinition & WithThreshold(double value)
Definition: CloudWatchAlarmDefinition.h:295
Aws::EMR::Model::CloudWatchAlarmDefinition::ThresholdHasBeenSet
bool ThresholdHasBeenSet() const
Definition: CloudWatchAlarmDefinition.h:285
Aws::EMR::Model::ComparisonOperator
ComparisonOperator
Definition: ComparisonOperator.h:17
Statistic.h
Aws
Definition: AccessManagementClient.h:15
Aws::EMR::Model::CloudWatchAlarmDefinition::SetNamespace
void SetNamespace(const Aws::String &value)
Definition: CloudWatchAlarmDefinition.h:178
Aws::EMR::Model::CloudWatchAlarmDefinition::SetComparisonOperator
void SetComparisonOperator(const ComparisonOperator &value)
Definition: CloudWatchAlarmDefinition.h:63
Aws::EMR::Model::CloudWatchAlarmDefinition::GetComparisonOperator
const ComparisonOperator & GetComparisonOperator() const
Definition: CloudWatchAlarmDefinition.h:51
Aws::EMR::Model::CloudWatchAlarmDefinition::WithComparisonOperator
CloudWatchAlarmDefinition & WithComparisonOperator(const ComparisonOperator &value)
Definition: CloudWatchAlarmDefinition.h:75
Aws::EMR::Model::CloudWatchAlarmDefinition::EvaluationPeriodsHasBeenSet
bool EvaluationPeriodsHasBeenSet() const
Definition: CloudWatchAlarmDefinition.h:96
Aws::EMR::Model::CloudWatchAlarmDefinition::SetThreshold
void SetThreshold(double value)
Definition: CloudWatchAlarmDefinition.h:290
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EMR::Model::MetricDimension
Definition: MetricDimension.h:37
Aws::EMR::Model::CloudWatchAlarmDefinition::NamespaceHasBeenSet
bool NamespaceHasBeenSet() const
Definition: CloudWatchAlarmDefinition.h:172
Aws::EMR::Model::CloudWatchAlarmDefinition::GetPeriod
int GetPeriod() const
Definition: CloudWatchAlarmDefinition.h:216
Aws::EMR::Model::Unit
Unit
Definition: Unit.h:17
Aws::EMR::Model::CloudWatchAlarmDefinition::GetDimensions
const Aws::Vector< MetricDimension > & GetDimensions() const
Definition: CloudWatchAlarmDefinition.h:344
Aws::EMR::Model::CloudWatchAlarmDefinition::ComparisonOperatorHasBeenSet
bool ComparisonOperatorHasBeenSet() const
Definition: CloudWatchAlarmDefinition.h:57
Aws::EMR::Model::CloudWatchAlarmDefinition::GetNamespace
const Aws::String & GetNamespace() const
Definition: CloudWatchAlarmDefinition.h:166
Aws::EMR::Model::CloudWatchAlarmDefinition::operator=
CloudWatchAlarmDefinition & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::EMR::Model::CloudWatchAlarmDefinition::SetNamespace
void SetNamespace(const char *value)
Definition: CloudWatchAlarmDefinition.h:190
Aws::EMR::Model::CloudWatchAlarmDefinition::GetMetricName
const Aws::String & GetMetricName() const
Definition: CloudWatchAlarmDefinition.h:117
Aws::EMR::Model::CloudWatchAlarmDefinition::WithStatistic
CloudWatchAlarmDefinition & WithStatistic(Statistic &&value)
Definition: CloudWatchAlarmDefinition.h:274
Aws::EMR::Model::CloudWatchAlarmDefinition::SetMetricName
void SetMetricName(const Aws::String &value)
Definition: CloudWatchAlarmDefinition.h:129
AWS_EMR_API
#define AWS_EMR_API
Definition: EMR_EXPORTS.h:28
Aws::EMR::Model::CloudWatchAlarmDefinition::WithMetricName
CloudWatchAlarmDefinition & WithMetricName(const Aws::String &value)
Definition: CloudWatchAlarmDefinition.h:147