AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
CurrentMetricData.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/model/CurrentMetric.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
28 public:
29 AWS_CONNECT_API CurrentMetricData() = default;
32 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline const CurrentMetric& GetMetric() const { return m_metric; }
39 inline bool MetricHasBeenSet() const { return m_metricHasBeenSet; }
40 template <typename MetricT = CurrentMetric>
41 void SetMetric(MetricT&& value) {
42 m_metricHasBeenSet = true;
43 m_metric = std::forward<MetricT>(value);
44 }
45 template <typename MetricT = CurrentMetric>
46 CurrentMetricData& WithMetric(MetricT&& value) {
47 SetMetric(std::forward<MetricT>(value));
48 return *this;
49 }
51
53
56 inline double GetValue() const { return m_value; }
57 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
58 inline void SetValue(double value) {
59 m_valueHasBeenSet = true;
60 m_value = value;
61 }
62 inline CurrentMetricData& WithValue(double value) {
63 SetValue(value);
64 return *this;
65 }
67 private:
68 CurrentMetric m_metric;
69
70 double m_value{0.0};
71 bool m_metricHasBeenSet = false;
72 bool m_valueHasBeenSet = false;
73};
74
75} // namespace Model
76} // namespace Connect
77} // namespace Aws
CurrentMetricData & WithMetric(MetricT &&value)
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CONNECT_API CurrentMetricData()=default
CurrentMetricData & WithValue(double value)
const CurrentMetric & GetMetric() const
AWS_CONNECT_API CurrentMetricData(Aws::Utils::Json::JsonView jsonValue)
AWS_CONNECT_API CurrentMetricData & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue