AWS SDK for C++  1.9.102
AWS SDK for C++
CurrentMetricData.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace Connect
22 {
23 namespace Model
24 {
25 
32  {
33  public:
38 
39 
43  inline const CurrentMetric& GetMetric() const{ return m_metric; }
44 
48  inline bool MetricHasBeenSet() const { return m_metricHasBeenSet; }
49 
53  inline void SetMetric(const CurrentMetric& value) { m_metricHasBeenSet = true; m_metric = value; }
54 
58  inline void SetMetric(CurrentMetric&& value) { m_metricHasBeenSet = true; m_metric = std::move(value); }
59 
63  inline CurrentMetricData& WithMetric(const CurrentMetric& value) { SetMetric(value); return *this;}
64 
68  inline CurrentMetricData& WithMetric(CurrentMetric&& value) { SetMetric(std::move(value)); return *this;}
69 
70 
74  inline double GetValue() const{ return m_value; }
75 
79  inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
80 
84  inline void SetValue(double value) { m_valueHasBeenSet = true; m_value = value; }
85 
89  inline CurrentMetricData& WithValue(double value) { SetValue(value); return *this;}
90 
91  private:
92 
93  CurrentMetric m_metric;
94  bool m_metricHasBeenSet;
95 
96  double m_value;
97  bool m_valueHasBeenSet;
98  };
99 
100 } // namespace Model
101 } // namespace Connect
102 } // namespace Aws
Aws::Connect::Model::CurrentMetricData::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
CurrentMetric.h
Aws::Connect::Model::CurrentMetricData::CurrentMetricData
CurrentMetricData()
Aws::Connect::Model::CurrentMetricData::CurrentMetricData
CurrentMetricData(Aws::Utils::Json::JsonView jsonValue)
Aws::Connect::Model::CurrentMetric
Definition: CurrentMetric.h:37
Aws::Connect::Model::CurrentMetricData::ValueHasBeenSet
bool ValueHasBeenSet() const
Definition: CurrentMetricData.h:79
Aws::Connect::Model::CurrentMetricData::GetValue
double GetValue() const
Definition: CurrentMetricData.h:74
Aws::Connect::Model::CurrentMetricData::WithMetric
CurrentMetricData & WithMetric(CurrentMetric &&value)
Definition: CurrentMetricData.h:68
Aws::Connect::Model::CurrentMetricData::MetricHasBeenSet
bool MetricHasBeenSet() const
Definition: CurrentMetricData.h:48
Aws::Connect::Model::CurrentMetricData::WithMetric
CurrentMetricData & WithMetric(const CurrentMetric &value)
Definition: CurrentMetricData.h:63
Aws::Connect::Model::CurrentMetricData
Definition: CurrentMetricData.h:32
Aws::Connect::Model::CurrentMetricData::SetValue
void SetValue(double value)
Definition: CurrentMetricData.h:84
Aws::Connect::Model::CurrentMetricData::operator=
CurrentMetricData & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Connect::Model::CurrentMetricData::SetMetric
void SetMetric(CurrentMetric &&value)
Definition: CurrentMetricData.h:58
Aws
Definition: AccessManagementClient.h:15
Aws::Connect::Model::CurrentMetricData::SetMetric
void SetMetric(const CurrentMetric &value)
Definition: CurrentMetricData.h:53
Aws::Connect::Model::CurrentMetricData::GetMetric
const CurrentMetric & GetMetric() const
Definition: CurrentMetricData.h:43
AWS_CONNECT_API
#define AWS_CONNECT_API
Definition: Connect_EXPORTS.h:28
Aws::Connect::Model::CurrentMetricData::WithValue
CurrentMetricData & WithValue(double value)
Definition: CurrentMetricData.h:89
Connect_EXPORTS.h