AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ScalingConfiguration.h
1
6#pragma once
7#include <aws/rds/RDS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace RDS
22{
23namespace Model
24{
25
36 {
37 public:
38 AWS_RDS_API ScalingConfiguration();
41
42 AWS_RDS_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43 AWS_RDS_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
44
45
47
57 inline int GetMinCapacity() const{ return m_minCapacity; }
58 inline bool MinCapacityHasBeenSet() const { return m_minCapacityHasBeenSet; }
59 inline void SetMinCapacity(int value) { m_minCapacityHasBeenSet = true; m_minCapacity = value; }
60 inline ScalingConfiguration& WithMinCapacity(int value) { SetMinCapacity(value); return *this;}
62
64
74 inline int GetMaxCapacity() const{ return m_maxCapacity; }
75 inline bool MaxCapacityHasBeenSet() const { return m_maxCapacityHasBeenSet; }
76 inline void SetMaxCapacity(int value) { m_maxCapacityHasBeenSet = true; m_maxCapacity = value; }
77 inline ScalingConfiguration& WithMaxCapacity(int value) { SetMaxCapacity(value); return *this;}
79
81
89 inline bool GetAutoPause() const{ return m_autoPause; }
90 inline bool AutoPauseHasBeenSet() const { return m_autoPauseHasBeenSet; }
91 inline void SetAutoPause(bool value) { m_autoPauseHasBeenSet = true; m_autoPause = value; }
92 inline ScalingConfiguration& WithAutoPause(bool value) { SetAutoPause(value); return *this;}
94
96
100 inline int GetSecondsUntilAutoPause() const{ return m_secondsUntilAutoPause; }
101 inline bool SecondsUntilAutoPauseHasBeenSet() const { return m_secondsUntilAutoPauseHasBeenSet; }
102 inline void SetSecondsUntilAutoPause(int value) { m_secondsUntilAutoPauseHasBeenSet = true; m_secondsUntilAutoPause = value; }
105
107
121 inline const Aws::String& GetTimeoutAction() const{ return m_timeoutAction; }
122 inline bool TimeoutActionHasBeenSet() const { return m_timeoutActionHasBeenSet; }
123 inline void SetTimeoutAction(const Aws::String& value) { m_timeoutActionHasBeenSet = true; m_timeoutAction = value; }
124 inline void SetTimeoutAction(Aws::String&& value) { m_timeoutActionHasBeenSet = true; m_timeoutAction = std::move(value); }
125 inline void SetTimeoutAction(const char* value) { m_timeoutActionHasBeenSet = true; m_timeoutAction.assign(value); }
126 inline ScalingConfiguration& WithTimeoutAction(const Aws::String& value) { SetTimeoutAction(value); return *this;}
127 inline ScalingConfiguration& WithTimeoutAction(Aws::String&& value) { SetTimeoutAction(std::move(value)); return *this;}
128 inline ScalingConfiguration& WithTimeoutAction(const char* value) { SetTimeoutAction(value); return *this;}
130
132
137 inline int GetSecondsBeforeTimeout() const{ return m_secondsBeforeTimeout; }
138 inline bool SecondsBeforeTimeoutHasBeenSet() const { return m_secondsBeforeTimeoutHasBeenSet; }
139 inline void SetSecondsBeforeTimeout(int value) { m_secondsBeforeTimeoutHasBeenSet = true; m_secondsBeforeTimeout = value; }
142 private:
143
144 int m_minCapacity;
145 bool m_minCapacityHasBeenSet = false;
146
147 int m_maxCapacity;
148 bool m_maxCapacityHasBeenSet = false;
149
150 bool m_autoPause;
151 bool m_autoPauseHasBeenSet = false;
152
153 int m_secondsUntilAutoPause;
154 bool m_secondsUntilAutoPauseHasBeenSet = false;
155
156 Aws::String m_timeoutAction;
157 bool m_timeoutActionHasBeenSet = false;
158
159 int m_secondsBeforeTimeout;
160 bool m_secondsBeforeTimeoutHasBeenSet = false;
161 };
162
163} // namespace Model
164} // namespace RDS
165} // namespace Aws
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)
ScalingConfiguration & WithTimeoutAction(Aws::String &&value)
void SetTimeoutAction(const Aws::String &value)
ScalingConfiguration & WithTimeoutAction(const Aws::String &value)
ScalingConfiguration & WithSecondsUntilAutoPause(int value)
ScalingConfiguration & WithTimeoutAction(const char *value)
AWS_RDS_API ScalingConfiguration(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetTimeoutAction() const
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