AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename MetricNameT = Aws::String>
50 void SetMetricName(MetricNameT&& value) { m_metricNameHasBeenSet = true; m_metricName = std::forward<MetricNameT>(value); }
51 template<typename MetricNameT = Aws::String>
52 MetricTransformation& WithMetricName(MetricNameT&& value) { SetMetricName(std::forward<MetricNameT>(value)); return *this;}
54
56
61 inline const Aws::String& GetMetricNamespace() const { return m_metricNamespace; }
62 inline bool MetricNamespaceHasBeenSet() const { return m_metricNamespaceHasBeenSet; }
63 template<typename MetricNamespaceT = Aws::String>
64 void SetMetricNamespace(MetricNamespaceT&& value) { m_metricNamespaceHasBeenSet = true; m_metricNamespace = std::forward<MetricNamespaceT>(value); }
65 template<typename MetricNamespaceT = Aws::String>
66 MetricTransformation& WithMetricNamespace(MetricNamespaceT&& value) { SetMetricNamespace(std::forward<MetricNamespaceT>(value)); return *this;}
68
70
74 inline const Aws::String& GetMetricValue() const { return m_metricValue; }
75 inline bool MetricValueHasBeenSet() const { return m_metricValueHasBeenSet; }
76 template<typename MetricValueT = Aws::String>
77 void SetMetricValue(MetricValueT&& value) { m_metricValueHasBeenSet = true; m_metricValue = std::forward<MetricValueT>(value); }
78 template<typename MetricValueT = Aws::String>
79 MetricTransformation& WithMetricValue(MetricValueT&& value) { SetMetricValue(std::forward<MetricValueT>(value)); return *this;}
81
83
87 inline double GetDefaultValue() const { return m_defaultValue; }
88 inline bool DefaultValueHasBeenSet() const { return m_defaultValueHasBeenSet; }
89 inline void SetDefaultValue(double value) { m_defaultValueHasBeenSet = true; m_defaultValue = value; }
90 inline MetricTransformation& WithDefaultValue(double value) { SetDefaultValue(value); return *this;}
92
94
110 inline const Aws::Map<Aws::String, Aws::String>& GetDimensions() const { return m_dimensions; }
111 inline bool DimensionsHasBeenSet() const { return m_dimensionsHasBeenSet; }
112 template<typename DimensionsT = Aws::Map<Aws::String, Aws::String>>
113 void SetDimensions(DimensionsT&& value) { m_dimensionsHasBeenSet = true; m_dimensions = std::forward<DimensionsT>(value); }
114 template<typename DimensionsT = Aws::Map<Aws::String, Aws::String>>
115 MetricTransformation& WithDimensions(DimensionsT&& value) { SetDimensions(std::forward<DimensionsT>(value)); return *this;}
116 template<typename DimensionsKeyT = Aws::String, typename DimensionsValueT = Aws::String>
117 MetricTransformation& AddDimensions(DimensionsKeyT&& key, DimensionsValueT&& value) {
118 m_dimensionsHasBeenSet = true; m_dimensions.emplace(std::forward<DimensionsKeyT>(key), std::forward<DimensionsValueT>(value)); return *this;
119 }
121
123
127 inline StandardUnit GetUnit() const { return m_unit; }
128 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
129 inline void SetUnit(StandardUnit value) { m_unitHasBeenSet = true; m_unit = value; }
130 inline MetricTransformation& WithUnit(StandardUnit value) { SetUnit(value); return *this;}
132 private:
133
134 Aws::String m_metricName;
135 bool m_metricNameHasBeenSet = false;
136
137 Aws::String m_metricNamespace;
138 bool m_metricNamespaceHasBeenSet = false;
139
140 Aws::String m_metricValue;
141 bool m_metricValueHasBeenSet = false;
142
143 double m_defaultValue{0.0};
144 bool m_defaultValueHasBeenSet = false;
145
147 bool m_dimensionsHasBeenSet = false;
148
150 bool m_unitHasBeenSet = false;
151 };
152
153} // namespace Model
154} // namespace CloudWatchLogs
155} // namespace Aws
AWS_CLOUDWATCHLOGS_API MetricTransformation(Aws::Utils::Json::JsonView jsonValue)
MetricTransformation & WithMetricValue(MetricValueT &&value)
AWS_CLOUDWATCHLOGS_API MetricTransformation()=default
MetricTransformation & WithMetricNamespace(MetricNamespaceT &&value)
MetricTransformation & WithDimensions(DimensionsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetDimensions() const
AWS_CLOUDWATCHLOGS_API MetricTransformation & operator=(Aws::Utils::Json::JsonView jsonValue)
MetricTransformation & WithMetricName(MetricNameT &&value)
AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const
MetricTransformation & AddDimensions(DimensionsKeyT &&key, DimensionsValueT &&value)
MetricTransformation & WithDefaultValue(double value)
MetricTransformation & WithUnit(StandardUnit 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