AWS SDK for C++  0.12.9
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 
41 
42  inline const Aws::String& GetMetricName() const{ return m_metricName; }
43 
44 
45  inline void SetMetricName(const Aws::String& value) { m_metricNameHasBeenSet = true; m_metricName = value; }
46 
47 
48  inline void SetMetricName(Aws::String&& value) { m_metricNameHasBeenSet = true; m_metricName = value; }
49 
50 
51  inline void SetMetricName(const char* value) { m_metricNameHasBeenSet = true; m_metricName.assign(value); }
52 
53 
54  inline MetricTransformation& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;}
55 
56 
57  inline MetricTransformation& WithMetricName(Aws::String&& value) { SetMetricName(value); return *this;}
58 
59 
60  inline MetricTransformation& WithMetricName(const char* value) { SetMetricName(value); return *this;}
61 
62 
63  inline const Aws::String& GetMetricNamespace() const{ return m_metricNamespace; }
64 
65 
66  inline void SetMetricNamespace(const Aws::String& value) { m_metricNamespaceHasBeenSet = true; m_metricNamespace = value; }
67 
68 
69  inline void SetMetricNamespace(Aws::String&& value) { m_metricNamespaceHasBeenSet = true; m_metricNamespace = value; }
70 
71 
72  inline void SetMetricNamespace(const char* value) { m_metricNamespaceHasBeenSet = true; m_metricNamespace.assign(value); }
73 
74 
75  inline MetricTransformation& WithMetricNamespace(const Aws::String& value) { SetMetricNamespace(value); return *this;}
76 
77 
78  inline MetricTransformation& WithMetricNamespace(Aws::String&& value) { SetMetricNamespace(value); return *this;}
79 
80 
81  inline MetricTransformation& WithMetricNamespace(const char* value) { SetMetricNamespace(value); return *this;}
82 
83 
84  inline const Aws::String& GetMetricValue() const{ return m_metricValue; }
85 
86 
87  inline void SetMetricValue(const Aws::String& value) { m_metricValueHasBeenSet = true; m_metricValue = value; }
88 
89 
90  inline void SetMetricValue(Aws::String&& value) { m_metricValueHasBeenSet = true; m_metricValue = value; }
91 
92 
93  inline void SetMetricValue(const char* value) { m_metricValueHasBeenSet = true; m_metricValue.assign(value); }
94 
95 
96  inline MetricTransformation& WithMetricValue(const Aws::String& value) { SetMetricValue(value); return *this;}
97 
98 
99  inline MetricTransformation& WithMetricValue(Aws::String&& value) { SetMetricValue(value); return *this;}
100 
101 
102  inline MetricTransformation& WithMetricValue(const char* value) { SetMetricValue(value); return *this;}
103 
104  private:
105  Aws::String m_metricName;
106  bool m_metricNameHasBeenSet;
107  Aws::String m_metricNamespace;
108  bool m_metricNamespaceHasBeenSet;
109  Aws::String m_metricValue;
110  bool m_metricValueHasBeenSet;
111  };
112 
113 } // namespace Model
114 } // namespace CloudWatchLogs
115 } // namespace Aws
MetricTransformation & WithMetricValue(const Aws::String &value)
MetricTransformation & WithMetricName(Aws::String &&value)
#define AWS_CLOUDWATCHLOGS_API
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).