AWS SDK for C++

AWS SDK for C++ Version 1.11.812

Loading...
Searching...
No Matches
IdleUtilizationMetric.h
1
6#pragma once
7#include <aws/compute-optimizer/ComputeOptimizer_EXPORTS.h>
8#include <aws/compute-optimizer/model/IdleMetricName.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
30 public:
31 AWS_COMPUTEOPTIMIZER_API IdleUtilizationMetric() = default;
32 AWS_COMPUTEOPTIMIZER_API IdleUtilizationMetric(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_COMPUTEOPTIMIZER_API IdleUtilizationMetric& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_COMPUTEOPTIMIZER_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
35
37
40 inline IdleMetricName GetName() const { return m_name; }
41 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
42 inline void SetName(IdleMetricName value) {
43 m_nameHasBeenSet = true;
44 m_name = value;
45 }
47 SetName(value);
48 return *this;
49 }
51
53
68 inline MetricStatistic GetStatistic() const { return m_statistic; }
69 inline bool StatisticHasBeenSet() const { return m_statisticHasBeenSet; }
70 inline void SetStatistic(MetricStatistic value) {
71 m_statisticHasBeenSet = true;
72 m_statistic = value;
73 }
75 SetStatistic(value);
76 return *this;
77 }
79
81
84 inline double GetValue() const { return m_value; }
85 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
86 inline void SetValue(double value) {
87 m_valueHasBeenSet = true;
88 m_value = value;
89 }
90 inline IdleUtilizationMetric& WithValue(double value) {
91 SetValue(value);
92 return *this;
93 }
95 private:
97
99
100 double m_value{0.0};
101 bool m_nameHasBeenSet = false;
102 bool m_statisticHasBeenSet = false;
103 bool m_valueHasBeenSet = false;
104};
105
106} // namespace Model
107} // namespace ComputeOptimizer
108} // namespace Aws
AWS_COMPUTEOPTIMIZER_API IdleUtilizationMetric & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_COMPUTEOPTIMIZER_API IdleUtilizationMetric(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_COMPUTEOPTIMIZER_API IdleUtilizationMetric()=default
IdleUtilizationMetric & WithStatistic(MetricStatistic value)
IdleUtilizationMetric & WithName(IdleMetricName value)
AWS_COMPUTEOPTIMIZER_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const