AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetMetric(const Metric& value) { m_metricHasBeenSet = true; m_metric = value; }
60 inline void SetMetric(Metric&& value) { m_metricHasBeenSet = true; m_metric = std::move(value); }
61 inline MetricStat& WithMetric(const Metric& value) { SetMetric(value); return *this;}
62 inline MetricStat& WithMetric(Metric&& value) { SetMetric(std::move(value)); return *this;}
64
66
74 inline const Aws::String& GetStat() const{ return m_stat; }
75 inline bool StatHasBeenSet() const { return m_statHasBeenSet; }
76 inline void SetStat(const Aws::String& value) { m_statHasBeenSet = true; m_stat = value; }
77 inline void SetStat(Aws::String&& value) { m_statHasBeenSet = true; m_stat = std::move(value); }
78 inline void SetStat(const char* value) { m_statHasBeenSet = true; m_stat.assign(value); }
79 inline MetricStat& WithStat(const Aws::String& value) { SetStat(value); return *this;}
80 inline MetricStat& WithStat(Aws::String&& value) { SetStat(std::move(value)); return *this;}
81 inline MetricStat& WithStat(const char* value) { SetStat(value); return *this;}
83
85
91 inline const Aws::String& GetUnit() const{ return m_unit; }
92 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
93 inline void SetUnit(const Aws::String& value) { m_unitHasBeenSet = true; m_unit = value; }
94 inline void SetUnit(Aws::String&& value) { m_unitHasBeenSet = true; m_unit = std::move(value); }
95 inline void SetUnit(const char* value) { m_unitHasBeenSet = true; m_unit.assign(value); }
96 inline MetricStat& WithUnit(const Aws::String& value) { SetUnit(value); return *this;}
97 inline MetricStat& WithUnit(Aws::String&& value) { SetUnit(std::move(value)); return *this;}
98 inline MetricStat& WithUnit(const char* value) { SetUnit(value); return *this;}
100 private:
101
102 Metric m_metric;
103 bool m_metricHasBeenSet = false;
104
105 Aws::String m_stat;
106 bool m_statHasBeenSet = false;
107
108 Aws::String m_unit;
109 bool m_unitHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace AutoScaling
114} // namespace Aws
void SetUnit(const char *value)
Definition MetricStat.h:95
MetricStat & WithMetric(Metric &&value)
Definition MetricStat.h:62
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
MetricStat & WithMetric(const Metric &value)
Definition MetricStat.h:61
MetricStat & WithUnit(Aws::String &&value)
Definition MetricStat.h:97
MetricStat & WithStat(const Aws::String &value)
Definition MetricStat.h:79
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &oStream, const char *location) const
MetricStat & WithUnit(const Aws::String &value)
Definition MetricStat.h:96
const Metric & GetMetric() const
Definition MetricStat.h:57
AWS_AUTOSCALING_API MetricStat()
void SetMetric(const Metric &value)
Definition MetricStat.h:59
MetricStat & WithStat(const char *value)
Definition MetricStat.h:81
void SetUnit(const Aws::String &value)
Definition MetricStat.h:93
void SetStat(const Aws::String &value)
Definition MetricStat.h:76
MetricStat & WithUnit(const char *value)
Definition MetricStat.h:98
void SetStat(Aws::String &&value)
Definition MetricStat.h:77
const Aws::String & GetUnit() const
Definition MetricStat.h:91
AWS_AUTOSCALING_API MetricStat(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetMetric(Metric &&value)
Definition MetricStat.h:60
void SetStat(const char *value)
Definition MetricStat.h:78
void SetUnit(Aws::String &&value)
Definition MetricStat.h:94
MetricStat & WithStat(Aws::String &&value)
Definition MetricStat.h:80
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream