AWS SDK for C++

AWS SDK for C++ Version 1.11.750

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
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace ComputeOptimizer {
21namespace Model {
22
30 public:
31 AWS_COMPUTEOPTIMIZER_API IdleUtilizationMetric() = default;
32 AWS_COMPUTEOPTIMIZER_API IdleUtilizationMetric(Aws::Utils::Json::JsonView jsonValue);
33 AWS_COMPUTEOPTIMIZER_API IdleUtilizationMetric& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() 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 Aws::Utils::Json::JsonValue Jsonize() const
AWS_COMPUTEOPTIMIZER_API IdleUtilizationMetric()=default
AWS_COMPUTEOPTIMIZER_API IdleUtilizationMetric & operator=(Aws::Utils::Json::JsonView jsonValue)
IdleUtilizationMetric & WithStatistic(MetricStatistic value)
IdleUtilizationMetric & WithName(IdleMetricName value)
AWS_COMPUTEOPTIMIZER_API IdleUtilizationMetric(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue