AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Datapoint.h
1
6#pragma once
7#include <aws/monitoring/CloudWatch_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/monitoring/model/StandardUnit.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Xml
20{
21 class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace CloudWatch
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_CLOUDWATCH_API Datapoint();
39 AWS_CLOUDWATCH_API Datapoint(const Aws::Utils::Xml::XmlNode& xmlNode);
40 AWS_CLOUDWATCH_API Datapoint& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
41
42 AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43 AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
44
45
47
50 inline const Aws::Utils::DateTime& GetTimestamp() const{ return m_timestamp; }
51 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
52 inline void SetTimestamp(const Aws::Utils::DateTime& value) { m_timestampHasBeenSet = true; m_timestamp = value; }
53 inline void SetTimestamp(Aws::Utils::DateTime&& value) { m_timestampHasBeenSet = true; m_timestamp = std::move(value); }
54 inline Datapoint& WithTimestamp(const Aws::Utils::DateTime& value) { SetTimestamp(value); return *this;}
55 inline Datapoint& WithTimestamp(Aws::Utils::DateTime&& value) { SetTimestamp(std::move(value)); return *this;}
57
59
63 inline double GetSampleCount() const{ return m_sampleCount; }
64 inline bool SampleCountHasBeenSet() const { return m_sampleCountHasBeenSet; }
65 inline void SetSampleCount(double value) { m_sampleCountHasBeenSet = true; m_sampleCount = value; }
66 inline Datapoint& WithSampleCount(double value) { SetSampleCount(value); return *this;}
68
70
73 inline double GetAverage() const{ return m_average; }
74 inline bool AverageHasBeenSet() const { return m_averageHasBeenSet; }
75 inline void SetAverage(double value) { m_averageHasBeenSet = true; m_average = value; }
76 inline Datapoint& WithAverage(double value) { SetAverage(value); return *this;}
78
80
83 inline double GetSum() const{ return m_sum; }
84 inline bool SumHasBeenSet() const { return m_sumHasBeenSet; }
85 inline void SetSum(double value) { m_sumHasBeenSet = true; m_sum = value; }
86 inline Datapoint& WithSum(double value) { SetSum(value); return *this;}
88
90
93 inline double GetMinimum() const{ return m_minimum; }
94 inline bool MinimumHasBeenSet() const { return m_minimumHasBeenSet; }
95 inline void SetMinimum(double value) { m_minimumHasBeenSet = true; m_minimum = value; }
96 inline Datapoint& WithMinimum(double value) { SetMinimum(value); return *this;}
98
100
103 inline double GetMaximum() const{ return m_maximum; }
104 inline bool MaximumHasBeenSet() const { return m_maximumHasBeenSet; }
105 inline void SetMaximum(double value) { m_maximumHasBeenSet = true; m_maximum = value; }
106 inline Datapoint& WithMaximum(double value) { SetMaximum(value); return *this;}
108
110
113 inline const StandardUnit& GetUnit() const{ return m_unit; }
114 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
115 inline void SetUnit(const StandardUnit& value) { m_unitHasBeenSet = true; m_unit = value; }
116 inline void SetUnit(StandardUnit&& value) { m_unitHasBeenSet = true; m_unit = std::move(value); }
117 inline Datapoint& WithUnit(const StandardUnit& value) { SetUnit(value); return *this;}
118 inline Datapoint& WithUnit(StandardUnit&& value) { SetUnit(std::move(value)); return *this;}
120
122
125 inline const Aws::Map<Aws::String, double>& GetExtendedStatistics() const{ return m_extendedStatistics; }
126 inline bool ExtendedStatisticsHasBeenSet() const { return m_extendedStatisticsHasBeenSet; }
127 inline void SetExtendedStatistics(const Aws::Map<Aws::String, double>& value) { m_extendedStatisticsHasBeenSet = true; m_extendedStatistics = value; }
128 inline void SetExtendedStatistics(Aws::Map<Aws::String, double>&& value) { m_extendedStatisticsHasBeenSet = true; m_extendedStatistics = std::move(value); }
130 inline Datapoint& WithExtendedStatistics(Aws::Map<Aws::String, double>&& value) { SetExtendedStatistics(std::move(value)); return *this;}
131 inline Datapoint& AddExtendedStatistics(const Aws::String& key, double value) { m_extendedStatisticsHasBeenSet = true; m_extendedStatistics.emplace(key, value); return *this; }
132 inline Datapoint& AddExtendedStatistics(Aws::String&& key, double value) { m_extendedStatisticsHasBeenSet = true; m_extendedStatistics.emplace(std::move(key), value); return *this; }
133 inline Datapoint& AddExtendedStatistics(const char* key, double value) { m_extendedStatisticsHasBeenSet = true; m_extendedStatistics.emplace(key, value); return *this; }
135 private:
136
137 Aws::Utils::DateTime m_timestamp;
138 bool m_timestampHasBeenSet = false;
139
140 double m_sampleCount;
141 bool m_sampleCountHasBeenSet = false;
142
143 double m_average;
144 bool m_averageHasBeenSet = false;
145
146 double m_sum;
147 bool m_sumHasBeenSet = false;
148
149 double m_minimum;
150 bool m_minimumHasBeenSet = false;
151
152 double m_maximum;
153 bool m_maximumHasBeenSet = false;
154
155 StandardUnit m_unit;
156 bool m_unitHasBeenSet = false;
157
158 Aws::Map<Aws::String, double> m_extendedStatistics;
159 bool m_extendedStatisticsHasBeenSet = false;
160 };
161
162} // namespace Model
163} // namespace CloudWatch
164} // namespace Aws
Datapoint & WithSum(double value)
Definition Datapoint.h:86
void SetSampleCount(double value)
Definition Datapoint.h:65
bool ExtendedStatisticsHasBeenSet() const
Definition Datapoint.h:126
void SetMinimum(double value)
Definition Datapoint.h:95
AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetExtendedStatistics(const Aws::Map< Aws::String, double > &value)
Definition Datapoint.h:127
Datapoint & AddExtendedStatistics(const char *key, double value)
Definition Datapoint.h:133
Datapoint & WithMaximum(double value)
Definition Datapoint.h:106
void SetAverage(double value)
Definition Datapoint.h:75
Datapoint & WithExtendedStatistics(Aws::Map< Aws::String, double > &&value)
Definition Datapoint.h:130
void SetExtendedStatistics(Aws::Map< Aws::String, double > &&value)
Definition Datapoint.h:128
AWS_CLOUDWATCH_API Datapoint & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Datapoint & WithUnit(StandardUnit &&value)
Definition Datapoint.h:118
AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::Utils::DateTime & GetTimestamp() const
Definition Datapoint.h:50
Datapoint & AddExtendedStatistics(const Aws::String &key, double value)
Definition Datapoint.h:131
void SetTimestamp(const Aws::Utils::DateTime &value)
Definition Datapoint.h:52
Datapoint & WithExtendedStatistics(const Aws::Map< Aws::String, double > &value)
Definition Datapoint.h:129
Datapoint & WithMinimum(double value)
Definition Datapoint.h:96
const StandardUnit & GetUnit() const
Definition Datapoint.h:113
Datapoint & WithTimestamp(Aws::Utils::DateTime &&value)
Definition Datapoint.h:55
AWS_CLOUDWATCH_API Datapoint(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetMaximum(double value)
Definition Datapoint.h:105
Datapoint & WithTimestamp(const Aws::Utils::DateTime &value)
Definition Datapoint.h:54
Datapoint & WithSampleCount(double value)
Definition Datapoint.h:66
Datapoint & WithUnit(const StandardUnit &value)
Definition Datapoint.h:117
Datapoint & AddExtendedStatistics(Aws::String &&key, double value)
Definition Datapoint.h:132
void SetTimestamp(Aws::Utils::DateTime &&value)
Definition Datapoint.h:53
AWS_CLOUDWATCH_API Datapoint()
void SetUnit(const StandardUnit &value)
Definition Datapoint.h:115
void SetUnit(StandardUnit &&value)
Definition Datapoint.h:116
Datapoint & WithAverage(double value)
Definition Datapoint.h:76
const Aws::Map< Aws::String, double > & GetExtendedStatistics() const
Definition Datapoint.h:125
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream