AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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:
36 AWS_AUTOSCALING_API PredictiveScalingPredefinedMetricPair() = default;
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 PredefinedMetricPairType GetPredefinedMetricType() const { return m_predefinedMetricType; }
53 inline bool PredefinedMetricTypeHasBeenSet() const { return m_predefinedMetricTypeHasBeenSet; }
54 inline void SetPredefinedMetricType(PredefinedMetricPairType value) { m_predefinedMetricTypeHasBeenSet = true; m_predefinedMetricType = value; }
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) { m_resourceLabelHasBeenSet = true; m_resourceLabel = std::forward<ResourceLabelT>(value); }
83 template<typename ResourceLabelT = Aws::String>
84 PredictiveScalingPredefinedMetricPair& WithResourceLabel(ResourceLabelT&& value) { SetResourceLabel(std::forward<ResourceLabelT>(value)); return *this;}
86 private:
87
89 bool m_predefinedMetricTypeHasBeenSet = false;
90
91 Aws::String m_resourceLabel;
92 bool m_resourceLabelHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace AutoScaling
97} // 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