AWS SDK for C++  1.9.106
AWS SDK for C++
PredictiveScalingConfiguration.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace Utils
18 {
19 namespace Xml
20 {
21  class XmlNode;
22 } // namespace Xml
23 } // namespace Utils
24 namespace AutoScaling
25 {
26 namespace Model
27 {
28 
36  {
37  public:
41 
42  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43  void OutputToStream(Aws::OStream& oStream, const char* location) const;
44 
45 
53  inline const Aws::Vector<PredictiveScalingMetricSpecification>& GetMetricSpecifications() const{ return m_metricSpecifications; }
54 
62  inline bool MetricSpecificationsHasBeenSet() const { return m_metricSpecificationsHasBeenSet; }
63 
71  inline void SetMetricSpecifications(const Aws::Vector<PredictiveScalingMetricSpecification>& value) { m_metricSpecificationsHasBeenSet = true; m_metricSpecifications = value; }
72 
80  inline void SetMetricSpecifications(Aws::Vector<PredictiveScalingMetricSpecification>&& value) { m_metricSpecificationsHasBeenSet = true; m_metricSpecifications = std::move(value); }
81 
89  inline PredictiveScalingConfiguration& WithMetricSpecifications(const Aws::Vector<PredictiveScalingMetricSpecification>& value) { SetMetricSpecifications(value); return *this;}
90 
98  inline PredictiveScalingConfiguration& WithMetricSpecifications(Aws::Vector<PredictiveScalingMetricSpecification>&& value) { SetMetricSpecifications(std::move(value)); return *this;}
99 
107  inline PredictiveScalingConfiguration& AddMetricSpecifications(const PredictiveScalingMetricSpecification& value) { m_metricSpecificationsHasBeenSet = true; m_metricSpecifications.push_back(value); return *this; }
108 
116  inline PredictiveScalingConfiguration& AddMetricSpecifications(PredictiveScalingMetricSpecification&& value) { m_metricSpecificationsHasBeenSet = true; m_metricSpecifications.push_back(std::move(value)); return *this; }
117 
118 
123  inline const PredictiveScalingMode& GetMode() const{ return m_mode; }
124 
129  inline bool ModeHasBeenSet() const { return m_modeHasBeenSet; }
130 
135  inline void SetMode(const PredictiveScalingMode& value) { m_modeHasBeenSet = true; m_mode = value; }
136 
141  inline void SetMode(PredictiveScalingMode&& value) { m_modeHasBeenSet = true; m_mode = std::move(value); }
142 
147  inline PredictiveScalingConfiguration& WithMode(const PredictiveScalingMode& value) { SetMode(value); return *this;}
148 
153  inline PredictiveScalingConfiguration& WithMode(PredictiveScalingMode&& value) { SetMode(std::move(value)); return *this;}
154 
155 
167  inline int GetSchedulingBufferTime() const{ return m_schedulingBufferTime; }
168 
180  inline bool SchedulingBufferTimeHasBeenSet() const { return m_schedulingBufferTimeHasBeenSet; }
181 
193  inline void SetSchedulingBufferTime(int value) { m_schedulingBufferTimeHasBeenSet = true; m_schedulingBufferTime = value; }
194 
206  inline PredictiveScalingConfiguration& WithSchedulingBufferTime(int value) { SetSchedulingBufferTime(value); return *this;}
207 
208 
221  inline const PredictiveScalingMaxCapacityBreachBehavior& GetMaxCapacityBreachBehavior() const{ return m_maxCapacityBreachBehavior; }
222 
235  inline bool MaxCapacityBreachBehaviorHasBeenSet() const { return m_maxCapacityBreachBehaviorHasBeenSet; }
236 
249  inline void SetMaxCapacityBreachBehavior(const PredictiveScalingMaxCapacityBreachBehavior& value) { m_maxCapacityBreachBehaviorHasBeenSet = true; m_maxCapacityBreachBehavior = value; }
250 
263  inline void SetMaxCapacityBreachBehavior(PredictiveScalingMaxCapacityBreachBehavior&& value) { m_maxCapacityBreachBehaviorHasBeenSet = true; m_maxCapacityBreachBehavior = std::move(value); }
264 
277  inline PredictiveScalingConfiguration& WithMaxCapacityBreachBehavior(const PredictiveScalingMaxCapacityBreachBehavior& value) { SetMaxCapacityBreachBehavior(value); return *this;}
278 
291  inline PredictiveScalingConfiguration& WithMaxCapacityBreachBehavior(PredictiveScalingMaxCapacityBreachBehavior&& value) { SetMaxCapacityBreachBehavior(std::move(value)); return *this;}
292 
293 
305  inline int GetMaxCapacityBuffer() const{ return m_maxCapacityBuffer; }
306 
318  inline bool MaxCapacityBufferHasBeenSet() const { return m_maxCapacityBufferHasBeenSet; }
319 
331  inline void SetMaxCapacityBuffer(int value) { m_maxCapacityBufferHasBeenSet = true; m_maxCapacityBuffer = value; }
332 
344  inline PredictiveScalingConfiguration& WithMaxCapacityBuffer(int value) { SetMaxCapacityBuffer(value); return *this;}
345 
346  private:
347 
349  bool m_metricSpecificationsHasBeenSet;
350 
351  PredictiveScalingMode m_mode;
352  bool m_modeHasBeenSet;
353 
354  int m_schedulingBufferTime;
355  bool m_schedulingBufferTimeHasBeenSet;
356 
357  PredictiveScalingMaxCapacityBreachBehavior m_maxCapacityBreachBehavior;
358  bool m_maxCapacityBreachBehaviorHasBeenSet;
359 
360  int m_maxCapacityBuffer;
361  bool m_maxCapacityBufferHasBeenSet;
362  };
363 
364 } // namespace Model
365 } // namespace AutoScaling
366 } // namespace Aws
Aws::AutoScaling::Model::PredictiveScalingConfiguration::GetMode
const PredictiveScalingMode & GetMode() const
Definition: PredictiveScalingConfiguration.h:123
Aws::AutoScaling::Model::PredictiveScalingMetricSpecification
Definition: PredictiveScalingMetricSpecification.h:60
Aws::AutoScaling::Model::PredictiveScalingConfiguration::SetMode
void SetMode(PredictiveScalingMode &&value)
Definition: PredictiveScalingConfiguration.h:141
Aws::AutoScaling::Model::PredictiveScalingConfiguration::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::AutoScaling::Model::PredictiveScalingMode
PredictiveScalingMode
Definition: PredictiveScalingMode.h:17
Aws::AutoScaling::Model::PredictiveScalingConfiguration::ModeHasBeenSet
bool ModeHasBeenSet() const
Definition: PredictiveScalingConfiguration.h:129
Aws::AutoScaling::Model::PredictiveScalingConfiguration::WithMaxCapacityBuffer
PredictiveScalingConfiguration & WithMaxCapacityBuffer(int value)
Definition: PredictiveScalingConfiguration.h:344
Aws::AutoScaling::Model::PredictiveScalingConfiguration::SetMode
void SetMode(const PredictiveScalingMode &value)
Definition: PredictiveScalingConfiguration.h:135
Aws::AutoScaling::Model::PredictiveScalingConfiguration::SetMaxCapacityBreachBehavior
void SetMaxCapacityBreachBehavior(const PredictiveScalingMaxCapacityBreachBehavior &value)
Definition: PredictiveScalingConfiguration.h:249
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::AutoScaling::Model::PredictiveScalingConfiguration::operator=
PredictiveScalingConfiguration & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::AutoScaling::Model::PredictiveScalingConfiguration::WithMetricSpecifications
PredictiveScalingConfiguration & WithMetricSpecifications(Aws::Vector< PredictiveScalingMetricSpecification > &&value)
Definition: PredictiveScalingConfiguration.h:98
AWSStreamFwd.h
Aws::AutoScaling::Model::PredictiveScalingConfiguration::MaxCapacityBufferHasBeenSet
bool MaxCapacityBufferHasBeenSet() const
Definition: PredictiveScalingConfiguration.h:318
AWSVector.h
Aws::AutoScaling::Model::PredictiveScalingConfiguration::MetricSpecificationsHasBeenSet
bool MetricSpecificationsHasBeenSet() const
Definition: PredictiveScalingConfiguration.h:62
Aws::AutoScaling::Model::PredictiveScalingConfiguration::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::AutoScaling::Model::PredictiveScalingConfiguration::SetMetricSpecifications
void SetMetricSpecifications(const Aws::Vector< PredictiveScalingMetricSpecification > &value)
Definition: PredictiveScalingConfiguration.h:71
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::AutoScaling::Model::PredictiveScalingConfiguration::GetMetricSpecifications
const Aws::Vector< PredictiveScalingMetricSpecification > & GetMetricSpecifications() const
Definition: PredictiveScalingConfiguration.h:53
PredictiveScalingMetricSpecification.h
PredictiveScalingMode.h
Aws::AutoScaling::Model::PredictiveScalingConfiguration::WithMaxCapacityBreachBehavior
PredictiveScalingConfiguration & WithMaxCapacityBreachBehavior(PredictiveScalingMaxCapacityBreachBehavior &&value)
Definition: PredictiveScalingConfiguration.h:291
Aws::AutoScaling::Model::PredictiveScalingConfiguration::WithMode
PredictiveScalingConfiguration & WithMode(PredictiveScalingMode &&value)
Definition: PredictiveScalingConfiguration.h:153
AWS_AUTOSCALING_API
#define AWS_AUTOSCALING_API
Definition: AutoScaling_EXPORTS.h:28
Aws::AutoScaling::Model::PredictiveScalingConfiguration::WithMode
PredictiveScalingConfiguration & WithMode(const PredictiveScalingMode &value)
Definition: PredictiveScalingConfiguration.h:147
Aws::AutoScaling::Model::PredictiveScalingMaxCapacityBreachBehavior
PredictiveScalingMaxCapacityBreachBehavior
Definition: PredictiveScalingMaxCapacityBreachBehavior.h:17
Aws::AutoScaling::Model::PredictiveScalingConfiguration::WithMetricSpecifications
PredictiveScalingConfiguration & WithMetricSpecifications(const Aws::Vector< PredictiveScalingMetricSpecification > &value)
Definition: PredictiveScalingConfiguration.h:89
Aws::AutoScaling::Model::PredictiveScalingConfiguration::AddMetricSpecifications
PredictiveScalingConfiguration & AddMetricSpecifications(PredictiveScalingMetricSpecification &&value)
Definition: PredictiveScalingConfiguration.h:116
Aws::AutoScaling::Model::PredictiveScalingConfiguration::SetMetricSpecifications
void SetMetricSpecifications(Aws::Vector< PredictiveScalingMetricSpecification > &&value)
Definition: PredictiveScalingConfiguration.h:80
Aws::AutoScaling::Model::PredictiveScalingConfiguration::GetMaxCapacityBreachBehavior
const PredictiveScalingMaxCapacityBreachBehavior & GetMaxCapacityBreachBehavior() const
Definition: PredictiveScalingConfiguration.h:221
Aws::AutoScaling::Model::PredictiveScalingConfiguration::GetSchedulingBufferTime
int GetSchedulingBufferTime() const
Definition: PredictiveScalingConfiguration.h:167
AutoScaling_EXPORTS.h
Aws::AutoScaling::Model::PredictiveScalingConfiguration::GetMaxCapacityBuffer
int GetMaxCapacityBuffer() const
Definition: PredictiveScalingConfiguration.h:305
Aws::AutoScaling::Model::PredictiveScalingConfiguration::WithSchedulingBufferTime
PredictiveScalingConfiguration & WithSchedulingBufferTime(int value)
Definition: PredictiveScalingConfiguration.h:206
Aws
Definition: AccessManagementClient.h:15
Aws::AutoScaling::Model::PredictiveScalingConfiguration::WithMaxCapacityBreachBehavior
PredictiveScalingConfiguration & WithMaxCapacityBreachBehavior(const PredictiveScalingMaxCapacityBreachBehavior &value)
Definition: PredictiveScalingConfiguration.h:277
Aws::AutoScaling::Model::PredictiveScalingConfiguration::SchedulingBufferTimeHasBeenSet
bool SchedulingBufferTimeHasBeenSet() const
Definition: PredictiveScalingConfiguration.h:180
PredictiveScalingMaxCapacityBreachBehavior.h
index
int index
Definition: cJSON.h:181
Aws::AutoScaling::Model::PredictiveScalingConfiguration::SetMaxCapacityBreachBehavior
void SetMaxCapacityBreachBehavior(PredictiveScalingMaxCapacityBreachBehavior &&value)
Definition: PredictiveScalingConfiguration.h:263
Aws::AutoScaling::Model::PredictiveScalingConfiguration::MaxCapacityBreachBehaviorHasBeenSet
bool MaxCapacityBreachBehaviorHasBeenSet() const
Definition: PredictiveScalingConfiguration.h:235
Aws::AutoScaling::Model::PredictiveScalingConfiguration::SetMaxCapacityBuffer
void SetMaxCapacityBuffer(int value)
Definition: PredictiveScalingConfiguration.h:331
Aws::AutoScaling::Model::PredictiveScalingConfiguration::SetSchedulingBufferTime
void SetSchedulingBufferTime(int value)
Definition: PredictiveScalingConfiguration.h:193
Aws::AutoScaling::Model::PredictiveScalingConfiguration::AddMetricSpecifications
PredictiveScalingConfiguration & AddMetricSpecifications(const PredictiveScalingMetricSpecification &value)
Definition: PredictiveScalingConfiguration.h:107
Aws::AutoScaling::Model::PredictiveScalingConfiguration::PredictiveScalingConfiguration
PredictiveScalingConfiguration()
Aws::AutoScaling::Model::PredictiveScalingConfiguration::PredictiveScalingConfiguration
PredictiveScalingConfiguration(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::AutoScaling::Model::PredictiveScalingConfiguration
Definition: PredictiveScalingConfiguration.h:36