7#include <aws/compute-optimizer/ComputeOptimizer_EXPORTS.h>
8#include <aws/compute-optimizer/model/MetricName.h>
9#include <aws/compute-optimizer/model/MetricStatistic.h>
10#include <aws/crt/cbor/Cbor.h>
20namespace ComputeOptimizer {
35 AWS_COMPUTEOPTIMIZER_API
UtilizationMetric(
const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
37 AWS_COMPUTEOPTIMIZER_API
void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder)
const;
108 m_nameHasBeenSet =
true;
136 m_statisticHasBeenSet =
true;
152 m_valueHasBeenSet =
true;
166 bool m_nameHasBeenSet =
false;
167 bool m_statisticHasBeenSet =
false;
168 bool m_valueHasBeenSet =
false;
AWS_COMPUTEOPTIMIZER_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
UtilizationMetric & WithValue(double value)
bool NameHasBeenSet() const
AWS_COMPUTEOPTIMIZER_API UtilizationMetric & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
void SetStatistic(MetricStatistic value)
MetricName GetName() const
MetricStatistic GetStatistic() const
AWS_COMPUTEOPTIMIZER_API UtilizationMetric()=default
UtilizationMetric & WithStatistic(MetricStatistic value)
UtilizationMetric & WithName(MetricName value)
AWS_COMPUTEOPTIMIZER_API UtilizationMetric(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
bool StatisticHasBeenSet() const
bool ValueHasBeenSet() const
void SetValue(double value)
void SetName(MetricName value)