AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
ServerlessV2ScalingConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/docdb/DocDB_EXPORTS.h>
9
10namespace Aws {
11namespace Utils {
12namespace Xml {
13class XmlNode;
14} // namespace Xml
15} // namespace Utils
16namespace DocDB {
17namespace Model {
18
26 public:
27 AWS_DOCDB_API ServerlessV2ScalingConfiguration() = default;
30
31 AWS_DOCDB_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
32 AWS_DOCDB_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
33
35
40 inline double GetMinCapacity() const { return m_minCapacity; }
41 inline bool MinCapacityHasBeenSet() const { return m_minCapacityHasBeenSet; }
42 inline void SetMinCapacity(double value) {
43 m_minCapacityHasBeenSet = true;
44 m_minCapacity = value;
45 }
47 SetMinCapacity(value);
48 return *this;
49 }
51
53
58 inline double GetMaxCapacity() const { return m_maxCapacity; }
59 inline bool MaxCapacityHasBeenSet() const { return m_maxCapacityHasBeenSet; }
60 inline void SetMaxCapacity(double value) {
61 m_maxCapacityHasBeenSet = true;
62 m_maxCapacity = value;
63 }
65 SetMaxCapacity(value);
66 return *this;
67 }
69 private:
70 double m_minCapacity{0.0};
71
72 double m_maxCapacity{0.0};
73 bool m_minCapacityHasBeenSet = false;
74 bool m_maxCapacityHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace DocDB
79} // namespace Aws
ServerlessV2ScalingConfiguration & WithMinCapacity(double value)
ServerlessV2ScalingConfiguration & WithMaxCapacity(double value)
AWS_DOCDB_API ServerlessV2ScalingConfiguration(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_DOCDB_API ServerlessV2ScalingConfiguration & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_DOCDB_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_DOCDB_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
std::basic_ostream< char, std::char_traits< char > > OStream