AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ResponseResourceMetricKey.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/pi/PI_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace PI {
21namespace Model {
22
30 public:
31 AWS_PI_API ResponseResourceMetricKey() = default;
35
37
58 inline const Aws::String& GetMetric() const { return m_metric; }
59 inline bool MetricHasBeenSet() const { return m_metricHasBeenSet; }
60 template <typename MetricT = Aws::String>
61 void SetMetric(MetricT&& value) {
62 m_metricHasBeenSet = true;
63 m_metric = std::forward<MetricT>(value);
64 }
65 template <typename MetricT = Aws::String>
67 SetMetric(std::forward<MetricT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::Map<Aws::String, Aws::String>& GetDimensions() const { return m_dimensions; }
77 inline bool DimensionsHasBeenSet() const { return m_dimensionsHasBeenSet; }
78 template <typename DimensionsT = Aws::Map<Aws::String, Aws::String>>
79 void SetDimensions(DimensionsT&& value) {
80 m_dimensionsHasBeenSet = true;
81 m_dimensions = std::forward<DimensionsT>(value);
82 }
83 template <typename DimensionsT = Aws::Map<Aws::String, Aws::String>>
85 SetDimensions(std::forward<DimensionsT>(value));
86 return *this;
87 }
88 template <typename DimensionsKeyT = Aws::String, typename DimensionsValueT = Aws::String>
89 ResponseResourceMetricKey& AddDimensions(DimensionsKeyT&& key, DimensionsValueT&& value) {
90 m_dimensionsHasBeenSet = true;
91 m_dimensions.emplace(std::forward<DimensionsKeyT>(key), std::forward<DimensionsValueT>(value));
92 return *this;
93 }
95 private:
96 Aws::String m_metric;
97
99 bool m_metricHasBeenSet = false;
100 bool m_dimensionsHasBeenSet = false;
101};
102
103} // namespace Model
104} // namespace PI
105} // namespace Aws
AWS_PI_API ResponseResourceMetricKey()=default
ResponseResourceMetricKey & WithMetric(MetricT &&value)
const Aws::Map< Aws::String, Aws::String > & GetDimensions() const
AWS_PI_API ResponseResourceMetricKey(Aws::Utils::Json::JsonView jsonValue)
AWS_PI_API ResponseResourceMetricKey & operator=(Aws::Utils::Json::JsonView jsonValue)
ResponseResourceMetricKey & WithDimensions(DimensionsT &&value)
AWS_PI_API Aws::Utils::Json::JsonValue Jsonize() const
ResponseResourceMetricKey & AddDimensions(DimensionsKeyT &&key, DimensionsValueT &&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