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/autoscaling/AutoScaling_EXPORTS.h>
8#include <aws/autoscaling/model/Metric.h>
9#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Xml {
17class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace AutoScaling {
21namespace Model {
22
34 public:
35 AWS_AUTOSCALING_API TargetTrackingMetricStat() = default;
36 AWS_AUTOSCALING_API TargetTrackingMetricStat(const Aws::Utils::Xml::XmlNode& xmlNode);
37 AWS_AUTOSCALING_API TargetTrackingMetricStat& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
43
46 inline const Metric& GetMetric() const { return m_metric; }
47 inline bool MetricHasBeenSet() const { return m_metricHasBeenSet; }
48 template <typename MetricT = Metric>
49 void SetMetric(MetricT&& value) {
50 m_metricHasBeenSet = true;
51 m_metric = std::forward<MetricT>(value);
52 }
53 template <typename MetricT = Metric>
55 SetMetric(std::forward<MetricT>(value));
56 return *this;
57 }
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) {
72 m_statHasBeenSet = true;
73 m_stat = std::forward<StatT>(value);
74 }
75 template <typename StatT = Aws::String>
77 SetStat(std::forward<StatT>(value));
78 return *this;
79 }
81
83
89 inline const Aws::String& GetUnit() const { return m_unit; }
90 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
91 template <typename UnitT = Aws::String>
92 void SetUnit(UnitT&& value) {
93 m_unitHasBeenSet = true;
94 m_unit = std::forward<UnitT>(value);
95 }
96 template <typename UnitT = Aws::String>
98 SetUnit(std::forward<UnitT>(value));
99 return *this;
100 }
102
104
112 inline int GetPeriod() const { return m_period; }
113 inline bool PeriodHasBeenSet() const { return m_periodHasBeenSet; }
114 inline void SetPeriod(int value) {
115 m_periodHasBeenSet = true;
116 m_period = value;
117 }
119 SetPeriod(value);
120 return *this;
121 }
123 private:
124 Metric m_metric;
125
126 Aws::String m_stat;
127
128 Aws::String m_unit;
129
130 int m_period{0};
131 bool m_metricHasBeenSet = false;
132 bool m_statHasBeenSet = false;
133 bool m_unitHasBeenSet = false;
134 bool m_periodHasBeenSet = false;
135};
136
137} // namespace Model
138} // namespace AutoScaling
139} // 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