AWS SDK for C++  0.14.3
AWS SDK for C++
MetricTransformation.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
18 
19 namespace Aws
20 {
21 namespace Utils
22 {
23 namespace Json
24 {
25  class JsonValue;
26 } // namespace Json
27 } // namespace Utils
28 namespace CloudWatchLogs
29 {
30 namespace Model
31 {
32 
34  {
35  public:
38  MetricTransformation& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
39  Aws::Utils::Json::JsonValue Jsonize() const;
40 
44  inline const Aws::String& GetMetricName() const{ return m_metricName; }
45 
49  inline void SetMetricName(const Aws::String& value) { m_metricNameHasBeenSet = true; m_metricName = value; }
50 
54  inline void SetMetricName(Aws::String&& value) { m_metricNameHasBeenSet = true; m_metricName = value; }
55 
59  inline void SetMetricName(const char* value) { m_metricNameHasBeenSet = true; m_metricName.assign(value); }
60 
64  inline MetricTransformation& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;}
65 
69  inline MetricTransformation& WithMetricName(Aws::String&& value) { SetMetricName(value); return *this;}
70 
74  inline MetricTransformation& WithMetricName(const char* value) { SetMetricName(value); return *this;}
75 
79  inline const Aws::String& GetMetricNamespace() const{ return m_metricNamespace; }
80 
84  inline void SetMetricNamespace(const Aws::String& value) { m_metricNamespaceHasBeenSet = true; m_metricNamespace = value; }
85 
89  inline void SetMetricNamespace(Aws::String&& value) { m_metricNamespaceHasBeenSet = true; m_metricNamespace = value; }
90 
94  inline void SetMetricNamespace(const char* value) { m_metricNamespaceHasBeenSet = true; m_metricNamespace.assign(value); }
95 
99  inline MetricTransformation& WithMetricNamespace(const Aws::String& value) { SetMetricNamespace(value); return *this;}
100 
104  inline MetricTransformation& WithMetricNamespace(Aws::String&& value) { SetMetricNamespace(value); return *this;}
105 
109  inline MetricTransformation& WithMetricNamespace(const char* value) { SetMetricNamespace(value); return *this;}
110 
115  inline const Aws::String& GetMetricValue() const{ return m_metricValue; }
116 
121  inline void SetMetricValue(const Aws::String& value) { m_metricValueHasBeenSet = true; m_metricValue = value; }
122 
127  inline void SetMetricValue(Aws::String&& value) { m_metricValueHasBeenSet = true; m_metricValue = value; }
128 
133  inline void SetMetricValue(const char* value) { m_metricValueHasBeenSet = true; m_metricValue.assign(value); }
134 
139  inline MetricTransformation& WithMetricValue(const Aws::String& value) { SetMetricValue(value); return *this;}
140 
145  inline MetricTransformation& WithMetricValue(Aws::String&& value) { SetMetricValue(value); return *this;}
146 
151  inline MetricTransformation& WithMetricValue(const char* value) { SetMetricValue(value); return *this;}
152 
157  inline double GetDefaultValue() const{ return m_defaultValue; }
158 
163  inline void SetDefaultValue(double value) { m_defaultValueHasBeenSet = true; m_defaultValue = value; }
164 
169  inline MetricTransformation& WithDefaultValue(double value) { SetDefaultValue(value); return *this;}
170 
171  private:
172  Aws::String m_metricName;
173  bool m_metricNameHasBeenSet;
174  Aws::String m_metricNamespace;
175  bool m_metricNamespaceHasBeenSet;
176  Aws::String m_metricValue;
177  bool m_metricValueHasBeenSet;
178  double m_defaultValue;
179  bool m_defaultValueHasBeenSet;
180  };
181 
182 } // namespace Model
183 } // namespace CloudWatchLogs
184 } // namespace Aws
MetricTransformation & WithMetricValue(const Aws::String &value)
MetricTransformation & WithMetricName(Aws::String &&value)
#define AWS_CLOUDWATCHLOGS_API
MetricTransformation & WithDefaultValue(double value)
MetricTransformation & WithMetricValue(Aws::String &&value)
MetricTransformation & WithMetricValue(const char *value)
MetricTransformation & WithMetricName(const Aws::String &value)
MetricTransformation & WithMetricName(const char *value)
MetricTransformation & WithMetricNamespace(const char *value)
MetricTransformation & WithMetricNamespace(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
MetricTransformation & WithMetricNamespace(Aws::String &&value)
JSON (JavaScript Object Notation).