AWS SDK for C++  0.12.9
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 
34  {
35  public:
37  Aws::String SerializePayload() const override;
38 
42  inline const Aws::String& GetMetricName() const{ return m_metricName; }
43 
47  inline void SetMetricName(const Aws::String& value) { m_metricNameHasBeenSet = true; m_metricName = value; }
48 
52  inline void SetMetricName(Aws::String&& value) { m_metricNameHasBeenSet = true; m_metricName = value; }
53 
57  inline void SetMetricName(const char* value) { m_metricNameHasBeenSet = true; m_metricName.assign(value); }
58 
62  inline DescribeAlarmsForMetricRequest& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;}
63 
67  inline DescribeAlarmsForMetricRequest& WithMetricName(Aws::String&& value) { SetMetricName(value); return *this;}
68 
72  inline DescribeAlarmsForMetricRequest& WithMetricName(const char* value) { SetMetricName(value); return *this;}
73 
77  inline const Aws::String& GetNamespace() const{ return m_namespace; }
78 
82  inline void SetNamespace(const Aws::String& value) { m_namespaceHasBeenSet = true; m_namespace = value; }
83 
87  inline void SetNamespace(Aws::String&& value) { m_namespaceHasBeenSet = true; m_namespace = value; }
88 
92  inline void SetNamespace(const char* value) { m_namespaceHasBeenSet = true; m_namespace.assign(value); }
93 
97  inline DescribeAlarmsForMetricRequest& WithNamespace(const Aws::String& value) { SetNamespace(value); return *this;}
98 
102  inline DescribeAlarmsForMetricRequest& WithNamespace(Aws::String&& value) { SetNamespace(value); return *this;}
103 
107  inline DescribeAlarmsForMetricRequest& WithNamespace(const char* value) { SetNamespace(value); return *this;}
108 
112  inline const Statistic& GetStatistic() const{ return m_statistic; }
113 
117  inline void SetStatistic(const Statistic& value) { m_statisticHasBeenSet = true; m_statistic = value; }
118 
122  inline void SetStatistic(Statistic&& value) { m_statisticHasBeenSet = true; m_statistic = value; }
123 
127  inline DescribeAlarmsForMetricRequest& WithStatistic(const Statistic& value) { SetStatistic(value); return *this;}
128 
132  inline DescribeAlarmsForMetricRequest& WithStatistic(Statistic&& value) { SetStatistic(value); return *this;}
133 
139  inline const Aws::Vector<Dimension>& GetDimensions() const{ return m_dimensions; }
140 
146  inline void SetDimensions(const Aws::Vector<Dimension>& value) { m_dimensionsHasBeenSet = true; m_dimensions = value; }
147 
153  inline void SetDimensions(Aws::Vector<Dimension>&& value) { m_dimensionsHasBeenSet = true; m_dimensions = value; }
154 
160  inline DescribeAlarmsForMetricRequest& WithDimensions(const Aws::Vector<Dimension>& value) { SetDimensions(value); return *this;}
161 
167  inline DescribeAlarmsForMetricRequest& WithDimensions(Aws::Vector<Dimension>&& value) { SetDimensions(value); return *this;}
168 
174  inline DescribeAlarmsForMetricRequest& AddDimensions(const Dimension& value) { m_dimensionsHasBeenSet = true; m_dimensions.push_back(value); return *this; }
175 
181  inline DescribeAlarmsForMetricRequest& AddDimensions(Dimension&& value) { m_dimensionsHasBeenSet = true; m_dimensions.push_back(value); return *this; }
182 
186  inline long GetPeriod() const{ return m_period; }
187 
191  inline void SetPeriod(long value) { m_periodHasBeenSet = true; m_period = value; }
192 
196  inline DescribeAlarmsForMetricRequest& WithPeriod(long value) { SetPeriod(value); return *this;}
197 
201  inline const StandardUnit& GetUnit() const{ return m_unit; }
202 
206  inline void SetUnit(const StandardUnit& value) { m_unitHasBeenSet = true; m_unit = value; }
207 
211  inline void SetUnit(StandardUnit&& value) { m_unitHasBeenSet = true; m_unit = value; }
212 
216  inline DescribeAlarmsForMetricRequest& WithUnit(const StandardUnit& value) { SetUnit(value); return *this;}
217 
221  inline DescribeAlarmsForMetricRequest& WithUnit(StandardUnit&& value) { SetUnit(value); return *this;}
222 
223  private:
224  Aws::String m_metricName;
225  bool m_metricNameHasBeenSet;
226  Aws::String m_namespace;
227  bool m_namespaceHasBeenSet;
228  Statistic m_statistic;
229  bool m_statisticHasBeenSet;
230  Aws::Vector<Dimension> m_dimensions;
231  bool m_dimensionsHasBeenSet;
232  long m_period;
233  bool m_periodHasBeenSet;
234  StandardUnit m_unit;
235  bool m_unitHasBeenSet;
236  };
237 
238 } // namespace Model
239 } // namespace CloudWatch
240 } // 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).