AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
PerformanceInsightsMetric.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/pi/PI_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace PI {
21namespace Model {
22
30 public:
31 AWS_PI_API PerformanceInsightsMetric() = default;
35
37
40 inline const Aws::String& GetMetric() const { return m_metric; }
41 inline bool MetricHasBeenSet() const { return m_metricHasBeenSet; }
42 template <typename MetricT = Aws::String>
43 void SetMetric(MetricT&& value) {
44 m_metricHasBeenSet = true;
45 m_metric = std::forward<MetricT>(value);
46 }
47 template <typename MetricT = Aws::String>
49 SetMetric(std::forward<MetricT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetDisplayName() const { return m_displayName; }
59 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
60 template <typename DisplayNameT = Aws::String>
61 void SetDisplayName(DisplayNameT&& value) {
62 m_displayNameHasBeenSet = true;
63 m_displayName = std::forward<DisplayNameT>(value);
64 }
65 template <typename DisplayNameT = Aws::String>
67 SetDisplayName(std::forward<DisplayNameT>(value));
68 return *this;
69 }
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) {
80 m_dimensionsHasBeenSet = true;
81 m_dimensions = std::forward<DimensionsT>(value);
82 }
83 template <typename DimensionsT = Aws::Map<Aws::String, Aws::String>>
85 SetDimensions(std::forward<DimensionsT>(value));
86 return *this;
87 }
88 template <typename DimensionsKeyT = Aws::String, typename DimensionsValueT = Aws::String>
89 PerformanceInsightsMetric& AddDimensions(DimensionsKeyT&& key, DimensionsValueT&& value) {
90 m_dimensionsHasBeenSet = true;
91 m_dimensions.emplace(std::forward<DimensionsKeyT>(key), std::forward<DimensionsValueT>(value));
92 return *this;
93 }
95
97
100 inline const Aws::Map<Aws::String, Aws::String>& GetFilter() const { return m_filter; }
101 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
102 template <typename FilterT = Aws::Map<Aws::String, Aws::String>>
103 void SetFilter(FilterT&& value) {
104 m_filterHasBeenSet = true;
105 m_filter = std::forward<FilterT>(value);
106 }
107 template <typename FilterT = Aws::Map<Aws::String, Aws::String>>
109 SetFilter(std::forward<FilterT>(value));
110 return *this;
111 }
112 template <typename FilterKeyT = Aws::String, typename FilterValueT = Aws::String>
113 PerformanceInsightsMetric& AddFilter(FilterKeyT&& key, FilterValueT&& value) {
114 m_filterHasBeenSet = true;
115 m_filter.emplace(std::forward<FilterKeyT>(key), std::forward<FilterValueT>(value));
116 return *this;
117 }
119
121
125 inline double GetValue() const { return m_value; }
126 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
127 inline void SetValue(double value) {
128 m_valueHasBeenSet = true;
129 m_value = value;
130 }
131 inline PerformanceInsightsMetric& WithValue(double value) {
132 SetValue(value);
133 return *this;
134 }
136 private:
137 Aws::String m_metric;
138
139 Aws::String m_displayName;
140
142
144
145 double m_value{0.0};
146 bool m_metricHasBeenSet = false;
147 bool m_displayNameHasBeenSet = false;
148 bool m_dimensionsHasBeenSet = false;
149 bool m_filterHasBeenSet = false;
150 bool m_valueHasBeenSet = false;
151};
152
153} // namespace Model
154} // namespace PI
155} // namespace Aws
AWS_PI_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_PI_API PerformanceInsightsMetric(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< Aws::String, Aws::String > & GetDimensions() const
AWS_PI_API PerformanceInsightsMetric()=default
PerformanceInsightsMetric & WithMetric(MetricT &&value)
PerformanceInsightsMetric & AddDimensions(DimensionsKeyT &&key, DimensionsValueT &&value)
PerformanceInsightsMetric & WithDimensions(DimensionsT &&value)
PerformanceInsightsMetric & AddFilter(FilterKeyT &&key, FilterValueT &&value)
PerformanceInsightsMetric & WithDisplayName(DisplayNameT &&value)
const Aws::Map< Aws::String, Aws::String > & GetFilter() const
PerformanceInsightsMetric & WithFilter(FilterT &&value)
AWS_PI_API PerformanceInsightsMetric & operator=(Aws::Utils::Json::JsonView jsonValue)
PerformanceInsightsMetric & WithValue(double 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