AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ScalingConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/rds/RDS_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace RDS {
20namespace Model {
21
32 public:
33 AWS_RDS_API ScalingConfiguration() = default;
36
37 AWS_RDS_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
38 AWS_RDS_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
39
41
51 inline int GetMinCapacity() const { return m_minCapacity; }
52 inline bool MinCapacityHasBeenSet() const { return m_minCapacityHasBeenSet; }
53 inline void SetMinCapacity(int value) {
54 m_minCapacityHasBeenSet = true;
55 m_minCapacity = value;
56 }
58 SetMinCapacity(value);
59 return *this;
60 }
62
64
74 inline int GetMaxCapacity() const { return m_maxCapacity; }
75 inline bool MaxCapacityHasBeenSet() const { return m_maxCapacityHasBeenSet; }
76 inline void SetMaxCapacity(int value) {
77 m_maxCapacityHasBeenSet = true;
78 m_maxCapacity = value;
79 }
81 SetMaxCapacity(value);
82 return *this;
83 }
85
87
95 inline bool GetAutoPause() const { return m_autoPause; }
96 inline bool AutoPauseHasBeenSet() const { return m_autoPauseHasBeenSet; }
97 inline void SetAutoPause(bool value) {
98 m_autoPauseHasBeenSet = true;
99 m_autoPause = value;
100 }
102 SetAutoPause(value);
103 return *this;
104 }
106
108
112 inline int GetSecondsUntilAutoPause() const { return m_secondsUntilAutoPause; }
113 inline bool SecondsUntilAutoPauseHasBeenSet() const { return m_secondsUntilAutoPauseHasBeenSet; }
114 inline void SetSecondsUntilAutoPause(int value) {
115 m_secondsUntilAutoPauseHasBeenSet = true;
116 m_secondsUntilAutoPause = value;
117 }
120 return *this;
121 }
123
125
139 inline const Aws::String& GetTimeoutAction() const { return m_timeoutAction; }
140 inline bool TimeoutActionHasBeenSet() const { return m_timeoutActionHasBeenSet; }
141 template <typename TimeoutActionT = Aws::String>
142 void SetTimeoutAction(TimeoutActionT&& value) {
143 m_timeoutActionHasBeenSet = true;
144 m_timeoutAction = std::forward<TimeoutActionT>(value);
145 }
146 template <typename TimeoutActionT = Aws::String>
147 ScalingConfiguration& WithTimeoutAction(TimeoutActionT&& value) {
148 SetTimeoutAction(std::forward<TimeoutActionT>(value));
149 return *this;
150 }
152
154
159 inline int GetSecondsBeforeTimeout() const { return m_secondsBeforeTimeout; }
160 inline bool SecondsBeforeTimeoutHasBeenSet() const { return m_secondsBeforeTimeoutHasBeenSet; }
161 inline void SetSecondsBeforeTimeout(int value) {
162 m_secondsBeforeTimeoutHasBeenSet = true;
163 m_secondsBeforeTimeout = value;
164 }
167 return *this;
168 }
170 private:
171 int m_minCapacity{0};
172
173 int m_maxCapacity{0};
174
175 bool m_autoPause{false};
176
177 int m_secondsUntilAutoPause{0};
178
179 Aws::String m_timeoutAction;
180
181 int m_secondsBeforeTimeout{0};
182 bool m_minCapacityHasBeenSet = false;
183 bool m_maxCapacityHasBeenSet = false;
184 bool m_autoPauseHasBeenSet = false;
185 bool m_secondsUntilAutoPauseHasBeenSet = false;
186 bool m_timeoutActionHasBeenSet = false;
187 bool m_secondsBeforeTimeoutHasBeenSet = false;
188};
189
190} // namespace Model
191} // namespace RDS
192} // namespace Aws
ScalingConfiguration & WithTimeoutAction(TimeoutActionT &&value)
ScalingConfiguration & WithAutoPause(bool value)
AWS_RDS_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_RDS_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_RDS_API ScalingConfiguration & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_RDS_API ScalingConfiguration()=default
ScalingConfiguration & WithSecondsUntilAutoPause(int value)
AWS_RDS_API ScalingConfiguration(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetTimeoutAction() const
void SetTimeoutAction(TimeoutActionT &&value)
ScalingConfiguration & WithSecondsBeforeTimeout(int value)
ScalingConfiguration & WithMinCapacity(int value)
ScalingConfiguration & WithMaxCapacity(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream