AWS SDK for C++  1.9.108
AWS SDK for C++
TargetTrackingConfiguration.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Xml
18 {
19  class XmlNode;
20 } // namespace Xml
21 } // namespace Utils
22 namespace AutoScaling
23 {
24 namespace Model
25 {
26 
34  {
35  public:
39 
40  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41  void OutputToStream(Aws::OStream& oStream, const char* location) const;
42 
43 
48  inline const PredefinedMetricSpecification& GetPredefinedMetricSpecification() const{ return m_predefinedMetricSpecification; }
49 
54  inline bool PredefinedMetricSpecificationHasBeenSet() const { return m_predefinedMetricSpecificationHasBeenSet; }
55 
60  inline void SetPredefinedMetricSpecification(const PredefinedMetricSpecification& value) { m_predefinedMetricSpecificationHasBeenSet = true; m_predefinedMetricSpecification = value; }
61 
66  inline void SetPredefinedMetricSpecification(PredefinedMetricSpecification&& value) { m_predefinedMetricSpecificationHasBeenSet = true; m_predefinedMetricSpecification = std::move(value); }
67 
72  inline TargetTrackingConfiguration& WithPredefinedMetricSpecification(const PredefinedMetricSpecification& value) { SetPredefinedMetricSpecification(value); return *this;}
73 
78  inline TargetTrackingConfiguration& WithPredefinedMetricSpecification(PredefinedMetricSpecification&& value) { SetPredefinedMetricSpecification(std::move(value)); return *this;}
79 
80 
85  inline const CustomizedMetricSpecification& GetCustomizedMetricSpecification() const{ return m_customizedMetricSpecification; }
86 
91  inline bool CustomizedMetricSpecificationHasBeenSet() const { return m_customizedMetricSpecificationHasBeenSet; }
92 
97  inline void SetCustomizedMetricSpecification(const CustomizedMetricSpecification& value) { m_customizedMetricSpecificationHasBeenSet = true; m_customizedMetricSpecification = value; }
98 
103  inline void SetCustomizedMetricSpecification(CustomizedMetricSpecification&& value) { m_customizedMetricSpecificationHasBeenSet = true; m_customizedMetricSpecification = std::move(value); }
104 
109  inline TargetTrackingConfiguration& WithCustomizedMetricSpecification(const CustomizedMetricSpecification& value) { SetCustomizedMetricSpecification(value); return *this;}
110 
115  inline TargetTrackingConfiguration& WithCustomizedMetricSpecification(CustomizedMetricSpecification&& value) { SetCustomizedMetricSpecification(std::move(value)); return *this;}
116 
117 
121  inline double GetTargetValue() const{ return m_targetValue; }
122 
126  inline bool TargetValueHasBeenSet() const { return m_targetValueHasBeenSet; }
127 
131  inline void SetTargetValue(double value) { m_targetValueHasBeenSet = true; m_targetValue = value; }
132 
136  inline TargetTrackingConfiguration& WithTargetValue(double value) { SetTargetValue(value); return *this;}
137 
138 
146  inline bool GetDisableScaleIn() const{ return m_disableScaleIn; }
147 
155  inline bool DisableScaleInHasBeenSet() const { return m_disableScaleInHasBeenSet; }
156 
164  inline void SetDisableScaleIn(bool value) { m_disableScaleInHasBeenSet = true; m_disableScaleIn = value; }
165 
173  inline TargetTrackingConfiguration& WithDisableScaleIn(bool value) { SetDisableScaleIn(value); return *this;}
174 
175  private:
176 
177  PredefinedMetricSpecification m_predefinedMetricSpecification;
178  bool m_predefinedMetricSpecificationHasBeenSet;
179 
180  CustomizedMetricSpecification m_customizedMetricSpecification;
181  bool m_customizedMetricSpecificationHasBeenSet;
182 
183  double m_targetValue;
184  bool m_targetValueHasBeenSet;
185 
186  bool m_disableScaleIn;
187  bool m_disableScaleInHasBeenSet;
188  };
189 
190 } // namespace Model
191 } // namespace AutoScaling
192 } // namespace Aws
Aws::AutoScaling::Model::TargetTrackingConfiguration::TargetTrackingConfiguration
TargetTrackingConfiguration()
Aws::AutoScaling::Model::TargetTrackingConfiguration::TargetTrackingConfiguration
TargetTrackingConfiguration(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::AutoScaling::Model::TargetTrackingConfiguration::SetPredefinedMetricSpecification
void SetPredefinedMetricSpecification(const PredefinedMetricSpecification &value)
Definition: TargetTrackingConfiguration.h:60
Aws::AutoScaling::Model::TargetTrackingConfiguration::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::AutoScaling::Model::TargetTrackingConfiguration::WithTargetValue
TargetTrackingConfiguration & WithTargetValue(double value)
Definition: TargetTrackingConfiguration.h:136
Aws::AutoScaling::Model::TargetTrackingConfiguration::SetPredefinedMetricSpecification
void SetPredefinedMetricSpecification(PredefinedMetricSpecification &&value)
Definition: TargetTrackingConfiguration.h:66
Aws::AutoScaling::Model::TargetTrackingConfiguration::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWSStreamFwd.h
Aws::AutoScaling::Model::TargetTrackingConfiguration::GetPredefinedMetricSpecification
const PredefinedMetricSpecification & GetPredefinedMetricSpecification() const
Definition: TargetTrackingConfiguration.h:48
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::AutoScaling::Model::TargetTrackingConfiguration
Definition: TargetTrackingConfiguration.h:34
Aws::AutoScaling::Model::TargetTrackingConfiguration::CustomizedMetricSpecificationHasBeenSet
bool CustomizedMetricSpecificationHasBeenSet() const
Definition: TargetTrackingConfiguration.h:91
Aws::AutoScaling::Model::TargetTrackingConfiguration::DisableScaleInHasBeenSet
bool DisableScaleInHasBeenSet() const
Definition: TargetTrackingConfiguration.h:155
Aws::AutoScaling::Model::TargetTrackingConfiguration::WithDisableScaleIn
TargetTrackingConfiguration & WithDisableScaleIn(bool value)
Definition: TargetTrackingConfiguration.h:173
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::AutoScaling::Model::TargetTrackingConfiguration::SetCustomizedMetricSpecification
void SetCustomizedMetricSpecification(const CustomizedMetricSpecification &value)
Definition: TargetTrackingConfiguration.h:97
AWS_AUTOSCALING_API
#define AWS_AUTOSCALING_API
Definition: AutoScaling_EXPORTS.h:28
Aws::AutoScaling::Model::PredefinedMetricSpecification
Definition: PredefinedMetricSpecification.h:34
Aws::AutoScaling::Model::TargetTrackingConfiguration::PredefinedMetricSpecificationHasBeenSet
bool PredefinedMetricSpecificationHasBeenSet() const
Definition: TargetTrackingConfiguration.h:54
Aws::AutoScaling::Model::TargetTrackingConfiguration::WithCustomizedMetricSpecification
TargetTrackingConfiguration & WithCustomizedMetricSpecification(CustomizedMetricSpecification &&value)
Definition: TargetTrackingConfiguration.h:115
Aws::AutoScaling::Model::TargetTrackingConfiguration::GetDisableScaleIn
bool GetDisableScaleIn() const
Definition: TargetTrackingConfiguration.h:146
Aws::AutoScaling::Model::TargetTrackingConfiguration::SetDisableScaleIn
void SetDisableScaleIn(bool value)
Definition: TargetTrackingConfiguration.h:164
Aws::AutoScaling::Model::TargetTrackingConfiguration::WithPredefinedMetricSpecification
TargetTrackingConfiguration & WithPredefinedMetricSpecification(PredefinedMetricSpecification &&value)
Definition: TargetTrackingConfiguration.h:78
Aws::AutoScaling::Model::TargetTrackingConfiguration::GetTargetValue
double GetTargetValue() const
Definition: TargetTrackingConfiguration.h:121
Aws::AutoScaling::Model::TargetTrackingConfiguration::WithCustomizedMetricSpecification
TargetTrackingConfiguration & WithCustomizedMetricSpecification(const CustomizedMetricSpecification &value)
Definition: TargetTrackingConfiguration.h:109
AutoScaling_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15
Aws::AutoScaling::Model::TargetTrackingConfiguration::GetCustomizedMetricSpecification
const CustomizedMetricSpecification & GetCustomizedMetricSpecification() const
Definition: TargetTrackingConfiguration.h:85
CustomizedMetricSpecification.h
Aws::AutoScaling::Model::CustomizedMetricSpecification
Definition: CustomizedMetricSpecification.h:48
PredefinedMetricSpecification.h
index
int index
Definition: cJSON.h:181
Aws::AutoScaling::Model::TargetTrackingConfiguration::operator=
TargetTrackingConfiguration & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::AutoScaling::Model::TargetTrackingConfiguration::TargetValueHasBeenSet
bool TargetValueHasBeenSet() const
Definition: TargetTrackingConfiguration.h:126
Aws::AutoScaling::Model::TargetTrackingConfiguration::SetTargetValue
void SetTargetValue(double value)
Definition: TargetTrackingConfiguration.h:131
Aws::AutoScaling::Model::TargetTrackingConfiguration::WithPredefinedMetricSpecification
TargetTrackingConfiguration & WithPredefinedMetricSpecification(const PredefinedMetricSpecification &value)
Definition: TargetTrackingConfiguration.h:72
Aws::AutoScaling::Model::TargetTrackingConfiguration::SetCustomizedMetricSpecification
void SetCustomizedMetricSpecification(CustomizedMetricSpecification &&value)
Definition: TargetTrackingConfiguration.h:103