AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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 <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace ComputeOptimizer
23{
24namespace Model
25{
26
37 {
38 public:
39 AWS_COMPUTEOPTIMIZER_API UtilizationMetric();
40 AWS_COMPUTEOPTIMIZER_API UtilizationMetric(Aws::Utils::Json::JsonView jsonValue);
41 AWS_COMPUTEOPTIMIZER_API UtilizationMetric& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
111 inline const MetricName& GetName() const{ return m_name; }
112 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
113 inline void SetName(const MetricName& value) { m_nameHasBeenSet = true; m_name = value; }
114 inline void SetName(MetricName&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
115 inline UtilizationMetric& WithName(const MetricName& value) { SetName(value); return *this;}
116 inline UtilizationMetric& WithName(MetricName&& value) { SetName(std::move(value)); return *this;}
118
120
135 inline const MetricStatistic& GetStatistic() const{ return m_statistic; }
136 inline bool StatisticHasBeenSet() const { return m_statisticHasBeenSet; }
137 inline void SetStatistic(const MetricStatistic& value) { m_statisticHasBeenSet = true; m_statistic = value; }
138 inline void SetStatistic(MetricStatistic&& value) { m_statisticHasBeenSet = true; m_statistic = std::move(value); }
139 inline UtilizationMetric& WithStatistic(const MetricStatistic& value) { SetStatistic(value); return *this;}
140 inline UtilizationMetric& WithStatistic(MetricStatistic&& value) { SetStatistic(std::move(value)); return *this;}
142
144
147 inline double GetValue() const{ return m_value; }
148 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
149 inline void SetValue(double value) { m_valueHasBeenSet = true; m_value = value; }
150 inline UtilizationMetric& WithValue(double value) { SetValue(value); return *this;}
152 private:
153
154 MetricName m_name;
155 bool m_nameHasBeenSet = false;
156
157 MetricStatistic m_statistic;
158 bool m_statisticHasBeenSet = false;
159
160 double m_value;
161 bool m_valueHasBeenSet = false;
162 };
163
164} // namespace Model
165} // namespace ComputeOptimizer
166} // namespace Aws
UtilizationMetric & WithValue(double value)
UtilizationMetric & WithStatistic(const MetricStatistic &value)
AWS_COMPUTEOPTIMIZER_API UtilizationMetric & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const
UtilizationMetric & WithStatistic(MetricStatistic &&value)
void SetStatistic(const MetricStatistic &value)
AWS_COMPUTEOPTIMIZER_API UtilizationMetric()
UtilizationMetric & WithName(const MetricName &value)
AWS_COMPUTEOPTIMIZER_API UtilizationMetric(Aws::Utils::Json::JsonView jsonValue)
UtilizationMetric & WithName(MetricName &&value)
Aws::Utils::Json::JsonValue JsonValue