AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ServerlessV2ScalingConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/rds/RDS_EXPORTS.h>
9
10namespace Aws {
11namespace Utils {
12namespace Xml {
13class XmlNode;
14} // namespace Xml
15} // namespace Utils
16namespace RDS {
17namespace Model {
18
29 public:
30 AWS_RDS_API ServerlessV2ScalingConfiguration() = default;
33
34 AWS_RDS_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
35 AWS_RDS_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
36
38
46 inline double GetMinCapacity() const { return m_minCapacity; }
47 inline bool MinCapacityHasBeenSet() const { return m_minCapacityHasBeenSet; }
48 inline void SetMinCapacity(double value) {
49 m_minCapacityHasBeenSet = true;
50 m_minCapacity = value;
51 }
53 SetMinCapacity(value);
54 return *this;
55 }
57
59
67 inline double GetMaxCapacity() const { return m_maxCapacity; }
68 inline bool MaxCapacityHasBeenSet() const { return m_maxCapacityHasBeenSet; }
69 inline void SetMaxCapacity(double value) {
70 m_maxCapacityHasBeenSet = true;
71 m_maxCapacity = value;
72 }
74 SetMaxCapacity(value);
75 return *this;
76 }
78
80
86 inline int GetSecondsUntilAutoPause() const { return m_secondsUntilAutoPause; }
87 inline bool SecondsUntilAutoPauseHasBeenSet() const { return m_secondsUntilAutoPauseHasBeenSet; }
88 inline void SetSecondsUntilAutoPause(int value) {
89 m_secondsUntilAutoPauseHasBeenSet = true;
90 m_secondsUntilAutoPause = value;
91 }
94 return *this;
95 }
97 private:
98 double m_minCapacity{0.0};
99
100 double m_maxCapacity{0.0};
101
102 int m_secondsUntilAutoPause{0};
103 bool m_minCapacityHasBeenSet = false;
104 bool m_maxCapacityHasBeenSet = false;
105 bool m_secondsUntilAutoPauseHasBeenSet = false;
106};
107
108} // namespace Model
109} // namespace RDS
110} // namespace Aws
ServerlessV2ScalingConfiguration & WithMinCapacity(double 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 ServerlessV2ScalingConfiguration(const Aws::Utils::Xml::XmlNode &xmlNode)
ServerlessV2ScalingConfiguration & WithMaxCapacity(double value)
ServerlessV2ScalingConfiguration & WithSecondsUntilAutoPause(int value)
AWS_RDS_API ServerlessV2ScalingConfiguration & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
std::basic_ostream< char, std::char_traits< char > > OStream