AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
PredictiveScalingPredefinedLoadMetric.h
1
6#pragma once
7#include <aws/autoscaling/AutoScaling_EXPORTS.h>
8#include <aws/autoscaling/model/PredefinedLoadMetricType.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
32 public:
33 AWS_AUTOSCALING_API PredictiveScalingPredefinedLoadMetric() = default;
36
37 AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
38 AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
39
41
44 inline PredefinedLoadMetricType GetPredefinedMetricType() const { return m_predefinedMetricType; }
45 inline bool PredefinedMetricTypeHasBeenSet() const { return m_predefinedMetricTypeHasBeenSet; }
47 m_predefinedMetricTypeHasBeenSet = true;
48 m_predefinedMetricType = value;
49 }
52 return *this;
53 }
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) {
81 m_resourceLabelHasBeenSet = true;
82 m_resourceLabel = std::forward<ResourceLabelT>(value);
83 }
84 template <typename ResourceLabelT = Aws::String>
86 SetResourceLabel(std::forward<ResourceLabelT>(value));
87 return *this;
88 }
90 private:
92
93 Aws::String m_resourceLabel;
94 bool m_predefinedMetricTypeHasBeenSet = false;
95 bool m_resourceLabelHasBeenSet = false;
96};
97
98} // namespace Model
99} // namespace AutoScaling
100} // 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