AWS SDK for C++  1.9.104
AWS SDK for C++
ScalingConfigurationInfo.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/rds/RDS_EXPORTS.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Xml
17 {
18  class XmlNode;
19 } // namespace Xml
20 } // namespace Utils
21 namespace RDS
22 {
23 namespace Model
24 {
25 
36  {
37  public:
41 
42  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43  void OutputToStream(Aws::OStream& oStream, const char* location) const;
44 
45 
50  inline int GetMinCapacity() const{ return m_minCapacity; }
51 
56  inline bool MinCapacityHasBeenSet() const { return m_minCapacityHasBeenSet; }
57 
62  inline void SetMinCapacity(int value) { m_minCapacityHasBeenSet = true; m_minCapacity = value; }
63 
68  inline ScalingConfigurationInfo& WithMinCapacity(int value) { SetMinCapacity(value); return *this;}
69 
70 
75  inline int GetMaxCapacity() const{ return m_maxCapacity; }
76 
81  inline bool MaxCapacityHasBeenSet() const { return m_maxCapacityHasBeenSet; }
82 
87  inline void SetMaxCapacity(int value) { m_maxCapacityHasBeenSet = true; m_maxCapacity = value; }
88 
93  inline ScalingConfigurationInfo& WithMaxCapacity(int value) { SetMaxCapacity(value); return *this;}
94 
95 
102  inline bool GetAutoPause() const{ return m_autoPause; }
103 
110  inline bool AutoPauseHasBeenSet() const { return m_autoPauseHasBeenSet; }
111 
118  inline void SetAutoPause(bool value) { m_autoPauseHasBeenSet = true; m_autoPause = value; }
119 
126  inline ScalingConfigurationInfo& WithAutoPause(bool value) { SetAutoPause(value); return *this;}
127 
128 
134  inline int GetSecondsUntilAutoPause() const{ return m_secondsUntilAutoPause; }
135 
141  inline bool SecondsUntilAutoPauseHasBeenSet() const { return m_secondsUntilAutoPauseHasBeenSet; }
142 
148  inline void SetSecondsUntilAutoPause(int value) { m_secondsUntilAutoPauseHasBeenSet = true; m_secondsUntilAutoPause = value; }
149 
155  inline ScalingConfigurationInfo& WithSecondsUntilAutoPause(int value) { SetSecondsUntilAutoPause(value); return *this;}
156 
157 
168  inline const Aws::String& GetTimeoutAction() const{ return m_timeoutAction; }
169 
180  inline bool TimeoutActionHasBeenSet() const { return m_timeoutActionHasBeenSet; }
181 
192  inline void SetTimeoutAction(const Aws::String& value) { m_timeoutActionHasBeenSet = true; m_timeoutAction = value; }
193 
204  inline void SetTimeoutAction(Aws::String&& value) { m_timeoutActionHasBeenSet = true; m_timeoutAction = std::move(value); }
205 
216  inline void SetTimeoutAction(const char* value) { m_timeoutActionHasBeenSet = true; m_timeoutAction.assign(value); }
217 
228  inline ScalingConfigurationInfo& WithTimeoutAction(const Aws::String& value) { SetTimeoutAction(value); return *this;}
229 
240  inline ScalingConfigurationInfo& WithTimeoutAction(Aws::String&& value) { SetTimeoutAction(std::move(value)); return *this;}
241 
252  inline ScalingConfigurationInfo& WithTimeoutAction(const char* value) { SetTimeoutAction(value); return *this;}
253 
254 
260  inline int GetSecondsBeforeTimeout() const{ return m_secondsBeforeTimeout; }
261 
267  inline bool SecondsBeforeTimeoutHasBeenSet() const { return m_secondsBeforeTimeoutHasBeenSet; }
268 
274  inline void SetSecondsBeforeTimeout(int value) { m_secondsBeforeTimeoutHasBeenSet = true; m_secondsBeforeTimeout = value; }
275 
281  inline ScalingConfigurationInfo& WithSecondsBeforeTimeout(int value) { SetSecondsBeforeTimeout(value); return *this;}
282 
283  private:
284 
285  int m_minCapacity;
286  bool m_minCapacityHasBeenSet;
287 
288  int m_maxCapacity;
289  bool m_maxCapacityHasBeenSet;
290 
291  bool m_autoPause;
292  bool m_autoPauseHasBeenSet;
293 
294  int m_secondsUntilAutoPause;
295  bool m_secondsUntilAutoPauseHasBeenSet;
296 
297  Aws::String m_timeoutAction;
298  bool m_timeoutActionHasBeenSet;
299 
300  int m_secondsBeforeTimeout;
301  bool m_secondsBeforeTimeoutHasBeenSet;
302  };
303 
304 } // namespace Model
305 } // namespace RDS
306 } // namespace Aws
Aws::RDS::Model::ScalingConfigurationInfo::TimeoutActionHasBeenSet
bool TimeoutActionHasBeenSet() const
Definition: ScalingConfigurationInfo.h:180
Aws::RDS::Model::ScalingConfigurationInfo::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::RDS::Model::ScalingConfigurationInfo::GetMaxCapacity
int GetMaxCapacity() const
Definition: ScalingConfigurationInfo.h:75
Aws::RDS::Model::ScalingConfigurationInfo::SetSecondsUntilAutoPause
void SetSecondsUntilAutoPause(int value)
Definition: ScalingConfigurationInfo.h:148
Aws::RDS::Model::ScalingConfigurationInfo::ScalingConfigurationInfo
ScalingConfigurationInfo()
Aws::RDS::Model::ScalingConfigurationInfo::operator=
ScalingConfigurationInfo & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::ApplicationInsights::Model::CloudWatchEventSource::NOT_SET
@ NOT_SET
Aws::RDS::Model::ScalingConfigurationInfo::WithMaxCapacity
ScalingConfigurationInfo & WithMaxCapacity(int value)
Definition: ScalingConfigurationInfo.h:93
Aws::RDS::Model::ScalingConfigurationInfo::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::RDS::Model::ScalingConfigurationInfo::WithTimeoutAction
ScalingConfigurationInfo & WithTimeoutAction(const char *value)
Definition: ScalingConfigurationInfo.h:252
Aws::RDS::Model::ScalingConfigurationInfo::MaxCapacityHasBeenSet
bool MaxCapacityHasBeenSet() const
Definition: ScalingConfigurationInfo.h:81
AWSStreamFwd.h
Aws::RDS::Model::ScalingConfigurationInfo::GetAutoPause
bool GetAutoPause() const
Definition: ScalingConfigurationInfo.h:102
Aws::RDS::Model::ScalingConfigurationInfo::GetSecondsUntilAutoPause
int GetSecondsUntilAutoPause() const
Definition: ScalingConfigurationInfo.h:134
Aws::RDS::Model::ScalingConfigurationInfo::SetSecondsBeforeTimeout
void SetSecondsBeforeTimeout(int value)
Definition: ScalingConfigurationInfo.h:274
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::RDS::Model::ScalingConfigurationInfo::MinCapacityHasBeenSet
bool MinCapacityHasBeenSet() const
Definition: ScalingConfigurationInfo.h:56
RDS_EXPORTS.h
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::RDS::Model::ScalingConfigurationInfo::SetTimeoutAction
void SetTimeoutAction(const char *value)
Definition: ScalingConfigurationInfo.h:216
Aws::RDS::Model::ScalingConfigurationInfo::WithMinCapacity
ScalingConfigurationInfo & WithMinCapacity(int value)
Definition: ScalingConfigurationInfo.h:68
Aws::RDS::Model::ScalingConfigurationInfo::ScalingConfigurationInfo
ScalingConfigurationInfo(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::RDS::Model::ScalingConfigurationInfo::WithTimeoutAction
ScalingConfigurationInfo & WithTimeoutAction(const Aws::String &value)
Definition: ScalingConfigurationInfo.h:228
Aws::RDS::Model::ScalingConfigurationInfo::WithAutoPause
ScalingConfigurationInfo & WithAutoPause(bool value)
Definition: ScalingConfigurationInfo.h:126
Aws::RDS::Model::ScalingConfigurationInfo
Definition: ScalingConfigurationInfo.h:36
AWSString.h
Aws::RDS::Model::ScalingConfigurationInfo::SetMinCapacity
void SetMinCapacity(int value)
Definition: ScalingConfigurationInfo.h:62
Aws::RDS::Model::ScalingConfigurationInfo::WithTimeoutAction
ScalingConfigurationInfo & WithTimeoutAction(Aws::String &&value)
Definition: ScalingConfigurationInfo.h:240
Aws::RDS::Model::ScalingConfigurationInfo::GetMinCapacity
int GetMinCapacity() const
Definition: ScalingConfigurationInfo.h:50
AWS_RDS_API
#define AWS_RDS_API
Definition: RDS_EXPORTS.h:28
Aws::RDS::Model::ScalingConfigurationInfo::GetSecondsBeforeTimeout
int GetSecondsBeforeTimeout() const
Definition: ScalingConfigurationInfo.h:260
Aws::RDS::Model::ScalingConfigurationInfo::SetAutoPause
void SetAutoPause(bool value)
Definition: ScalingConfigurationInfo.h:118
Aws::RDS::Model::ScalingConfigurationInfo::SetMaxCapacity
void SetMaxCapacity(int value)
Definition: ScalingConfigurationInfo.h:87
Aws::RDS::Model::ScalingConfigurationInfo::SetTimeoutAction
void SetTimeoutAction(const Aws::String &value)
Definition: ScalingConfigurationInfo.h:192
Aws
Definition: AccessManagementClient.h:15
Aws::RDS::Model::ScalingConfigurationInfo::SecondsBeforeTimeoutHasBeenSet
bool SecondsBeforeTimeoutHasBeenSet() const
Definition: ScalingConfigurationInfo.h:267
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
index
int index
Definition: cJSON.h:181
Aws::RDS::Model::ScalingConfigurationInfo::SetTimeoutAction
void SetTimeoutAction(Aws::String &&value)
Definition: ScalingConfigurationInfo.h:204
Aws::RDS::Model::ScalingConfigurationInfo::WithSecondsBeforeTimeout
ScalingConfigurationInfo & WithSecondsBeforeTimeout(int value)
Definition: ScalingConfigurationInfo.h:281
Aws::RDS::Model::ScalingConfigurationInfo::WithSecondsUntilAutoPause
ScalingConfigurationInfo & WithSecondsUntilAutoPause(int value)
Definition: ScalingConfigurationInfo.h:155
Aws::RDS::Model::ScalingConfigurationInfo::GetTimeoutAction
const Aws::String & GetTimeoutAction() const
Definition: ScalingConfigurationInfo.h:168
Aws::RDS::Model::ScalingConfigurationInfo::AutoPauseHasBeenSet
bool AutoPauseHasBeenSet() const
Definition: ScalingConfigurationInfo.h:110
Aws::RDS::Model::ScalingConfigurationInfo::SecondsUntilAutoPauseHasBeenSet
bool SecondsUntilAutoPauseHasBeenSet() const
Definition: ScalingConfigurationInfo.h:141