AWS SDK for C++  1.8.95
AWS SDK for C++
CurrentMetric.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace Connect
23 {
24 namespace Model
25 {
26 
37  {
38  public:
39  CurrentMetric();
41  CurrentMetric& operator=(Aws::Utils::Json::JsonView jsonValue);
42  Aws::Utils::Json::JsonValue Jsonize() const;
43 
44 
48  inline const CurrentMetricName& GetName() const{ return m_name; }
49 
53  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
54 
58  inline void SetName(const CurrentMetricName& value) { m_nameHasBeenSet = true; m_name = value; }
59 
63  inline void SetName(CurrentMetricName&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
64 
68  inline CurrentMetric& WithName(const CurrentMetricName& value) { SetName(value); return *this;}
69 
73  inline CurrentMetric& WithName(CurrentMetricName&& value) { SetName(std::move(value)); return *this;}
74 
75 
79  inline const Unit& GetUnit() const{ return m_unit; }
80 
84  inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
85 
89  inline void SetUnit(const Unit& value) { m_unitHasBeenSet = true; m_unit = value; }
90 
94  inline void SetUnit(Unit&& value) { m_unitHasBeenSet = true; m_unit = std::move(value); }
95 
99  inline CurrentMetric& WithUnit(const Unit& value) { SetUnit(value); return *this;}
100 
104  inline CurrentMetric& WithUnit(Unit&& value) { SetUnit(std::move(value)); return *this;}
105 
106  private:
107 
108  CurrentMetricName m_name;
109  bool m_nameHasBeenSet;
110 
111  Unit m_unit;
112  bool m_unitHasBeenSet;
113  };
114 
115 } // namespace Model
116 } // namespace Connect
117 } // namespace Aws
CurrentMetric & WithName(const CurrentMetricName &value)
Definition: CurrentMetric.h:68
void SetName(CurrentMetricName &&value)
Definition: CurrentMetric.h:63
#define AWS_CONNECT_API
CurrentMetric & WithName(CurrentMetricName &&value)
Definition: CurrentMetric.h:73
CurrentMetric & WithUnit(Unit &&value)
const CurrentMetricName & GetName() const
Definition: CurrentMetric.h:48
void SetName(const CurrentMetricName &value)
Definition: CurrentMetric.h:58
CurrentMetric & WithUnit(const Unit &value)
Definition: CurrentMetric.h:99
void SetUnit(const Unit &value)
Definition: CurrentMetric.h:89