7#include <aws/monitoring/CloudWatch_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/monitoring/model/StatisticSet.h>
13#include <aws/monitoring/model/StandardUnit.h>
14#include <aws/monitoring/model/Dimension.h>
56 inline void SetMetricName(
const char* value) { m_metricNameHasBeenSet =
true; m_metricName.assign(value); }
96 inline double GetValue()
const{
return m_value; }
98 inline void SetValue(
double value) { m_valueHasBeenSet =
true; m_value = value; }
132 inline MetricDatum&
AddValues(
double value) { m_valuesHasBeenSet =
true; m_values.push_back(value);
return *
this; }
150 inline MetricDatum&
AddCounts(
double value) { m_countsHasBeenSet =
true; m_counts.push_back(value);
return *
this; }
181 inline void SetStorageResolution(
int value) { m_storageResolutionHasBeenSet =
true; m_storageResolution = value; }
187 bool m_metricNameHasBeenSet =
false;
190 bool m_dimensionsHasBeenSet =
false;
193 bool m_timestampHasBeenSet =
false;
196 bool m_valueHasBeenSet =
false;
199 bool m_statisticValuesHasBeenSet =
false;
202 bool m_valuesHasBeenSet =
false;
205 bool m_countsHasBeenSet =
false;
208 bool m_unitHasBeenSet =
false;
210 int m_storageResolution;
211 bool m_storageResolutionHasBeenSet =
false;
void SetTimestamp(Aws::Utils::DateTime &&value)
bool MetricNameHasBeenSet() const
void SetMetricName(const Aws::String &value)
void SetMetricName(const char *value)
bool CountsHasBeenSet() const
void SetStatisticValues(StatisticSet &&value)
void SetDimensions(const Aws::Vector< Dimension > &value)
AWS_CLOUDWATCH_API MetricDatum & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
bool UnitHasBeenSet() const
MetricDatum & WithTimestamp(const Aws::Utils::DateTime &value)
MetricDatum & WithTimestamp(Aws::Utils::DateTime &&value)
MetricDatum & WithDimensions(const Aws::Vector< Dimension > &value)
const Aws::Vector< Dimension > & GetDimensions() const
void SetCounts(const Aws::Vector< double > &value)
MetricDatum & AddDimensions(const Dimension &value)
const StandardUnit & GetUnit() const
AWS_CLOUDWATCH_API MetricDatum(const Aws::Utils::Xml::XmlNode &xmlNode)
bool StatisticValuesHasBeenSet() const
void SetValues(Aws::Vector< double > &&value)
void SetValues(const Aws::Vector< double > &value)
void SetStatisticValues(const StatisticSet &value)
const Aws::Vector< double > & GetCounts() const
MetricDatum & WithValue(double value)
MetricDatum & AddDimensions(Dimension &&value)
void SetUnit(StandardUnit &&value)
void SetTimestamp(const Aws::Utils::DateTime &value)
AWS_CLOUDWATCH_API MetricDatum()
void SetUnit(const StandardUnit &value)
const Aws::Vector< double > & GetValues() const
MetricDatum & WithUnit(const StandardUnit &value)
bool DimensionsHasBeenSet() const
MetricDatum & WithStorageResolution(int value)
void SetMetricName(Aws::String &&value)
MetricDatum & WithUnit(StandardUnit &&value)
MetricDatum & WithCounts(Aws::Vector< double > &&value)
const StatisticSet & GetStatisticValues() const
void SetStorageResolution(int value)
AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::String & GetMetricName() const
bool ValueHasBeenSet() const
MetricDatum & WithMetricName(const char *value)
void SetCounts(Aws::Vector< double > &&value)
MetricDatum & AddCounts(double value)
AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream &oStream, const char *location) const
MetricDatum & WithCounts(const Aws::Vector< double > &value)
MetricDatum & WithDimensions(Aws::Vector< Dimension > &&value)
const Aws::Utils::DateTime & GetTimestamp() const
bool StorageResolutionHasBeenSet() const
bool TimestampHasBeenSet() const
MetricDatum & WithStatisticValues(StatisticSet &&value)
void SetValue(double value)
MetricDatum & AddValues(double value)
MetricDatum & WithMetricName(const Aws::String &value)
MetricDatum & WithMetricName(Aws::String &&value)
bool ValuesHasBeenSet() const
MetricDatum & WithValues(const Aws::Vector< double > &value)
MetricDatum & WithValues(Aws::Vector< double > &&value)
MetricDatum & WithStatisticValues(const StatisticSet &value)
void SetDimensions(Aws::Vector< Dimension > &&value)
int GetStorageResolution() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream