AWS SDK for C++

AWS SDK for C++ Version 1.11.756

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
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace ApplicationAutoScaling {
21namespace Model {
22
30 public:
31 AWS_APPLICATIONAUTOSCALING_API PredictiveScalingMetricStat() = default;
32 AWS_APPLICATIONAUTOSCALING_API PredictiveScalingMetricStat(Aws::Utils::Json::JsonView jsonValue);
33 AWS_APPLICATIONAUTOSCALING_API PredictiveScalingMetricStat& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_APPLICATIONAUTOSCALING_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
46 inline const PredictiveScalingMetric& GetMetric() const { return m_metric; }
47 inline bool MetricHasBeenSet() const { return m_metricHasBeenSet; }
48 template <typename MetricT = PredictiveScalingMetric>
49 void SetMetric(MetricT&& value) {
50 m_metricHasBeenSet = true;
51 m_metric = std::forward<MetricT>(value);
52 }
53 template <typename MetricT = PredictiveScalingMetric>
55 SetMetric(std::forward<MetricT>(value));
56 return *this;
57 }
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) {
73 m_statHasBeenSet = true;
74 m_stat = std::forward<StatT>(value);
75 }
76 template <typename StatT = Aws::String>
78 SetStat(std::forward<StatT>(value));
79 return *this;
80 }
82
84
90 inline const Aws::String& GetUnit() const { return m_unit; }
91 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
92 template <typename UnitT = Aws::String>
93 void SetUnit(UnitT&& value) {
94 m_unitHasBeenSet = true;
95 m_unit = std::forward<UnitT>(value);
96 }
97 template <typename UnitT = Aws::String>
99 SetUnit(std::forward<UnitT>(value));
100 return *this;
101 }
103 private:
105
106 Aws::String m_stat;
107
108 Aws::String m_unit;
109 bool m_metricHasBeenSet = false;
110 bool m_statHasBeenSet = false;
111 bool m_unitHasBeenSet = false;
112};
113
114} // namespace Model
115} // namespace ApplicationAutoScaling
116} // 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