7#include <aws/autoscaling/AutoScaling_EXPORTS.h>
8#include <aws/autoscaling/model/PredictiveScalingMaxCapacityBreachBehavior.h>
9#include <aws/autoscaling/model/PredictiveScalingMetricSpecification.h>
10#include <aws/autoscaling/model/PredictiveScalingMode.h>
11#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
22namespace AutoScaling {
50 template <
typename MetricSpecificationsT = Aws::Vector<PredictiveScalingMetricSpecification>>
52 m_metricSpecificationsHasBeenSet =
true;
53 m_metricSpecifications = std::forward<MetricSpecificationsT>(value);
55 template <
typename MetricSpecificationsT = Aws::Vector<PredictiveScalingMetricSpecification>>
60 template <
typename MetricSpecificationsT = PredictiveScalingMetricSpecification>
62 m_metricSpecificationsHasBeenSet =
true;
63 m_metricSpecifications.emplace_back(std::forward<MetricSpecificationsT>(value));
76 m_modeHasBeenSet =
true;
100 m_schedulingBufferTimeHasBeenSet =
true;
101 m_schedulingBufferTime = value;
131 m_maxCapacityBreachBehaviorHasBeenSet =
true;
132 m_maxCapacityBreachBehavior = value;
155 m_maxCapacityBufferHasBeenSet =
true;
156 m_maxCapacityBuffer = value;
168 int m_schedulingBufferTime{0};
172 int m_maxCapacityBuffer{0};
173 bool m_metricSpecificationsHasBeenSet =
false;
174 bool m_modeHasBeenSet =
false;
175 bool m_schedulingBufferTimeHasBeenSet =
false;
176 bool m_maxCapacityBreachBehaviorHasBeenSet =
false;
177 bool m_maxCapacityBufferHasBeenSet =
false;
bool MetricSpecificationsHasBeenSet() const
bool ModeHasBeenSet() const
void SetSchedulingBufferTime(int value)
AWS_AUTOSCALING_API PredictiveScalingConfiguration()=default
PredictiveScalingMode GetMode() const
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &oStream, const char *location) const
PredictiveScalingConfiguration & AddMetricSpecifications(MetricSpecificationsT &&value)
void SetMode(PredictiveScalingMode value)
bool MaxCapacityBreachBehaviorHasBeenSet() const
AWS_AUTOSCALING_API PredictiveScalingConfiguration(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetMetricSpecifications(MetricSpecificationsT &&value)
bool SchedulingBufferTimeHasBeenSet() const
PredictiveScalingConfiguration & WithSchedulingBufferTime(int value)
PredictiveScalingConfiguration & WithMetricSpecifications(MetricSpecificationsT &&value)
PredictiveScalingConfiguration & WithMaxCapacityBuffer(int value)
AWS_AUTOSCALING_API PredictiveScalingConfiguration & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
int GetMaxCapacityBuffer() const
PredictiveScalingMaxCapacityBreachBehavior GetMaxCapacityBreachBehavior() const
PredictiveScalingConfiguration & WithMode(PredictiveScalingMode value)
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
PredictiveScalingConfiguration & WithMaxCapacityBreachBehavior(PredictiveScalingMaxCapacityBreachBehavior value)
void SetMaxCapacityBreachBehavior(PredictiveScalingMaxCapacityBreachBehavior value)
void SetMaxCapacityBuffer(int value)
int GetSchedulingBufferTime() const
const Aws::Vector< PredictiveScalingMetricSpecification > & GetMetricSpecifications() const
bool MaxCapacityBufferHasBeenSet() const
PredictiveScalingMaxCapacityBreachBehavior
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream