AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ScalingConfigurationInfo.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 ScalingConfigurationInfo() = 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
45 inline int GetMinCapacity() const { return m_minCapacity; }
46 inline bool MinCapacityHasBeenSet() const { return m_minCapacityHasBeenSet; }
47 inline void SetMinCapacity(int value) {
48 m_minCapacityHasBeenSet = true;
49 m_minCapacity = value;
50 }
52 SetMinCapacity(value);
53 return *this;
54 }
56
58
62 inline int GetMaxCapacity() const { return m_maxCapacity; }
63 inline bool MaxCapacityHasBeenSet() const { return m_maxCapacityHasBeenSet; }
64 inline void SetMaxCapacity(int value) {
65 m_maxCapacityHasBeenSet = true;
66 m_maxCapacity = value;
67 }
69 SetMaxCapacity(value);
70 return *this;
71 }
73
75
81 inline bool GetAutoPause() const { return m_autoPause; }
82 inline bool AutoPauseHasBeenSet() const { return m_autoPauseHasBeenSet; }
83 inline void SetAutoPause(bool value) {
84 m_autoPauseHasBeenSet = true;
85 m_autoPause = value;
86 }
88 SetAutoPause(value);
89 return *this;
90 }
92
94
99 inline int GetSecondsUntilAutoPause() const { return m_secondsUntilAutoPause; }
100 inline bool SecondsUntilAutoPauseHasBeenSet() const { return m_secondsUntilAutoPauseHasBeenSet; }
101 inline void SetSecondsUntilAutoPause(int value) {
102 m_secondsUntilAutoPauseHasBeenSet = true;
103 m_secondsUntilAutoPause = value;
104 }
107 return *this;
108 }
110
112
122 inline const Aws::String& GetTimeoutAction() const { return m_timeoutAction; }
123 inline bool TimeoutActionHasBeenSet() const { return m_timeoutActionHasBeenSet; }
124 template <typename TimeoutActionT = Aws::String>
125 void SetTimeoutAction(TimeoutActionT&& value) {
126 m_timeoutActionHasBeenSet = true;
127 m_timeoutAction = std::forward<TimeoutActionT>(value);
128 }
129 template <typename TimeoutActionT = Aws::String>
131 SetTimeoutAction(std::forward<TimeoutActionT>(value));
132 return *this;
133 }
135
137
142 inline int GetSecondsBeforeTimeout() const { return m_secondsBeforeTimeout; }
143 inline bool SecondsBeforeTimeoutHasBeenSet() const { return m_secondsBeforeTimeoutHasBeenSet; }
144 inline void SetSecondsBeforeTimeout(int value) {
145 m_secondsBeforeTimeoutHasBeenSet = true;
146 m_secondsBeforeTimeout = value;
147 }
150 return *this;
151 }
153 private:
154 int m_minCapacity{0};
155
156 int m_maxCapacity{0};
157
158 bool m_autoPause{false};
159
160 int m_secondsUntilAutoPause{0};
161
162 Aws::String m_timeoutAction;
163
164 int m_secondsBeforeTimeout{0};
165 bool m_minCapacityHasBeenSet = false;
166 bool m_maxCapacityHasBeenSet = false;
167 bool m_autoPauseHasBeenSet = false;
168 bool m_secondsUntilAutoPauseHasBeenSet = false;
169 bool m_timeoutActionHasBeenSet = false;
170 bool m_secondsBeforeTimeoutHasBeenSet = false;
171};
172
173} // namespace Model
174} // namespace RDS
175} // namespace Aws
AWS_RDS_API ScalingConfigurationInfo(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_RDS_API ScalingConfigurationInfo & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
ScalingConfigurationInfo & WithSecondsUntilAutoPause(int value)
ScalingConfigurationInfo & WithMinCapacity(int value)
ScalingConfigurationInfo & WithTimeoutAction(TimeoutActionT &&value)
ScalingConfigurationInfo & WithAutoPause(bool value)
ScalingConfigurationInfo & WithSecondsBeforeTimeout(int value)
AWS_RDS_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_RDS_API ScalingConfigurationInfo()=default
ScalingConfigurationInfo & WithMaxCapacity(int value)
AWS_RDS_API void OutputToStream(Aws::OStream &oStream, const char *location) const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream