AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename MetricT = Aws::String>
72 void SetMetric(MetricT&& value) { m_metricHasBeenSet = true; m_metric = std::forward<MetricT>(value); }
73 template<typename MetricT = Aws::String>
74 EnabledMetric& WithMetric(MetricT&& value) { SetMetric(std::forward<MetricT>(value)); return *this;}
76
78
82 inline const Aws::String& GetGranularity() const { return m_granularity; }
83 inline bool GranularityHasBeenSet() const { return m_granularityHasBeenSet; }
84 template<typename GranularityT = Aws::String>
85 void SetGranularity(GranularityT&& value) { m_granularityHasBeenSet = true; m_granularity = std::forward<GranularityT>(value); }
86 template<typename GranularityT = Aws::String>
87 EnabledMetric& WithGranularity(GranularityT&& value) { SetGranularity(std::forward<GranularityT>(value)); return *this;}
89 private:
90
91 Aws::String m_metric;
92 bool m_metricHasBeenSet = false;
93
94 Aws::String m_granularity;
95 bool m_granularityHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace AutoScaling
100} // namespace Aws
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetGranularity(GranularityT &&value)
const Aws::String & GetGranularity() const
const Aws::String & GetMetric() const
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_AUTOSCALING_API EnabledMetric()=default
EnabledMetric & WithGranularity(GranularityT &&value)
EnabledMetric & WithMetric(MetricT &&value)
AWS_AUTOSCALING_API EnabledMetric & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_AUTOSCALING_API EnabledMetric(const Aws::Utils::Xml::XmlNode &xmlNode)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream