AWS SDK for C++  0.14.3
AWS SDK for C++
DescribeAlarmsForMetricRequest.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
23 
24 namespace Aws
25 {
26 namespace CloudWatch
27 {
28 namespace Model
29 {
30 
35  {
36  public:
38  Aws::String SerializePayload() const override;
39 
43  inline const Aws::String& GetMetricName() const{ return m_metricName; }
44 
48  inline void SetMetricName(const Aws::String& value) { m_metricNameHasBeenSet = true; m_metricName = value; }
49 
53  inline void SetMetricName(Aws::String&& value) { m_metricNameHasBeenSet = true; m_metricName = value; }
54 
58  inline void SetMetricName(const char* value) { m_metricNameHasBeenSet = true; m_metricName.assign(value); }
59 
63  inline DescribeAlarmsForMetricRequest& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;}
64 
68  inline DescribeAlarmsForMetricRequest& WithMetricName(Aws::String&& value) { SetMetricName(value); return *this;}
69 
73  inline DescribeAlarmsForMetricRequest& WithMetricName(const char* value) { SetMetricName(value); return *this;}
74 
78  inline const Aws::String& GetNamespace() const{ return m_namespace; }
79 
83  inline void SetNamespace(const Aws::String& value) { m_namespaceHasBeenSet = true; m_namespace = value; }
84 
88  inline void SetNamespace(Aws::String&& value) { m_namespaceHasBeenSet = true; m_namespace = value; }
89 
93  inline void SetNamespace(const char* value) { m_namespaceHasBeenSet = true; m_namespace.assign(value); }
94 
98  inline DescribeAlarmsForMetricRequest& WithNamespace(const Aws::String& value) { SetNamespace(value); return *this;}
99 
103  inline DescribeAlarmsForMetricRequest& WithNamespace(Aws::String&& value) { SetNamespace(value); return *this;}
104 
108  inline DescribeAlarmsForMetricRequest& WithNamespace(const char* value) { SetNamespace(value); return *this;}
109 
113  inline const Statistic& GetStatistic() const{ return m_statistic; }
114 
118  inline void SetStatistic(const Statistic& value) { m_statisticHasBeenSet = true; m_statistic = value; }
119 
123  inline void SetStatistic(Statistic&& value) { m_statisticHasBeenSet = true; m_statistic = value; }
124 
128  inline DescribeAlarmsForMetricRequest& WithStatistic(const Statistic& value) { SetStatistic(value); return *this;}
129 
133  inline DescribeAlarmsForMetricRequest& WithStatistic(Statistic&& value) { SetStatistic(value); return *this;}
134 
140  inline const Aws::Vector<Dimension>& GetDimensions() const{ return m_dimensions; }
141 
147  inline void SetDimensions(const Aws::Vector<Dimension>& value) { m_dimensionsHasBeenSet = true; m_dimensions = value; }
148 
154  inline void SetDimensions(Aws::Vector<Dimension>&& value) { m_dimensionsHasBeenSet = true; m_dimensions = value; }
155 
161  inline DescribeAlarmsForMetricRequest& WithDimensions(const Aws::Vector<Dimension>& value) { SetDimensions(value); return *this;}
162 
168  inline DescribeAlarmsForMetricRequest& WithDimensions(Aws::Vector<Dimension>&& value) { SetDimensions(value); return *this;}
169 
175  inline DescribeAlarmsForMetricRequest& AddDimensions(const Dimension& value) { m_dimensionsHasBeenSet = true; m_dimensions.push_back(value); return *this; }
176 
182  inline DescribeAlarmsForMetricRequest& AddDimensions(Dimension&& value) { m_dimensionsHasBeenSet = true; m_dimensions.push_back(value); return *this; }
183 
187  inline int GetPeriod() const{ return m_period; }
188 
192  inline void SetPeriod(int value) { m_periodHasBeenSet = true; m_period = value; }
193 
197  inline DescribeAlarmsForMetricRequest& WithPeriod(int value) { SetPeriod(value); return *this;}
198 
202  inline const StandardUnit& GetUnit() const{ return m_unit; }
203 
207  inline void SetUnit(const StandardUnit& value) { m_unitHasBeenSet = true; m_unit = value; }
208 
212  inline void SetUnit(StandardUnit&& value) { m_unitHasBeenSet = true; m_unit = value; }
213 
217  inline DescribeAlarmsForMetricRequest& WithUnit(const StandardUnit& value) { SetUnit(value); return *this;}
218 
222  inline DescribeAlarmsForMetricRequest& WithUnit(StandardUnit&& value) { SetUnit(value); return *this;}
223 
224  private:
225  Aws::String m_metricName;
226  bool m_metricNameHasBeenSet;
227  Aws::String m_namespace;
228  bool m_namespaceHasBeenSet;
229  Statistic m_statistic;
230  bool m_statisticHasBeenSet;
231  Aws::Vector<Dimension> m_dimensions;
232  bool m_dimensionsHasBeenSet;
233  int m_period;
234  bool m_periodHasBeenSet;
235  StandardUnit m_unit;
236  bool m_unitHasBeenSet;
237  };
238 
239 } // namespace Model
240 } // namespace CloudWatch
241 } // namespace Aws
DescribeAlarmsForMetricRequest & WithNamespace(Aws::String &&value)
DescribeAlarmsForMetricRequest & WithUnit(StandardUnit &&value)
DescribeAlarmsForMetricRequest & AddDimensions(const Dimension &value)
DescribeAlarmsForMetricRequest & AddDimensions(Dimension &&value)
#define AWS_CLOUDWATCH_API
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
DescribeAlarmsForMetricRequest & WithUnit(const StandardUnit &value)
DescribeAlarmsForMetricRequest & WithMetricName(Aws::String &&value)
DescribeAlarmsForMetricRequest & WithMetricName(const char *value)
DescribeAlarmsForMetricRequest & WithDimensions(Aws::Vector< Dimension > &&value)
DescribeAlarmsForMetricRequest & WithStatistic(const Statistic &value)
DescribeAlarmsForMetricRequest & WithDimensions(const Aws::Vector< Dimension > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
DescribeAlarmsForMetricRequest & WithNamespace(const char *value)
DescribeAlarmsForMetricRequest & WithMetricName(const Aws::String &value)
DescribeAlarmsForMetricRequest & WithStatistic(Statistic &&value)
DescribeAlarmsForMetricRequest & WithNamespace(const Aws::String &value)
JSON (JavaScript Object Notation).