AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
Statistics.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/forecast/ForecastService_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace ForecastService {
20namespace Model {
21
31 public:
32 AWS_FORECASTSERVICE_API Statistics() = default;
33 AWS_FORECASTSERVICE_API Statistics(Aws::Utils::Json::JsonView jsonValue);
34 AWS_FORECASTSERVICE_API Statistics& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_FORECASTSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline int GetCount() const { return m_count; }
43 inline bool CountHasBeenSet() const { return m_countHasBeenSet; }
44 inline void SetCount(int value) {
45 m_countHasBeenSet = true;
46 m_count = value;
47 }
48 inline Statistics& WithCount(int value) {
49 SetCount(value);
50 return *this;
51 }
53
55
59 inline int GetCountDistinct() const { return m_countDistinct; }
60 inline bool CountDistinctHasBeenSet() const { return m_countDistinctHasBeenSet; }
61 inline void SetCountDistinct(int value) {
62 m_countDistinctHasBeenSet = true;
63 m_countDistinct = value;
64 }
65 inline Statistics& WithCountDistinct(int value) {
66 SetCountDistinct(value);
67 return *this;
68 }
70
72
76 inline int GetCountNull() const { return m_countNull; }
77 inline bool CountNullHasBeenSet() const { return m_countNullHasBeenSet; }
78 inline void SetCountNull(int value) {
79 m_countNullHasBeenSet = true;
80 m_countNull = value;
81 }
82 inline Statistics& WithCountNull(int value) {
83 SetCountNull(value);
84 return *this;
85 }
87
89
93 inline int GetCountNan() const { return m_countNan; }
94 inline bool CountNanHasBeenSet() const { return m_countNanHasBeenSet; }
95 inline void SetCountNan(int value) {
96 m_countNanHasBeenSet = true;
97 m_countNan = value;
98 }
99 inline Statistics& WithCountNan(int value) {
100 SetCountNan(value);
101 return *this;
102 }
104
106
109 inline const Aws::String& GetMin() const { return m_min; }
110 inline bool MinHasBeenSet() const { return m_minHasBeenSet; }
111 template <typename MinT = Aws::String>
112 void SetMin(MinT&& value) {
113 m_minHasBeenSet = true;
114 m_min = std::forward<MinT>(value);
115 }
116 template <typename MinT = Aws::String>
117 Statistics& WithMin(MinT&& value) {
118 SetMin(std::forward<MinT>(value));
119 return *this;
120 }
122
124
127 inline const Aws::String& GetMax() const { return m_max; }
128 inline bool MaxHasBeenSet() const { return m_maxHasBeenSet; }
129 template <typename MaxT = Aws::String>
130 void SetMax(MaxT&& value) {
131 m_maxHasBeenSet = true;
132 m_max = std::forward<MaxT>(value);
133 }
134 template <typename MaxT = Aws::String>
135 Statistics& WithMax(MaxT&& value) {
136 SetMax(std::forward<MaxT>(value));
137 return *this;
138 }
140
142
145 inline double GetAvg() const { return m_avg; }
146 inline bool AvgHasBeenSet() const { return m_avgHasBeenSet; }
147 inline void SetAvg(double value) {
148 m_avgHasBeenSet = true;
149 m_avg = value;
150 }
151 inline Statistics& WithAvg(double value) {
152 SetAvg(value);
153 return *this;
154 }
156
158
161 inline double GetStddev() const { return m_stddev; }
162 inline bool StddevHasBeenSet() const { return m_stddevHasBeenSet; }
163 inline void SetStddev(double value) {
164 m_stddevHasBeenSet = true;
165 m_stddev = value;
166 }
167 inline Statistics& WithStddev(double value) {
168 SetStddev(value);
169 return *this;
170 }
172
174
178 inline long long GetCountLong() const { return m_countLong; }
179 inline bool CountLongHasBeenSet() const { return m_countLongHasBeenSet; }
180 inline void SetCountLong(long long value) {
181 m_countLongHasBeenSet = true;
182 m_countLong = value;
183 }
184 inline Statistics& WithCountLong(long long value) {
185 SetCountLong(value);
186 return *this;
187 }
189
191
196 inline long long GetCountDistinctLong() const { return m_countDistinctLong; }
197 inline bool CountDistinctLongHasBeenSet() const { return m_countDistinctLongHasBeenSet; }
198 inline void SetCountDistinctLong(long long value) {
199 m_countDistinctLongHasBeenSet = true;
200 m_countDistinctLong = value;
201 }
202 inline Statistics& WithCountDistinctLong(long long value) {
204 return *this;
205 }
207
209
214 inline long long GetCountNullLong() const { return m_countNullLong; }
215 inline bool CountNullLongHasBeenSet() const { return m_countNullLongHasBeenSet; }
216 inline void SetCountNullLong(long long value) {
217 m_countNullLongHasBeenSet = true;
218 m_countNullLong = value;
219 }
220 inline Statistics& WithCountNullLong(long long value) {
221 SetCountNullLong(value);
222 return *this;
223 }
225
227
232 inline long long GetCountNanLong() const { return m_countNanLong; }
233 inline bool CountNanLongHasBeenSet() const { return m_countNanLongHasBeenSet; }
234 inline void SetCountNanLong(long long value) {
235 m_countNanLongHasBeenSet = true;
236 m_countNanLong = value;
237 }
238 inline Statistics& WithCountNanLong(long long value) {
239 SetCountNanLong(value);
240 return *this;
241 }
243 private:
244 int m_count{0};
245
246 int m_countDistinct{0};
247
248 int m_countNull{0};
249
250 int m_countNan{0};
251
252 Aws::String m_min;
253
254 Aws::String m_max;
255
256 double m_avg{0.0};
257
258 double m_stddev{0.0};
259
260 long long m_countLong{0};
261
262 long long m_countDistinctLong{0};
263
264 long long m_countNullLong{0};
265
266 long long m_countNanLong{0};
267 bool m_countHasBeenSet = false;
268 bool m_countDistinctHasBeenSet = false;
269 bool m_countNullHasBeenSet = false;
270 bool m_countNanHasBeenSet = false;
271 bool m_minHasBeenSet = false;
272 bool m_maxHasBeenSet = false;
273 bool m_avgHasBeenSet = false;
274 bool m_stddevHasBeenSet = false;
275 bool m_countLongHasBeenSet = false;
276 bool m_countDistinctLongHasBeenSet = false;
277 bool m_countNullLongHasBeenSet = false;
278 bool m_countNanLongHasBeenSet = false;
279};
280
281} // namespace Model
282} // namespace ForecastService
283} // namespace Aws
Statistics & WithStddev(double value)
Definition Statistics.h:167
Statistics & WithCount(int value)
Definition Statistics.h:48
AWS_FORECASTSERVICE_API Statistics(Aws::Utils::Json::JsonView jsonValue)
Statistics & WithAvg(double value)
Definition Statistics.h:151
Statistics & WithCountDistinct(int value)
Definition Statistics.h:65
void SetCountDistinctLong(long long value)
Definition Statistics.h:198
const Aws::String & GetMin() const
Definition Statistics.h:109
Statistics & WithCountNull(int value)
Definition Statistics.h:82
Statistics & WithCountLong(long long value)
Definition Statistics.h:184
Statistics & WithMin(MinT &&value)
Definition Statistics.h:117
Statistics & WithCountNan(int value)
Definition Statistics.h:99
AWS_FORECASTSERVICE_API Statistics & operator=(Aws::Utils::Json::JsonView jsonValue)
Statistics & WithCountNullLong(long long value)
Definition Statistics.h:220
AWS_FORECASTSERVICE_API Statistics()=default
Statistics & WithCountDistinctLong(long long value)
Definition Statistics.h:202
Statistics & WithCountNanLong(long long value)
Definition Statistics.h:238
Statistics & WithMax(MaxT &&value)
Definition Statistics.h:135
const Aws::String & GetMax() const
Definition Statistics.h:127
void SetCountNullLong(long long value)
Definition Statistics.h:216
void SetCountNanLong(long long value)
Definition Statistics.h:234
AWS_FORECASTSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue