AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CurrentMetric.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/model/CurrentMetricName.h>
9#include <aws/connect/model/Unit.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 Connect
23{
24namespace Model
25{
26
37 {
38 public:
39 AWS_CONNECT_API CurrentMetric() = default;
40 AWS_CONNECT_API CurrentMetric(Aws::Utils::Json::JsonView jsonValue);
42 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline CurrentMetricName GetName() const { return m_name; }
50 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
51 inline void SetName(CurrentMetricName value) { m_nameHasBeenSet = true; m_name = value; }
52 inline CurrentMetric& WithName(CurrentMetricName value) { SetName(value); return *this;}
54
56
59 inline Unit GetUnit() const { return m_unit; }
60 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
61 inline void SetUnit(Unit value) { m_unitHasBeenSet = true; m_unit = value; }
62 inline CurrentMetric& WithUnit(Unit value) { SetUnit(value); return *this;}
64 private:
65
67 bool m_nameHasBeenSet = false;
68
69 Unit m_unit{Unit::NOT_SET};
70 bool m_unitHasBeenSet = false;
71 };
72
73} // namespace Model
74} // namespace Connect
75} // namespace Aws
CurrentMetric & WithUnit(Unit value)
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetName(CurrentMetricName value)
AWS_CONNECT_API CurrentMetric & operator=(Aws::Utils::Json::JsonView jsonValue)
CurrentMetricName GetName() const
AWS_CONNECT_API CurrentMetric(Aws::Utils::Json::JsonView jsonValue)
AWS_CONNECT_API CurrentMetric()=default
CurrentMetric & WithName(CurrentMetricName value)
Aws::Utils::Json::JsonValue JsonValue