AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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#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
38 {
39 public:
40 AWS_APPLICATIONAUTOSCALING_API TargetTrackingMetricStat();
41 AWS_APPLICATIONAUTOSCALING_API TargetTrackingMetricStat(Aws::Utils::Json::JsonView jsonValue);
42 AWS_APPLICATIONAUTOSCALING_API TargetTrackingMetricStat& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_APPLICATIONAUTOSCALING_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
55 inline const TargetTrackingMetric& GetMetric() const{ return m_metric; }
56 inline bool MetricHasBeenSet() const { return m_metricHasBeenSet; }
57 inline void SetMetric(const TargetTrackingMetric& value) { m_metricHasBeenSet = true; m_metric = value; }
58 inline void SetMetric(TargetTrackingMetric&& value) { m_metricHasBeenSet = true; m_metric = std::move(value); }
59 inline TargetTrackingMetricStat& WithMetric(const TargetTrackingMetric& value) { SetMetric(value); return *this;}
60 inline TargetTrackingMetricStat& WithMetric(TargetTrackingMetric&& value) { SetMetric(std::move(value)); return *this;}
62
64
71 inline const Aws::String& GetStat() const{ return m_stat; }
72 inline bool StatHasBeenSet() const { return m_statHasBeenSet; }
73 inline void SetStat(const Aws::String& value) { m_statHasBeenSet = true; m_stat = value; }
74 inline void SetStat(Aws::String&& value) { m_statHasBeenSet = true; m_stat = std::move(value); }
75 inline void SetStat(const char* value) { m_statHasBeenSet = true; m_stat.assign(value); }
76 inline TargetTrackingMetricStat& WithStat(const Aws::String& value) { SetStat(value); return *this;}
77 inline TargetTrackingMetricStat& WithStat(Aws::String&& value) { SetStat(std::move(value)); return *this;}
78 inline TargetTrackingMetricStat& WithStat(const char* value) { SetStat(value); return *this;}
80
82
88 inline const Aws::String& GetUnit() const{ return m_unit; }
89 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
90 inline void SetUnit(const Aws::String& value) { m_unitHasBeenSet = true; m_unit = value; }
91 inline void SetUnit(Aws::String&& value) { m_unitHasBeenSet = true; m_unit = std::move(value); }
92 inline void SetUnit(const char* value) { m_unitHasBeenSet = true; m_unit.assign(value); }
93 inline TargetTrackingMetricStat& WithUnit(const Aws::String& value) { SetUnit(value); return *this;}
94 inline TargetTrackingMetricStat& WithUnit(Aws::String&& value) { SetUnit(std::move(value)); return *this;}
95 inline TargetTrackingMetricStat& WithUnit(const char* value) { SetUnit(value); return *this;}
97 private:
98
99 TargetTrackingMetric m_metric;
100 bool m_metricHasBeenSet = false;
101
102 Aws::String m_stat;
103 bool m_statHasBeenSet = false;
104
105 Aws::String m_unit;
106 bool m_unitHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace ApplicationAutoScaling
111} // namespace Aws
TargetTrackingMetricStat & WithUnit(Aws::String &&value)
TargetTrackingMetricStat & WithUnit(const Aws::String &value)
TargetTrackingMetricStat & WithMetric(TargetTrackingMetric &&value)
TargetTrackingMetricStat & WithStat(Aws::String &&value)
TargetTrackingMetricStat & WithStat(const Aws::String &value)
TargetTrackingMetricStat & WithMetric(const TargetTrackingMetric &value)
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