7#include <aws/monitoring/CloudWatch_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/monitoring/model/Metric.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/monitoring/model/StandardUnit.h>
52 inline void SetMetric(
const Metric& value) { m_metricHasBeenSet =
true; m_metric = value; }
53 inline void SetMetric(
Metric&& value) { m_metricHasBeenSet =
true; m_metric = std::move(value); }
76 inline void SetPeriod(
int value) { m_periodHasBeenSet =
true; m_period = value; }
89 inline void SetStat(
const char* value) { m_statHasBeenSet =
true; m_stat.assign(value); }
116 bool m_metricHasBeenSet =
false;
119 bool m_periodHasBeenSet =
false;
122 bool m_statHasBeenSet =
false;
125 bool m_unitHasBeenSet =
false;
void SetPeriod(int value)
AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetUnit(const StandardUnit &value)
MetricStat & WithStat(const Aws::String &value)
void SetStat(const char *value)
AWS_CLOUDWATCH_API MetricStat(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetMetric(Metric &&value)
void SetStat(Aws::String &&value)
void SetStat(const Aws::String &value)
AWS_CLOUDWATCH_API MetricStat & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
bool PeriodHasBeenSet() const
const StandardUnit & GetUnit() const
MetricStat & WithStat(Aws::String &&value)
void SetUnit(StandardUnit &&value)
MetricStat & WithMetric(Metric &&value)
bool UnitHasBeenSet() const
MetricStat & WithPeriod(int value)
bool StatHasBeenSet() const
MetricStat & WithUnit(StandardUnit &&value)
MetricStat & WithUnit(const StandardUnit &value)
AWS_CLOUDWATCH_API MetricStat()
MetricStat & WithStat(const char *value)
bool MetricHasBeenSet() const
const Aws::String & GetStat() const
MetricStat & WithMetric(const Metric &value)
void SetMetric(const Metric &value)
const Metric & GetMetric() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream