AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PredictiveScalingPredefinedMetricPair.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/PredefinedMetricPairType.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:
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
52 inline const PredefinedMetricPairType& GetPredefinedMetricType() const{ return m_predefinedMetricType; }
53 inline bool PredefinedMetricTypeHasBeenSet() const { return m_predefinedMetricTypeHasBeenSet; }
54 inline void SetPredefinedMetricType(const PredefinedMetricPairType& value) { m_predefinedMetricTypeHasBeenSet = true; m_predefinedMetricType = value; }
55 inline void SetPredefinedMetricType(PredefinedMetricPairType&& value) { m_predefinedMetricTypeHasBeenSet = true; m_predefinedMetricType = std::move(value); }
59
61
81 inline const Aws::String& GetResourceLabel() const{ return m_resourceLabel; }
82 inline bool ResourceLabelHasBeenSet() const { return m_resourceLabelHasBeenSet; }
83 inline void SetResourceLabel(const Aws::String& value) { m_resourceLabelHasBeenSet = true; m_resourceLabel = value; }
84 inline void SetResourceLabel(Aws::String&& value) { m_resourceLabelHasBeenSet = true; m_resourceLabel = std::move(value); }
85 inline void SetResourceLabel(const char* value) { m_resourceLabelHasBeenSet = true; m_resourceLabel.assign(value); }
87 inline PredictiveScalingPredefinedMetricPair& WithResourceLabel(Aws::String&& value) { SetResourceLabel(std::move(value)); return *this;}
88 inline PredictiveScalingPredefinedMetricPair& WithResourceLabel(const char* value) { SetResourceLabel(value); return *this;}
90 private:
91
92 PredefinedMetricPairType m_predefinedMetricType;
93 bool m_predefinedMetricTypeHasBeenSet = false;
94
95 Aws::String m_resourceLabel;
96 bool m_resourceLabelHasBeenSet = false;
97 };
98
99} // namespace Model
100} // namespace AutoScaling
101} // namespace Aws
PredictiveScalingPredefinedMetricPair & WithResourceLabel(const char *value)
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_AUTOSCALING_API PredictiveScalingPredefinedMetricPair(const Aws::Utils::Xml::XmlNode &xmlNode)
PredictiveScalingPredefinedMetricPair & WithResourceLabel(const Aws::String &value)
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
PredictiveScalingPredefinedMetricPair & WithPredefinedMetricType(const PredefinedMetricPairType &value)
PredictiveScalingPredefinedMetricPair & WithResourceLabel(Aws::String &&value)
AWS_AUTOSCALING_API PredictiveScalingPredefinedMetricPair & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
PredictiveScalingPredefinedMetricPair & WithPredefinedMetricType(PredefinedMetricPairType &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream