AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename TimeoutActionT = Aws::String>
124 void SetTimeoutAction(TimeoutActionT&& value) { m_timeoutActionHasBeenSet = true; m_timeoutAction = std::forward<TimeoutActionT>(value); }
125 template<typename TimeoutActionT = Aws::String>
126 ScalingConfiguration& WithTimeoutAction(TimeoutActionT&& value) { SetTimeoutAction(std::forward<TimeoutActionT>(value)); return *this;}
128
130
135 inline int GetSecondsBeforeTimeout() const { return m_secondsBeforeTimeout; }
136 inline bool SecondsBeforeTimeoutHasBeenSet() const { return m_secondsBeforeTimeoutHasBeenSet; }
137 inline void SetSecondsBeforeTimeout(int value) { m_secondsBeforeTimeoutHasBeenSet = true; m_secondsBeforeTimeout = value; }
140 private:
141
142 int m_minCapacity{0};
143 bool m_minCapacityHasBeenSet = false;
144
145 int m_maxCapacity{0};
146 bool m_maxCapacityHasBeenSet = false;
147
148 bool m_autoPause{false};
149 bool m_autoPauseHasBeenSet = false;
150
151 int m_secondsUntilAutoPause{0};
152 bool m_secondsUntilAutoPauseHasBeenSet = false;
153
154 Aws::String m_timeoutAction;
155 bool m_timeoutActionHasBeenSet = false;
156
157 int m_secondsBeforeTimeout{0};
158 bool m_secondsBeforeTimeoutHasBeenSet = false;
159 };
160
161} // namespace Model
162} // namespace RDS
163} // 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