AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
MetricInfo.h
1
6#pragma once
7#include <aws/service-quotas/ServiceQuotas_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 ServiceQuotas
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_SERVICEQUOTAS_API MetricInfo() = default;
37 AWS_SERVICEQUOTAS_API MetricInfo(Aws::Utils::Json::JsonView jsonValue);
38 AWS_SERVICEQUOTAS_API MetricInfo& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_SERVICEQUOTAS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetMetricNamespace() const { return m_metricNamespace; }
47 inline bool MetricNamespaceHasBeenSet() const { return m_metricNamespaceHasBeenSet; }
48 template<typename MetricNamespaceT = Aws::String>
49 void SetMetricNamespace(MetricNamespaceT&& value) { m_metricNamespaceHasBeenSet = true; m_metricNamespace = std::forward<MetricNamespaceT>(value); }
50 template<typename MetricNamespaceT = Aws::String>
51 MetricInfo& WithMetricNamespace(MetricNamespaceT&& value) { SetMetricNamespace(std::forward<MetricNamespaceT>(value)); return *this;}
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) { m_metricNameHasBeenSet = true; m_metricName = std::forward<MetricNameT>(value); }
62 template<typename MetricNameT = Aws::String>
63 MetricInfo& WithMetricName(MetricNameT&& value) { SetMetricName(std::forward<MetricNameT>(value)); return *this;}
65
67
71 inline const Aws::Map<Aws::String, Aws::String>& GetMetricDimensions() const { return m_metricDimensions; }
72 inline bool MetricDimensionsHasBeenSet() const { return m_metricDimensionsHasBeenSet; }
73 template<typename MetricDimensionsT = Aws::Map<Aws::String, Aws::String>>
74 void SetMetricDimensions(MetricDimensionsT&& value) { m_metricDimensionsHasBeenSet = true; m_metricDimensions = std::forward<MetricDimensionsT>(value); }
75 template<typename MetricDimensionsT = Aws::Map<Aws::String, Aws::String>>
76 MetricInfo& WithMetricDimensions(MetricDimensionsT&& value) { SetMetricDimensions(std::forward<MetricDimensionsT>(value)); return *this;}
77 template<typename MetricDimensionsKeyT = Aws::String, typename MetricDimensionsValueT = Aws::String>
78 MetricInfo& AddMetricDimensions(MetricDimensionsKeyT&& key, MetricDimensionsValueT&& value) {
79 m_metricDimensionsHasBeenSet = true; m_metricDimensions.emplace(std::forward<MetricDimensionsKeyT>(key), std::forward<MetricDimensionsValueT>(value)); return *this;
80 }
82
84
88 inline const Aws::String& GetMetricStatisticRecommendation() const { return m_metricStatisticRecommendation; }
89 inline bool MetricStatisticRecommendationHasBeenSet() const { return m_metricStatisticRecommendationHasBeenSet; }
90 template<typename MetricStatisticRecommendationT = Aws::String>
91 void SetMetricStatisticRecommendation(MetricStatisticRecommendationT&& value) { m_metricStatisticRecommendationHasBeenSet = true; m_metricStatisticRecommendation = std::forward<MetricStatisticRecommendationT>(value); }
92 template<typename MetricStatisticRecommendationT = Aws::String>
93 MetricInfo& WithMetricStatisticRecommendation(MetricStatisticRecommendationT&& value) { SetMetricStatisticRecommendation(std::forward<MetricStatisticRecommendationT>(value)); return *this;}
95 private:
96
97 Aws::String m_metricNamespace;
98 bool m_metricNamespaceHasBeenSet = false;
99
100 Aws::String m_metricName;
101 bool m_metricNameHasBeenSet = false;
102
103 Aws::Map<Aws::String, Aws::String> m_metricDimensions;
104 bool m_metricDimensionsHasBeenSet = false;
105
106 Aws::String m_metricStatisticRecommendation;
107 bool m_metricStatisticRecommendationHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace ServiceQuotas
112} // namespace Aws
const Aws::String & GetMetricStatisticRecommendation() const
Definition MetricInfo.h:88
AWS_SERVICEQUOTAS_API Aws::Utils::Json::JsonValue Jsonize() const
MetricInfo & WithMetricNamespace(MetricNamespaceT &&value)
Definition MetricInfo.h:51
void SetMetricName(MetricNameT &&value)
Definition MetricInfo.h:61
MetricInfo & WithMetricDimensions(MetricDimensionsT &&value)
Definition MetricInfo.h:76
MetricInfo & WithMetricStatisticRecommendation(MetricStatisticRecommendationT &&value)
Definition MetricInfo.h:93
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:78
MetricInfo & WithMetricName(MetricNameT &&value)
Definition MetricInfo.h:63
void SetMetricNamespace(MetricNamespaceT &&value)
Definition MetricInfo.h:49
void SetMetricDimensions(MetricDimensionsT &&value)
Definition MetricInfo.h:74
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:71
const Aws::String & GetMetricNamespace() const
Definition MetricInfo.h:46
bool MetricStatisticRecommendationHasBeenSet() const
Definition MetricInfo.h:89
void SetMetricStatisticRecommendation(MetricStatisticRecommendationT &&value)
Definition MetricInfo.h:91
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