AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
MetricStat.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 MetricStat() = default;
41 AWS_AUTOSCALING_API MetricStat(const Aws::Utils::Xml::XmlNode& xmlNode);
42 AWS_AUTOSCALING_API MetricStat& 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
57 inline const Metric& GetMetric() const { return m_metric; }
58 inline bool MetricHasBeenSet() const { return m_metricHasBeenSet; }
59 template<typename MetricT = Metric>
60 void SetMetric(MetricT&& value) { m_metricHasBeenSet = true; m_metric = std::forward<MetricT>(value); }
61 template<typename MetricT = Metric>
62 MetricStat& WithMetric(MetricT&& value) { SetMetric(std::forward<MetricT>(value)); return *this;}
64
66
74 inline const Aws::String& GetStat() const { return m_stat; }
75 inline bool StatHasBeenSet() const { return m_statHasBeenSet; }
76 template<typename StatT = Aws::String>
77 void SetStat(StatT&& value) { m_statHasBeenSet = true; m_stat = std::forward<StatT>(value); }
78 template<typename StatT = Aws::String>
79 MetricStat& WithStat(StatT&& value) { SetStat(std::forward<StatT>(value)); return *this;}
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) { m_unitHasBeenSet = true; m_unit = std::forward<UnitT>(value); }
93 template<typename UnitT = Aws::String>
94 MetricStat& WithUnit(UnitT&& value) { SetUnit(std::forward<UnitT>(value)); return *this;}
96 private:
97
98 Metric m_metric;
99 bool m_metricHasBeenSet = false;
100
101 Aws::String m_stat;
102 bool m_statHasBeenSet = false;
103
104 Aws::String m_unit;
105 bool m_unitHasBeenSet = false;
106 };
107
108} // namespace Model
109} // namespace AutoScaling
110} // namespace Aws
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_AUTOSCALING_API MetricStat & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetStat() const
Definition MetricStat.h:74
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &oStream, const char *location) const
MetricStat & WithUnit(UnitT &&value)
Definition MetricStat.h:94
MetricStat & WithStat(StatT &&value)
Definition MetricStat.h:79
const Metric & GetMetric() const
Definition MetricStat.h:57
AWS_AUTOSCALING_API MetricStat()=default
const Aws::String & GetUnit() const
Definition MetricStat.h:89
AWS_AUTOSCALING_API MetricStat(const Aws::Utils::Xml::XmlNode &xmlNode)
MetricStat & WithMetric(MetricT &&value)
Definition MetricStat.h:62
void SetMetric(MetricT &&value)
Definition MetricStat.h:60
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream