AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ECSServiceUtilizationMetric.h
1
6#pragma once
7#include <aws/compute-optimizer/ComputeOptimizer_EXPORTS.h>
8#include <aws/compute-optimizer/model/ECSServiceMetricName.h>
9#include <aws/compute-optimizer/model/ECSServiceMetricStatistic.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
36 {
37 public:
38 AWS_COMPUTEOPTIMIZER_API ECSServiceUtilizationMetric();
39 AWS_COMPUTEOPTIMIZER_API ECSServiceUtilizationMetric(Aws::Utils::Json::JsonView jsonValue);
41 AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
51 inline const ECSServiceMetricName& GetName() const{ return m_name; }
52 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
53 inline void SetName(const ECSServiceMetricName& value) { m_nameHasBeenSet = true; m_name = value; }
54 inline void SetName(ECSServiceMetricName&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
55 inline ECSServiceUtilizationMetric& WithName(const ECSServiceMetricName& value) { SetName(value); return *this;}
56 inline ECSServiceUtilizationMetric& WithName(ECSServiceMetricName&& value) { SetName(std::move(value)); return *this;}
58
60
75 inline const ECSServiceMetricStatistic& GetStatistic() const{ return m_statistic; }
76 inline bool StatisticHasBeenSet() const { return m_statisticHasBeenSet; }
77 inline void SetStatistic(const ECSServiceMetricStatistic& value) { m_statisticHasBeenSet = true; m_statistic = value; }
78 inline void SetStatistic(ECSServiceMetricStatistic&& value) { m_statisticHasBeenSet = true; m_statistic = std::move(value); }
80 inline ECSServiceUtilizationMetric& WithStatistic(ECSServiceMetricStatistic&& value) { SetStatistic(std::move(value)); return *this;}
82
84
87 inline double GetValue() const{ return m_value; }
88 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
89 inline void SetValue(double value) { m_valueHasBeenSet = true; m_value = value; }
90 inline ECSServiceUtilizationMetric& WithValue(double value) { SetValue(value); return *this;}
92 private:
93
95 bool m_nameHasBeenSet = false;
96
97 ECSServiceMetricStatistic m_statistic;
98 bool m_statisticHasBeenSet = false;
99
100 double m_value;
101 bool m_valueHasBeenSet = false;
102 };
103
104} // namespace Model
105} // namespace ComputeOptimizer
106} // namespace Aws
ECSServiceUtilizationMetric & WithName(const ECSServiceMetricName &value)
AWS_COMPUTEOPTIMIZER_API ECSServiceUtilizationMetric(Aws::Utils::Json::JsonView jsonValue)
AWS_COMPUTEOPTIMIZER_API ECSServiceUtilizationMetric & operator=(Aws::Utils::Json::JsonView jsonValue)
ECSServiceUtilizationMetric & WithName(ECSServiceMetricName &&value)
ECSServiceUtilizationMetric & WithStatistic(ECSServiceMetricStatistic &&value)
ECSServiceUtilizationMetric & WithStatistic(const ECSServiceMetricStatistic &value)
AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue JsonValue