AWS SDK for C++

AWS SDK for C++ Version 1.11.759

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 <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Connect {
22namespace Model {
23
35 public:
36 AWS_CONNECT_API CurrentMetric() = default;
37 AWS_CONNECT_API CurrentMetric(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
45 inline CurrentMetricName GetName() const { return m_name; }
46 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
47 inline void SetName(CurrentMetricName value) {
48 m_nameHasBeenSet = true;
49 m_name = value;
50 }
52 SetName(value);
53 return *this;
54 }
56
58
62 inline const Aws::String& GetMetricId() const { return m_metricId; }
63 inline bool MetricIdHasBeenSet() const { return m_metricIdHasBeenSet; }
64 template <typename MetricIdT = Aws::String>
65 void SetMetricId(MetricIdT&& value) {
66 m_metricIdHasBeenSet = true;
67 m_metricId = std::forward<MetricIdT>(value);
68 }
69 template <typename MetricIdT = Aws::String>
70 CurrentMetric& WithMetricId(MetricIdT&& value) {
71 SetMetricId(std::forward<MetricIdT>(value));
72 return *this;
73 }
75
77
81 inline Unit GetUnit() const { return m_unit; }
82 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
83 inline void SetUnit(Unit value) {
84 m_unitHasBeenSet = true;
85 m_unit = value;
86 }
87 inline CurrentMetric& WithUnit(Unit value) {
88 SetUnit(value);
89 return *this;
90 }
92 private:
94
95 Aws::String m_metricId;
96
97 Unit m_unit{Unit::NOT_SET};
98 bool m_nameHasBeenSet = false;
99 bool m_metricIdHasBeenSet = false;
100 bool m_unitHasBeenSet = false;
101};
102
103} // namespace Model
104} // namespace Connect
105} // namespace Aws
CurrentMetric & WithUnit(Unit value)
void SetMetricId(MetricIdT &&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)
const Aws::String & GetMetricId() const
AWS_CONNECT_API CurrentMetric()=default
CurrentMetric & WithMetricId(MetricIdT &&value)
CurrentMetric & WithName(CurrentMetricName value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue