AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ServerlessV2ScalingConfigurationInfo.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 ServerlessV2ScalingConfigurationInfo() = 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
89 inline int GetSecondsUntilAutoPause() const { return m_secondsUntilAutoPause; }
90 inline bool SecondsUntilAutoPauseHasBeenSet() const { return m_secondsUntilAutoPauseHasBeenSet; }
91 inline void SetSecondsUntilAutoPause(int value) {
92 m_secondsUntilAutoPauseHasBeenSet = true;
93 m_secondsUntilAutoPause = value;
94 }
97 return *this;
98 }
100 private:
101 double m_minCapacity{0.0};
102
103 double m_maxCapacity{0.0};
104
105 int m_secondsUntilAutoPause{0};
106 bool m_minCapacityHasBeenSet = false;
107 bool m_maxCapacityHasBeenSet = false;
108 bool m_secondsUntilAutoPauseHasBeenSet = false;
109};
110
111} // namespace Model
112} // namespace RDS
113} // namespace Aws
ServerlessV2ScalingConfigurationInfo & WithMinCapacity(double value)
AWS_RDS_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_RDS_API ServerlessV2ScalingConfigurationInfo(const Aws::Utils::Xml::XmlNode &xmlNode)
ServerlessV2ScalingConfigurationInfo & WithSecondsUntilAutoPause(int value)
ServerlessV2ScalingConfigurationInfo & WithMaxCapacity(double value)
AWS_RDS_API ServerlessV2ScalingConfigurationInfo & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_RDS_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
std::basic_ostream< char, std::char_traits< char > > OStream