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/ScaleInProtectedInstances.h>
11#include <aws/autoscaling/model/StandbyInstances.h>
12#include <aws/autoscaling/model/AlarmSpecification.h>
57 inline void SetMinHealthyPercentage(
int value) { m_minHealthyPercentageHasBeenSet =
true; m_minHealthyPercentage = value; }
77 inline void SetInstanceWarmup(
int value) { m_instanceWarmupHasBeenSet =
true; m_instanceWarmup = value; }
93 template<
typename Checkpo
intPercentagesT = Aws::Vector<
int>>
94 void SetCheckpointPercentages(CheckpointPercentagesT&& value) { m_checkpointPercentagesHasBeenSet =
true; m_checkpointPercentages = std::forward<CheckpointPercentagesT>(value); }
95 template<
typename Checkpo
intPercentagesT = Aws::Vector<
int>>
111 inline void SetCheckpointDelay(
int value) { m_checkpointDelayHasBeenSet =
true; m_checkpointDelay = value; }
129 inline void SetSkipMatching(
bool value) { m_skipMatchingHasBeenSet =
true; m_skipMatching = value; }
151 inline void SetAutoRollback(
bool value) { m_autoRollbackHasBeenSet =
true; m_autoRollback = value; }
197 template<
typename AlarmSpecificationT = AlarmSpecification>
198 void SetAlarmSpecification(AlarmSpecificationT&& value) { m_alarmSpecificationHasBeenSet =
true; m_alarmSpecification = std::forward<AlarmSpecificationT>(value); }
199 template<
typename AlarmSpecificationT = AlarmSpecification>
229 inline void SetBakeTime(
int value) { m_bakeTimeHasBeenSet =
true; m_bakeTime = value; }
234 int m_minHealthyPercentage{0};
235 bool m_minHealthyPercentageHasBeenSet =
false;
237 int m_instanceWarmup{0};
238 bool m_instanceWarmupHasBeenSet =
false;
241 bool m_checkpointPercentagesHasBeenSet =
false;
243 int m_checkpointDelay{0};
244 bool m_checkpointDelayHasBeenSet =
false;
246 bool m_skipMatching{
false};
247 bool m_skipMatchingHasBeenSet =
false;
249 bool m_autoRollback{
false};
250 bool m_autoRollbackHasBeenSet =
false;
253 bool m_scaleInProtectedInstancesHasBeenSet =
false;
256 bool m_standbyInstancesHasBeenSet =
false;
258 AlarmSpecification m_alarmSpecification;
259 bool m_alarmSpecificationHasBeenSet =
false;
261 int m_maxHealthyPercentage{0};
262 bool m_maxHealthyPercentageHasBeenSet =
false;
265 bool m_bakeTimeHasBeenSet =
false;
RefreshPreferences & WithMinHealthyPercentage(int value)
bool SkipMatchingHasBeenSet() const
bool CheckpointDelayHasBeenSet() const
ScaleInProtectedInstances GetScaleInProtectedInstances() const
void SetMinHealthyPercentage(int value)
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetInstanceWarmup(int value)
void SetAutoRollback(bool value)
RefreshPreferences & WithMaxHealthyPercentage(int value)
int GetCheckpointDelay() const
AWS_AUTOSCALING_API RefreshPreferences & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
RefreshPreferences & WithAutoRollback(bool value)
RefreshPreferences & WithCheckpointPercentages(CheckpointPercentagesT &&value)
bool MinHealthyPercentageHasBeenSet() const
bool InstanceWarmupHasBeenSet() const
bool ScaleInProtectedInstancesHasBeenSet() const
RefreshPreferences & WithAlarmSpecification(AlarmSpecificationT &&value)
bool CheckpointPercentagesHasBeenSet() const
bool BakeTimeHasBeenSet() const
void SetCheckpointDelay(int value)
void SetSkipMatching(bool value)
RefreshPreferences & WithBakeTime(int value)
void SetScaleInProtectedInstances(ScaleInProtectedInstances value)
StandbyInstances GetStandbyInstances() const
int GetMinHealthyPercentage() const
bool MaxHealthyPercentageHasBeenSet() const
bool GetSkipMatching() const
int GetMaxHealthyPercentage() const
const AlarmSpecification & GetAlarmSpecification() const
RefreshPreferences & WithInstanceWarmup(int value)
void SetAlarmSpecification(AlarmSpecificationT &&value)
RefreshPreferences & AddCheckpointPercentages(int value)
RefreshPreferences & WithScaleInProtectedInstances(ScaleInProtectedInstances value)
const Aws::Vector< int > & GetCheckpointPercentages() const
AWS_AUTOSCALING_API RefreshPreferences()=default
void SetCheckpointPercentages(CheckpointPercentagesT &&value)
void SetMaxHealthyPercentage(int value)
bool StandbyInstancesHasBeenSet() const
RefreshPreferences & WithStandbyInstances(StandbyInstances value)
RefreshPreferences & WithSkipMatching(bool value)
RefreshPreferences & WithCheckpointDelay(int value)
AWS_AUTOSCALING_API RefreshPreferences(const Aws::Utils::Xml::XmlNode &xmlNode)
bool AlarmSpecificationHasBeenSet() const
void SetStandbyInstances(StandbyInstances value)
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
int GetInstanceWarmup() const
void SetBakeTime(int value)
bool GetAutoRollback() const
bool AutoRollbackHasBeenSet() const
ScaleInProtectedInstances
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream