AWS SDK for C++  0.14.3
AWS SDK for C++
FieldStats.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
18 
19 namespace Aws
20 {
21 namespace Utils
22 {
23 namespace Json
24 {
25  class JsonValue;
26 } // namespace Json
27 } // namespace Utils
28 namespace CloudSearchDomain
29 {
30 namespace Model
31 {
32 
37  {
38  public:
39  FieldStats();
40  FieldStats(const Aws::Utils::Json::JsonValue& jsonValue);
41  FieldStats& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
42  Aws::Utils::Json::JsonValue Jsonize() const;
43 
54  inline const Aws::String& GetMin() const{ return m_min; }
55 
66  inline void SetMin(const Aws::String& value) { m_minHasBeenSet = true; m_min = value; }
67 
78  inline void SetMin(Aws::String&& value) { m_minHasBeenSet = true; m_min = value; }
79 
90  inline void SetMin(const char* value) { m_minHasBeenSet = true; m_min.assign(value); }
91 
102  inline FieldStats& WithMin(const Aws::String& value) { SetMin(value); return *this;}
103 
114  inline FieldStats& WithMin(Aws::String&& value) { SetMin(value); return *this;}
115 
126  inline FieldStats& WithMin(const char* value) { SetMin(value); return *this;}
127 
138  inline const Aws::String& GetMax() const{ return m_max; }
139 
150  inline void SetMax(const Aws::String& value) { m_maxHasBeenSet = true; m_max = value; }
151 
162  inline void SetMax(Aws::String&& value) { m_maxHasBeenSet = true; m_max = value; }
163 
174  inline void SetMax(const char* value) { m_maxHasBeenSet = true; m_max.assign(value); }
175 
186  inline FieldStats& WithMax(const Aws::String& value) { SetMax(value); return *this;}
187 
198  inline FieldStats& WithMax(Aws::String&& value) { SetMax(value); return *this;}
199 
210  inline FieldStats& WithMax(const char* value) { SetMax(value); return *this;}
211 
216  inline long long GetCount() const{ return m_count; }
217 
222  inline void SetCount(long long value) { m_countHasBeenSet = true; m_count = value; }
223 
228  inline FieldStats& WithCount(long long value) { SetCount(value); return *this;}
229 
234  inline long long GetMissing() const{ return m_missing; }
235 
240  inline void SetMissing(long long value) { m_missingHasBeenSet = true; m_missing = value; }
241 
246  inline FieldStats& WithMissing(long long value) { SetMissing(value); return *this;}
247 
252  inline double GetSum() const{ return m_sum; }
253 
258  inline void SetSum(double value) { m_sumHasBeenSet = true; m_sum = value; }
259 
264  inline FieldStats& WithSum(double value) { SetSum(value); return *this;}
265 
269  inline double GetSumOfSquares() const{ return m_sumOfSquares; }
270 
274  inline void SetSumOfSquares(double value) { m_sumOfSquaresHasBeenSet = true; m_sumOfSquares = value; }
275 
279  inline FieldStats& WithSumOfSquares(double value) { SetSumOfSquares(value); return *this;}
280 
291  inline const Aws::String& GetMean() const{ return m_mean; }
292 
303  inline void SetMean(const Aws::String& value) { m_meanHasBeenSet = true; m_mean = value; }
304 
315  inline void SetMean(Aws::String&& value) { m_meanHasBeenSet = true; m_mean = value; }
316 
327  inline void SetMean(const char* value) { m_meanHasBeenSet = true; m_mean.assign(value); }
328 
339  inline FieldStats& WithMean(const Aws::String& value) { SetMean(value); return *this;}
340 
351  inline FieldStats& WithMean(Aws::String&& value) { SetMean(value); return *this;}
352 
363  inline FieldStats& WithMean(const char* value) { SetMean(value); return *this;}
364 
369  inline double GetStddev() const{ return m_stddev; }
370 
375  inline void SetStddev(double value) { m_stddevHasBeenSet = true; m_stddev = value; }
376 
381  inline FieldStats& WithStddev(double value) { SetStddev(value); return *this;}
382 
383  private:
384  Aws::String m_min;
385  bool m_minHasBeenSet;
386  Aws::String m_max;
387  bool m_maxHasBeenSet;
388  long long m_count;
389  bool m_countHasBeenSet;
390  long long m_missing;
391  bool m_missingHasBeenSet;
392  double m_sum;
393  bool m_sumHasBeenSet;
394  double m_sumOfSquares;
395  bool m_sumOfSquaresHasBeenSet;
396  Aws::String m_mean;
397  bool m_meanHasBeenSet;
398  double m_stddev;
399  bool m_stddevHasBeenSet;
400  };
401 
402 } // namespace Model
403 } // namespace CloudSearchDomain
404 } // namespace Aws
FieldStats & WithCount(long long value)
Definition: FieldStats.h:228
void SetMin(const Aws::String &value)
Definition: FieldStats.h:66
void SetMin(Aws::String &&value)
Definition: FieldStats.h:78
const Aws::String & GetMax() const
Definition: FieldStats.h:138
FieldStats & WithMax(const char *value)
Definition: FieldStats.h:210
FieldStats & WithMean(const Aws::String &value)
Definition: FieldStats.h:339
FieldStats & WithStddev(double value)
Definition: FieldStats.h:381
void SetMean(const Aws::String &value)
Definition: FieldStats.h:303
void SetMax(Aws::String &&value)
Definition: FieldStats.h:162
FieldStats & WithMean(const char *value)
Definition: FieldStats.h:363
#define AWS_CLOUDSEARCHDOMAIN_API
const Aws::String & GetMin() const
Definition: FieldStats.h:54
const Aws::String & GetMean() const
Definition: FieldStats.h:291
FieldStats & WithMissing(long long value)
Definition: FieldStats.h:246
FieldStats & WithMin(Aws::String &&value)
Definition: FieldStats.h:114
FieldStats & WithMin(const Aws::String &value)
Definition: FieldStats.h:102
void SetMean(Aws::String &&value)
Definition: FieldStats.h:315
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
FieldStats & WithMean(Aws::String &&value)
Definition: FieldStats.h:351
FieldStats & WithSumOfSquares(double value)
Definition: FieldStats.h:279
FieldStats & WithMax(Aws::String &&value)
Definition: FieldStats.h:198
FieldStats & WithMin(const char *value)
Definition: FieldStats.h:126
FieldStats & WithMax(const Aws::String &value)
Definition: FieldStats.h:186
FieldStats & WithSum(double value)
Definition: FieldStats.h:264
void SetMax(const Aws::String &value)
Definition: FieldStats.h:150
JSON (JavaScript Object Notation).