AWS SDK for C++

AWS SDK for C++ Version 1.11.811

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
52 inline EBSMetricName GetName() const { return m_name; }
53 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
54 inline void SetName(EBSMetricName value) {
55 m_nameHasBeenSet = true;
56 m_name = value;
57 }
59 SetName(value);
60 return *this;
61 }
63
65
80 inline MetricStatistic GetStatistic() const { return m_statistic; }
81 inline bool StatisticHasBeenSet() const { return m_statisticHasBeenSet; }
82 inline void SetStatistic(MetricStatistic value) {
83 m_statisticHasBeenSet = true;
84 m_statistic = value;
85 }
87 SetStatistic(value);
88 return *this;
89 }
91
93
96 inline double GetValue() const { return m_value; }
97 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
98 inline void SetValue(double value) {
99 m_valueHasBeenSet = true;
100 m_value = value;
101 }
102 inline EBSUtilizationMetric& WithValue(double value) {
103 SetValue(value);
104 return *this;
105 }
107 private:
109
111
112 double m_value{0.0};
113 bool m_nameHasBeenSet = false;
114 bool m_statisticHasBeenSet = false;
115 bool m_valueHasBeenSet = false;
116};
117
118} // namespace Model
119} // namespace ComputeOptimizer
120} // 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)