AWS SDK for C++  1.9.132
AWS SDK for C++
Statistics.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
8 
9 namespace Aws
10 {
11 namespace Utils
12 {
13 namespace Json
14 {
15  class JsonValue;
16  class JsonView;
17 } // namespace Json
18 } // namespace Utils
19 namespace IoT
20 {
21 namespace Model
22 {
23 
31  {
32  public:
37 
38 
42  inline int GetCount() const{ return m_count; }
43 
47  inline bool CountHasBeenSet() const { return m_countHasBeenSet; }
48 
52  inline void SetCount(int value) { m_countHasBeenSet = true; m_count = value; }
53 
57  inline Statistics& WithCount(int value) { SetCount(value); return *this;}
58 
59 
63  inline double GetAverage() const{ return m_average; }
64 
68  inline bool AverageHasBeenSet() const { return m_averageHasBeenSet; }
69 
73  inline void SetAverage(double value) { m_averageHasBeenSet = true; m_average = value; }
74 
78  inline Statistics& WithAverage(double value) { SetAverage(value); return *this;}
79 
80 
84  inline double GetSum() const{ return m_sum; }
85 
89  inline bool SumHasBeenSet() const { return m_sumHasBeenSet; }
90 
94  inline void SetSum(double value) { m_sumHasBeenSet = true; m_sum = value; }
95 
99  inline Statistics& WithSum(double value) { SetSum(value); return *this;}
100 
101 
105  inline double GetMinimum() const{ return m_minimum; }
106 
110  inline bool MinimumHasBeenSet() const { return m_minimumHasBeenSet; }
111 
115  inline void SetMinimum(double value) { m_minimumHasBeenSet = true; m_minimum = value; }
116 
120  inline Statistics& WithMinimum(double value) { SetMinimum(value); return *this;}
121 
122 
126  inline double GetMaximum() const{ return m_maximum; }
127 
131  inline bool MaximumHasBeenSet() const { return m_maximumHasBeenSet; }
132 
136  inline void SetMaximum(double value) { m_maximumHasBeenSet = true; m_maximum = value; }
137 
141  inline Statistics& WithMaximum(double value) { SetMaximum(value); return *this;}
142 
143 
147  inline double GetSumOfSquares() const{ return m_sumOfSquares; }
148 
152  inline bool SumOfSquaresHasBeenSet() const { return m_sumOfSquaresHasBeenSet; }
153 
157  inline void SetSumOfSquares(double value) { m_sumOfSquaresHasBeenSet = true; m_sumOfSquares = value; }
158 
162  inline Statistics& WithSumOfSquares(double value) { SetSumOfSquares(value); return *this;}
163 
164 
168  inline double GetVariance() const{ return m_variance; }
169 
173  inline bool VarianceHasBeenSet() const { return m_varianceHasBeenSet; }
174 
178  inline void SetVariance(double value) { m_varianceHasBeenSet = true; m_variance = value; }
179 
183  inline Statistics& WithVariance(double value) { SetVariance(value); return *this;}
184 
185 
189  inline double GetStdDeviation() const{ return m_stdDeviation; }
190 
194  inline bool StdDeviationHasBeenSet() const { return m_stdDeviationHasBeenSet; }
195 
199  inline void SetStdDeviation(double value) { m_stdDeviationHasBeenSet = true; m_stdDeviation = value; }
200 
204  inline Statistics& WithStdDeviation(double value) { SetStdDeviation(value); return *this;}
205 
206  private:
207 
208  int m_count;
209  bool m_countHasBeenSet;
210 
211  double m_average;
212  bool m_averageHasBeenSet;
213 
214  double m_sum;
215  bool m_sumHasBeenSet;
216 
217  double m_minimum;
218  bool m_minimumHasBeenSet;
219 
220  double m_maximum;
221  bool m_maximumHasBeenSet;
222 
223  double m_sumOfSquares;
224  bool m_sumOfSquaresHasBeenSet;
225 
226  double m_variance;
227  bool m_varianceHasBeenSet;
228 
229  double m_stdDeviation;
230  bool m_stdDeviationHasBeenSet;
231  };
232 
233 } // namespace Model
234 } // namespace IoT
235 } // namespace Aws
Aws::IoT::Model::Statistics::MinimumHasBeenSet
bool MinimumHasBeenSet() const
Definition: Statistics.h:110
Aws::IoT::Model::Statistics::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::IoT::Model::Statistics::SumHasBeenSet
bool SumHasBeenSet() const
Definition: Statistics.h:89
Aws::IoT::Model::Statistics::AverageHasBeenSet
bool AverageHasBeenSet() const
Definition: Statistics.h:68
Aws::IoT::Model::Statistics::GetSum
double GetSum() const
Definition: Statistics.h:84
Aws::IoT::Model::Statistics
Definition: Statistics.h:31
Aws::IoT::Model::Statistics::Statistics
Statistics()
Aws::IoT::Model::Statistics::GetCount
int GetCount() const
Definition: Statistics.h:42
Aws::IoT::Model::Statistics::GetSumOfSquares
double GetSumOfSquares() const
Definition: Statistics.h:147
Aws::IoT::Model::Statistics::SetVariance
void SetVariance(double value)
Definition: Statistics.h:178
Aws::IoT::Model::Statistics::GetMinimum
double GetMinimum() const
Definition: Statistics.h:105
Aws::IoT::Model::Statistics::WithAverage
Statistics & WithAverage(double value)
Definition: Statistics.h:78
Aws::IoT::Model::Statistics::SetCount
void SetCount(int value)
Definition: Statistics.h:52
Aws::IoT::Model::Statistics::WithVariance
Statistics & WithVariance(double value)
Definition: Statistics.h:183
Aws::IoT::Model::Statistics::WithSum
Statistics & WithSum(double value)
Definition: Statistics.h:99
Aws::IoT::Model::Statistics::StdDeviationHasBeenSet
bool StdDeviationHasBeenSet() const
Definition: Statistics.h:194
Aws::IoT::Model::Statistics::SetMinimum
void SetMinimum(double value)
Definition: Statistics.h:115
Aws::IoT::Model::Statistics::WithMaximum
Statistics & WithMaximum(double value)
Definition: Statistics.h:141
Aws::IoT::Model::Statistics::GetVariance
double GetVariance() const
Definition: Statistics.h:168
Aws::IoT::Model::Statistics::SetStdDeviation
void SetStdDeviation(double value)
Definition: Statistics.h:199
Aws::IoT::Model::Statistics::SetAverage
void SetAverage(double value)
Definition: Statistics.h:73
Aws::IoT::Model::Statistics::Statistics
Statistics(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::IoT::Model::Statistics::MaximumHasBeenSet
bool MaximumHasBeenSet() const
Definition: Statistics.h:131
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::IoT::Model::Statistics::WithSumOfSquares
Statistics & WithSumOfSquares(double value)
Definition: Statistics.h:162
Aws::IoT::Model::Statistics::SumOfSquaresHasBeenSet
bool SumOfSquaresHasBeenSet() const
Definition: Statistics.h:152
Aws::IoT::Model::Statistics::SetSumOfSquares
void SetSumOfSquares(double value)
Definition: Statistics.h:157
Aws::IoT::Model::Statistics::WithMinimum
Statistics & WithMinimum(double value)
Definition: Statistics.h:120
Aws::IoT::Model::Statistics::CountHasBeenSet
bool CountHasBeenSet() const
Definition: Statistics.h:47
Aws::IoT::Model::Statistics::GetStdDeviation
double GetStdDeviation() const
Definition: Statistics.h:189
Aws::IoT::Model::Statistics::SetSum
void SetSum(double value)
Definition: Statistics.h:94
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::Statistics::operator=
Statistics & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::Statistics::WithStdDeviation
Statistics & WithStdDeviation(double value)
Definition: Statistics.h:204
Aws::IoT::Model::Statistics::GetMaximum
double GetMaximum() const
Definition: Statistics.h:126
Aws::IoT::Model::Statistics::SetMaximum
void SetMaximum(double value)
Definition: Statistics.h:136
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::IoT::Model::Statistics::VarianceHasBeenSet
bool VarianceHasBeenSet() const
Definition: Statistics.h:173
Aws::IoT::Model::Statistics::WithCount
Statistics & WithCount(int value)
Definition: Statistics.h:57
Aws::IoT::Model::Statistics::GetAverage
double GetAverage() const
Definition: Statistics.h:63
IoT_EXPORTS.h