AWS SDK for C++

AWS SDK for C++ Version 1.11.773

Loading...
Searching...
No Matches
MetricInfo.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/service-quotas/ServiceQuotas_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace ServiceQuotas {
21namespace Model {
22
30 public:
31 AWS_SERVICEQUOTAS_API MetricInfo() = default;
32 AWS_SERVICEQUOTAS_API MetricInfo(Aws::Utils::Json::JsonView jsonValue);
33 AWS_SERVICEQUOTAS_API MetricInfo& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_SERVICEQUOTAS_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetMetricNamespace() const { return m_metricNamespace; }
41 inline bool MetricNamespaceHasBeenSet() const { return m_metricNamespaceHasBeenSet; }
42 template <typename MetricNamespaceT = Aws::String>
43 void SetMetricNamespace(MetricNamespaceT&& value) {
44 m_metricNamespaceHasBeenSet = true;
45 m_metricNamespace = std::forward<MetricNamespaceT>(value);
46 }
47 template <typename MetricNamespaceT = Aws::String>
48 MetricInfo& WithMetricNamespace(MetricNamespaceT&& value) {
49 SetMetricNamespace(std::forward<MetricNamespaceT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetMetricName() const { return m_metricName; }
59 inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
60 template <typename MetricNameT = Aws::String>
61 void SetMetricName(MetricNameT&& value) {
62 m_metricNameHasBeenSet = true;
63 m_metricName = std::forward<MetricNameT>(value);
64 }
65 template <typename MetricNameT = Aws::String>
66 MetricInfo& WithMetricName(MetricNameT&& value) {
67 SetMetricName(std::forward<MetricNameT>(value));
68 return *this;
69 }
71
73
77 inline const Aws::Map<Aws::String, Aws::String>& GetMetricDimensions() const { return m_metricDimensions; }
78 inline bool MetricDimensionsHasBeenSet() const { return m_metricDimensionsHasBeenSet; }
79 template <typename MetricDimensionsT = Aws::Map<Aws::String, Aws::String>>
80 void SetMetricDimensions(MetricDimensionsT&& value) {
81 m_metricDimensionsHasBeenSet = true;
82 m_metricDimensions = std::forward<MetricDimensionsT>(value);
83 }
84 template <typename MetricDimensionsT = Aws::Map<Aws::String, Aws::String>>
85 MetricInfo& WithMetricDimensions(MetricDimensionsT&& value) {
86 SetMetricDimensions(std::forward<MetricDimensionsT>(value));
87 return *this;
88 }
89 template <typename MetricDimensionsKeyT = Aws::String, typename MetricDimensionsValueT = Aws::String>
90 MetricInfo& AddMetricDimensions(MetricDimensionsKeyT&& key, MetricDimensionsValueT&& value) {
91 m_metricDimensionsHasBeenSet = true;
92 m_metricDimensions.emplace(std::forward<MetricDimensionsKeyT>(key), std::forward<MetricDimensionsValueT>(value));
93 return *this;
94 }
96
98
102 inline const Aws::String& GetMetricStatisticRecommendation() const { return m_metricStatisticRecommendation; }
103 inline bool MetricStatisticRecommendationHasBeenSet() const { return m_metricStatisticRecommendationHasBeenSet; }
104 template <typename MetricStatisticRecommendationT = Aws::String>
105 void SetMetricStatisticRecommendation(MetricStatisticRecommendationT&& value) {
106 m_metricStatisticRecommendationHasBeenSet = true;
107 m_metricStatisticRecommendation = std::forward<MetricStatisticRecommendationT>(value);
108 }
109 template <typename MetricStatisticRecommendationT = Aws::String>
110 MetricInfo& WithMetricStatisticRecommendation(MetricStatisticRecommendationT&& value) {
111 SetMetricStatisticRecommendation(std::forward<MetricStatisticRecommendationT>(value));
112 return *this;
113 }
115 private:
116 Aws::String m_metricNamespace;
117
118 Aws::String m_metricName;
119
120 Aws::Map<Aws::String, Aws::String> m_metricDimensions;
121
122 Aws::String m_metricStatisticRecommendation;
123 bool m_metricNamespaceHasBeenSet = false;
124 bool m_metricNameHasBeenSet = false;
125 bool m_metricDimensionsHasBeenSet = false;
126 bool m_metricStatisticRecommendationHasBeenSet = false;
127};
128
129} // namespace Model
130} // namespace ServiceQuotas
131} // namespace Aws
const Aws::String & GetMetricStatisticRecommendation() const
Definition MetricInfo.h:102
AWS_SERVICEQUOTAS_API Aws::Utils::Json::JsonValue Jsonize() const
MetricInfo & WithMetricNamespace(MetricNamespaceT &&value)
Definition MetricInfo.h:48
void SetMetricName(MetricNameT &&value)
Definition MetricInfo.h:61
MetricInfo & WithMetricDimensions(MetricDimensionsT &&value)
Definition MetricInfo.h:85
MetricInfo & WithMetricStatisticRecommendation(MetricStatisticRecommendationT &&value)
Definition MetricInfo.h:110
AWS_SERVICEQUOTAS_API MetricInfo(Aws::Utils::Json::JsonView jsonValue)
AWS_SERVICEQUOTAS_API MetricInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
MetricInfo & AddMetricDimensions(MetricDimensionsKeyT &&key, MetricDimensionsValueT &&value)
Definition MetricInfo.h:90
MetricInfo & WithMetricName(MetricNameT &&value)
Definition MetricInfo.h:66
void SetMetricNamespace(MetricNamespaceT &&value)
Definition MetricInfo.h:43
void SetMetricDimensions(MetricDimensionsT &&value)
Definition MetricInfo.h:80
const Aws::String & GetMetricName() const
Definition MetricInfo.h:58
AWS_SERVICEQUOTAS_API MetricInfo()=default
const Aws::Map< Aws::String, Aws::String > & GetMetricDimensions() const
Definition MetricInfo.h:77
const Aws::String & GetMetricNamespace() const
Definition MetricInfo.h:40
bool MetricStatisticRecommendationHasBeenSet() const
Definition MetricInfo.h:103
void SetMetricStatisticRecommendation(MetricStatisticRecommendationT &&value)
Definition MetricInfo.h:105
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