AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
PredictiveScalingMetricStat.h
1
6#pragma once
7#include <aws/application-autoscaling/ApplicationAutoScaling_EXPORTS.h>
8#include <aws/application-autoscaling/model/PredictiveScalingMetric.h>
9#include <aws/core/utils/memory/stl/AWSString.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 ApplicationAutoScaling
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_APPLICATIONAUTOSCALING_API PredictiveScalingMetricStat() = default;
37 AWS_APPLICATIONAUTOSCALING_API PredictiveScalingMetricStat(Aws::Utils::Json::JsonView jsonValue);
38 AWS_APPLICATIONAUTOSCALING_API PredictiveScalingMetricStat& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_APPLICATIONAUTOSCALING_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
52 inline const PredictiveScalingMetric& GetMetric() const { return m_metric; }
53 inline bool MetricHasBeenSet() const { return m_metricHasBeenSet; }
54 template<typename MetricT = PredictiveScalingMetric>
55 void SetMetric(MetricT&& value) { m_metricHasBeenSet = true; m_metric = std::forward<MetricT>(value); }
56 template<typename MetricT = PredictiveScalingMetric>
57 PredictiveScalingMetricStat& WithMetric(MetricT&& value) { SetMetric(std::forward<MetricT>(value)); return *this;}
59
61
69 inline const Aws::String& GetStat() const { return m_stat; }
70 inline bool StatHasBeenSet() const { return m_statHasBeenSet; }
71 template<typename StatT = Aws::String>
72 void SetStat(StatT&& value) { m_statHasBeenSet = true; m_stat = std::forward<StatT>(value); }
73 template<typename StatT = Aws::String>
74 PredictiveScalingMetricStat& WithStat(StatT&& value) { SetStat(std::forward<StatT>(value)); return *this;}
76
78
84 inline const Aws::String& GetUnit() const { return m_unit; }
85 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
86 template<typename UnitT = Aws::String>
87 void SetUnit(UnitT&& value) { m_unitHasBeenSet = true; m_unit = std::forward<UnitT>(value); }
88 template<typename UnitT = Aws::String>
89 PredictiveScalingMetricStat& WithUnit(UnitT&& value) { SetUnit(std::forward<UnitT>(value)); return *this;}
91 private:
92
94 bool m_metricHasBeenSet = false;
95
96 Aws::String m_stat;
97 bool m_statHasBeenSet = false;
98
99 Aws::String m_unit;
100 bool m_unitHasBeenSet = false;
101 };
102
103} // namespace Model
104} // namespace ApplicationAutoScaling
105} // namespace Aws
AWS_APPLICATIONAUTOSCALING_API PredictiveScalingMetricStat(Aws::Utils::Json::JsonView jsonValue)
AWS_APPLICATIONAUTOSCALING_API PredictiveScalingMetricStat & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_APPLICATIONAUTOSCALING_API PredictiveScalingMetricStat()=default
AWS_APPLICATIONAUTOSCALING_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue