AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const CurrentMetricName& GetName() const{ return m_name; }
50 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
51 inline void SetName(const CurrentMetricName& value) { m_nameHasBeenSet = true; m_name = value; }
52 inline void SetName(CurrentMetricName&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
53 inline CurrentMetric& WithName(const CurrentMetricName& value) { SetName(value); return *this;}
54 inline CurrentMetric& WithName(CurrentMetricName&& value) { SetName(std::move(value)); return *this;}
56
58
61 inline const Unit& GetUnit() const{ return m_unit; }
62 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
63 inline void SetUnit(const Unit& value) { m_unitHasBeenSet = true; m_unit = value; }
64 inline void SetUnit(Unit&& value) { m_unitHasBeenSet = true; m_unit = std::move(value); }
65 inline CurrentMetric& WithUnit(const Unit& value) { SetUnit(value); return *this;}
66 inline CurrentMetric& WithUnit(Unit&& value) { SetUnit(std::move(value)); return *this;}
68 private:
69
70 CurrentMetricName m_name;
71 bool m_nameHasBeenSet = false;
72
73 Unit m_unit;
74 bool m_unitHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace Connect
79} // namespace Aws
void SetName(CurrentMetricName &&value)
void SetName(const CurrentMetricName &value)
const CurrentMetricName & GetName() const
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
CurrentMetric & WithName(CurrentMetricName &&value)
CurrentMetric & WithUnit(const Unit &value)
AWS_CONNECT_API CurrentMetric & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CONNECT_API CurrentMetric(Aws::Utils::Json::JsonView jsonValue)
CurrentMetric & WithName(const CurrentMetricName &value)
CurrentMetric & WithUnit(Unit &&value)
void SetUnit(const Unit &value)
Aws::Utils::Json::JsonValue JsonValue