AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename CheckpointPercentagesT = Aws::Vector<int>>
94 void SetCheckpointPercentages(CheckpointPercentagesT&& value) { m_checkpointPercentagesHasBeenSet = true; m_checkpointPercentages = std::forward<CheckpointPercentagesT>(value); }
95 template<typename CheckpointPercentagesT = Aws::Vector<int>>
96 RefreshPreferences& WithCheckpointPercentages(CheckpointPercentagesT&& value) { SetCheckpointPercentages(std::forward<CheckpointPercentagesT>(value)); return *this;}
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 ScaleInProtectedInstances GetScaleInProtectedInstances() const { return m_scaleInProtectedInstances; }
167 inline bool ScaleInProtectedInstancesHasBeenSet() const { return m_scaleInProtectedInstancesHasBeenSet; }
168 inline void SetScaleInProtectedInstances(ScaleInProtectedInstances value) { m_scaleInProtectedInstancesHasBeenSet = true; m_scaleInProtectedInstances = value; }
171
173
184 inline StandbyInstances GetStandbyInstances() const { return m_standbyInstances; }
185 inline bool StandbyInstancesHasBeenSet() const { return m_standbyInstancesHasBeenSet; }
186 inline void SetStandbyInstances(StandbyInstances value) { m_standbyInstancesHasBeenSet = true; m_standbyInstances = value; }
189
191
195 inline const AlarmSpecification& GetAlarmSpecification() const { return m_alarmSpecification; }
196 inline bool AlarmSpecificationHasBeenSet() const { return m_alarmSpecificationHasBeenSet; }
197 template<typename AlarmSpecificationT = AlarmSpecification>
198 void SetAlarmSpecification(AlarmSpecificationT&& value) { m_alarmSpecificationHasBeenSet = true; m_alarmSpecification = std::forward<AlarmSpecificationT>(value); }
199 template<typename AlarmSpecificationT = AlarmSpecification>
200 RefreshPreferences& WithAlarmSpecification(AlarmSpecificationT&& value) { SetAlarmSpecification(std::forward<AlarmSpecificationT>(value)); return *this;}
202
204
216 inline int GetMaxHealthyPercentage() const { return m_maxHealthyPercentage; }
217 inline bool MaxHealthyPercentageHasBeenSet() const { return m_maxHealthyPercentageHasBeenSet; }
218 inline void SetMaxHealthyPercentage(int value) { m_maxHealthyPercentageHasBeenSet = true; m_maxHealthyPercentage = value; }
219 inline RefreshPreferences& WithMaxHealthyPercentage(int value) { SetMaxHealthyPercentage(value); return *this;}
221
223
227 inline int GetBakeTime() const { return m_bakeTime; }
228 inline bool BakeTimeHasBeenSet() const { return m_bakeTimeHasBeenSet; }
229 inline void SetBakeTime(int value) { m_bakeTimeHasBeenSet = true; m_bakeTime = value; }
230 inline RefreshPreferences& WithBakeTime(int value) { SetBakeTime(value); return *this;}
232 private:
233
234 int m_minHealthyPercentage{0};
235 bool m_minHealthyPercentageHasBeenSet = false;
236
237 int m_instanceWarmup{0};
238 bool m_instanceWarmupHasBeenSet = false;
239
240 Aws::Vector<int> m_checkpointPercentages;
241 bool m_checkpointPercentagesHasBeenSet = false;
242
243 int m_checkpointDelay{0};
244 bool m_checkpointDelayHasBeenSet = false;
245
246 bool m_skipMatching{false};
247 bool m_skipMatchingHasBeenSet = false;
248
249 bool m_autoRollback{false};
250 bool m_autoRollbackHasBeenSet = false;
251
253 bool m_scaleInProtectedInstancesHasBeenSet = false;
254
256 bool m_standbyInstancesHasBeenSet = false;
257
258 AlarmSpecification m_alarmSpecification;
259 bool m_alarmSpecificationHasBeenSet = false;
260
261 int m_maxHealthyPercentage{0};
262 bool m_maxHealthyPercentageHasBeenSet = false;
263
264 int m_bakeTime{0};
265 bool m_bakeTimeHasBeenSet = false;
266 };
267
268} // namespace Model
269} // namespace AutoScaling
270} // namespace Aws
RefreshPreferences & WithMinHealthyPercentage(int value)
ScaleInProtectedInstances GetScaleInProtectedInstances() const
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)
RefreshPreferences & WithAutoRollback(bool value)
RefreshPreferences & WithCheckpointPercentages(CheckpointPercentagesT &&value)
RefreshPreferences & WithAlarmSpecification(AlarmSpecificationT &&value)
RefreshPreferences & WithBakeTime(int value)
void SetScaleInProtectedInstances(ScaleInProtectedInstances value)
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)
RefreshPreferences & WithStandbyInstances(StandbyInstances value)
RefreshPreferences & WithSkipMatching(bool value)
RefreshPreferences & WithCheckpointDelay(int value)
AWS_AUTOSCALING_API RefreshPreferences(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetStandbyInstances(StandbyInstances value)
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream