AWS SDK for C++  0.12.9
AWS SDK for C++
CloudWatchAlarmConfiguration.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
22 
23 namespace Aws
24 {
25 namespace Utils
26 {
27 namespace Xml
28 {
29  class XmlNode;
30 } // namespace Xml
31 } // namespace Utils
32 namespace Route53
33 {
34 namespace Model
35 {
36 
42  {
43  public:
46  CloudWatchAlarmConfiguration& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
47 
48  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
49 
54  inline long GetEvaluationPeriods() const{ return m_evaluationPeriods; }
55 
60  inline void SetEvaluationPeriods(long value) { m_evaluationPeriodsHasBeenSet = true; m_evaluationPeriods = value; }
61 
66  inline CloudWatchAlarmConfiguration& WithEvaluationPeriods(long value) { SetEvaluationPeriods(value); return *this;}
67 
74  inline double GetThreshold() const{ return m_threshold; }
75 
82  inline void SetThreshold(double value) { m_thresholdHasBeenSet = true; m_threshold = value; }
83 
90  inline CloudWatchAlarmConfiguration& WithThreshold(double value) { SetThreshold(value); return *this;}
91 
98  inline const ComparisonOperator& GetComparisonOperator() const{ return m_comparisonOperator; }
99 
106  inline void SetComparisonOperator(const ComparisonOperator& value) { m_comparisonOperatorHasBeenSet = true; m_comparisonOperator = value; }
107 
114  inline void SetComparisonOperator(ComparisonOperator&& value) { m_comparisonOperatorHasBeenSet = true; m_comparisonOperator = value; }
115 
122  inline CloudWatchAlarmConfiguration& WithComparisonOperator(const ComparisonOperator& value) { SetComparisonOperator(value); return *this;}
123 
130  inline CloudWatchAlarmConfiguration& WithComparisonOperator(ComparisonOperator&& value) { SetComparisonOperator(value); return *this;}
131 
136  inline long GetPeriod() const{ return m_period; }
137 
142  inline void SetPeriod(long value) { m_periodHasBeenSet = true; m_period = value; }
143 
148  inline CloudWatchAlarmConfiguration& WithPeriod(long value) { SetPeriod(value); return *this;}
149 
154  inline const Aws::String& GetMetricName() const{ return m_metricName; }
155 
160  inline void SetMetricName(const Aws::String& value) { m_metricNameHasBeenSet = true; m_metricName = value; }
161 
166  inline void SetMetricName(Aws::String&& value) { m_metricNameHasBeenSet = true; m_metricName = value; }
167 
172  inline void SetMetricName(const char* value) { m_metricNameHasBeenSet = true; m_metricName.assign(value); }
173 
178  inline CloudWatchAlarmConfiguration& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;}
179 
184  inline CloudWatchAlarmConfiguration& WithMetricName(Aws::String&& value) { SetMetricName(value); return *this;}
185 
190  inline CloudWatchAlarmConfiguration& WithMetricName(const char* value) { SetMetricName(value); return *this;}
191 
196  inline const Aws::String& GetNamespace() const{ return m_namespace; }
197 
202  inline void SetNamespace(const Aws::String& value) { m_namespaceHasBeenSet = true; m_namespace = value; }
203 
208  inline void SetNamespace(Aws::String&& value) { m_namespaceHasBeenSet = true; m_namespace = value; }
209 
214  inline void SetNamespace(const char* value) { m_namespaceHasBeenSet = true; m_namespace.assign(value); }
215 
220  inline CloudWatchAlarmConfiguration& WithNamespace(const Aws::String& value) { SetNamespace(value); return *this;}
221 
226  inline CloudWatchAlarmConfiguration& WithNamespace(Aws::String&& value) { SetNamespace(value); return *this;}
227 
232  inline CloudWatchAlarmConfiguration& WithNamespace(const char* value) { SetNamespace(value); return *this;}
233 
240  inline const Statistic& GetStatistic() const{ return m_statistic; }
241 
248  inline void SetStatistic(const Statistic& value) { m_statisticHasBeenSet = true; m_statistic = value; }
249 
256  inline void SetStatistic(Statistic&& value) { m_statisticHasBeenSet = true; m_statistic = value; }
257 
264  inline CloudWatchAlarmConfiguration& WithStatistic(const Statistic& value) { SetStatistic(value); return *this;}
265 
272  inline CloudWatchAlarmConfiguration& WithStatistic(Statistic&& value) { SetStatistic(value); return *this;}
273 
281  inline const Aws::Vector<Dimension>& GetDimensions() const{ return m_dimensions; }
282 
290  inline void SetDimensions(const Aws::Vector<Dimension>& value) { m_dimensionsHasBeenSet = true; m_dimensions = value; }
291 
299  inline void SetDimensions(Aws::Vector<Dimension>&& value) { m_dimensionsHasBeenSet = true; m_dimensions = value; }
300 
308  inline CloudWatchAlarmConfiguration& WithDimensions(const Aws::Vector<Dimension>& value) { SetDimensions(value); return *this;}
309 
317  inline CloudWatchAlarmConfiguration& WithDimensions(Aws::Vector<Dimension>&& value) { SetDimensions(value); return *this;}
318 
326  inline CloudWatchAlarmConfiguration& AddDimensions(const Dimension& value) { m_dimensionsHasBeenSet = true; m_dimensions.push_back(value); return *this; }
327 
335  inline CloudWatchAlarmConfiguration& AddDimensions(Dimension&& value) { m_dimensionsHasBeenSet = true; m_dimensions.push_back(value); return *this; }
336 
337  private:
338  long m_evaluationPeriods;
339  bool m_evaluationPeriodsHasBeenSet;
340  double m_threshold;
341  bool m_thresholdHasBeenSet;
342  ComparisonOperator m_comparisonOperator;
343  bool m_comparisonOperatorHasBeenSet;
344  long m_period;
345  bool m_periodHasBeenSet;
346  Aws::String m_metricName;
347  bool m_metricNameHasBeenSet;
348  Aws::String m_namespace;
349  bool m_namespaceHasBeenSet;
350  Statistic m_statistic;
351  bool m_statisticHasBeenSet;
352  Aws::Vector<Dimension> m_dimensions;
353  bool m_dimensionsHasBeenSet;
354  };
355 
356 } // namespace Model
357 } // namespace Route53
358 } // namespace Aws
const Aws::Vector< Dimension > & GetDimensions() const
CloudWatchAlarmConfiguration & WithNamespace(const char *value)
CloudWatchAlarmConfiguration & WithMetricName(const char *value)
CloudWatchAlarmConfiguration & WithDimensions(Aws::Vector< Dimension > &&value)
CloudWatchAlarmConfiguration & AddDimensions(Dimension &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
CloudWatchAlarmConfiguration & WithPeriod(long value)
CloudWatchAlarmConfiguration & WithStatistic(const Statistic &value)
CloudWatchAlarmConfiguration & WithThreshold(double value)
CloudWatchAlarmConfiguration & WithNamespace(const Aws::String &value)
CloudWatchAlarmConfiguration & WithEvaluationPeriods(long value)
CloudWatchAlarmConfiguration & AddDimensions(const Dimension &value)
CloudWatchAlarmConfiguration & WithComparisonOperator(const ComparisonOperator &value)
void SetComparisonOperator(const ComparisonOperator &value)
CloudWatchAlarmConfiguration & WithMetricName(Aws::String &&value)
CloudWatchAlarmConfiguration & WithComparisonOperator(ComparisonOperator &&value)
#define AWS_ROUTE53_API
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CloudWatchAlarmConfiguration & WithStatistic(Statistic &&value)
CloudWatchAlarmConfiguration & WithDimensions(const Aws::Vector< Dimension > &value)
CloudWatchAlarmConfiguration & WithMetricName(const Aws::String &value)
void SetDimensions(const Aws::Vector< Dimension > &value)
CloudWatchAlarmConfiguration & WithNamespace(Aws::String &&value)
JSON (JavaScript Object Notation).