AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TargetTrackingConfiguration.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/PredefinedMetricSpecification.h>
10#include <aws/autoscaling/model/CustomizedMetricSpecification.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 TargetTrackingConfiguration();
37 AWS_AUTOSCALING_API TargetTrackingConfiguration(const Aws::Utils::Xml::XmlNode& xmlNode);
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
49 inline const PredefinedMetricSpecification& GetPredefinedMetricSpecification() const{ return m_predefinedMetricSpecification; }
50 inline bool PredefinedMetricSpecificationHasBeenSet() const { return m_predefinedMetricSpecificationHasBeenSet; }
51 inline void SetPredefinedMetricSpecification(const PredefinedMetricSpecification& value) { m_predefinedMetricSpecificationHasBeenSet = true; m_predefinedMetricSpecification = value; }
52 inline void SetPredefinedMetricSpecification(PredefinedMetricSpecification&& value) { m_predefinedMetricSpecificationHasBeenSet = true; m_predefinedMetricSpecification = std::move(value); }
56
58
62 inline const CustomizedMetricSpecification& GetCustomizedMetricSpecification() const{ return m_customizedMetricSpecification; }
63 inline bool CustomizedMetricSpecificationHasBeenSet() const { return m_customizedMetricSpecificationHasBeenSet; }
64 inline void SetCustomizedMetricSpecification(const CustomizedMetricSpecification& value) { m_customizedMetricSpecificationHasBeenSet = true; m_customizedMetricSpecification = value; }
65 inline void SetCustomizedMetricSpecification(CustomizedMetricSpecification&& value) { m_customizedMetricSpecificationHasBeenSet = true; m_customizedMetricSpecification = std::move(value); }
69
71
79 inline double GetTargetValue() const{ return m_targetValue; }
80 inline bool TargetValueHasBeenSet() const { return m_targetValueHasBeenSet; }
81 inline void SetTargetValue(double value) { m_targetValueHasBeenSet = true; m_targetValue = value; }
82 inline TargetTrackingConfiguration& WithTargetValue(double value) { SetTargetValue(value); return *this;}
84
86
93 inline bool GetDisableScaleIn() const{ return m_disableScaleIn; }
94 inline bool DisableScaleInHasBeenSet() const { return m_disableScaleInHasBeenSet; }
95 inline void SetDisableScaleIn(bool value) { m_disableScaleInHasBeenSet = true; m_disableScaleIn = value; }
96 inline TargetTrackingConfiguration& WithDisableScaleIn(bool value) { SetDisableScaleIn(value); return *this;}
98 private:
99
100 PredefinedMetricSpecification m_predefinedMetricSpecification;
101 bool m_predefinedMetricSpecificationHasBeenSet = false;
102
103 CustomizedMetricSpecification m_customizedMetricSpecification;
104 bool m_customizedMetricSpecificationHasBeenSet = false;
105
106 double m_targetValue;
107 bool m_targetValueHasBeenSet = false;
108
109 bool m_disableScaleIn;
110 bool m_disableScaleInHasBeenSet = false;
111 };
112
113} // namespace Model
114} // namespace AutoScaling
115} // namespace Aws
AWS_AUTOSCALING_API TargetTrackingConfiguration & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &oStream, const char *location) const
TargetTrackingConfiguration & WithCustomizedMetricSpecification(const CustomizedMetricSpecification &value)
void SetPredefinedMetricSpecification(const PredefinedMetricSpecification &value)
const PredefinedMetricSpecification & GetPredefinedMetricSpecification() const
const CustomizedMetricSpecification & GetCustomizedMetricSpecification() const
TargetTrackingConfiguration & WithPredefinedMetricSpecification(const PredefinedMetricSpecification &value)
void SetCustomizedMetricSpecification(CustomizedMetricSpecification &&value)
TargetTrackingConfiguration & WithCustomizedMetricSpecification(CustomizedMetricSpecification &&value)
TargetTrackingConfiguration & WithPredefinedMetricSpecification(PredefinedMetricSpecification &&value)
AWS_AUTOSCALING_API TargetTrackingConfiguration(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
TargetTrackingConfiguration & WithTargetValue(double value)
void SetCustomizedMetricSpecification(const CustomizedMetricSpecification &value)
TargetTrackingConfiguration & WithDisableScaleIn(bool value)
void SetPredefinedMetricSpecification(PredefinedMetricSpecification &&value)
std::basic_ostream< char, std::char_traits< char > > OStream