7#include <aws/autoscaling/AutoScaling_EXPORTS.h>
8#include <aws/autoscaling/model/PredictiveScalingCustomizedCapacityMetric.h>
9#include <aws/autoscaling/model/PredictiveScalingCustomizedLoadMetric.h>
10#include <aws/autoscaling/model/PredictiveScalingCustomizedScalingMetric.h>
11#include <aws/autoscaling/model/PredictiveScalingPredefinedLoadMetric.h>
12#include <aws/autoscaling/model/PredictiveScalingPredefinedMetricPair.h>
13#include <aws/autoscaling/model/PredictiveScalingPredefinedScalingMetric.h>
14#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
24namespace AutoScaling {
82 m_targetValueHasBeenSet =
true;
83 m_targetValue = value;
97 return m_predefinedMetricPairSpecification;
100 template <
typename PredefinedMetricPairSpecificationT = PredictiveScalingPredefinedMetricPair>
102 m_predefinedMetricPairSpecificationHasBeenSet =
true;
103 m_predefinedMetricPairSpecification = std::forward<PredefinedMetricPairSpecificationT>(value);
105 template <
typename PredefinedMetricPairSpecificationT = PredictiveScalingPredefinedMetricPair>
117 return m_predefinedScalingMetricSpecification;
120 template <
typename PredefinedScalingMetricSpecificationT = PredictiveScalingPredefinedScalingMetric>
122 m_predefinedScalingMetricSpecificationHasBeenSet =
true;
123 m_predefinedScalingMetricSpecification = std::forward<PredefinedScalingMetricSpecificationT>(value);
125 template <
typename PredefinedScalingMetricSpecificationT = PredictiveScalingPredefinedScalingMetric>
137 return m_predefinedLoadMetricSpecification;
140 template <
typename PredefinedLoadMetricSpecificationT = PredictiveScalingPredefinedLoadMetric>
142 m_predefinedLoadMetricSpecificationHasBeenSet =
true;
143 m_predefinedLoadMetricSpecification = std::forward<PredefinedLoadMetricSpecificationT>(value);
145 template <
typename PredefinedLoadMetricSpecificationT = PredictiveScalingPredefinedLoadMetric>
157 return m_customizedScalingMetricSpecification;
160 template <
typename CustomizedScalingMetricSpecificationT = PredictiveScalingCustomizedScalingMetric>
162 m_customizedScalingMetricSpecificationHasBeenSet =
true;
163 m_customizedScalingMetricSpecification = std::forward<CustomizedScalingMetricSpecificationT>(value);
165 template <
typename CustomizedScalingMetricSpecificationT = PredictiveScalingCustomizedScalingMetric>
177 return m_customizedLoadMetricSpecification;
180 template <
typename CustomizedLoadMetricSpecificationT = PredictiveScalingCustomizedLoadMetric>
182 m_customizedLoadMetricSpecificationHasBeenSet =
true;
183 m_customizedLoadMetricSpecification = std::forward<CustomizedLoadMetricSpecificationT>(value);
185 template <
typename CustomizedLoadMetricSpecificationT = PredictiveScalingCustomizedLoadMetric>
197 return m_customizedCapacityMetricSpecification;
200 template <
typename CustomizedCapacityMetricSpecificationT = PredictiveScalingCustomizedCapacityMetric>
202 m_customizedCapacityMetricSpecificationHasBeenSet =
true;
203 m_customizedCapacityMetricSpecification = std::forward<CustomizedCapacityMetricSpecificationT>(value);
205 template <
typename CustomizedCapacityMetricSpecificationT = PredictiveScalingCustomizedCapacityMetric>
212 double m_targetValue{0.0};
214 PredictiveScalingPredefinedMetricPair m_predefinedMetricPairSpecification;
216 PredictiveScalingPredefinedScalingMetric m_predefinedScalingMetricSpecification;
218 PredictiveScalingPredefinedLoadMetric m_predefinedLoadMetricSpecification;
220 PredictiveScalingCustomizedScalingMetric m_customizedScalingMetricSpecification;
222 PredictiveScalingCustomizedLoadMetric m_customizedLoadMetricSpecification;
224 PredictiveScalingCustomizedCapacityMetric m_customizedCapacityMetricSpecification;
225 bool m_targetValueHasBeenSet =
false;
226 bool m_predefinedMetricPairSpecificationHasBeenSet =
false;
227 bool m_predefinedScalingMetricSpecificationHasBeenSet =
false;
228 bool m_predefinedLoadMetricSpecificationHasBeenSet =
false;
229 bool m_customizedScalingMetricSpecificationHasBeenSet =
false;
230 bool m_customizedLoadMetricSpecificationHasBeenSet =
false;
231 bool m_customizedCapacityMetricSpecificationHasBeenSet =
false;
PredictiveScalingMetricSpecification & WithCustomizedLoadMetricSpecification(CustomizedLoadMetricSpecificationT &&value)
AWS_AUTOSCALING_API PredictiveScalingMetricSpecification(const Aws::Utils::Xml::XmlNode &xmlNode)
PredictiveScalingMetricSpecification & WithPredefinedMetricPairSpecification(PredefinedMetricPairSpecificationT &&value)
PredictiveScalingMetricSpecification & WithPredefinedLoadMetricSpecification(PredefinedLoadMetricSpecificationT &&value)
const PredictiveScalingCustomizedScalingMetric & GetCustomizedScalingMetricSpecification() const
bool CustomizedLoadMetricSpecificationHasBeenSet() const
bool CustomizedCapacityMetricSpecificationHasBeenSet() const
void SetCustomizedCapacityMetricSpecification(CustomizedCapacityMetricSpecificationT &&value)
PredictiveScalingMetricSpecification & WithPredefinedScalingMetricSpecification(PredefinedScalingMetricSpecificationT &&value)
bool CustomizedScalingMetricSpecificationHasBeenSet() const
AWS_AUTOSCALING_API PredictiveScalingMetricSpecification()=default
void SetTargetValue(double value)
void SetPredefinedLoadMetricSpecification(PredefinedLoadMetricSpecificationT &&value)
PredictiveScalingMetricSpecification & WithTargetValue(double value)
void SetPredefinedMetricPairSpecification(PredefinedMetricPairSpecificationT &&value)
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &oStream, const char *location) const
bool PredefinedLoadMetricSpecificationHasBeenSet() const
bool TargetValueHasBeenSet() const
void SetPredefinedScalingMetricSpecification(PredefinedScalingMetricSpecificationT &&value)
const PredictiveScalingPredefinedLoadMetric & GetPredefinedLoadMetricSpecification() const
bool PredefinedMetricPairSpecificationHasBeenSet() const
bool PredefinedScalingMetricSpecificationHasBeenSet() const
double GetTargetValue() const
AWS_AUTOSCALING_API PredictiveScalingMetricSpecification & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
PredictiveScalingMetricSpecification & WithCustomizedCapacityMetricSpecification(CustomizedCapacityMetricSpecificationT &&value)
const PredictiveScalingCustomizedCapacityMetric & GetCustomizedCapacityMetricSpecification() const
const PredictiveScalingPredefinedMetricPair & GetPredefinedMetricPairSpecification() const
void SetCustomizedScalingMetricSpecification(CustomizedScalingMetricSpecificationT &&value)
void SetCustomizedLoadMetricSpecification(CustomizedLoadMetricSpecificationT &&value)
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
PredictiveScalingMetricSpecification & WithCustomizedScalingMetricSpecification(CustomizedScalingMetricSpecificationT &&value)
const PredictiveScalingCustomizedLoadMetric & GetCustomizedLoadMetricSpecification() const
const PredictiveScalingPredefinedScalingMetric & GetPredefinedScalingMetricSpecification() const
std::basic_ostream< char, std::char_traits< char > > OStream