AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Statistics.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8
9namespace Aws
10{
11namespace Utils
12{
13namespace Json
14{
15 class JsonValue;
16 class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace IoT
20{
21namespace Model
22{
23
33 {
34 public:
35 AWS_IOT_API Statistics();
36 AWS_IOT_API Statistics(Aws::Utils::Json::JsonView jsonValue);
39
40
42
46 inline int GetCount() const{ return m_count; }
47 inline bool CountHasBeenSet() const { return m_countHasBeenSet; }
48 inline void SetCount(int value) { m_countHasBeenSet = true; m_count = value; }
49 inline Statistics& WithCount(int value) { SetCount(value); return *this;}
51
53
56 inline double GetAverage() const{ return m_average; }
57 inline bool AverageHasBeenSet() const { return m_averageHasBeenSet; }
58 inline void SetAverage(double value) { m_averageHasBeenSet = true; m_average = value; }
59 inline Statistics& WithAverage(double value) { SetAverage(value); return *this;}
61
63
66 inline double GetSum() const{ return m_sum; }
67 inline bool SumHasBeenSet() const { return m_sumHasBeenSet; }
68 inline void SetSum(double value) { m_sumHasBeenSet = true; m_sum = value; }
69 inline Statistics& WithSum(double value) { SetSum(value); return *this;}
71
73
76 inline double GetMinimum() const{ return m_minimum; }
77 inline bool MinimumHasBeenSet() const { return m_minimumHasBeenSet; }
78 inline void SetMinimum(double value) { m_minimumHasBeenSet = true; m_minimum = value; }
79 inline Statistics& WithMinimum(double value) { SetMinimum(value); return *this;}
81
83
86 inline double GetMaximum() const{ return m_maximum; }
87 inline bool MaximumHasBeenSet() const { return m_maximumHasBeenSet; }
88 inline void SetMaximum(double value) { m_maximumHasBeenSet = true; m_maximum = value; }
89 inline Statistics& WithMaximum(double value) { SetMaximum(value); return *this;}
91
93
96 inline double GetSumOfSquares() const{ return m_sumOfSquares; }
97 inline bool SumOfSquaresHasBeenSet() const { return m_sumOfSquaresHasBeenSet; }
98 inline void SetSumOfSquares(double value) { m_sumOfSquaresHasBeenSet = true; m_sumOfSquares = value; }
99 inline Statistics& WithSumOfSquares(double value) { SetSumOfSquares(value); return *this;}
101
103
106 inline double GetVariance() const{ return m_variance; }
107 inline bool VarianceHasBeenSet() const { return m_varianceHasBeenSet; }
108 inline void SetVariance(double value) { m_varianceHasBeenSet = true; m_variance = value; }
109 inline Statistics& WithVariance(double value) { SetVariance(value); return *this;}
111
113
116 inline double GetStdDeviation() const{ return m_stdDeviation; }
117 inline bool StdDeviationHasBeenSet() const { return m_stdDeviationHasBeenSet; }
118 inline void SetStdDeviation(double value) { m_stdDeviationHasBeenSet = true; m_stdDeviation = value; }
119 inline Statistics& WithStdDeviation(double value) { SetStdDeviation(value); return *this;}
121 private:
122
123 int m_count;
124 bool m_countHasBeenSet = false;
125
126 double m_average;
127 bool m_averageHasBeenSet = false;
128
129 double m_sum;
130 bool m_sumHasBeenSet = false;
131
132 double m_minimum;
133 bool m_minimumHasBeenSet = false;
134
135 double m_maximum;
136 bool m_maximumHasBeenSet = false;
137
138 double m_sumOfSquares;
139 bool m_sumOfSquaresHasBeenSet = false;
140
141 double m_variance;
142 bool m_varianceHasBeenSet = false;
143
144 double m_stdDeviation;
145 bool m_stdDeviationHasBeenSet = false;
146 };
147
148} // namespace Model
149} // namespace IoT
150} // namespace Aws
void SetCount(int value)
Definition Statistics.h:48
void SetMinimum(double value)
Definition Statistics.h:78
void SetSum(double value)
Definition Statistics.h:68
void SetVariance(double value)
Definition Statistics.h:108
void SetAverage(double value)
Definition Statistics.h:58
bool AverageHasBeenSet() const
Definition Statistics.h:57
Statistics & WithCount(int value)
Definition Statistics.h:49
double GetMaximum() const
Definition Statistics.h:86
double GetStdDeviation() const
Definition Statistics.h:116
void SetMaximum(double value)
Definition Statistics.h:88
bool StdDeviationHasBeenSet() const
Definition Statistics.h:117
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
Statistics & WithAverage(double value)
Definition Statistics.h:59
bool SumOfSquaresHasBeenSet() const
Definition Statistics.h:97
Statistics & WithSumOfSquares(double value)
Definition Statistics.h:99
Statistics & WithStdDeviation(double value)
Definition Statistics.h:119
AWS_IOT_API Statistics & operator=(Aws::Utils::Json::JsonView jsonValue)
double GetSumOfSquares() const
Definition Statistics.h:96
void SetSumOfSquares(double value)
Definition Statistics.h:98
double GetAverage() const
Definition Statistics.h:56
bool MinimumHasBeenSet() const
Definition Statistics.h:77
void SetStdDeviation(double value)
Definition Statistics.h:118
double GetMinimum() const
Definition Statistics.h:76
Statistics & WithSum(double value)
Definition Statistics.h:69
Statistics & WithMinimum(double value)
Definition Statistics.h:79
AWS_IOT_API Statistics(Aws::Utils::Json::JsonView jsonValue)
Statistics & WithVariance(double value)
Definition Statistics.h:109
bool MaximumHasBeenSet() const
Definition Statistics.h:87
Statistics & WithMaximum(double value)
Definition Statistics.h:89
bool VarianceHasBeenSet() const
Definition Statistics.h:107
Aws::Utils::Json::JsonValue JsonValue