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/monitoring/CloudWatch_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/monitoring/model/Metric.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/monitoring/model/StandardUnit.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace CloudWatch
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_CLOUDWATCH_API MetricStat();
38 AWS_CLOUDWATCH_API MetricStat(const Aws::Utils::Xml::XmlNode& xmlNode);
39 AWS_CLOUDWATCH_API MetricStat& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
40
41 AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42 AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
43
44
46
50 inline const Metric& GetMetric() const{ return m_metric; }
51 inline bool MetricHasBeenSet() const { return m_metricHasBeenSet; }
52 inline void SetMetric(const Metric& value) { m_metricHasBeenSet = true; m_metric = value; }
53 inline void SetMetric(Metric&& value) { m_metricHasBeenSet = true; m_metric = std::move(value); }
54 inline MetricStat& WithMetric(const Metric& value) { SetMetric(value); return *this;}
55 inline MetricStat& WithMetric(Metric&& value) { SetMetric(std::move(value)); return *this;}
57
59
74 inline int GetPeriod() const{ return m_period; }
75 inline bool PeriodHasBeenSet() const { return m_periodHasBeenSet; }
76 inline void SetPeriod(int value) { m_periodHasBeenSet = true; m_period = value; }
77 inline MetricStat& WithPeriod(int value) { SetPeriod(value); return *this;}
79
81
85 inline const Aws::String& GetStat() const{ return m_stat; }
86 inline bool StatHasBeenSet() const { return m_statHasBeenSet; }
87 inline void SetStat(const Aws::String& value) { m_statHasBeenSet = true; m_stat = value; }
88 inline void SetStat(Aws::String&& value) { m_statHasBeenSet = true; m_stat = std::move(value); }
89 inline void SetStat(const char* value) { m_statHasBeenSet = true; m_stat.assign(value); }
90 inline MetricStat& WithStat(const Aws::String& value) { SetStat(value); return *this;}
91 inline MetricStat& WithStat(Aws::String&& value) { SetStat(std::move(value)); return *this;}
92 inline MetricStat& WithStat(const char* value) { SetStat(value); return *this;}
94
96
106 inline const StandardUnit& GetUnit() const{ return m_unit; }
107 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
108 inline void SetUnit(const StandardUnit& value) { m_unitHasBeenSet = true; m_unit = value; }
109 inline void SetUnit(StandardUnit&& value) { m_unitHasBeenSet = true; m_unit = std::move(value); }
110 inline MetricStat& WithUnit(const StandardUnit& value) { SetUnit(value); return *this;}
111 inline MetricStat& WithUnit(StandardUnit&& value) { SetUnit(std::move(value)); return *this;}
113 private:
114
115 Metric m_metric;
116 bool m_metricHasBeenSet = false;
117
118 int m_period;
119 bool m_periodHasBeenSet = false;
120
121 Aws::String m_stat;
122 bool m_statHasBeenSet = false;
123
124 StandardUnit m_unit;
125 bool m_unitHasBeenSet = false;
126 };
127
128} // namespace Model
129} // namespace CloudWatch
130} // namespace Aws
AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetUnit(const StandardUnit &value)
Definition MetricStat.h:108
MetricStat & WithStat(const Aws::String &value)
Definition MetricStat.h:90
void SetStat(const char *value)
Definition MetricStat.h:89
AWS_CLOUDWATCH_API MetricStat(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetMetric(Metric &&value)
Definition MetricStat.h:53
void SetStat(Aws::String &&value)
Definition MetricStat.h:88
void SetStat(const Aws::String &value)
Definition MetricStat.h:87
AWS_CLOUDWATCH_API MetricStat & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const StandardUnit & GetUnit() const
Definition MetricStat.h:106
MetricStat & WithStat(Aws::String &&value)
Definition MetricStat.h:91
void SetUnit(StandardUnit &&value)
Definition MetricStat.h:109
MetricStat & WithMetric(Metric &&value)
Definition MetricStat.h:55
MetricStat & WithPeriod(int value)
Definition MetricStat.h:77
MetricStat & WithUnit(StandardUnit &&value)
Definition MetricStat.h:111
MetricStat & WithUnit(const StandardUnit &value)
Definition MetricStat.h:110
AWS_CLOUDWATCH_API MetricStat()
MetricStat & WithStat(const char *value)
Definition MetricStat.h:92
const Aws::String & GetStat() const
Definition MetricStat.h:85
MetricStat & WithMetric(const Metric &value)
Definition MetricStat.h:54
void SetMetric(const Metric &value)
Definition MetricStat.h:52
const Metric & GetMetric() const
Definition MetricStat.h:50
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream