AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
PredefinedMetricSpecification.h
1
6#pragma once
7#include <aws/autoscaling/AutoScaling_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/autoscaling/model/MetricType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace AutoScaling
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_AUTOSCALING_API PredefinedMetricSpecification() = default;
37 AWS_AUTOSCALING_API PredefinedMetricSpecification(const Aws::Utils::Xml::XmlNode& xmlNode);
39
40 AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
43
45
55 inline MetricType GetPredefinedMetricType() const { return m_predefinedMetricType; }
56 inline bool PredefinedMetricTypeHasBeenSet() const { return m_predefinedMetricTypeHasBeenSet; }
57 inline void SetPredefinedMetricType(MetricType value) { m_predefinedMetricTypeHasBeenSet = true; m_predefinedMetricType = value; }
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) { m_resourceLabelHasBeenSet = true; m_resourceLabel = std::forward<ResourceLabelT>(value); }
86 template<typename ResourceLabelT = Aws::String>
87 PredefinedMetricSpecification& WithResourceLabel(ResourceLabelT&& value) { SetResourceLabel(std::forward<ResourceLabelT>(value)); return *this;}
89 private:
90
91 MetricType m_predefinedMetricType{MetricType::NOT_SET};
92 bool m_predefinedMetricTypeHasBeenSet = false;
93
94 Aws::String m_resourceLabel;
95 bool m_resourceLabelHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace AutoScaling
100} // 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