AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
StatisticSet.h
1
6#pragma once
7#include <aws/monitoring/CloudWatch_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9
10namespace Aws
11{
12namespace Utils
13{
14namespace Xml
15{
16 class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace CloudWatch
20{
21namespace Model
22{
23
31 {
32 public:
33 AWS_CLOUDWATCH_API StatisticSet();
34 AWS_CLOUDWATCH_API StatisticSet(const Aws::Utils::Xml::XmlNode& xmlNode);
35 AWS_CLOUDWATCH_API StatisticSet& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
36
37 AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
38 AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
39
40
42
45 inline double GetSampleCount() const{ return m_sampleCount; }
46 inline bool SampleCountHasBeenSet() const { return m_sampleCountHasBeenSet; }
47 inline void SetSampleCount(double value) { m_sampleCountHasBeenSet = true; m_sampleCount = value; }
48 inline StatisticSet& WithSampleCount(double value) { SetSampleCount(value); return *this;}
50
52
55 inline double GetSum() const{ return m_sum; }
56 inline bool SumHasBeenSet() const { return m_sumHasBeenSet; }
57 inline void SetSum(double value) { m_sumHasBeenSet = true; m_sum = value; }
58 inline StatisticSet& WithSum(double value) { SetSum(value); return *this;}
60
62
65 inline double GetMinimum() const{ return m_minimum; }
66 inline bool MinimumHasBeenSet() const { return m_minimumHasBeenSet; }
67 inline void SetMinimum(double value) { m_minimumHasBeenSet = true; m_minimum = value; }
68 inline StatisticSet& WithMinimum(double value) { SetMinimum(value); return *this;}
70
72
75 inline double GetMaximum() const{ return m_maximum; }
76 inline bool MaximumHasBeenSet() const { return m_maximumHasBeenSet; }
77 inline void SetMaximum(double value) { m_maximumHasBeenSet = true; m_maximum = value; }
78 inline StatisticSet& WithMaximum(double value) { SetMaximum(value); return *this;}
80 private:
81
82 double m_sampleCount;
83 bool m_sampleCountHasBeenSet = false;
84
85 double m_sum;
86 bool m_sumHasBeenSet = false;
87
88 double m_minimum;
89 bool m_minimumHasBeenSet = false;
90
91 double m_maximum;
92 bool m_maximumHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace CloudWatch
97} // namespace Aws
AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream &oStream, const char *location) const
StatisticSet & WithSum(double value)
AWS_CLOUDWATCH_API StatisticSet(const Aws::Utils::Xml::XmlNode &xmlNode)
StatisticSet & WithSampleCount(double value)
AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
StatisticSet & WithMaximum(double value)
StatisticSet & WithMinimum(double value)
AWS_CLOUDWATCH_API StatisticSet & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
std::basic_ostream< char, std::char_traits< char > > OStream