AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
PredictiveScalingPredefinedMetricPair.h
1
6#pragma once
7#include <aws/autoscaling/AutoScaling_EXPORTS.h>
8#include <aws/autoscaling/model/PredefinedMetricPairType.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
30 public:
31 AWS_AUTOSCALING_API PredictiveScalingPredefinedMetricPair() = default;
34
35 AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
36 AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
37
39
46 inline PredefinedMetricPairType GetPredefinedMetricType() const { return m_predefinedMetricType; }
47 inline bool PredefinedMetricTypeHasBeenSet() const { return m_predefinedMetricTypeHasBeenSet; }
49 m_predefinedMetricTypeHasBeenSet = true;
50 m_predefinedMetricType = value;
51 }
54 return *this;
55 }
57
59
79 inline const Aws::String& GetResourceLabel() const { return m_resourceLabel; }
80 inline bool ResourceLabelHasBeenSet() const { return m_resourceLabelHasBeenSet; }
81 template <typename ResourceLabelT = Aws::String>
82 void SetResourceLabel(ResourceLabelT&& value) {
83 m_resourceLabelHasBeenSet = true;
84 m_resourceLabel = std::forward<ResourceLabelT>(value);
85 }
86 template <typename ResourceLabelT = Aws::String>
88 SetResourceLabel(std::forward<ResourceLabelT>(value));
89 return *this;
90 }
92 private:
94
95 Aws::String m_resourceLabel;
96 bool m_predefinedMetricTypeHasBeenSet = false;
97 bool m_resourceLabelHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace AutoScaling
102} // namespace Aws
PredictiveScalingPredefinedMetricPair & WithPredefinedMetricType(PredefinedMetricPairType value)
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_AUTOSCALING_API PredictiveScalingPredefinedMetricPair(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 PredictiveScalingPredefinedMetricPair & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
PredictiveScalingPredefinedMetricPair & WithResourceLabel(ResourceLabelT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream