AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PredictiveScalingConfiguration.h
1
6#pragma once
7#include <aws/autoscaling/AutoScaling_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/autoscaling/model/PredictiveScalingMode.h>
11#include <aws/autoscaling/model/PredictiveScalingMaxCapacityBreachBehavior.h>
12#include <aws/autoscaling/model/PredictiveScalingMetricSpecification.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Xml
20{
21 class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace AutoScaling
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_AUTOSCALING_API PredictiveScalingConfiguration();
39 AWS_AUTOSCALING_API PredictiveScalingConfiguration(const Aws::Utils::Xml::XmlNode& xmlNode);
41
42 AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43 AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
44
45
47
54 inline const Aws::Vector<PredictiveScalingMetricSpecification>& GetMetricSpecifications() const{ return m_metricSpecifications; }
55 inline bool MetricSpecificationsHasBeenSet() const { return m_metricSpecificationsHasBeenSet; }
56 inline void SetMetricSpecifications(const Aws::Vector<PredictiveScalingMetricSpecification>& value) { m_metricSpecificationsHasBeenSet = true; m_metricSpecifications = value; }
57 inline void SetMetricSpecifications(Aws::Vector<PredictiveScalingMetricSpecification>&& value) { m_metricSpecificationsHasBeenSet = true; m_metricSpecifications = std::move(value); }
60 inline PredictiveScalingConfiguration& AddMetricSpecifications(const PredictiveScalingMetricSpecification& value) { m_metricSpecificationsHasBeenSet = true; m_metricSpecifications.push_back(value); return *this; }
61 inline PredictiveScalingConfiguration& AddMetricSpecifications(PredictiveScalingMetricSpecification&& value) { m_metricSpecificationsHasBeenSet = true; m_metricSpecifications.push_back(std::move(value)); return *this; }
63
65
69 inline const PredictiveScalingMode& GetMode() const{ return m_mode; }
70 inline bool ModeHasBeenSet() const { return m_modeHasBeenSet; }
71 inline void SetMode(const PredictiveScalingMode& value) { m_modeHasBeenSet = true; m_mode = value; }
72 inline void SetMode(PredictiveScalingMode&& value) { m_modeHasBeenSet = true; m_mode = std::move(value); }
73 inline PredictiveScalingConfiguration& WithMode(const PredictiveScalingMode& value) { SetMode(value); return *this;}
74 inline PredictiveScalingConfiguration& WithMode(PredictiveScalingMode&& value) { SetMode(std::move(value)); return *this;}
76
78
89 inline int GetSchedulingBufferTime() const{ return m_schedulingBufferTime; }
90 inline bool SchedulingBufferTimeHasBeenSet() const { return m_schedulingBufferTimeHasBeenSet; }
91 inline void SetSchedulingBufferTime(int value) { m_schedulingBufferTimeHasBeenSet = true; m_schedulingBufferTime = value; }
94
96
114 inline const PredictiveScalingMaxCapacityBreachBehavior& GetMaxCapacityBreachBehavior() const{ return m_maxCapacityBreachBehavior; }
115 inline bool MaxCapacityBreachBehaviorHasBeenSet() const { return m_maxCapacityBreachBehaviorHasBeenSet; }
116 inline void SetMaxCapacityBreachBehavior(const PredictiveScalingMaxCapacityBreachBehavior& value) { m_maxCapacityBreachBehaviorHasBeenSet = true; m_maxCapacityBreachBehavior = value; }
117 inline void SetMaxCapacityBreachBehavior(PredictiveScalingMaxCapacityBreachBehavior&& value) { m_maxCapacityBreachBehaviorHasBeenSet = true; m_maxCapacityBreachBehavior = std::move(value); }
121
123
134 inline int GetMaxCapacityBuffer() const{ return m_maxCapacityBuffer; }
135 inline bool MaxCapacityBufferHasBeenSet() const { return m_maxCapacityBufferHasBeenSet; }
136 inline void SetMaxCapacityBuffer(int value) { m_maxCapacityBufferHasBeenSet = true; m_maxCapacityBuffer = value; }
139 private:
140
142 bool m_metricSpecificationsHasBeenSet = false;
143
145 bool m_modeHasBeenSet = false;
146
147 int m_schedulingBufferTime;
148 bool m_schedulingBufferTimeHasBeenSet = false;
149
150 PredictiveScalingMaxCapacityBreachBehavior m_maxCapacityBreachBehavior;
151 bool m_maxCapacityBreachBehaviorHasBeenSet = false;
152
153 int m_maxCapacityBuffer;
154 bool m_maxCapacityBufferHasBeenSet = false;
155 };
156
157} // namespace Model
158} // namespace AutoScaling
159} // namespace Aws
PredictiveScalingConfiguration & AddMetricSpecifications(PredictiveScalingMetricSpecification &&value)
PredictiveScalingConfiguration & WithMetricSpecifications(Aws::Vector< PredictiveScalingMetricSpecification > &&value)
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetMaxCapacityBreachBehavior(const PredictiveScalingMaxCapacityBreachBehavior &value)
void SetMaxCapacityBreachBehavior(PredictiveScalingMaxCapacityBreachBehavior &&value)
AWS_AUTOSCALING_API PredictiveScalingConfiguration(const Aws::Utils::Xml::XmlNode &xmlNode)
PredictiveScalingConfiguration & WithSchedulingBufferTime(int value)
PredictiveScalingConfiguration & WithMaxCapacityBreachBehavior(PredictiveScalingMaxCapacityBreachBehavior &&value)
PredictiveScalingConfiguration & WithMetricSpecifications(const Aws::Vector< PredictiveScalingMetricSpecification > &value)
const PredictiveScalingMaxCapacityBreachBehavior & GetMaxCapacityBreachBehavior() const
void SetMetricSpecifications(Aws::Vector< PredictiveScalingMetricSpecification > &&value)
PredictiveScalingConfiguration & WithMaxCapacityBuffer(int value)
AWS_AUTOSCALING_API PredictiveScalingConfiguration & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
PredictiveScalingConfiguration & AddMetricSpecifications(const PredictiveScalingMetricSpecification &value)
PredictiveScalingConfiguration & WithMaxCapacityBreachBehavior(const PredictiveScalingMaxCapacityBreachBehavior &value)
void SetMetricSpecifications(const Aws::Vector< PredictiveScalingMetricSpecification > &value)
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
PredictiveScalingConfiguration & WithMode(PredictiveScalingMode &&value)
PredictiveScalingConfiguration & WithMode(const PredictiveScalingMode &value)
const Aws::Vector< PredictiveScalingMetricSpecification > & GetMetricSpecifications() const
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream