AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Connect
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_CONNECT_API MetricDataV2();
36 AWS_CONNECT_API MetricDataV2(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const MetricV2& GetMetric() const{ return m_metric; }
46 inline bool MetricHasBeenSet() const { return m_metricHasBeenSet; }
47 inline void SetMetric(const MetricV2& value) { m_metricHasBeenSet = true; m_metric = value; }
48 inline void SetMetric(MetricV2&& value) { m_metricHasBeenSet = true; m_metric = std::move(value); }
49 inline MetricDataV2& WithMetric(const MetricV2& value) { SetMetric(value); return *this;}
50 inline MetricDataV2& WithMetric(MetricV2&& value) { SetMetric(std::move(value)); return *this;}
52
54
57 inline double GetValue() const{ return m_value; }
58 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
59 inline void SetValue(double value) { m_valueHasBeenSet = true; m_value = value; }
60 inline MetricDataV2& WithValue(double value) { SetValue(value); return *this;}
62 private:
63
64 MetricV2 m_metric;
65 bool m_metricHasBeenSet = false;
66
67 double m_value;
68 bool m_valueHasBeenSet = false;
69 };
70
71} // namespace Model
72} // namespace Connect
73} // namespace Aws
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
MetricDataV2 & WithValue(double value)
MetricDataV2 & WithMetric(MetricV2 &&value)
const MetricV2 & GetMetric() const
void SetMetric(const MetricV2 &value)
MetricDataV2 & WithMetric(const MetricV2 &value)
AWS_CONNECT_API MetricDataV2 & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CONNECT_API MetricDataV2(Aws::Utils::Json::JsonView jsonValue)
void SetMetric(MetricV2 &&value)
Aws::Utils::Json::JsonValue JsonValue