AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
TargetTrackingMetricStat.h
1
6#pragma once
7#include <aws/application-autoscaling/ApplicationAutoScaling_EXPORTS.h>
8#include <aws/application-autoscaling/model/TargetTrackingMetric.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
34 public:
35 AWS_APPLICATIONAUTOSCALING_API TargetTrackingMetricStat() = default;
36 AWS_APPLICATIONAUTOSCALING_API TargetTrackingMetricStat(Aws::Utils::Json::JsonView jsonValue);
37 AWS_APPLICATIONAUTOSCALING_API TargetTrackingMetricStat& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_APPLICATIONAUTOSCALING_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
49 inline const TargetTrackingMetric& GetMetric() const { return m_metric; }
50 inline bool MetricHasBeenSet() const { return m_metricHasBeenSet; }
51 template <typename MetricT = TargetTrackingMetric>
52 void SetMetric(MetricT&& value) {
53 m_metricHasBeenSet = true;
54 m_metric = std::forward<MetricT>(value);
55 }
56 template <typename MetricT = TargetTrackingMetric>
58 SetMetric(std::forward<MetricT>(value));
59 return *this;
60 }
62
64
71 inline const Aws::String& GetStat() const { return m_stat; }
72 inline bool StatHasBeenSet() const { return m_statHasBeenSet; }
73 template <typename StatT = Aws::String>
74 void SetStat(StatT&& value) {
75 m_statHasBeenSet = true;
76 m_stat = std::forward<StatT>(value);
77 }
78 template <typename StatT = Aws::String>
80 SetStat(std::forward<StatT>(value));
81 return *this;
82 }
84
86
92 inline const Aws::String& GetUnit() const { return m_unit; }
93 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
94 template <typename UnitT = Aws::String>
95 void SetUnit(UnitT&& value) {
96 m_unitHasBeenSet = true;
97 m_unit = std::forward<UnitT>(value);
98 }
99 template <typename UnitT = Aws::String>
101 SetUnit(std::forward<UnitT>(value));
102 return *this;
103 }
105 private:
106 TargetTrackingMetric m_metric;
107
108 Aws::String m_stat;
109
110 Aws::String m_unit;
111 bool m_metricHasBeenSet = false;
112 bool m_statHasBeenSet = false;
113 bool m_unitHasBeenSet = false;
114};
115
116} // namespace Model
117} // namespace ApplicationAutoScaling
118} // namespace Aws
AWS_APPLICATIONAUTOSCALING_API TargetTrackingMetricStat()=default
AWS_APPLICATIONAUTOSCALING_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_APPLICATIONAUTOSCALING_API TargetTrackingMetricStat & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_APPLICATIONAUTOSCALING_API TargetTrackingMetricStat(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue