AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
ResponseResourceMetricKey.h
1
6#pragma once
7#include <aws/pi/PI_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace PI
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_PI_API ResponseResourceMetricKey() = default;
40
41
43
64 inline const Aws::String& GetMetric() const { return m_metric; }
65 inline bool MetricHasBeenSet() const { return m_metricHasBeenSet; }
66 template<typename MetricT = Aws::String>
67 void SetMetric(MetricT&& value) { m_metricHasBeenSet = true; m_metric = std::forward<MetricT>(value); }
68 template<typename MetricT = Aws::String>
69 ResponseResourceMetricKey& WithMetric(MetricT&& value) { SetMetric(std::forward<MetricT>(value)); return *this;}
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) { m_dimensionsHasBeenSet = true; m_dimensions = std::forward<DimensionsT>(value); }
80 template<typename DimensionsT = Aws::Map<Aws::String, Aws::String>>
81 ResponseResourceMetricKey& WithDimensions(DimensionsT&& value) { SetDimensions(std::forward<DimensionsT>(value)); return *this;}
82 template<typename DimensionsKeyT = Aws::String, typename DimensionsValueT = Aws::String>
83 ResponseResourceMetricKey& AddDimensions(DimensionsKeyT&& key, DimensionsValueT&& value) {
84 m_dimensionsHasBeenSet = true; m_dimensions.emplace(std::forward<DimensionsKeyT>(key), std::forward<DimensionsValueT>(value)); return *this;
85 }
87 private:
88
89 Aws::String m_metric;
90 bool m_metricHasBeenSet = false;
91
93 bool m_dimensionsHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace PI
98} // 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