AWS SDK for C++

AWS SDK for C++ Version 1.11.849

Loading...
Searching...
No Matches
EBSUtilizationMetric.h
1
6#pragma once
7#include <aws/compute-optimizer/ComputeOptimizer_EXPORTS.h>
8#include <aws/compute-optimizer/model/EBSMetricName.h>
9#include <aws/compute-optimizer/model/MetricStatistic.h>
10#include <aws/crt/cbor/Cbor.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Cbor {
17class CborValue;
18} // namespace Cbor
19} // namespace Utils
20namespace ComputeOptimizer {
21namespace Model {
22
33 public:
34 AWS_COMPUTEOPTIMIZER_API EBSUtilizationMetric() = default;
35 AWS_COMPUTEOPTIMIZER_API EBSUtilizationMetric(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
36 AWS_COMPUTEOPTIMIZER_API EBSUtilizationMetric& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
37 AWS_COMPUTEOPTIMIZER_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
38
40
60 inline EBSMetricName GetName() const { return m_name; }
61 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
62 inline void SetName(EBSMetricName value) {
63 m_nameHasBeenSet = true;
64 m_name = value;
65 }
67 SetName(value);
68 return *this;
69 }
71
73
88 inline MetricStatistic GetStatistic() const { return m_statistic; }
89 inline bool StatisticHasBeenSet() const { return m_statisticHasBeenSet; }
90 inline void SetStatistic(MetricStatistic value) {
91 m_statisticHasBeenSet = true;
92 m_statistic = value;
93 }
95 SetStatistic(value);
96 return *this;
97 }
99
101
104 inline double GetValue() const { return m_value; }
105 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
106 inline void SetValue(double value) {
107 m_valueHasBeenSet = true;
108 m_value = value;
109 }
110 inline EBSUtilizationMetric& WithValue(double value) {
111 SetValue(value);
112 return *this;
113 }
115 private:
117
119
120 double m_value{0.0};
121 bool m_nameHasBeenSet = false;
122 bool m_statisticHasBeenSet = false;
123 bool m_valueHasBeenSet = false;
124};
125
126} // namespace Model
127} // namespace ComputeOptimizer
128} // namespace Aws
EBSUtilizationMetric & WithName(EBSMetricName value)
AWS_COMPUTEOPTIMIZER_API EBSUtilizationMetric(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_COMPUTEOPTIMIZER_API EBSUtilizationMetric()=default
EBSUtilizationMetric & WithStatistic(MetricStatistic value)
AWS_COMPUTEOPTIMIZER_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AWS_COMPUTEOPTIMIZER_API EBSUtilizationMetric & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)