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/autoscaling/AutoScaling_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/autoscaling/model/Metric.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace AutoScaling
23{
24namespace Model
25{
26
38 {
39 public:
40 AWS_AUTOSCALING_API TargetTrackingMetricStat();
41 AWS_AUTOSCALING_API TargetTrackingMetricStat(const Aws::Utils::Xml::XmlNode& xmlNode);
42 AWS_AUTOSCALING_API TargetTrackingMetricStat& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
43
44 AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
45 AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
46
47
49
52 inline const Metric& GetMetric() const{ return m_metric; }
53 inline bool MetricHasBeenSet() const { return m_metricHasBeenSet; }
54 inline void SetMetric(const Metric& value) { m_metricHasBeenSet = true; m_metric = value; }
55 inline void SetMetric(Metric&& value) { m_metricHasBeenSet = true; m_metric = std::move(value); }
56 inline TargetTrackingMetricStat& WithMetric(const Metric& value) { SetMetric(value); return *this;}
57 inline TargetTrackingMetricStat& WithMetric(Metric&& value) { SetMetric(std::move(value)); return *this;}
59
61
68 inline const Aws::String& GetStat() const{ return m_stat; }
69 inline bool StatHasBeenSet() const { return m_statHasBeenSet; }
70 inline void SetStat(const Aws::String& value) { m_statHasBeenSet = true; m_stat = value; }
71 inline void SetStat(Aws::String&& value) { m_statHasBeenSet = true; m_stat = std::move(value); }
72 inline void SetStat(const char* value) { m_statHasBeenSet = true; m_stat.assign(value); }
73 inline TargetTrackingMetricStat& WithStat(const Aws::String& value) { SetStat(value); return *this;}
74 inline TargetTrackingMetricStat& WithStat(Aws::String&& value) { SetStat(std::move(value)); return *this;}
75 inline TargetTrackingMetricStat& WithStat(const char* value) { SetStat(value); return *this;}
77
79
85 inline const Aws::String& GetUnit() const{ return m_unit; }
86 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
87 inline void SetUnit(const Aws::String& value) { m_unitHasBeenSet = true; m_unit = value; }
88 inline void SetUnit(Aws::String&& value) { m_unitHasBeenSet = true; m_unit = std::move(value); }
89 inline void SetUnit(const char* value) { m_unitHasBeenSet = true; m_unit.assign(value); }
90 inline TargetTrackingMetricStat& WithUnit(const Aws::String& value) { SetUnit(value); return *this;}
91 inline TargetTrackingMetricStat& WithUnit(Aws::String&& value) { SetUnit(std::move(value)); return *this;}
92 inline TargetTrackingMetricStat& WithUnit(const char* value) { SetUnit(value); return *this;}
94 private:
95
96 Metric m_metric;
97 bool m_metricHasBeenSet = false;
98
99 Aws::String m_stat;
100 bool m_statHasBeenSet = false;
101
102 Aws::String m_unit;
103 bool m_unitHasBeenSet = false;
104 };
105
106} // namespace Model
107} // namespace AutoScaling
108} // namespace Aws
TargetTrackingMetricStat & WithMetric(const Metric &value)
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_AUTOSCALING_API TargetTrackingMetricStat & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
TargetTrackingMetricStat & WithStat(const char *value)
TargetTrackingMetricStat & WithUnit(const char *value)
AWS_AUTOSCALING_API TargetTrackingMetricStat(const Aws::Utils::Xml::XmlNode &xmlNode)
TargetTrackingMetricStat & WithStat(Aws::String &&value)
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &oStream, const char *location) const
TargetTrackingMetricStat & WithMetric(Metric &&value)
TargetTrackingMetricStat & WithUnit(Aws::String &&value)
TargetTrackingMetricStat & WithUnit(const Aws::String &value)
TargetTrackingMetricStat & WithStat(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream