AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
MetricDataV2.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/model/MetricV2.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Connect {
20namespace Model {
21
29 public:
30 AWS_CONNECT_API MetricDataV2() = default;
31 AWS_CONNECT_API MetricDataV2(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
40 inline const MetricV2& GetMetric() const { return m_metric; }
41 inline bool MetricHasBeenSet() const { return m_metricHasBeenSet; }
42 template <typename MetricT = MetricV2>
43 void SetMetric(MetricT&& value) {
44 m_metricHasBeenSet = true;
45 m_metric = std::forward<MetricT>(value);
46 }
47 template <typename MetricT = MetricV2>
48 MetricDataV2& WithMetric(MetricT&& value) {
49 SetMetric(std::forward<MetricT>(value));
50 return *this;
51 }
53
55
58 inline double GetValue() const { return m_value; }
59 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
60 inline void SetValue(double value) {
61 m_valueHasBeenSet = true;
62 m_value = value;
63 }
64 inline MetricDataV2& WithValue(double value) {
65 SetValue(value);
66 return *this;
67 }
69 private:
70 MetricV2 m_metric;
71
72 double m_value{0.0};
73 bool m_metricHasBeenSet = false;
74 bool m_valueHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace Connect
79} // namespace Aws
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
MetricDataV2 & WithValue(double value)
const MetricV2 & GetMetric() const
AWS_CONNECT_API MetricDataV2()=default
AWS_CONNECT_API MetricDataV2 & operator=(Aws::Utils::Json::JsonView jsonValue)
MetricDataV2 & WithMetric(MetricT &&value)
AWS_CONNECT_API MetricDataV2(Aws::Utils::Json::JsonView jsonValue)
void SetMetric(MetricT &&value)
Aws::Utils::Json::JsonValue JsonValue