AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
40
41
43
64 inline const Aws::String& GetMetric() const{ return m_metric; }
65 inline bool MetricHasBeenSet() const { return m_metricHasBeenSet; }
66 inline void SetMetric(const Aws::String& value) { m_metricHasBeenSet = true; m_metric = value; }
67 inline void SetMetric(Aws::String&& value) { m_metricHasBeenSet = true; m_metric = std::move(value); }
68 inline void SetMetric(const char* value) { m_metricHasBeenSet = true; m_metric.assign(value); }
69 inline ResponseResourceMetricKey& WithMetric(const Aws::String& value) { SetMetric(value); return *this;}
70 inline ResponseResourceMetricKey& WithMetric(Aws::String&& value) { SetMetric(std::move(value)); return *this;}
71 inline ResponseResourceMetricKey& WithMetric(const char* value) { SetMetric(value); return *this;}
73
75
78 inline const Aws::Map<Aws::String, Aws::String>& GetDimensions() const{ return m_dimensions; }
79 inline bool DimensionsHasBeenSet() const { return m_dimensionsHasBeenSet; }
80 inline void SetDimensions(const Aws::Map<Aws::String, Aws::String>& value) { m_dimensionsHasBeenSet = true; m_dimensions = value; }
81 inline void SetDimensions(Aws::Map<Aws::String, Aws::String>&& value) { m_dimensionsHasBeenSet = true; m_dimensions = std::move(value); }
84 inline ResponseResourceMetricKey& AddDimensions(const Aws::String& key, const Aws::String& value) { m_dimensionsHasBeenSet = true; m_dimensions.emplace(key, value); return *this; }
85 inline ResponseResourceMetricKey& AddDimensions(Aws::String&& key, const Aws::String& value) { m_dimensionsHasBeenSet = true; m_dimensions.emplace(std::move(key), value); return *this; }
86 inline ResponseResourceMetricKey& AddDimensions(const Aws::String& key, Aws::String&& value) { m_dimensionsHasBeenSet = true; m_dimensions.emplace(key, std::move(value)); return *this; }
87 inline ResponseResourceMetricKey& AddDimensions(Aws::String&& key, Aws::String&& value) { m_dimensionsHasBeenSet = true; m_dimensions.emplace(std::move(key), std::move(value)); return *this; }
88 inline ResponseResourceMetricKey& AddDimensions(const char* key, Aws::String&& value) { m_dimensionsHasBeenSet = true; m_dimensions.emplace(key, std::move(value)); return *this; }
89 inline ResponseResourceMetricKey& AddDimensions(Aws::String&& key, const char* value) { m_dimensionsHasBeenSet = true; m_dimensions.emplace(std::move(key), value); return *this; }
90 inline ResponseResourceMetricKey& AddDimensions(const char* key, const char* value) { m_dimensionsHasBeenSet = true; m_dimensions.emplace(key, value); return *this; }
92 private:
93
94 Aws::String m_metric;
95 bool m_metricHasBeenSet = false;
96
98 bool m_dimensionsHasBeenSet = false;
99 };
100
101} // namespace Model
102} // namespace PI
103} // namespace Aws
ResponseResourceMetricKey & WithMetric(const Aws::String &value)
ResponseResourceMetricKey & AddDimensions(Aws::String &&key, const char *value)
ResponseResourceMetricKey & AddDimensions(const char *key, const char *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 & WithMetric(const char *value)
ResponseResourceMetricKey & WithMetric(Aws::String &&value)
ResponseResourceMetricKey & AddDimensions(const Aws::String &key, const Aws::String &value)
ResponseResourceMetricKey & WithDimensions(Aws::Map< Aws::String, Aws::String > &&value)
ResponseResourceMetricKey & AddDimensions(Aws::String &&key, const Aws::String &value)
AWS_PI_API Aws::Utils::Json::JsonValue Jsonize() const
ResponseResourceMetricKey & WithDimensions(const Aws::Map< Aws::String, Aws::String > &value)
ResponseResourceMetricKey & AddDimensions(const char *key, Aws::String &&value)
void SetDimensions(const Aws::Map< Aws::String, Aws::String > &value)
ResponseResourceMetricKey & AddDimensions(const Aws::String &key, Aws::String &&value)
void SetDimensions(Aws::Map< Aws::String, Aws::String > &&value)
ResponseResourceMetricKey & AddDimensions(Aws::String &&key, Aws::String &&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