AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
FieldStats.h
1
6#pragma once
7#include <aws/cloudsearchdomain/CloudSearchDomain_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace CloudSearchDomain {
20namespace Model {
21
29 public:
30 AWS_CLOUDSEARCHDOMAIN_API FieldStats() = default;
31 AWS_CLOUDSEARCHDOMAIN_API FieldStats(Aws::Utils::Json::JsonView jsonValue);
32 AWS_CLOUDSEARCHDOMAIN_API FieldStats& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CLOUDSEARCHDOMAIN_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
46 inline const Aws::String& GetMin() const { return m_min; }
47 inline bool MinHasBeenSet() const { return m_minHasBeenSet; }
48 template <typename MinT = Aws::String>
49 void SetMin(MinT&& value) {
50 m_minHasBeenSet = true;
51 m_min = std::forward<MinT>(value);
52 }
53 template <typename MinT = Aws::String>
54 FieldStats& WithMin(MinT&& value) {
55 SetMin(std::forward<MinT>(value));
56 return *this;
57 }
59
61
71 inline const Aws::String& GetMax() const { return m_max; }
72 inline bool MaxHasBeenSet() const { return m_maxHasBeenSet; }
73 template <typename MaxT = Aws::String>
74 void SetMax(MaxT&& value) {
75 m_maxHasBeenSet = true;
76 m_max = std::forward<MaxT>(value);
77 }
78 template <typename MaxT = Aws::String>
79 FieldStats& WithMax(MaxT&& value) {
80 SetMax(std::forward<MaxT>(value));
81 return *this;
82 }
84
86
90 inline long long GetCount() const { return m_count; }
91 inline bool CountHasBeenSet() const { return m_countHasBeenSet; }
92 inline void SetCount(long long value) {
93 m_countHasBeenSet = true;
94 m_count = value;
95 }
96 inline FieldStats& WithCount(long long value) {
97 SetCount(value);
98 return *this;
99 }
101
103
107 inline long long GetMissing() const { return m_missing; }
108 inline bool MissingHasBeenSet() const { return m_missingHasBeenSet; }
109 inline void SetMissing(long long value) {
110 m_missingHasBeenSet = true;
111 m_missing = value;
112 }
113 inline FieldStats& WithMissing(long long value) {
114 SetMissing(value);
115 return *this;
116 }
118
120
124 inline double GetSum() const { return m_sum; }
125 inline bool SumHasBeenSet() const { return m_sumHasBeenSet; }
126 inline void SetSum(double value) {
127 m_sumHasBeenSet = true;
128 m_sum = value;
129 }
130 inline FieldStats& WithSum(double value) {
131 SetSum(value);
132 return *this;
133 }
135
137
140 inline double GetSumOfSquares() const { return m_sumOfSquares; }
141 inline bool SumOfSquaresHasBeenSet() const { return m_sumOfSquaresHasBeenSet; }
142 inline void SetSumOfSquares(double value) {
143 m_sumOfSquaresHasBeenSet = true;
144 m_sumOfSquares = value;
145 }
146 inline FieldStats& WithSumOfSquares(double value) {
147 SetSumOfSquares(value);
148 return *this;
149 }
151
153
163 inline const Aws::String& GetMean() const { return m_mean; }
164 inline bool MeanHasBeenSet() const { return m_meanHasBeenSet; }
165 template <typename MeanT = Aws::String>
166 void SetMean(MeanT&& value) {
167 m_meanHasBeenSet = true;
168 m_mean = std::forward<MeanT>(value);
169 }
170 template <typename MeanT = Aws::String>
171 FieldStats& WithMean(MeanT&& value) {
172 SetMean(std::forward<MeanT>(value));
173 return *this;
174 }
176
178
182 inline double GetStddev() const { return m_stddev; }
183 inline bool StddevHasBeenSet() const { return m_stddevHasBeenSet; }
184 inline void SetStddev(double value) {
185 m_stddevHasBeenSet = true;
186 m_stddev = value;
187 }
188 inline FieldStats& WithStddev(double value) {
189 SetStddev(value);
190 return *this;
191 }
193 private:
194 Aws::String m_min;
195
196 Aws::String m_max;
197
198 long long m_count{0};
199
200 long long m_missing{0};
201
202 double m_sum{0.0};
203
204 double m_sumOfSquares{0.0};
205
206 Aws::String m_mean;
207
208 double m_stddev{0.0};
209 bool m_minHasBeenSet = false;
210 bool m_maxHasBeenSet = false;
211 bool m_countHasBeenSet = false;
212 bool m_missingHasBeenSet = false;
213 bool m_sumHasBeenSet = false;
214 bool m_sumOfSquaresHasBeenSet = false;
215 bool m_meanHasBeenSet = false;
216 bool m_stddevHasBeenSet = false;
217};
218
219} // namespace Model
220} // namespace CloudSearchDomain
221} // namespace Aws
FieldStats & WithSum(double value)
Definition FieldStats.h:130
FieldStats & WithMissing(long long value)
Definition FieldStats.h:113
const Aws::String & GetMin() const
Definition FieldStats.h:46
AWS_CLOUDSEARCHDOMAIN_API FieldStats()=default
FieldStats & WithMin(MinT &&value)
Definition FieldStats.h:54
const Aws::String & GetMean() const
Definition FieldStats.h:163
FieldStats & WithSumOfSquares(double value)
Definition FieldStats.h:146
FieldStats & WithStddev(double value)
Definition FieldStats.h:188
AWS_CLOUDSEARCHDOMAIN_API FieldStats & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CLOUDSEARCHDOMAIN_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CLOUDSEARCHDOMAIN_API FieldStats(Aws::Utils::Json::JsonView jsonValue)
FieldStats & WithCount(long long value)
Definition FieldStats.h:96
FieldStats & WithMean(MeanT &&value)
Definition FieldStats.h:171
FieldStats & WithMax(MaxT &&value)
Definition FieldStats.h:79
const Aws::String & GetMax() const
Definition FieldStats.h:71
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue