AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RefreshPreferences.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/ScaleInProtectedInstances.h>
11#include <aws/autoscaling/model/StandbyInstances.h>
12#include <aws/autoscaling/model/AlarmSpecification.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 RefreshPreferences();
39 AWS_AUTOSCALING_API RefreshPreferences(const Aws::Utils::Xml::XmlNode& xmlNode);
40 AWS_AUTOSCALING_API RefreshPreferences& operator=(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
55 inline int GetMinHealthyPercentage() const{ return m_minHealthyPercentage; }
56 inline bool MinHealthyPercentageHasBeenSet() const { return m_minHealthyPercentageHasBeenSet; }
57 inline void SetMinHealthyPercentage(int value) { m_minHealthyPercentageHasBeenSet = true; m_minHealthyPercentage = value; }
58 inline RefreshPreferences& WithMinHealthyPercentage(int value) { SetMinHealthyPercentage(value); return *this;}
60
62
75 inline int GetInstanceWarmup() const{ return m_instanceWarmup; }
76 inline bool InstanceWarmupHasBeenSet() const { return m_instanceWarmupHasBeenSet; }
77 inline void SetInstanceWarmup(int value) { m_instanceWarmupHasBeenSet = true; m_instanceWarmup = value; }
78 inline RefreshPreferences& WithInstanceWarmup(int value) { SetInstanceWarmup(value); return *this;}
80
82
91 inline const Aws::Vector<int>& GetCheckpointPercentages() const{ return m_checkpointPercentages; }
92 inline bool CheckpointPercentagesHasBeenSet() const { return m_checkpointPercentagesHasBeenSet; }
93 inline void SetCheckpointPercentages(const Aws::Vector<int>& value) { m_checkpointPercentagesHasBeenSet = true; m_checkpointPercentages = value; }
94 inline void SetCheckpointPercentages(Aws::Vector<int>&& value) { m_checkpointPercentagesHasBeenSet = true; m_checkpointPercentages = std::move(value); }
97 inline RefreshPreferences& AddCheckpointPercentages(int value) { m_checkpointPercentagesHasBeenSet = true; m_checkpointPercentages.push_back(value); return *this; }
99
101
109 inline int GetCheckpointDelay() const{ return m_checkpointDelay; }
110 inline bool CheckpointDelayHasBeenSet() const { return m_checkpointDelayHasBeenSet; }
111 inline void SetCheckpointDelay(int value) { m_checkpointDelayHasBeenSet = true; m_checkpointDelay = value; }
112 inline RefreshPreferences& WithCheckpointDelay(int value) { SetCheckpointDelay(value); return *this;}
114
116
127 inline bool GetSkipMatching() const{ return m_skipMatching; }
128 inline bool SkipMatchingHasBeenSet() const { return m_skipMatchingHasBeenSet; }
129 inline void SetSkipMatching(bool value) { m_skipMatchingHasBeenSet = true; m_skipMatching = value; }
130 inline RefreshPreferences& WithSkipMatching(bool value) { SetSkipMatching(value); return *this;}
132
134
149 inline bool GetAutoRollback() const{ return m_autoRollback; }
150 inline bool AutoRollbackHasBeenSet() const { return m_autoRollbackHasBeenSet; }
151 inline void SetAutoRollback(bool value) { m_autoRollbackHasBeenSet = true; m_autoRollback = value; }
152 inline RefreshPreferences& WithAutoRollback(bool value) { SetAutoRollback(value); return *this;}
154
156
166 inline const ScaleInProtectedInstances& GetScaleInProtectedInstances() const{ return m_scaleInProtectedInstances; }
167 inline bool ScaleInProtectedInstancesHasBeenSet() const { return m_scaleInProtectedInstancesHasBeenSet; }
168 inline void SetScaleInProtectedInstances(const ScaleInProtectedInstances& value) { m_scaleInProtectedInstancesHasBeenSet = true; m_scaleInProtectedInstances = value; }
169 inline void SetScaleInProtectedInstances(ScaleInProtectedInstances&& value) { m_scaleInProtectedInstancesHasBeenSet = true; m_scaleInProtectedInstances = std::move(value); }
173
175
186 inline const StandbyInstances& GetStandbyInstances() const{ return m_standbyInstances; }
187 inline bool StandbyInstancesHasBeenSet() const { return m_standbyInstancesHasBeenSet; }
188 inline void SetStandbyInstances(const StandbyInstances& value) { m_standbyInstancesHasBeenSet = true; m_standbyInstances = value; }
189 inline void SetStandbyInstances(StandbyInstances&& value) { m_standbyInstancesHasBeenSet = true; m_standbyInstances = std::move(value); }
191 inline RefreshPreferences& WithStandbyInstances(StandbyInstances&& value) { SetStandbyInstances(std::move(value)); return *this;}
193
195
199 inline const AlarmSpecification& GetAlarmSpecification() const{ return m_alarmSpecification; }
200 inline bool AlarmSpecificationHasBeenSet() const { return m_alarmSpecificationHasBeenSet; }
201 inline void SetAlarmSpecification(const AlarmSpecification& value) { m_alarmSpecificationHasBeenSet = true; m_alarmSpecification = value; }
202 inline void SetAlarmSpecification(AlarmSpecification&& value) { m_alarmSpecificationHasBeenSet = true; m_alarmSpecification = std::move(value); }
204 inline RefreshPreferences& WithAlarmSpecification(AlarmSpecification&& value) { SetAlarmSpecification(std::move(value)); return *this;}
206
208
220 inline int GetMaxHealthyPercentage() const{ return m_maxHealthyPercentage; }
221 inline bool MaxHealthyPercentageHasBeenSet() const { return m_maxHealthyPercentageHasBeenSet; }
222 inline void SetMaxHealthyPercentage(int value) { m_maxHealthyPercentageHasBeenSet = true; m_maxHealthyPercentage = value; }
223 inline RefreshPreferences& WithMaxHealthyPercentage(int value) { SetMaxHealthyPercentage(value); return *this;}
225
227
231 inline int GetBakeTime() const{ return m_bakeTime; }
232 inline bool BakeTimeHasBeenSet() const { return m_bakeTimeHasBeenSet; }
233 inline void SetBakeTime(int value) { m_bakeTimeHasBeenSet = true; m_bakeTime = value; }
234 inline RefreshPreferences& WithBakeTime(int value) { SetBakeTime(value); return *this;}
236 private:
237
238 int m_minHealthyPercentage;
239 bool m_minHealthyPercentageHasBeenSet = false;
240
241 int m_instanceWarmup;
242 bool m_instanceWarmupHasBeenSet = false;
243
244 Aws::Vector<int> m_checkpointPercentages;
245 bool m_checkpointPercentagesHasBeenSet = false;
246
247 int m_checkpointDelay;
248 bool m_checkpointDelayHasBeenSet = false;
249
250 bool m_skipMatching;
251 bool m_skipMatchingHasBeenSet = false;
252
253 bool m_autoRollback;
254 bool m_autoRollbackHasBeenSet = false;
255
256 ScaleInProtectedInstances m_scaleInProtectedInstances;
257 bool m_scaleInProtectedInstancesHasBeenSet = false;
258
259 StandbyInstances m_standbyInstances;
260 bool m_standbyInstancesHasBeenSet = false;
261
262 AlarmSpecification m_alarmSpecification;
263 bool m_alarmSpecificationHasBeenSet = false;
264
265 int m_maxHealthyPercentage;
266 bool m_maxHealthyPercentageHasBeenSet = false;
267
268 int m_bakeTime;
269 bool m_bakeTimeHasBeenSet = false;
270 };
271
272} // namespace Model
273} // namespace AutoScaling
274} // namespace Aws
void SetAlarmSpecification(AlarmSpecification &&value)
RefreshPreferences & WithMinHealthyPercentage(int value)
RefreshPreferences & WithStandbyInstances(const StandbyInstances &value)
void SetAlarmSpecification(const AlarmSpecification &value)
void SetCheckpointPercentages(const Aws::Vector< int > &value)
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &oStream, const char *location) const
RefreshPreferences & WithMaxHealthyPercentage(int value)
AWS_AUTOSCALING_API RefreshPreferences & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetStandbyInstances(StandbyInstances &&value)
const ScaleInProtectedInstances & GetScaleInProtectedInstances() const
RefreshPreferences & WithAutoRollback(bool value)
RefreshPreferences & WithCheckpointPercentages(const Aws::Vector< int > &value)
RefreshPreferences & WithStandbyInstances(StandbyInstances &&value)
void SetScaleInProtectedInstances(ScaleInProtectedInstances &&value)
RefreshPreferences & WithScaleInProtectedInstances(const ScaleInProtectedInstances &value)
RefreshPreferences & WithBakeTime(int value)
RefreshPreferences & WithAlarmSpecification(AlarmSpecification &&value)
void SetStandbyInstances(const StandbyInstances &value)
RefreshPreferences & WithAlarmSpecification(const AlarmSpecification &value)
RefreshPreferences & WithScaleInProtectedInstances(ScaleInProtectedInstances &&value)
const AlarmSpecification & GetAlarmSpecification() const
RefreshPreferences & WithInstanceWarmup(int value)
RefreshPreferences & AddCheckpointPercentages(int value)
const Aws::Vector< int > & GetCheckpointPercentages() const
RefreshPreferences & WithCheckpointPercentages(Aws::Vector< int > &&value)
void SetCheckpointPercentages(Aws::Vector< int > &&value)
RefreshPreferences & WithSkipMatching(bool value)
RefreshPreferences & WithCheckpointDelay(int value)
AWS_AUTOSCALING_API RefreshPreferences(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetScaleInProtectedInstances(const ScaleInProtectedInstances &value)
const StandbyInstances & GetStandbyInstances() const
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream