AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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 <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 EBSUtilizationMetric();
40 AWS_COMPUTEOPTIMIZER_API EBSUtilizationMetric(Aws::Utils::Json::JsonView jsonValue);
41 AWS_COMPUTEOPTIMIZER_API EBSUtilizationMetric& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
58 inline const EBSMetricName& GetName() const{ return m_name; }
59 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
60 inline void SetName(const EBSMetricName& value) { m_nameHasBeenSet = true; m_name = value; }
61 inline void SetName(EBSMetricName&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
62 inline EBSUtilizationMetric& WithName(const EBSMetricName& value) { SetName(value); return *this;}
63 inline EBSUtilizationMetric& WithName(EBSMetricName&& value) { SetName(std::move(value)); return *this;}
65
67
82 inline const MetricStatistic& GetStatistic() const{ return m_statistic; }
83 inline bool StatisticHasBeenSet() const { return m_statisticHasBeenSet; }
84 inline void SetStatistic(const MetricStatistic& value) { m_statisticHasBeenSet = true; m_statistic = value; }
85 inline void SetStatistic(MetricStatistic&& value) { m_statisticHasBeenSet = true; m_statistic = std::move(value); }
86 inline EBSUtilizationMetric& WithStatistic(const MetricStatistic& value) { SetStatistic(value); return *this;}
87 inline EBSUtilizationMetric& WithStatistic(MetricStatistic&& value) { SetStatistic(std::move(value)); return *this;}
89
91
94 inline double GetValue() const{ return m_value; }
95 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
96 inline void SetValue(double value) { m_valueHasBeenSet = true; m_value = value; }
97 inline EBSUtilizationMetric& WithValue(double value) { SetValue(value); return *this;}
99 private:
100
101 EBSMetricName m_name;
102 bool m_nameHasBeenSet = false;
103
104 MetricStatistic m_statistic;
105 bool m_statisticHasBeenSet = false;
106
107 double m_value;
108 bool m_valueHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace ComputeOptimizer
113} // namespace Aws
AWS_COMPUTEOPTIMIZER_API EBSUtilizationMetric & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_COMPUTEOPTIMIZER_API EBSUtilizationMetric(Aws::Utils::Json::JsonView jsonValue)
AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const
EBSUtilizationMetric & WithName(const EBSMetricName &value)
EBSUtilizationMetric & WithName(EBSMetricName &&value)
EBSUtilizationMetric & WithStatistic(const MetricStatistic &value)
EBSUtilizationMetric & WithStatistic(MetricStatistic &&value)
Aws::Utils::Json::JsonValue JsonValue