AWS SDK for C++  1.9.108
AWS SDK for C++
ScalingConfiguration.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 
56  inline int GetMinCapacity() const{ return m_minCapacity; }
57 
68  inline bool MinCapacityHasBeenSet() const { return m_minCapacityHasBeenSet; }
69 
80  inline void SetMinCapacity(int value) { m_minCapacityHasBeenSet = true; m_minCapacity = value; }
81 
92  inline ScalingConfiguration& WithMinCapacity(int value) { SetMinCapacity(value); return *this;}
93 
94 
105  inline int GetMaxCapacity() const{ return m_maxCapacity; }
106 
117  inline bool MaxCapacityHasBeenSet() const { return m_maxCapacityHasBeenSet; }
118 
129  inline void SetMaxCapacity(int value) { m_maxCapacityHasBeenSet = true; m_maxCapacity = value; }
130 
141  inline ScalingConfiguration& WithMaxCapacity(int value) { SetMaxCapacity(value); return *this;}
142 
143 
152  inline bool GetAutoPause() const{ return m_autoPause; }
153 
162  inline bool AutoPauseHasBeenSet() const { return m_autoPauseHasBeenSet; }
163 
172  inline void SetAutoPause(bool value) { m_autoPauseHasBeenSet = true; m_autoPause = value; }
173 
182  inline ScalingConfiguration& WithAutoPause(bool value) { SetAutoPause(value); return *this;}
183 
184 
189  inline int GetSecondsUntilAutoPause() const{ return m_secondsUntilAutoPause; }
190 
195  inline bool SecondsUntilAutoPauseHasBeenSet() const { return m_secondsUntilAutoPauseHasBeenSet; }
196 
201  inline void SetSecondsUntilAutoPause(int value) { m_secondsUntilAutoPauseHasBeenSet = true; m_secondsUntilAutoPause = value; }
202 
207  inline ScalingConfiguration& WithSecondsUntilAutoPause(int value) { SetSecondsUntilAutoPause(value); return *this;}
208 
209 
224  inline const Aws::String& GetTimeoutAction() const{ return m_timeoutAction; }
225 
240  inline bool TimeoutActionHasBeenSet() const { return m_timeoutActionHasBeenSet; }
241 
256  inline void SetTimeoutAction(const Aws::String& value) { m_timeoutActionHasBeenSet = true; m_timeoutAction = value; }
257 
272  inline void SetTimeoutAction(Aws::String&& value) { m_timeoutActionHasBeenSet = true; m_timeoutAction = std::move(value); }
273 
288  inline void SetTimeoutAction(const char* value) { m_timeoutActionHasBeenSet = true; m_timeoutAction.assign(value); }
289 
304  inline ScalingConfiguration& WithTimeoutAction(const Aws::String& value) { SetTimeoutAction(value); return *this;}
305 
320  inline ScalingConfiguration& WithTimeoutAction(Aws::String&& value) { SetTimeoutAction(std::move(value)); return *this;}
321 
336  inline ScalingConfiguration& WithTimeoutAction(const char* value) { SetTimeoutAction(value); return *this;}
337 
338 
344  inline int GetSecondsBeforeTimeout() const{ return m_secondsBeforeTimeout; }
345 
351  inline bool SecondsBeforeTimeoutHasBeenSet() const { return m_secondsBeforeTimeoutHasBeenSet; }
352 
358  inline void SetSecondsBeforeTimeout(int value) { m_secondsBeforeTimeoutHasBeenSet = true; m_secondsBeforeTimeout = value; }
359 
365  inline ScalingConfiguration& WithSecondsBeforeTimeout(int value) { SetSecondsBeforeTimeout(value); return *this;}
366 
367  private:
368 
369  int m_minCapacity;
370  bool m_minCapacityHasBeenSet;
371 
372  int m_maxCapacity;
373  bool m_maxCapacityHasBeenSet;
374 
375  bool m_autoPause;
376  bool m_autoPauseHasBeenSet;
377 
378  int m_secondsUntilAutoPause;
379  bool m_secondsUntilAutoPauseHasBeenSet;
380 
381  Aws::String m_timeoutAction;
382  bool m_timeoutActionHasBeenSet;
383 
384  int m_secondsBeforeTimeout;
385  bool m_secondsBeforeTimeoutHasBeenSet;
386  };
387 
388 } // namespace Model
389 } // namespace RDS
390 } // namespace Aws
Aws::RDS::Model::ScalingConfiguration::WithMinCapacity
ScalingConfiguration & WithMinCapacity(int value)
Definition: ScalingConfiguration.h:92
Aws::RDS::Model::ScalingConfiguration::GetTimeoutAction
const Aws::String & GetTimeoutAction() const
Definition: ScalingConfiguration.h:224
Aws::RDS::Model::ScalingConfiguration::WithTimeoutAction
ScalingConfiguration & WithTimeoutAction(Aws::String &&value)
Definition: ScalingConfiguration.h:320
Aws::RDS::Model::ScalingConfiguration::SecondsBeforeTimeoutHasBeenSet
bool SecondsBeforeTimeoutHasBeenSet() const
Definition: ScalingConfiguration.h:351
Aws::RDS::Model::ScalingConfiguration::SetTimeoutAction
void SetTimeoutAction(const char *value)
Definition: ScalingConfiguration.h:288
Aws::RDS::Model::ScalingConfiguration::MinCapacityHasBeenSet
bool MinCapacityHasBeenSet() const
Definition: ScalingConfiguration.h:68
Aws::RDS::Model::ScalingConfiguration::TimeoutActionHasBeenSet
bool TimeoutActionHasBeenSet() const
Definition: ScalingConfiguration.h:240
Aws::ApplicationInsights::Model::CloudWatchEventSource::NOT_SET
@ NOT_SET
Aws::RDS::Model::ScalingConfiguration::GetSecondsUntilAutoPause
int GetSecondsUntilAutoPause() const
Definition: ScalingConfiguration.h:189
Aws::RDS::Model::ScalingConfiguration::GetSecondsBeforeTimeout
int GetSecondsBeforeTimeout() const
Definition: ScalingConfiguration.h:344
Aws::RDS::Model::ScalingConfiguration::WithTimeoutAction
ScalingConfiguration & WithTimeoutAction(const Aws::String &value)
Definition: ScalingConfiguration.h:304
Aws::RDS::Model::ScalingConfiguration::SetSecondsBeforeTimeout
void SetSecondsBeforeTimeout(int value)
Definition: ScalingConfiguration.h:358
Aws::RDS::Model::ScalingConfiguration::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWSStreamFwd.h
Aws::RDS::Model::ScalingConfiguration::GetAutoPause
bool GetAutoPause() const
Definition: ScalingConfiguration.h:152
Aws::RDS::Model::ScalingConfiguration::SetTimeoutAction
void SetTimeoutAction(const Aws::String &value)
Definition: ScalingConfiguration.h:256
Aws::RDS::Model::ScalingConfiguration::WithSecondsUntilAutoPause
ScalingConfiguration & WithSecondsUntilAutoPause(int value)
Definition: ScalingConfiguration.h:207
Aws::RDS::Model::ScalingConfiguration::WithMaxCapacity
ScalingConfiguration & WithMaxCapacity(int value)
Definition: ScalingConfiguration.h:141
Aws::RDS::Model::ScalingConfiguration::SetMinCapacity
void SetMinCapacity(int value)
Definition: ScalingConfiguration.h:80
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::RDS::Model::ScalingConfiguration::GetMinCapacity
int GetMinCapacity() const
Definition: ScalingConfiguration.h:56
RDS_EXPORTS.h
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::RDS::Model::ScalingConfiguration::ScalingConfiguration
ScalingConfiguration(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::RDS::Model::ScalingConfiguration
Definition: ScalingConfiguration.h:36
Aws::RDS::Model::ScalingConfiguration::WithTimeoutAction
ScalingConfiguration & WithTimeoutAction(const char *value)
Definition: ScalingConfiguration.h:336
Aws::RDS::Model::ScalingConfiguration::MaxCapacityHasBeenSet
bool MaxCapacityHasBeenSet() const
Definition: ScalingConfiguration.h:117
AWSString.h
Aws::RDS::Model::ScalingConfiguration::operator=
ScalingConfiguration & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::RDS::Model::ScalingConfiguration::SetMaxCapacity
void SetMaxCapacity(int value)
Definition: ScalingConfiguration.h:129
AWS_RDS_API
#define AWS_RDS_API
Definition: RDS_EXPORTS.h:28
Aws::RDS::Model::ScalingConfiguration::AutoPauseHasBeenSet
bool AutoPauseHasBeenSet() const
Definition: ScalingConfiguration.h:162
Aws::RDS::Model::ScalingConfiguration::ScalingConfiguration
ScalingConfiguration()
Aws
Definition: AccessManagementClient.h:15
Aws::RDS::Model::ScalingConfiguration::SecondsUntilAutoPauseHasBeenSet
bool SecondsUntilAutoPauseHasBeenSet() const
Definition: ScalingConfiguration.h:195
Aws::RDS::Model::ScalingConfiguration::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
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::ScalingConfiguration::WithSecondsBeforeTimeout
ScalingConfiguration & WithSecondsBeforeTimeout(int value)
Definition: ScalingConfiguration.h:365
Aws::RDS::Model::ScalingConfiguration::SetTimeoutAction
void SetTimeoutAction(Aws::String &&value)
Definition: ScalingConfiguration.h:272
Aws::RDS::Model::ScalingConfiguration::SetSecondsUntilAutoPause
void SetSecondsUntilAutoPause(int value)
Definition: ScalingConfiguration.h:201
Aws::RDS::Model::ScalingConfiguration::SetAutoPause
void SetAutoPause(bool value)
Definition: ScalingConfiguration.h:172
Aws::RDS::Model::ScalingConfiguration::GetMaxCapacity
int GetMaxCapacity() const
Definition: ScalingConfiguration.h:105
Aws::RDS::Model::ScalingConfiguration::WithAutoPause
ScalingConfiguration & WithAutoPause(bool value)
Definition: ScalingConfiguration.h:182