AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename MetricT = Metric>
55 void SetMetric(MetricT&& value) { m_metricHasBeenSet = true; m_metric = std::forward<MetricT>(value); }
56 template<typename MetricT = Metric>
57 TargetTrackingMetricStat& WithMetric(MetricT&& value) { SetMetric(std::forward<MetricT>(value)); return *this;}
59
61
68 inline const Aws::String& GetStat() const { return m_stat; }
69 inline bool StatHasBeenSet() const { return m_statHasBeenSet; }
70 template<typename StatT = Aws::String>
71 void SetStat(StatT&& value) { m_statHasBeenSet = true; m_stat = std::forward<StatT>(value); }
72 template<typename StatT = Aws::String>
73 TargetTrackingMetricStat& WithStat(StatT&& value) { SetStat(std::forward<StatT>(value)); return *this;}
75
77
83 inline const Aws::String& GetUnit() const { return m_unit; }
84 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
85 template<typename UnitT = Aws::String>
86 void SetUnit(UnitT&& value) { m_unitHasBeenSet = true; m_unit = std::forward<UnitT>(value); }
87 template<typename UnitT = Aws::String>
88 TargetTrackingMetricStat& WithUnit(UnitT&& value) { SetUnit(std::forward<UnitT>(value)); return *this;}
90
92
100 inline int GetPeriod() const { return m_period; }
101 inline bool PeriodHasBeenSet() const { return m_periodHasBeenSet; }
102 inline void SetPeriod(int value) { m_periodHasBeenSet = true; m_period = value; }
103 inline TargetTrackingMetricStat& WithPeriod(int value) { SetPeriod(value); return *this;}
105 private:
106
107 Metric m_metric;
108 bool m_metricHasBeenSet = false;
109
110 Aws::String m_stat;
111 bool m_statHasBeenSet = false;
112
113 Aws::String m_unit;
114 bool m_unitHasBeenSet = false;
115
116 int m_period{0};
117 bool m_periodHasBeenSet = false;
118 };
119
120} // namespace Model
121} // namespace AutoScaling
122} // namespace Aws
TargetTrackingMetricStat & WithMetric(MetricT &&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(StatT &&value)
AWS_AUTOSCALING_API TargetTrackingMetricStat(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_AUTOSCALING_API TargetTrackingMetricStat()=default
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &oStream, const char *location) const
TargetTrackingMetricStat & WithUnit(UnitT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream