AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
StatisticSet.h
1
6#pragma once
7#include <aws/crt/cbor/Cbor.h>
8#include <aws/monitoring/CloudWatch_EXPORTS.h>
9
10namespace Aws {
11namespace Utils {
12namespace Cbor {
13class CborValue;
14} // namespace Cbor
15} // namespace Utils
16namespace CloudWatch {
17namespace Model {
18
26 public:
27 AWS_CLOUDWATCH_API StatisticSet() = default;
28 AWS_CLOUDWATCH_API StatisticSet(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
29 AWS_CLOUDWATCH_API StatisticSet& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
30 AWS_CLOUDWATCH_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
31
33
36 inline double GetSampleCount() const { return m_sampleCount; }
37 inline bool SampleCountHasBeenSet() const { return m_sampleCountHasBeenSet; }
38 inline void SetSampleCount(double value) {
39 m_sampleCountHasBeenSet = true;
40 m_sampleCount = value;
41 }
42 inline StatisticSet& WithSampleCount(double value) {
43 SetSampleCount(value);
44 return *this;
45 }
47
49
52 inline double GetSum() const { return m_sum; }
53 inline bool SumHasBeenSet() const { return m_sumHasBeenSet; }
54 inline void SetSum(double value) {
55 m_sumHasBeenSet = true;
56 m_sum = value;
57 }
58 inline StatisticSet& WithSum(double value) {
59 SetSum(value);
60 return *this;
61 }
63
65
68 inline double GetMinimum() const { return m_minimum; }
69 inline bool MinimumHasBeenSet() const { return m_minimumHasBeenSet; }
70 inline void SetMinimum(double value) {
71 m_minimumHasBeenSet = true;
72 m_minimum = value;
73 }
74 inline StatisticSet& WithMinimum(double value) {
75 SetMinimum(value);
76 return *this;
77 }
79
81
84 inline double GetMaximum() const { return m_maximum; }
85 inline bool MaximumHasBeenSet() const { return m_maximumHasBeenSet; }
86 inline void SetMaximum(double value) {
87 m_maximumHasBeenSet = true;
88 m_maximum = value;
89 }
90 inline StatisticSet& WithMaximum(double value) {
91 SetMaximum(value);
92 return *this;
93 }
95 private:
96 double m_sampleCount{0.0};
97
98 double m_sum{0.0};
99
100 double m_minimum{0.0};
101
102 double m_maximum{0.0};
103 bool m_sampleCountHasBeenSet = false;
104 bool m_sumHasBeenSet = false;
105 bool m_minimumHasBeenSet = false;
106 bool m_maximumHasBeenSet = false;
107};
108
109} // namespace Model
110} // namespace CloudWatch
111} // namespace Aws
AWS_CLOUDWATCH_API StatisticSet()=default
StatisticSet & WithSum(double value)
AWS_CLOUDWATCH_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
StatisticSet & WithSampleCount(double value)
StatisticSet & WithMaximum(double value)
AWS_CLOUDWATCH_API StatisticSet & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
StatisticSet & WithMinimum(double value)
AWS_CLOUDWATCH_API StatisticSet(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)