AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetMetricNamespace(const Aws::String& value) { m_metricNamespaceHasBeenSet = true; m_metricNamespace = value; }
49 inline void SetMetricNamespace(Aws::String&& value) { m_metricNamespaceHasBeenSet = true; m_metricNamespace = std::move(value); }
50 inline void SetMetricNamespace(const char* value) { m_metricNamespaceHasBeenSet = true; m_metricNamespace.assign(value); }
51 inline MetricInfo& WithMetricNamespace(const Aws::String& value) { SetMetricNamespace(value); return *this;}
52 inline MetricInfo& WithMetricNamespace(Aws::String&& value) { SetMetricNamespace(std::move(value)); return *this;}
53 inline MetricInfo& WithMetricNamespace(const char* value) { SetMetricNamespace(value); return *this;}
55
57
60 inline const Aws::String& GetMetricName() const{ return m_metricName; }
61 inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
62 inline void SetMetricName(const Aws::String& value) { m_metricNameHasBeenSet = true; m_metricName = value; }
63 inline void SetMetricName(Aws::String&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); }
64 inline void SetMetricName(const char* value) { m_metricNameHasBeenSet = true; m_metricName.assign(value); }
65 inline MetricInfo& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;}
66 inline MetricInfo& WithMetricName(Aws::String&& value) { SetMetricName(std::move(value)); return *this;}
67 inline MetricInfo& WithMetricName(const char* value) { SetMetricName(value); return *this;}
69
71
75 inline const Aws::Map<Aws::String, Aws::String>& GetMetricDimensions() const{ return m_metricDimensions; }
76 inline bool MetricDimensionsHasBeenSet() const { return m_metricDimensionsHasBeenSet; }
77 inline void SetMetricDimensions(const Aws::Map<Aws::String, Aws::String>& value) { m_metricDimensionsHasBeenSet = true; m_metricDimensions = value; }
78 inline void SetMetricDimensions(Aws::Map<Aws::String, Aws::String>&& value) { m_metricDimensionsHasBeenSet = true; m_metricDimensions = std::move(value); }
81 inline MetricInfo& AddMetricDimensions(const Aws::String& key, const Aws::String& value) { m_metricDimensionsHasBeenSet = true; m_metricDimensions.emplace(key, value); return *this; }
82 inline MetricInfo& AddMetricDimensions(Aws::String&& key, const Aws::String& value) { m_metricDimensionsHasBeenSet = true; m_metricDimensions.emplace(std::move(key), value); return *this; }
83 inline MetricInfo& AddMetricDimensions(const Aws::String& key, Aws::String&& value) { m_metricDimensionsHasBeenSet = true; m_metricDimensions.emplace(key, std::move(value)); return *this; }
84 inline MetricInfo& AddMetricDimensions(Aws::String&& key, Aws::String&& value) { m_metricDimensionsHasBeenSet = true; m_metricDimensions.emplace(std::move(key), std::move(value)); return *this; }
85 inline MetricInfo& AddMetricDimensions(const char* key, Aws::String&& value) { m_metricDimensionsHasBeenSet = true; m_metricDimensions.emplace(key, std::move(value)); return *this; }
86 inline MetricInfo& AddMetricDimensions(Aws::String&& key, const char* value) { m_metricDimensionsHasBeenSet = true; m_metricDimensions.emplace(std::move(key), value); return *this; }
87 inline MetricInfo& AddMetricDimensions(const char* key, const char* value) { m_metricDimensionsHasBeenSet = true; m_metricDimensions.emplace(key, value); return *this; }
89
91
95 inline const Aws::String& GetMetricStatisticRecommendation() const{ return m_metricStatisticRecommendation; }
96 inline bool MetricStatisticRecommendationHasBeenSet() const { return m_metricStatisticRecommendationHasBeenSet; }
97 inline void SetMetricStatisticRecommendation(const Aws::String& value) { m_metricStatisticRecommendationHasBeenSet = true; m_metricStatisticRecommendation = value; }
98 inline void SetMetricStatisticRecommendation(Aws::String&& value) { m_metricStatisticRecommendationHasBeenSet = true; m_metricStatisticRecommendation = std::move(value); }
99 inline void SetMetricStatisticRecommendation(const char* value) { m_metricStatisticRecommendationHasBeenSet = true; m_metricStatisticRecommendation.assign(value); }
102 inline MetricInfo& WithMetricStatisticRecommendation(const char* value) { SetMetricStatisticRecommendation(value); return *this;}
104 private:
105
106 Aws::String m_metricNamespace;
107 bool m_metricNamespaceHasBeenSet = false;
108
109 Aws::String m_metricName;
110 bool m_metricNameHasBeenSet = false;
111
112 Aws::Map<Aws::String, Aws::String> m_metricDimensions;
113 bool m_metricDimensionsHasBeenSet = false;
114
115 Aws::String m_metricStatisticRecommendation;
116 bool m_metricStatisticRecommendationHasBeenSet = false;
117 };
118
119} // namespace Model
120} // namespace ServiceQuotas
121} // namespace Aws
AWS_SERVICEQUOTAS_API MetricInfo()
const Aws::String & GetMetricStatisticRecommendation() const
Definition MetricInfo.h:95
AWS_SERVICEQUOTAS_API Aws::Utils::Json::JsonValue Jsonize() const
MetricInfo & AddMetricDimensions(const char *key, Aws::String &&value)
Definition MetricInfo.h:85
void SetMetricStatisticRecommendation(Aws::String &&value)
Definition MetricInfo.h:98
MetricInfo & AddMetricDimensions(const Aws::String &key, const Aws::String &value)
Definition MetricInfo.h:81
MetricInfo & WithMetricDimensions(const Aws::Map< Aws::String, Aws::String > &value)
Definition MetricInfo.h:79
MetricInfo & WithMetricStatisticRecommendation(Aws::String &&value)
Definition MetricInfo.h:101
void SetMetricNamespace(const char *value)
Definition MetricInfo.h:50
void SetMetricStatisticRecommendation(const Aws::String &value)
Definition MetricInfo.h:97
void SetMetricNamespace(const Aws::String &value)
Definition MetricInfo.h:48
AWS_SERVICEQUOTAS_API MetricInfo(Aws::Utils::Json::JsonView jsonValue)
AWS_SERVICEQUOTAS_API MetricInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetMetricName(const char *value)
Definition MetricInfo.h:64
MetricInfo & WithMetricName(Aws::String &&value)
Definition MetricInfo.h:66
MetricInfo & AddMetricDimensions(const char *key, const char *value)
Definition MetricInfo.h:87
MetricInfo & WithMetricDimensions(Aws::Map< Aws::String, Aws::String > &&value)
Definition MetricInfo.h:80
MetricInfo & AddMetricDimensions(const Aws::String &key, Aws::String &&value)
Definition MetricInfo.h:83
void SetMetricStatisticRecommendation(const char *value)
Definition MetricInfo.h:99
MetricInfo & WithMetricStatisticRecommendation(const Aws::String &value)
Definition MetricInfo.h:100
MetricInfo & WithMetricStatisticRecommendation(const char *value)
Definition MetricInfo.h:102
MetricInfo & AddMetricDimensions(Aws::String &&key, Aws::String &&value)
Definition MetricInfo.h:84
MetricInfo & AddMetricDimensions(Aws::String &&key, const Aws::String &value)
Definition MetricInfo.h:82
MetricInfo & WithMetricName(const char *value)
Definition MetricInfo.h:67
void SetMetricName(Aws::String &&value)
Definition MetricInfo.h:63
MetricInfo & WithMetricNamespace(const Aws::String &value)
Definition MetricInfo.h:51
MetricInfo & WithMetricName(const Aws::String &value)
Definition MetricInfo.h:65
const Aws::String & GetMetricName() const
Definition MetricInfo.h:60
void SetMetricDimensions(Aws::Map< Aws::String, Aws::String > &&value)
Definition MetricInfo.h:78
MetricInfo & WithMetricNamespace(const char *value)
Definition MetricInfo.h:53
const Aws::Map< Aws::String, Aws::String > & GetMetricDimensions() const
Definition MetricInfo.h:75
void SetMetricName(const Aws::String &value)
Definition MetricInfo.h:62
const Aws::String & GetMetricNamespace() const
Definition MetricInfo.h:46
MetricInfo & WithMetricNamespace(Aws::String &&value)
Definition MetricInfo.h:52
MetricInfo & AddMetricDimensions(Aws::String &&key, const char *value)
Definition MetricInfo.h:86
void SetMetricNamespace(Aws::String &&value)
Definition MetricInfo.h:49
void SetMetricDimensions(const Aws::Map< Aws::String, Aws::String > &value)
Definition MetricInfo.h:77
bool MetricStatisticRecommendationHasBeenSet() const
Definition MetricInfo.h:96
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