7#include <aws/autoscaling/AutoScaling_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/autoscaling/model/PredefinedMetricSpecification.h>
10#include <aws/autoscaling/model/CustomizedMetricSpecification.h>
51 template<
typename PredefinedMetricSpecificationT = PredefinedMetricSpecification>
52 void SetPredefinedMetricSpecification(PredefinedMetricSpecificationT&& value) { m_predefinedMetricSpecificationHasBeenSet =
true; m_predefinedMetricSpecification = std::forward<PredefinedMetricSpecificationT>(value); }
53 template<
typename PredefinedMetricSpecificationT = PredefinedMetricSpecification>
64 template<
typename CustomizedMetricSpecificationT = CustomizedMetricSpecification>
65 void SetCustomizedMetricSpecification(CustomizedMetricSpecificationT&& value) { m_customizedMetricSpecificationHasBeenSet =
true; m_customizedMetricSpecification = std::forward<CustomizedMetricSpecificationT>(value); }
66 template<
typename CustomizedMetricSpecificationT = CustomizedMetricSpecification>
81 inline void SetTargetValue(
double value) { m_targetValueHasBeenSet =
true; m_targetValue = value; }
95 inline void SetDisableScaleIn(
bool value) { m_disableScaleInHasBeenSet =
true; m_disableScaleIn = value; }
101 bool m_predefinedMetricSpecificationHasBeenSet =
false;
104 bool m_customizedMetricSpecificationHasBeenSet =
false;
106 double m_targetValue{0.0};
107 bool m_targetValueHasBeenSet =
false;
109 bool m_disableScaleIn{
false};
110 bool m_disableScaleInHasBeenSet =
false;
TargetTrackingConfiguration & WithPredefinedMetricSpecification(PredefinedMetricSpecificationT &&value)
void SetPredefinedMetricSpecification(PredefinedMetricSpecificationT &&value)
void SetDisableScaleIn(bool value)
AWS_AUTOSCALING_API TargetTrackingConfiguration & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &oStream, const char *location) const
bool PredefinedMetricSpecificationHasBeenSet() const
const PredefinedMetricSpecification & GetPredefinedMetricSpecification() const
const CustomizedMetricSpecification & GetCustomizedMetricSpecification() const
AWS_AUTOSCALING_API TargetTrackingConfiguration()=default
AWS_AUTOSCALING_API TargetTrackingConfiguration(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
bool DisableScaleInHasBeenSet() const
double GetTargetValue() const
void SetCustomizedMetricSpecification(CustomizedMetricSpecificationT &&value)
bool GetDisableScaleIn() const
bool CustomizedMetricSpecificationHasBeenSet() const
bool TargetValueHasBeenSet() const
TargetTrackingConfiguration & WithTargetValue(double value)
TargetTrackingConfiguration & WithCustomizedMetricSpecification(CustomizedMetricSpecificationT &&value)
TargetTrackingConfiguration & WithDisableScaleIn(bool value)
void SetTargetValue(double value)
std::basic_ostream< char, std::char_traits< char > > OStream