AWS SDK for C++

AWS SDK for C++ Version 1.11.751

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
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace AutoScaling {
20namespace Model {
21
28 public:
29 AWS_AUTOSCALING_API EnabledMetric() = default;
30 AWS_AUTOSCALING_API EnabledMetric(const Aws::Utils::Xml::XmlNode& xmlNode);
31 AWS_AUTOSCALING_API EnabledMetric& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
32
33 AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
34 AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
35
37
63 inline const Aws::String& GetMetric() const { return m_metric; }
64 inline bool MetricHasBeenSet() const { return m_metricHasBeenSet; }
65 template <typename MetricT = Aws::String>
66 void SetMetric(MetricT&& value) {
67 m_metricHasBeenSet = true;
68 m_metric = std::forward<MetricT>(value);
69 }
70 template <typename MetricT = Aws::String>
71 EnabledMetric& WithMetric(MetricT&& value) {
72 SetMetric(std::forward<MetricT>(value));
73 return *this;
74 }
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) {
86 m_granularityHasBeenSet = true;
87 m_granularity = std::forward<GranularityT>(value);
88 }
89 template <typename GranularityT = Aws::String>
90 EnabledMetric& WithGranularity(GranularityT&& value) {
91 SetGranularity(std::forward<GranularityT>(value));
92 return *this;
93 }
95 private:
96 Aws::String m_metric;
97
98 Aws::String m_granularity;
99 bool m_metricHasBeenSet = false;
100 bool m_granularityHasBeenSet = false;
101};
102
103} // namespace Model
104} // namespace AutoScaling
105} // 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