AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 const PredefinedLoadMetricType& GetPredefinedMetricType() const{ return m_predefinedMetricType; }
51 inline bool PredefinedMetricTypeHasBeenSet() const { return m_predefinedMetricTypeHasBeenSet; }
52 inline void SetPredefinedMetricType(const PredefinedLoadMetricType& value) { m_predefinedMetricTypeHasBeenSet = true; m_predefinedMetricType = value; }
53 inline void SetPredefinedMetricType(PredefinedLoadMetricType&& value) { m_predefinedMetricTypeHasBeenSet = true; m_predefinedMetricType = std::move(value); }
57
59
79 inline const Aws::String& GetResourceLabel() const{ return m_resourceLabel; }
80 inline bool ResourceLabelHasBeenSet() const { return m_resourceLabelHasBeenSet; }
81 inline void SetResourceLabel(const Aws::String& value) { m_resourceLabelHasBeenSet = true; m_resourceLabel = value; }
82 inline void SetResourceLabel(Aws::String&& value) { m_resourceLabelHasBeenSet = true; m_resourceLabel = std::move(value); }
83 inline void SetResourceLabel(const char* value) { m_resourceLabelHasBeenSet = true; m_resourceLabel.assign(value); }
85 inline PredictiveScalingPredefinedLoadMetric& WithResourceLabel(Aws::String&& value) { SetResourceLabel(std::move(value)); return *this;}
86 inline PredictiveScalingPredefinedLoadMetric& WithResourceLabel(const char* value) { SetResourceLabel(value); return *this;}
88 private:
89
90 PredefinedLoadMetricType m_predefinedMetricType;
91 bool m_predefinedMetricTypeHasBeenSet = false;
92
93 Aws::String m_resourceLabel;
94 bool m_resourceLabelHasBeenSet = false;
95 };
96
97} // namespace Model
98} // namespace AutoScaling
99} // namespace Aws
PredictiveScalingPredefinedLoadMetric & WithResourceLabel(const char *value)
PredictiveScalingPredefinedLoadMetric & WithResourceLabel(const Aws::String &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 & WithPredefinedMetricType(PredefinedLoadMetricType &&value)
PredictiveScalingPredefinedLoadMetric & WithPredefinedMetricType(const PredefinedLoadMetricType &value)
PredictiveScalingPredefinedLoadMetric & WithResourceLabel(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream