AWS SDK for C++

AWS SDK for C++ Version 1.11.759

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/Statistic.h>
10#include <aws/connect/model/Threshold.h>
11#include <aws/connect/model/Unit.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Connect {
23namespace Model {
24
32 public:
33 AWS_CONNECT_API HistoricalMetric() = default;
34 AWS_CONNECT_API HistoricalMetric(Aws::Utils::Json::JsonView jsonValue);
36 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
123 inline HistoricalMetricName GetName() const { return m_name; }
124 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
125 inline void SetName(HistoricalMetricName value) {
126 m_nameHasBeenSet = true;
127 m_name = value;
128 }
130 SetName(value);
131 return *this;
132 }
134
136
139 inline const Threshold& GetThreshold() const { return m_threshold; }
140 inline bool ThresholdHasBeenSet() const { return m_thresholdHasBeenSet; }
141 template <typename ThresholdT = Threshold>
142 void SetThreshold(ThresholdT&& value) {
143 m_thresholdHasBeenSet = true;
144 m_threshold = std::forward<ThresholdT>(value);
145 }
146 template <typename ThresholdT = Threshold>
147 HistoricalMetric& WithThreshold(ThresholdT&& value) {
148 SetThreshold(std::forward<ThresholdT>(value));
149 return *this;
150 }
152
154
157 inline Statistic GetStatistic() const { return m_statistic; }
158 inline bool StatisticHasBeenSet() const { return m_statisticHasBeenSet; }
159 inline void SetStatistic(Statistic value) {
160 m_statisticHasBeenSet = true;
161 m_statistic = value;
162 }
164 SetStatistic(value);
165 return *this;
166 }
168
170
173 inline Unit GetUnit() const { return m_unit; }
174 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
175 inline void SetUnit(Unit value) {
176 m_unitHasBeenSet = true;
177 m_unit = value;
178 }
180 SetUnit(value);
181 return *this;
182 }
184 private:
186
187 Threshold m_threshold;
188
189 Statistic m_statistic{Statistic::NOT_SET};
190
191 Unit m_unit{Unit::NOT_SET};
192 bool m_nameHasBeenSet = false;
193 bool m_thresholdHasBeenSet = false;
194 bool m_statisticHasBeenSet = false;
195 bool m_unitHasBeenSet = false;
196};
197
198} // namespace Model
199} // namespace Connect
200} // 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
Aws::Utils::Json::JsonValue JsonValue