AWS SDK for C++

AWS SDK for C++ Version 1.11.812

Loading...
Searching...
No Matches
UtilizationMetric.h
1
6#pragma once
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>
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 UtilizationMetric() = default;
35 AWS_COMPUTEOPTIMIZER_API UtilizationMetric(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
36 AWS_COMPUTEOPTIMIZER_API UtilizationMetric& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
37 AWS_COMPUTEOPTIMIZER_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
38
40
105 inline MetricName GetName() const { return m_name; }
106 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
107 inline void SetName(MetricName value) {
108 m_nameHasBeenSet = true;
109 m_name = value;
110 }
112 SetName(value);
113 return *this;
114 }
116
118
133 inline MetricStatistic GetStatistic() const { return m_statistic; }
134 inline bool StatisticHasBeenSet() const { return m_statisticHasBeenSet; }
135 inline void SetStatistic(MetricStatistic value) {
136 m_statisticHasBeenSet = true;
137 m_statistic = value;
138 }
140 SetStatistic(value);
141 return *this;
142 }
144
146
149 inline double GetValue() const { return m_value; }
150 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
151 inline void SetValue(double value) {
152 m_valueHasBeenSet = true;
153 m_value = value;
154 }
155 inline UtilizationMetric& WithValue(double value) {
156 SetValue(value);
157 return *this;
158 }
160 private:
162
164
165 double m_value{0.0};
166 bool m_nameHasBeenSet = false;
167 bool m_statisticHasBeenSet = false;
168 bool m_valueHasBeenSet = false;
169};
170
171} // namespace Model
172} // namespace ComputeOptimizer
173} // namespace Aws
AWS_COMPUTEOPTIMIZER_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
UtilizationMetric & WithValue(double value)
AWS_COMPUTEOPTIMIZER_API UtilizationMetric & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
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)