AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
HistoricalMetricData.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/model/HistoricalMetric.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 HistoricalMetricData() = default;
32 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline const HistoricalMetric& GetMetric() const { return m_metric; }
39 inline bool MetricHasBeenSet() const { return m_metricHasBeenSet; }
40 template <typename MetricT = HistoricalMetric>
41 void SetMetric(MetricT&& value) {
42 m_metricHasBeenSet = true;
43 m_metric = std::forward<MetricT>(value);
44 }
45 template <typename MetricT = HistoricalMetric>
46 HistoricalMetricData& 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 HistoricalMetricData& WithValue(double value) {
63 SetValue(value);
64 return *this;
65 }
67 private:
68 HistoricalMetric 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
AWS_CONNECT_API HistoricalMetricData()=default
HistoricalMetricData & WithValue(double value)
AWS_CONNECT_API HistoricalMetricData(Aws::Utils::Json::JsonView jsonValue)
AWS_CONNECT_API HistoricalMetricData & operator=(Aws::Utils::Json::JsonView jsonValue)
const HistoricalMetric & GetMetric() const
HistoricalMetricData & WithMetric(MetricT &&value)
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue JsonValue