AWS SDK for C++

AWS SDK for C++ Version 1.11.750

Loading...
Searching...
No Matches
PredefinedMetricSpecification.h
1
6#pragma once
7#include <aws/autoscaling/AutoScaling_EXPORTS.h>
8#include <aws/autoscaling/model/MetricType.h>
9#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Xml {
17class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace AutoScaling {
21namespace Model {
22
30 public:
31 AWS_AUTOSCALING_API PredefinedMetricSpecification() = default;
32 AWS_AUTOSCALING_API PredefinedMetricSpecification(const Aws::Utils::Xml::XmlNode& xmlNode);
34
35 AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
36 AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
37
39
49 inline MetricType GetPredefinedMetricType() const { return m_predefinedMetricType; }
50 inline bool PredefinedMetricTypeHasBeenSet() const { return m_predefinedMetricTypeHasBeenSet; }
52 m_predefinedMetricTypeHasBeenSet = true;
53 m_predefinedMetricType = value;
54 }
57 return *this;
58 }
60
62
82 inline const Aws::String& GetResourceLabel() const { return m_resourceLabel; }
83 inline bool ResourceLabelHasBeenSet() const { return m_resourceLabelHasBeenSet; }
84 template <typename ResourceLabelT = Aws::String>
85 void SetResourceLabel(ResourceLabelT&& value) {
86 m_resourceLabelHasBeenSet = true;
87 m_resourceLabel = std::forward<ResourceLabelT>(value);
88 }
89 template <typename ResourceLabelT = Aws::String>
91 SetResourceLabel(std::forward<ResourceLabelT>(value));
92 return *this;
93 }
95 private:
96 MetricType m_predefinedMetricType{MetricType::NOT_SET};
97
98 Aws::String m_resourceLabel;
99 bool m_predefinedMetricTypeHasBeenSet = false;
100 bool m_resourceLabelHasBeenSet = false;
101};
102
103} // namespace Model
104} // namespace AutoScaling
105} // namespace Aws
PredefinedMetricSpecification & WithPredefinedMetricType(MetricType value)
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
PredefinedMetricSpecification & WithResourceLabel(ResourceLabelT &&value)
AWS_AUTOSCALING_API PredefinedMetricSpecification()=default
AWS_AUTOSCALING_API PredefinedMetricSpecification & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_AUTOSCALING_API PredefinedMetricSpecification(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