AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
MetricTransformation.h
1
6#pragma once
7#include <aws/logs/CloudWatchLogs_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/logs/model/StandardUnit.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace CloudWatchLogs
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_CLOUDWATCHLOGS_API MetricTransformation();
38 AWS_CLOUDWATCHLOGS_API MetricTransformation(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CLOUDWATCHLOGS_API MetricTransformation& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetMetricName() const{ return m_metricName; }
48 inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
49 inline void SetMetricName(const Aws::String& value) { m_metricNameHasBeenSet = true; m_metricName = value; }
50 inline void SetMetricName(Aws::String&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); }
51 inline void SetMetricName(const char* value) { m_metricNameHasBeenSet = true; m_metricName.assign(value); }
52 inline MetricTransformation& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;}
53 inline MetricTransformation& WithMetricName(Aws::String&& value) { SetMetricName(std::move(value)); return *this;}
54 inline MetricTransformation& WithMetricName(const char* value) { SetMetricName(value); return *this;}
56
58
63 inline const Aws::String& GetMetricNamespace() const{ return m_metricNamespace; }
64 inline bool MetricNamespaceHasBeenSet() const { return m_metricNamespaceHasBeenSet; }
65 inline void SetMetricNamespace(const Aws::String& value) { m_metricNamespaceHasBeenSet = true; m_metricNamespace = value; }
66 inline void SetMetricNamespace(Aws::String&& value) { m_metricNamespaceHasBeenSet = true; m_metricNamespace = std::move(value); }
67 inline void SetMetricNamespace(const char* value) { m_metricNamespaceHasBeenSet = true; m_metricNamespace.assign(value); }
68 inline MetricTransformation& WithMetricNamespace(const Aws::String& value) { SetMetricNamespace(value); return *this;}
69 inline MetricTransformation& WithMetricNamespace(Aws::String&& value) { SetMetricNamespace(std::move(value)); return *this;}
70 inline MetricTransformation& WithMetricNamespace(const char* value) { SetMetricNamespace(value); return *this;}
72
74
78 inline const Aws::String& GetMetricValue() const{ return m_metricValue; }
79 inline bool MetricValueHasBeenSet() const { return m_metricValueHasBeenSet; }
80 inline void SetMetricValue(const Aws::String& value) { m_metricValueHasBeenSet = true; m_metricValue = value; }
81 inline void SetMetricValue(Aws::String&& value) { m_metricValueHasBeenSet = true; m_metricValue = std::move(value); }
82 inline void SetMetricValue(const char* value) { m_metricValueHasBeenSet = true; m_metricValue.assign(value); }
83 inline MetricTransformation& WithMetricValue(const Aws::String& value) { SetMetricValue(value); return *this;}
84 inline MetricTransformation& WithMetricValue(Aws::String&& value) { SetMetricValue(std::move(value)); return *this;}
85 inline MetricTransformation& WithMetricValue(const char* value) { SetMetricValue(value); return *this;}
87
89
93 inline double GetDefaultValue() const{ return m_defaultValue; }
94 inline bool DefaultValueHasBeenSet() const { return m_defaultValueHasBeenSet; }
95 inline void SetDefaultValue(double value) { m_defaultValueHasBeenSet = true; m_defaultValue = value; }
96 inline MetricTransformation& WithDefaultValue(double value) { SetDefaultValue(value); return *this;}
98
100
116 inline const Aws::Map<Aws::String, Aws::String>& GetDimensions() const{ return m_dimensions; }
117 inline bool DimensionsHasBeenSet() const { return m_dimensionsHasBeenSet; }
118 inline void SetDimensions(const Aws::Map<Aws::String, Aws::String>& value) { m_dimensionsHasBeenSet = true; m_dimensions = value; }
119 inline void SetDimensions(Aws::Map<Aws::String, Aws::String>&& value) { m_dimensionsHasBeenSet = true; m_dimensions = std::move(value); }
121 inline MetricTransformation& WithDimensions(Aws::Map<Aws::String, Aws::String>&& value) { SetDimensions(std::move(value)); return *this;}
122 inline MetricTransformation& AddDimensions(const Aws::String& key, const Aws::String& value) { m_dimensionsHasBeenSet = true; m_dimensions.emplace(key, value); return *this; }
123 inline MetricTransformation& AddDimensions(Aws::String&& key, const Aws::String& value) { m_dimensionsHasBeenSet = true; m_dimensions.emplace(std::move(key), value); return *this; }
124 inline MetricTransformation& AddDimensions(const Aws::String& key, Aws::String&& value) { m_dimensionsHasBeenSet = true; m_dimensions.emplace(key, std::move(value)); return *this; }
125 inline MetricTransformation& AddDimensions(Aws::String&& key, Aws::String&& value) { m_dimensionsHasBeenSet = true; m_dimensions.emplace(std::move(key), std::move(value)); return *this; }
126 inline MetricTransformation& AddDimensions(const char* key, Aws::String&& value) { m_dimensionsHasBeenSet = true; m_dimensions.emplace(key, std::move(value)); return *this; }
127 inline MetricTransformation& AddDimensions(Aws::String&& key, const char* value) { m_dimensionsHasBeenSet = true; m_dimensions.emplace(std::move(key), value); return *this; }
128 inline MetricTransformation& AddDimensions(const char* key, const char* value) { m_dimensionsHasBeenSet = true; m_dimensions.emplace(key, value); return *this; }
130
132
136 inline const StandardUnit& GetUnit() const{ return m_unit; }
137 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
138 inline void SetUnit(const StandardUnit& value) { m_unitHasBeenSet = true; m_unit = value; }
139 inline void SetUnit(StandardUnit&& value) { m_unitHasBeenSet = true; m_unit = std::move(value); }
140 inline MetricTransformation& WithUnit(const StandardUnit& value) { SetUnit(value); return *this;}
141 inline MetricTransformation& WithUnit(StandardUnit&& value) { SetUnit(std::move(value)); return *this;}
143 private:
144
145 Aws::String m_metricName;
146 bool m_metricNameHasBeenSet = false;
147
148 Aws::String m_metricNamespace;
149 bool m_metricNamespaceHasBeenSet = false;
150
151 Aws::String m_metricValue;
152 bool m_metricValueHasBeenSet = false;
153
154 double m_defaultValue;
155 bool m_defaultValueHasBeenSet = false;
156
158 bool m_dimensionsHasBeenSet = false;
159
160 StandardUnit m_unit;
161 bool m_unitHasBeenSet = false;
162 };
163
164} // namespace Model
165} // namespace CloudWatchLogs
166} // namespace Aws
MetricTransformation & WithMetricNamespace(const Aws::String &value)
AWS_CLOUDWATCHLOGS_API MetricTransformation(Aws::Utils::Json::JsonView jsonValue)
MetricTransformation & AddDimensions(const char *key, const char *value)
MetricTransformation & AddDimensions(const char *key, Aws::String &&value)
MetricTransformation & AddDimensions(const Aws::String &key, const Aws::String &value)
MetricTransformation & WithUnit(const StandardUnit &value)
MetricTransformation & AddDimensions(Aws::String &&key, const char *value)
const Aws::Map< Aws::String, Aws::String > & GetDimensions() const
AWS_CLOUDWATCHLOGS_API MetricTransformation & operator=(Aws::Utils::Json::JsonView jsonValue)
MetricTransformation & AddDimensions(Aws::String &&key, Aws::String &&value)
MetricTransformation & WithMetricName(const char *value)
MetricTransformation & AddDimensions(const Aws::String &key, Aws::String &&value)
MetricTransformation & WithMetricValue(Aws::String &&value)
MetricTransformation & WithMetricValue(const Aws::String &value)
MetricTransformation & AddDimensions(Aws::String &&key, const Aws::String &value)
void SetDimensions(const Aws::Map< Aws::String, Aws::String > &value)
AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const
MetricTransformation & WithMetricValue(const char *value)
MetricTransformation & WithMetricNamespace(Aws::String &&value)
MetricTransformation & WithUnit(StandardUnit &&value)
MetricTransformation & WithMetricName(const Aws::String &value)
MetricTransformation & WithMetricNamespace(const char *value)
MetricTransformation & WithDimensions(const Aws::Map< Aws::String, Aws::String > &value)
MetricTransformation & WithMetricName(Aws::String &&value)
void SetDimensions(Aws::Map< Aws::String, Aws::String > &&value)
MetricTransformation & WithDimensions(Aws::Map< Aws::String, Aws::String > &&value)
MetricTransformation & WithDefaultValue(double value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue