AWS SDK for C++  1.9.159
AWS SDK for C++
HistoricalMetricData.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 HistoricalMetric& GetMetric() const{ return m_metric; }
44 
48  inline bool MetricHasBeenSet() const { return m_metricHasBeenSet; }
49 
53  inline void SetMetric(const HistoricalMetric& value) { m_metricHasBeenSet = true; m_metric = value; }
54 
58  inline void SetMetric(HistoricalMetric&& value) { m_metricHasBeenSet = true; m_metric = std::move(value); }
59 
63  inline HistoricalMetricData& WithMetric(const HistoricalMetric& value) { SetMetric(value); return *this;}
64 
68  inline HistoricalMetricData& WithMetric(HistoricalMetric&& 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 HistoricalMetricData& WithValue(double value) { SetValue(value); return *this;}
90 
91  private:
92 
93  HistoricalMetric 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::HistoricalMetricData::WithValue
HistoricalMetricData & WithValue(double value)
Definition: HistoricalMetricData.h:89
Aws::Connect::Model::HistoricalMetricData::operator=
HistoricalMetricData & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Connect::Model::HistoricalMetricData
Definition: HistoricalMetricData.h:32
Aws::Connect::Model::HistoricalMetricData::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Connect::Model::HistoricalMetricData::GetValue
double GetValue() const
Definition: HistoricalMetricData.h:74
Aws::Connect::Model::HistoricalMetricData::GetMetric
const HistoricalMetric & GetMetric() const
Definition: HistoricalMetricData.h:43
Aws::Connect::Model::HistoricalMetricData::HistoricalMetricData
HistoricalMetricData(Aws::Utils::Json::JsonView jsonValue)
Aws::Connect::Model::HistoricalMetricData::ValueHasBeenSet
bool ValueHasBeenSet() const
Definition: HistoricalMetricData.h:79
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Connect::Model::HistoricalMetricData::SetValue
void SetValue(double value)
Definition: HistoricalMetricData.h:84
Aws::Connect::Model::HistoricalMetricData::SetMetric
void SetMetric(HistoricalMetric &&value)
Definition: HistoricalMetricData.h:58
Aws::Connect::Model::HistoricalMetricData::WithMetric
HistoricalMetricData & WithMetric(HistoricalMetric &&value)
Definition: HistoricalMetricData.h:68
Aws::Connect::Model::HistoricalMetricData::WithMetric
HistoricalMetricData & WithMetric(const HistoricalMetric &value)
Definition: HistoricalMetricData.h:63
Aws::Connect::Model::HistoricalMetric
Definition: HistoricalMetric.h:39
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
HistoricalMetric.h
Aws
Definition: AccessManagementClient.h:15
Aws::Connect::Model::HistoricalMetricData::MetricHasBeenSet
bool MetricHasBeenSet() const
Definition: HistoricalMetricData.h:48
Aws::Connect::Model::HistoricalMetricData::HistoricalMetricData
HistoricalMetricData()
Aws::Connect::Model::HistoricalMetricData::SetMetric
void SetMetric(const HistoricalMetric &value)
Definition: HistoricalMetricData.h:53
AWS_CONNECT_API
#define AWS_CONNECT_API
Definition: Connect_EXPORTS.h:28
Connect_EXPORTS.h