AWS SDK for C++  1.8.186
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:
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
Aws::Connect::Model::CurrentMetric::UnitHasBeenSet
bool UnitHasBeenSet() const
Definition: CurrentMetric.h:84
Aws::Connect::Model::CurrentMetric
Definition: CurrentMetric.h:37
Aws::Connect::Model::CurrentMetric::NameHasBeenSet
bool NameHasBeenSet() const
Definition: CurrentMetric.h:53
Aws::Connect::Model::CurrentMetric::SetUnit
void SetUnit(const Unit &value)
Definition: CurrentMetric.h:89
Aws::Connect::Model::CurrentMetric::SetName
void SetName(const CurrentMetricName &value)
Definition: CurrentMetric.h:58
Aws::Connect::Model::CurrentMetric::CurrentMetric
CurrentMetric()
Aws::Connect::Model::CurrentMetric::SetUnit
void SetUnit(Unit &&value)
Definition: CurrentMetric.h:94
Aws::Connect::Model::CurrentMetric::WithName
CurrentMetric & WithName(const CurrentMetricName &value)
Definition: CurrentMetric.h:68
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::Connect::Model::CurrentMetric::WithUnit
CurrentMetric & WithUnit(const Unit &value)
Definition: CurrentMetric.h:99
Aws::Connect::Model::CurrentMetric::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Connect::Model::CurrentMetric::WithName
CurrentMetric & WithName(CurrentMetricName &&value)
Definition: CurrentMetric.h:73
Aws::Connect::Model::CurrentMetric::WithUnit
CurrentMetric & WithUnit(Unit &&value)
Definition: CurrentMetric.h:104
Aws::Connect::Model::CurrentMetric::SetName
void SetName(CurrentMetricName &&value)
Definition: CurrentMetric.h:63
Aws::Connect::Model::CurrentMetric::GetName
const CurrentMetricName & GetName() const
Definition: CurrentMetric.h:48
Aws
Definition: AccessManagementClient.h:15
CurrentMetricName.h
Aws::Connect::Model::CurrentMetric::GetUnit
const Unit & GetUnit() const
Definition: CurrentMetric.h:79
Aws::Connect::Model::Unit
Unit
Definition: Unit.h:17
Unit.h
Aws::Connect::Model::CurrentMetric::operator=
CurrentMetric & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CONNECT_API
#define AWS_CONNECT_API
Definition: Connect_EXPORTS.h:28
Connect_EXPORTS.h
Aws::Connect::Model::CurrentMetric::CurrentMetric
CurrentMetric(Aws::Utils::Json::JsonView jsonValue)
Aws::Connect::Model::CurrentMetricName
CurrentMetricName
Definition: CurrentMetricName.h:17