AWS SDK for C++

AWS SDK for C++ Version 1.11.930

Loading...
Searching...
No Matches
StatisticSet.h
1
6#pragma once
7#include <aws/mwaa/MWAA_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace MWAA {
17namespace Model {
18
29 public:
30 AWS_MWAA_API StatisticSet() = default;
34
36
39 inline int GetSampleCount() const { return m_sampleCount; }
40 inline bool SampleCountHasBeenSet() const { return m_sampleCountHasBeenSet; }
41 inline void SetSampleCount(int value) {
42 m_sampleCountHasBeenSet = true;
43 m_sampleCount = value;
44 }
45 inline StatisticSet& WithSampleCount(int value) {
46 SetSampleCount(value);
47 return *this;
48 }
50
52
55 inline double GetSum() const { return m_sum; }
56 inline bool SumHasBeenSet() const { return m_sumHasBeenSet; }
57 inline void SetSum(double value) {
58 m_sumHasBeenSet = true;
59 m_sum = value;
60 }
61 inline StatisticSet& WithSum(double value) {
62 SetSum(value);
63 return *this;
64 }
66
68
71 inline double GetMinimum() const { return m_minimum; }
72 inline bool MinimumHasBeenSet() const { return m_minimumHasBeenSet; }
73 inline void SetMinimum(double value) {
74 m_minimumHasBeenSet = true;
75 m_minimum = value;
76 }
77 inline StatisticSet& WithMinimum(double value) {
78 SetMinimum(value);
79 return *this;
80 }
82
84
87 inline double GetMaximum() const { return m_maximum; }
88 inline bool MaximumHasBeenSet() const { return m_maximumHasBeenSet; }
89 inline void SetMaximum(double value) {
90 m_maximumHasBeenSet = true;
91 m_maximum = value;
92 }
93 inline StatisticSet& WithMaximum(double value) {
94 SetMaximum(value);
95 return *this;
96 }
98 private:
99 int m_sampleCount{0};
100
101 double m_sum{0.0};
102
103 double m_minimum{0.0};
104
105 double m_maximum{0.0};
106 bool m_sampleCountHasBeenSet = false;
107 bool m_sumHasBeenSet = false;
108 bool m_minimumHasBeenSet = false;
109 bool m_maximumHasBeenSet = false;
110};
111
112} // namespace Model
113} // namespace MWAA
114} // namespace Aws
StatisticSet & WithSum(double value)
AWS_MWAA_API StatisticSet & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_MWAA_API StatisticSet()=default
AWS_MWAA_API Aws::Utils::Json::JsonValue Jsonize() const
StatisticSet & WithMaximum(double value)
AWS_MWAA_API StatisticSet(Aws::Utils::Json::JsonView jsonValue)
StatisticSet & WithSampleCount(int value)
void SetMinimum(double value)
StatisticSet & WithMinimum(double value)
void SetMaximum(double value)
Aws::Utils::Json::JsonValue JsonValue