AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
EnabledMetric.h
1
6#pragma once
7#include <aws/autoscaling/AutoScaling_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace AutoScaling
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_AUTOSCALING_API EnabledMetric();
35 AWS_AUTOSCALING_API EnabledMetric(const Aws::Utils::Xml::XmlNode& xmlNode);
36 AWS_AUTOSCALING_API EnabledMetric& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
37
38 AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
39 AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
40
41
43
69 inline const Aws::String& GetMetric() const{ return m_metric; }
70 inline bool MetricHasBeenSet() const { return m_metricHasBeenSet; }
71 inline void SetMetric(const Aws::String& value) { m_metricHasBeenSet = true; m_metric = value; }
72 inline void SetMetric(Aws::String&& value) { m_metricHasBeenSet = true; m_metric = std::move(value); }
73 inline void SetMetric(const char* value) { m_metricHasBeenSet = true; m_metric.assign(value); }
74 inline EnabledMetric& WithMetric(const Aws::String& value) { SetMetric(value); return *this;}
75 inline EnabledMetric& WithMetric(Aws::String&& value) { SetMetric(std::move(value)); return *this;}
76 inline EnabledMetric& WithMetric(const char* value) { SetMetric(value); return *this;}
78
80
84 inline const Aws::String& GetGranularity() const{ return m_granularity; }
85 inline bool GranularityHasBeenSet() const { return m_granularityHasBeenSet; }
86 inline void SetGranularity(const Aws::String& value) { m_granularityHasBeenSet = true; m_granularity = value; }
87 inline void SetGranularity(Aws::String&& value) { m_granularityHasBeenSet = true; m_granularity = std::move(value); }
88 inline void SetGranularity(const char* value) { m_granularityHasBeenSet = true; m_granularity.assign(value); }
89 inline EnabledMetric& WithGranularity(const Aws::String& value) { SetGranularity(value); return *this;}
90 inline EnabledMetric& WithGranularity(Aws::String&& value) { SetGranularity(std::move(value)); return *this;}
91 inline EnabledMetric& WithGranularity(const char* value) { SetGranularity(value); return *this;}
93 private:
94
95 Aws::String m_metric;
96 bool m_metricHasBeenSet = false;
97
98 Aws::String m_granularity;
99 bool m_granularityHasBeenSet = false;
100 };
101
102} // namespace Model
103} // namespace AutoScaling
104} // namespace Aws
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetGranularity(const Aws::String &value)
const Aws::String & GetGranularity() const
const Aws::String & GetMetric() const
void SetMetric(const Aws::String &value)
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
EnabledMetric & WithMetric(Aws::String &&value)
EnabledMetric & WithGranularity(const Aws::String &value)
void SetGranularity(Aws::String &&value)
EnabledMetric & WithMetric(const char *value)
AWS_AUTOSCALING_API EnabledMetric & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
EnabledMetric & WithMetric(const Aws::String &value)
AWS_AUTOSCALING_API EnabledMetric(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetGranularity(const char *value)
EnabledMetric & WithGranularity(Aws::String &&value)
EnabledMetric & WithGranularity(const char *value)
void SetMetric(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream