7#include <aws/mwaa/MWAA_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/mwaa/model/Unit.h>
12#include <aws/mwaa/model/StatisticSet.h>
13#include <aws/mwaa/model/Dimension.h>
56 inline void SetMetricName(
const char* value) { m_metricNameHasBeenSet =
true; m_metricName.assign(value); }
92 inline double GetValue()
const{
return m_value; }
94 inline void SetValue(
double value) { m_valueHasBeenSet =
true; m_value = value; }
104 inline void SetUnit(
const Unit& value) { m_unitHasBeenSet =
true; m_unit = value; }
105 inline void SetUnit(
Unit&& value) { m_unitHasBeenSet =
true; m_unit = std::move(value); }
124 bool m_metricNameHasBeenSet =
false;
127 bool m_timestampHasBeenSet =
false;
130 bool m_dimensionsHasBeenSet =
false;
133 bool m_valueHasBeenSet =
false;
136 bool m_unitHasBeenSet =
false;
139 bool m_statisticValuesHasBeenSet =
false;
MetricDatum & WithStatisticValues(StatisticSet &&value)
void SetMetricName(const char *value)
MetricDatum & WithDimensions(const Aws::Vector< Dimension > &value)
bool UnitHasBeenSet() const
void SetValue(double value)
void SetUnit(const Unit &value)
MetricDatum & WithMetricName(const Aws::String &value)
void SetStatisticValues(StatisticSet &&value)
MetricDatum & WithValue(double value)
MetricDatum & WithMetricName(Aws::String &&value)
MetricDatum & WithTimestamp(const Aws::Utils::DateTime &value)
bool StatisticValuesHasBeenSet() const
void SetTimestamp(Aws::Utils::DateTime &&value)
MetricDatum & WithUnit(const Unit &value)
AWS_MWAA_API MetricDatum()
bool DimensionsHasBeenSet() const
AWS_MWAA_API MetricDatum & operator=(Aws::Utils::Json::JsonView jsonValue)
MetricDatum & AddDimensions(const Dimension &value)
MetricDatum & WithStatisticValues(const StatisticSet &value)
void SetUnit(Unit &&value)
const Aws::String & GetMetricName() const
void SetTimestamp(const Aws::Utils::DateTime &value)
MetricDatum & WithUnit(Unit &&value)
const Unit & GetUnit() const
void SetMetricName(const Aws::String &value)
MetricDatum & WithMetricName(const char *value)
const StatisticSet & GetStatisticValues() const
void SetDimensions(const Aws::Vector< Dimension > &value)
bool TimestampHasBeenSet() const
void SetStatisticValues(const StatisticSet &value)
AWS_MWAA_API MetricDatum(Aws::Utils::Json::JsonView jsonValue)
MetricDatum & AddDimensions(Dimension &&value)
bool MetricNameHasBeenSet() const
MetricDatum & WithDimensions(Aws::Vector< Dimension > &&value)
const Aws::Vector< Dimension > & GetDimensions() const
void SetMetricName(Aws::String &&value)
void SetDimensions(Aws::Vector< Dimension > &&value)
bool ValueHasBeenSet() const
AWS_MWAA_API Aws::Utils::Json::JsonValue Jsonize() const
MetricDatum & WithTimestamp(Aws::Utils::DateTime &&value)
const Aws::Utils::DateTime & GetTimestamp() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue