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>
65 inline void SetSampleCount(
double value) { m_sampleCountHasBeenSet =
true; m_sampleCount = value; }
75 inline void SetAverage(
double value) { m_averageHasBeenSet =
true; m_average = value; }
83 inline double GetSum()
const{
return m_sum; }
85 inline void SetSum(
double value) { m_sumHasBeenSet =
true; m_sum = value; }
95 inline void SetMinimum(
double value) { m_minimumHasBeenSet =
true; m_minimum = value; }
105 inline void SetMaximum(
double value) { m_maximumHasBeenSet =
true; m_maximum = value; }
133 inline Datapoint&
AddExtendedStatistics(
const char* key,
double value) { m_extendedStatisticsHasBeenSet =
true; m_extendedStatistics.emplace(key, value);
return *
this; }
138 bool m_timestampHasBeenSet =
false;
140 double m_sampleCount;
141 bool m_sampleCountHasBeenSet =
false;
144 bool m_averageHasBeenSet =
false;
147 bool m_sumHasBeenSet =
false;
150 bool m_minimumHasBeenSet =
false;
153 bool m_maximumHasBeenSet =
false;
156 bool m_unitHasBeenSet =
false;
159 bool m_extendedStatisticsHasBeenSet =
false;
Datapoint & WithSum(double value)
void SetSampleCount(double value)
bool ExtendedStatisticsHasBeenSet() const
bool MinimumHasBeenSet() const
double GetAverage() const
void SetMinimum(double value)
AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetExtendedStatistics(const Aws::Map< Aws::String, double > &value)
Datapoint & AddExtendedStatistics(const char *key, double value)
Datapoint & WithMaximum(double value)
void SetAverage(double value)
Datapoint & WithExtendedStatistics(Aws::Map< Aws::String, double > &&value)
void SetExtendedStatistics(Aws::Map< Aws::String, double > &&value)
AWS_CLOUDWATCH_API Datapoint & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Datapoint & WithUnit(StandardUnit &&value)
AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::Utils::DateTime & GetTimestamp() const
Datapoint & AddExtendedStatistics(const Aws::String &key, double value)
void SetTimestamp(const Aws::Utils::DateTime &value)
Datapoint & WithExtendedStatistics(const Aws::Map< Aws::String, double > &value)
bool UnitHasBeenSet() const
Datapoint & WithMinimum(double value)
const StandardUnit & GetUnit() const
Datapoint & WithTimestamp(Aws::Utils::DateTime &&value)
AWS_CLOUDWATCH_API Datapoint(const Aws::Utils::Xml::XmlNode &xmlNode)
double GetSampleCount() const
void SetMaximum(double value)
Datapoint & WithTimestamp(const Aws::Utils::DateTime &value)
Datapoint & WithSampleCount(double value)
bool SumHasBeenSet() const
Datapoint & WithUnit(const StandardUnit &value)
double GetMinimum() const
void SetSum(double value)
bool SampleCountHasBeenSet() const
bool TimestampHasBeenSet() const
bool MaximumHasBeenSet() const
bool AverageHasBeenSet() const
double GetMaximum() const
Datapoint & AddExtendedStatistics(Aws::String &&key, double value)
void SetTimestamp(Aws::Utils::DateTime &&value)
AWS_CLOUDWATCH_API Datapoint()
void SetUnit(const StandardUnit &value)
void SetUnit(StandardUnit &&value)
Datapoint & WithAverage(double value)
const Aws::Map< Aws::String, double > & GetExtendedStatistics() const
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