AWS SDK for C++  1.9.159
AWS SDK for C++
HistoricalMetric.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <aws/connect/model/Unit.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Json
19 {
20  class JsonValue;
21  class JsonView;
22 } // namespace Json
23 } // namespace Utils
24 namespace Connect
25 {
26 namespace Model
27 {
28 
39  {
40  public:
45 
46 
50  inline const HistoricalMetricName& GetName() const{ return m_name; }
51 
55  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
56 
60  inline void SetName(const HistoricalMetricName& value) { m_nameHasBeenSet = true; m_name = value; }
61 
65  inline void SetName(HistoricalMetricName&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
66 
70  inline HistoricalMetric& WithName(const HistoricalMetricName& value) { SetName(value); return *this;}
71 
75  inline HistoricalMetric& WithName(HistoricalMetricName&& value) { SetName(std::move(value)); return *this;}
76 
77 
81  inline const Threshold& GetThreshold() const{ return m_threshold; }
82 
86  inline bool ThresholdHasBeenSet() const { return m_thresholdHasBeenSet; }
87 
91  inline void SetThreshold(const Threshold& value) { m_thresholdHasBeenSet = true; m_threshold = value; }
92 
96  inline void SetThreshold(Threshold&& value) { m_thresholdHasBeenSet = true; m_threshold = std::move(value); }
97 
101  inline HistoricalMetric& WithThreshold(const Threshold& value) { SetThreshold(value); return *this;}
102 
106  inline HistoricalMetric& WithThreshold(Threshold&& value) { SetThreshold(std::move(value)); return *this;}
107 
108 
112  inline const Statistic& GetStatistic() const{ return m_statistic; }
113 
117  inline bool StatisticHasBeenSet() const { return m_statisticHasBeenSet; }
118 
122  inline void SetStatistic(const Statistic& value) { m_statisticHasBeenSet = true; m_statistic = value; }
123 
127  inline void SetStatistic(Statistic&& value) { m_statisticHasBeenSet = true; m_statistic = std::move(value); }
128 
132  inline HistoricalMetric& WithStatistic(const Statistic& value) { SetStatistic(value); return *this;}
133 
137  inline HistoricalMetric& WithStatistic(Statistic&& value) { SetStatistic(std::move(value)); return *this;}
138 
139 
143  inline const Unit& GetUnit() const{ return m_unit; }
144 
148  inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
149 
153  inline void SetUnit(const Unit& value) { m_unitHasBeenSet = true; m_unit = value; }
154 
158  inline void SetUnit(Unit&& value) { m_unitHasBeenSet = true; m_unit = std::move(value); }
159 
163  inline HistoricalMetric& WithUnit(const Unit& value) { SetUnit(value); return *this;}
164 
168  inline HistoricalMetric& WithUnit(Unit&& value) { SetUnit(std::move(value)); return *this;}
169 
170  private:
171 
172  HistoricalMetricName m_name;
173  bool m_nameHasBeenSet;
174 
175  Threshold m_threshold;
176  bool m_thresholdHasBeenSet;
177 
178  Statistic m_statistic;
179  bool m_statisticHasBeenSet;
180 
181  Unit m_unit;
182  bool m_unitHasBeenSet;
183  };
184 
185 } // namespace Model
186 } // namespace Connect
187 } // namespace Aws
Aws::Connect::Model::HistoricalMetric::SetStatistic
void SetStatistic(Statistic &&value)
Definition: HistoricalMetric.h:127
Aws::Connect::Model::HistoricalMetric::WithThreshold
HistoricalMetric & WithThreshold(Threshold &&value)
Definition: HistoricalMetric.h:106
Aws::Connect::Model::HistoricalMetric::SetName
void SetName(const HistoricalMetricName &value)
Definition: HistoricalMetric.h:60
Aws::Connect::Model::HistoricalMetric::GetUnit
const Unit & GetUnit() const
Definition: HistoricalMetric.h:143
Aws::Connect::Model::HistoricalMetric::GetThreshold
const Threshold & GetThreshold() const
Definition: HistoricalMetric.h:81
Aws::Connect::Model::HistoricalMetric::WithStatistic
HistoricalMetric & WithStatistic(const Statistic &value)
Definition: HistoricalMetric.h:132
Aws::Connect::Model::HistoricalMetric::WithUnit
HistoricalMetric & WithUnit(const Unit &value)
Definition: HistoricalMetric.h:163
Aws::Connect::Model::HistoricalMetric::SetThreshold
void SetThreshold(const Threshold &value)
Definition: HistoricalMetric.h:91
Aws::Connect::Model::HistoricalMetric::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Connect::Model::HistoricalMetric::WithUnit
HistoricalMetric & WithUnit(Unit &&value)
Definition: HistoricalMetric.h:168
Aws::Connect::Model::HistoricalMetric::HistoricalMetric
HistoricalMetric(Aws::Utils::Json::JsonView jsonValue)
Statistic.h
Aws::Connect::Model::HistoricalMetric::ThresholdHasBeenSet
bool ThresholdHasBeenSet() const
Definition: HistoricalMetric.h:86
Aws::Connect::Model::HistoricalMetric::NameHasBeenSet
bool NameHasBeenSet() const
Definition: HistoricalMetric.h:55
Aws::Connect::Model::Threshold
Definition: Threshold.h:33
Aws::Connect::Model::HistoricalMetric::operator=
HistoricalMetric & 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::HistoricalMetric::SetStatistic
void SetStatistic(const Statistic &value)
Definition: HistoricalMetric.h:122
Threshold.h
Aws::Connect::Model::HistoricalMetric::SetName
void SetName(HistoricalMetricName &&value)
Definition: HistoricalMetric.h:65
Aws::Connect::Model::HistoricalMetricName
HistoricalMetricName
Definition: HistoricalMetricName.h:17
HistoricalMetricName.h
Aws::Connect::Model::HistoricalMetric::SetUnit
void SetUnit(const Unit &value)
Definition: HistoricalMetric.h:153
Aws::Connect::Model::HistoricalMetric::SetThreshold
void SetThreshold(Threshold &&value)
Definition: HistoricalMetric.h:96
Aws::Connect::Model::HistoricalMetric::SetUnit
void SetUnit(Unit &&value)
Definition: HistoricalMetric.h:158
Aws::Connect::Model::HistoricalMetric
Definition: HistoricalMetric.h:39
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::Connect::Model::HistoricalMetric::GetName
const HistoricalMetricName & GetName() const
Definition: HistoricalMetric.h:50
Aws::Connect::Model::HistoricalMetric::WithName
HistoricalMetric & WithName(HistoricalMetricName &&value)
Definition: HistoricalMetric.h:75
Aws::Connect::Model::HistoricalMetric::UnitHasBeenSet
bool UnitHasBeenSet() const
Definition: HistoricalMetric.h:148
Aws::Connect::Model::HistoricalMetric::WithName
HistoricalMetric & WithName(const HistoricalMetricName &value)
Definition: HistoricalMetric.h:70
Aws::Connect::Model::Statistic
Statistic
Definition: Statistic.h:17
Aws::Connect::Model::Unit
Unit
Definition: Unit.h:17
Aws::Connect::Model::HistoricalMetric::WithStatistic
HistoricalMetric & WithStatistic(Statistic &&value)
Definition: HistoricalMetric.h:137
Aws::Connect::Model::HistoricalMetric::WithThreshold
HistoricalMetric & WithThreshold(const Threshold &value)
Definition: HistoricalMetric.h:101
Unit.h
AWS_CONNECT_API
#define AWS_CONNECT_API
Definition: Connect_EXPORTS.h:28
Aws::Connect::Model::HistoricalMetric::HistoricalMetric
HistoricalMetric()
Aws::Connect::Model::HistoricalMetric::StatisticHasBeenSet
bool StatisticHasBeenSet() const
Definition: HistoricalMetric.h:117
Connect_EXPORTS.h
Aws::Connect::Model::HistoricalMetric::GetStatistic
const Statistic & GetStatistic() const
Definition: HistoricalMetric.h:112