AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const HistoricalMetricName& GetName() const{ return m_name; }
52 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
53 inline void SetName(const HistoricalMetricName& value) { m_nameHasBeenSet = true; m_name = value; }
54 inline void SetName(HistoricalMetricName&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
55 inline HistoricalMetric& WithName(const HistoricalMetricName& value) { SetName(value); return *this;}
56 inline HistoricalMetric& WithName(HistoricalMetricName&& value) { SetName(std::move(value)); return *this;}
58
60
63 inline const Threshold& GetThreshold() const{ return m_threshold; }
64 inline bool ThresholdHasBeenSet() const { return m_thresholdHasBeenSet; }
65 inline void SetThreshold(const Threshold& value) { m_thresholdHasBeenSet = true; m_threshold = value; }
66 inline void SetThreshold(Threshold&& value) { m_thresholdHasBeenSet = true; m_threshold = std::move(value); }
67 inline HistoricalMetric& WithThreshold(const Threshold& value) { SetThreshold(value); return *this;}
68 inline HistoricalMetric& WithThreshold(Threshold&& value) { SetThreshold(std::move(value)); return *this;}
70
72
75 inline const Statistic& GetStatistic() const{ return m_statistic; }
76 inline bool StatisticHasBeenSet() const { return m_statisticHasBeenSet; }
77 inline void SetStatistic(const Statistic& value) { m_statisticHasBeenSet = true; m_statistic = value; }
78 inline void SetStatistic(Statistic&& value) { m_statisticHasBeenSet = true; m_statistic = std::move(value); }
79 inline HistoricalMetric& WithStatistic(const Statistic& value) { SetStatistic(value); return *this;}
80 inline HistoricalMetric& WithStatistic(Statistic&& value) { SetStatistic(std::move(value)); return *this;}
82
84
87 inline const Unit& GetUnit() const{ return m_unit; }
88 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
89 inline void SetUnit(const Unit& value) { m_unitHasBeenSet = true; m_unit = value; }
90 inline void SetUnit(Unit&& value) { m_unitHasBeenSet = true; m_unit = std::move(value); }
91 inline HistoricalMetric& WithUnit(const Unit& value) { SetUnit(value); return *this;}
92 inline HistoricalMetric& WithUnit(Unit&& value) { SetUnit(std::move(value)); return *this;}
94 private:
95
97 bool m_nameHasBeenSet = false;
98
99 Threshold m_threshold;
100 bool m_thresholdHasBeenSet = false;
101
102 Statistic m_statistic;
103 bool m_statisticHasBeenSet = false;
104
105 Unit m_unit;
106 bool m_unitHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace Connect
111} // namespace Aws
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
HistoricalMetric & WithName(const HistoricalMetricName &value)
void SetName(HistoricalMetricName &&value)
const Statistic & GetStatistic() const
void SetStatistic(const Statistic &value)
AWS_CONNECT_API HistoricalMetric(Aws::Utils::Json::JsonView jsonValue)
HistoricalMetric & WithUnit(const Unit &value)
const HistoricalMetricName & GetName() const
AWS_CONNECT_API HistoricalMetric & operator=(Aws::Utils::Json::JsonView jsonValue)
HistoricalMetric & WithName(HistoricalMetricName &&value)
HistoricalMetric & WithThreshold(const Threshold &value)
HistoricalMetric & WithThreshold(Threshold &&value)
HistoricalMetric & WithUnit(Unit &&value)
const Threshold & GetThreshold() const
HistoricalMetric & WithStatistic(const Statistic &value)
HistoricalMetric & WithStatistic(Statistic &&value)
void SetName(const HistoricalMetricName &value)
void SetThreshold(const Threshold &value)
Aws::Utils::Json::JsonValue JsonValue