AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
PredictiveScalingPredefinedLoadMetric.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/PredefinedLoadMetricType.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
36 {
37 public:
38 AWS_AUTOSCALING_API PredictiveScalingPredefinedLoadMetric() = default;
41
42 AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43 AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
44
45
47
50 inline PredefinedLoadMetricType GetPredefinedMetricType() const { return m_predefinedMetricType; }
51 inline bool PredefinedMetricTypeHasBeenSet() const { return m_predefinedMetricTypeHasBeenSet; }
52 inline void SetPredefinedMetricType(PredefinedLoadMetricType value) { m_predefinedMetricTypeHasBeenSet = true; m_predefinedMetricType = value; }
55
57
77 inline const Aws::String& GetResourceLabel() const { return m_resourceLabel; }
78 inline bool ResourceLabelHasBeenSet() const { return m_resourceLabelHasBeenSet; }
79 template<typename ResourceLabelT = Aws::String>
80 void SetResourceLabel(ResourceLabelT&& value) { m_resourceLabelHasBeenSet = true; m_resourceLabel = std::forward<ResourceLabelT>(value); }
81 template<typename ResourceLabelT = Aws::String>
82 PredictiveScalingPredefinedLoadMetric& WithResourceLabel(ResourceLabelT&& value) { SetResourceLabel(std::forward<ResourceLabelT>(value)); return *this;}
84 private:
85
87 bool m_predefinedMetricTypeHasBeenSet = false;
88
89 Aws::String m_resourceLabel;
90 bool m_resourceLabelHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace AutoScaling
95} // namespace Aws
PredictiveScalingPredefinedLoadMetric & WithPredefinedMetricType(PredefinedLoadMetricType value)
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_AUTOSCALING_API PredictiveScalingPredefinedLoadMetric & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_AUTOSCALING_API PredictiveScalingPredefinedLoadMetric(const Aws::Utils::Xml::XmlNode &xmlNode)
PredictiveScalingPredefinedLoadMetric & WithResourceLabel(ResourceLabelT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream