AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ServerlessV2ScalingConfiguration.h
1
6#pragma once
7#include <aws/rds/RDS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9
10namespace Aws
11{
12namespace Utils
13{
14namespace Xml
15{
16 class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace RDS
20{
21namespace Model
22{
23
34 {
35 public:
36 AWS_RDS_API ServerlessV2ScalingConfiguration() = default;
39
40 AWS_RDS_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_RDS_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
43
45
53 inline double GetMinCapacity() const { return m_minCapacity; }
54 inline bool MinCapacityHasBeenSet() const { return m_minCapacityHasBeenSet; }
55 inline void SetMinCapacity(double value) { m_minCapacityHasBeenSet = true; m_minCapacity = value; }
56 inline ServerlessV2ScalingConfiguration& WithMinCapacity(double value) { SetMinCapacity(value); return *this;}
58
60
66 inline double GetMaxCapacity() const { return m_maxCapacity; }
67 inline bool MaxCapacityHasBeenSet() const { return m_maxCapacityHasBeenSet; }
68 inline void SetMaxCapacity(double value) { m_maxCapacityHasBeenSet = true; m_maxCapacity = value; }
69 inline ServerlessV2ScalingConfiguration& WithMaxCapacity(double value) { SetMaxCapacity(value); return *this;}
71
73
79 inline int GetSecondsUntilAutoPause() const { return m_secondsUntilAutoPause; }
80 inline bool SecondsUntilAutoPauseHasBeenSet() const { return m_secondsUntilAutoPauseHasBeenSet; }
81 inline void SetSecondsUntilAutoPause(int value) { m_secondsUntilAutoPauseHasBeenSet = true; m_secondsUntilAutoPause = value; }
84 private:
85
86 double m_minCapacity{0.0};
87 bool m_minCapacityHasBeenSet = false;
88
89 double m_maxCapacity{0.0};
90 bool m_maxCapacityHasBeenSet = false;
91
92 int m_secondsUntilAutoPause{0};
93 bool m_secondsUntilAutoPauseHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace RDS
98} // 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