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>
54 template<
typename MetricNameT = Aws::String>
55 void SetMetricName(MetricNameT&& value) { m_metricNameHasBeenSet =
true; m_metricName = std::forward<MetricNameT>(value); }
56 template<
typename MetricNameT = Aws::String>
66 template<
typename TimestampT = Aws::Utils::DateTime>
67 void SetTimestamp(TimestampT&& value) { m_timestampHasBeenSet =
true; m_timestamp = std::forward<TimestampT>(value); }
68 template<
typename TimestampT = Aws::Utils::DateTime>
78 template<
typename DimensionsT = Aws::Vector<Dimension>>
79 void SetDimensions(DimensionsT&& value) { m_dimensionsHasBeenSet =
true; m_dimensions = std::forward<DimensionsT>(value); }
80 template<
typename DimensionsT = Aws::Vector<Dimension>>
82 template<
typename DimensionsT = Dimension>
83 MetricDatum&
AddDimensions(DimensionsT&& value) { m_dimensionsHasBeenSet =
true; m_dimensions.emplace_back(std::forward<DimensionsT>(value));
return *
this; }
90 inline double GetValue()
const {
return m_value; }
92 inline void SetValue(
double value) { m_valueHasBeenSet =
true; m_value = value; }
102 inline void SetUnit(
Unit value) { m_unitHasBeenSet =
true; m_unit = value; }
112 template<
typename StatisticValuesT = StatisticSet>
113 void SetStatisticValues(StatisticValuesT&& value) { m_statisticValuesHasBeenSet =
true; m_statisticValues = std::forward<StatisticValuesT>(value); }
114 template<
typename StatisticValuesT = StatisticSet>
120 bool m_metricNameHasBeenSet =
false;
123 bool m_timestampHasBeenSet =
false;
126 bool m_dimensionsHasBeenSet =
false;
129 bool m_valueHasBeenSet =
false;
132 bool m_unitHasBeenSet =
false;
134 StatisticSet m_statisticValues;
135 bool m_statisticValuesHasBeenSet =
false;
void SetStatisticValues(StatisticValuesT &&value)
bool UnitHasBeenSet() const
void SetValue(double value)
MetricDatum & WithValue(double value)
bool StatisticValuesHasBeenSet() const
void SetTimestamp(TimestampT &&value)
bool DimensionsHasBeenSet() const
MetricDatum & WithDimensions(DimensionsT &&value)
AWS_MWAA_API MetricDatum & operator=(Aws::Utils::Json::JsonView jsonValue)
MetricDatum & WithTimestamp(TimestampT &&value)
const Aws::String & GetMetricName() const
MetricDatum & WithMetricName(MetricNameT &&value)
MetricDatum & AddDimensions(DimensionsT &&value)
void SetMetricName(MetricNameT &&value)
const StatisticSet & GetStatisticValues() const
void SetDimensions(DimensionsT &&value)
MetricDatum & WithUnit(Unit value)
bool TimestampHasBeenSet() const
AWS_MWAA_API MetricDatum(Aws::Utils::Json::JsonView jsonValue)
AWS_MWAA_API MetricDatum()=default
bool MetricNameHasBeenSet() const
const Aws::Vector< Dimension > & GetDimensions() const
MetricDatum & WithStatisticValues(StatisticValuesT &&value)
bool ValueHasBeenSet() const
AWS_MWAA_API Aws::Utils::Json::JsonValue Jsonize() const
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