AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PerformanceInsightsMetric.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
46 inline const Aws::String& GetMetric() const{ return m_metric; }
47 inline bool MetricHasBeenSet() const { return m_metricHasBeenSet; }
48 inline void SetMetric(const Aws::String& value) { m_metricHasBeenSet = true; m_metric = value; }
49 inline void SetMetric(Aws::String&& value) { m_metricHasBeenSet = true; m_metric = std::move(value); }
50 inline void SetMetric(const char* value) { m_metricHasBeenSet = true; m_metric.assign(value); }
51 inline PerformanceInsightsMetric& WithMetric(const Aws::String& value) { SetMetric(value); return *this;}
52 inline PerformanceInsightsMetric& WithMetric(Aws::String&& value) { SetMetric(std::move(value)); return *this;}
53 inline PerformanceInsightsMetric& WithMetric(const char* value) { SetMetric(value); return *this;}
55
57
60 inline const Aws::String& GetDisplayName() const{ return m_displayName; }
61 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
62 inline void SetDisplayName(const Aws::String& value) { m_displayNameHasBeenSet = true; m_displayName = value; }
63 inline void SetDisplayName(Aws::String&& value) { m_displayNameHasBeenSet = true; m_displayName = std::move(value); }
64 inline void SetDisplayName(const char* value) { m_displayNameHasBeenSet = true; m_displayName.assign(value); }
65 inline PerformanceInsightsMetric& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;}
66 inline PerformanceInsightsMetric& WithDisplayName(Aws::String&& value) { SetDisplayName(std::move(value)); return *this;}
67 inline PerformanceInsightsMetric& WithDisplayName(const char* value) { SetDisplayName(value); return *this;}
69
71
74 inline const Aws::Map<Aws::String, Aws::String>& GetDimensions() const{ return m_dimensions; }
75 inline bool DimensionsHasBeenSet() const { return m_dimensionsHasBeenSet; }
76 inline void SetDimensions(const Aws::Map<Aws::String, Aws::String>& value) { m_dimensionsHasBeenSet = true; m_dimensions = value; }
77 inline void SetDimensions(Aws::Map<Aws::String, Aws::String>&& value) { m_dimensionsHasBeenSet = true; m_dimensions = std::move(value); }
80 inline PerformanceInsightsMetric& AddDimensions(const Aws::String& key, const Aws::String& value) { m_dimensionsHasBeenSet = true; m_dimensions.emplace(key, value); return *this; }
81 inline PerformanceInsightsMetric& AddDimensions(Aws::String&& key, const Aws::String& value) { m_dimensionsHasBeenSet = true; m_dimensions.emplace(std::move(key), value); return *this; }
82 inline PerformanceInsightsMetric& AddDimensions(const Aws::String& key, Aws::String&& value) { m_dimensionsHasBeenSet = true; m_dimensions.emplace(key, std::move(value)); return *this; }
83 inline PerformanceInsightsMetric& AddDimensions(Aws::String&& key, Aws::String&& value) { m_dimensionsHasBeenSet = true; m_dimensions.emplace(std::move(key), std::move(value)); return *this; }
84 inline PerformanceInsightsMetric& AddDimensions(const char* key, Aws::String&& value) { m_dimensionsHasBeenSet = true; m_dimensions.emplace(key, std::move(value)); return *this; }
85 inline PerformanceInsightsMetric& AddDimensions(Aws::String&& key, const char* value) { m_dimensionsHasBeenSet = true; m_dimensions.emplace(std::move(key), value); return *this; }
86 inline PerformanceInsightsMetric& AddDimensions(const char* key, const char* value) { m_dimensionsHasBeenSet = true; m_dimensions.emplace(key, value); return *this; }
88
90
94 inline double GetValue() const{ return m_value; }
95 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
96 inline void SetValue(double value) { m_valueHasBeenSet = true; m_value = value; }
97 inline PerformanceInsightsMetric& WithValue(double value) { SetValue(value); return *this;}
99 private:
100
101 Aws::String m_metric;
102 bool m_metricHasBeenSet = false;
103
104 Aws::String m_displayName;
105 bool m_displayNameHasBeenSet = false;
106
108 bool m_dimensionsHasBeenSet = false;
109
110 double m_value;
111 bool m_valueHasBeenSet = false;
112 };
113
114} // namespace Model
115} // namespace PI
116} // namespace Aws
PerformanceInsightsMetric & AddDimensions(const char *key, const char *value)
AWS_PI_API Aws::Utils::Json::JsonValue Jsonize() const
PerformanceInsightsMetric & WithMetric(const char *value)
AWS_PI_API PerformanceInsightsMetric(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< Aws::String, Aws::String > & GetDimensions() const
PerformanceInsightsMetric & WithDisplayName(const char *value)
void SetDimensions(const Aws::Map< Aws::String, Aws::String > &value)
PerformanceInsightsMetric & AddDimensions(Aws::String &&key, const Aws::String &value)
PerformanceInsightsMetric & AddDimensions(const Aws::String &key, Aws::String &&value)
PerformanceInsightsMetric & AddDimensions(Aws::String &&key, Aws::String &&value)
PerformanceInsightsMetric & WithMetric(const Aws::String &value)
PerformanceInsightsMetric & AddDimensions(const char *key, Aws::String &&value)
PerformanceInsightsMetric & AddDimensions(const Aws::String &key, const Aws::String &value)
PerformanceInsightsMetric & WithDimensions(Aws::Map< Aws::String, Aws::String > &&value)
PerformanceInsightsMetric & AddDimensions(Aws::String &&key, const char *value)
PerformanceInsightsMetric & WithDisplayName(Aws::String &&value)
void SetDimensions(Aws::Map< Aws::String, Aws::String > &&value)
PerformanceInsightsMetric & WithDisplayName(const Aws::String &value)
PerformanceInsightsMetric & WithDimensions(const Aws::Map< Aws::String, Aws::String > &value)
AWS_PI_API PerformanceInsightsMetric & operator=(Aws::Utils::Json::JsonView jsonValue)
PerformanceInsightsMetric & WithValue(double value)
PerformanceInsightsMetric & WithMetric(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