AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
HistoricalMetric.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/model/HistoricalMetricName.h>
9#include <aws/connect/model/Threshold.h>
10#include <aws/connect/model/Statistic.h>
11#include <aws/connect/model/Unit.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Connect
25{
26namespace Model
27{
28
39 {
40 public:
41 AWS_CONNECT_API HistoricalMetric() = default;
42 AWS_CONNECT_API HistoricalMetric(Aws::Utils::Json::JsonView jsonValue);
44 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
51 inline HistoricalMetricName GetName() const { return m_name; }
52 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
53 inline void SetName(HistoricalMetricName value) { m_nameHasBeenSet = true; m_name = value; }
54 inline HistoricalMetric& WithName(HistoricalMetricName value) { SetName(value); return *this;}
56
58
61 inline const Threshold& GetThreshold() const { return m_threshold; }
62 inline bool ThresholdHasBeenSet() const { return m_thresholdHasBeenSet; }
63 template<typename ThresholdT = Threshold>
64 void SetThreshold(ThresholdT&& value) { m_thresholdHasBeenSet = true; m_threshold = std::forward<ThresholdT>(value); }
65 template<typename ThresholdT = Threshold>
66 HistoricalMetric& WithThreshold(ThresholdT&& value) { SetThreshold(std::forward<ThresholdT>(value)); return *this;}
68
70
73 inline Statistic GetStatistic() const { return m_statistic; }
74 inline bool StatisticHasBeenSet() const { return m_statisticHasBeenSet; }
75 inline void SetStatistic(Statistic value) { m_statisticHasBeenSet = true; m_statistic = value; }
76 inline HistoricalMetric& WithStatistic(Statistic value) { SetStatistic(value); return *this;}
78
80
83 inline Unit GetUnit() const { return m_unit; }
84 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
85 inline void SetUnit(Unit value) { m_unitHasBeenSet = true; m_unit = value; }
86 inline HistoricalMetric& WithUnit(Unit value) { SetUnit(value); return *this;}
88 private:
89
91 bool m_nameHasBeenSet = false;
92
93 Threshold m_threshold;
94 bool m_thresholdHasBeenSet = false;
95
96 Statistic m_statistic{Statistic::NOT_SET};
97 bool m_statisticHasBeenSet = false;
98
99 Unit m_unit{Unit::NOT_SET};
100 bool m_unitHasBeenSet = false;
101 };
102
103} // namespace Model
104} // namespace Connect
105} // namespace Aws
HistoricalMetric & WithUnit(Unit value)
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
HistoricalMetric & WithThreshold(ThresholdT &&value)
HistoricalMetric & WithName(HistoricalMetricName value)
AWS_CONNECT_API HistoricalMetric(Aws::Utils::Json::JsonView jsonValue)
HistoricalMetricName GetName() const
AWS_CONNECT_API HistoricalMetric & operator=(Aws::Utils::Json::JsonView jsonValue)
HistoricalMetric & WithStatistic(Statistic value)
void SetName(HistoricalMetricName value)
const Threshold & GetThreshold() const
AWS_CONNECT_API HistoricalMetric()=default
void SetThreshold(ThresholdT &&value)
Aws::Utils::Json::JsonValue JsonValue