AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
AccountQuota.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/rds/RDS_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace RDS {
20namespace Model {
21
89 public:
90 AWS_RDS_API AccountQuota() = default;
91 AWS_RDS_API AccountQuota(const Aws::Utils::Xml::XmlNode& xmlNode);
92 AWS_RDS_API AccountQuota& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
93
94 AWS_RDS_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
95 AWS_RDS_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
96
98
101 inline const Aws::String& GetAccountQuotaName() const { return m_accountQuotaName; }
102 inline bool AccountQuotaNameHasBeenSet() const { return m_accountQuotaNameHasBeenSet; }
103 template <typename AccountQuotaNameT = Aws::String>
104 void SetAccountQuotaName(AccountQuotaNameT&& value) {
105 m_accountQuotaNameHasBeenSet = true;
106 m_accountQuotaName = std::forward<AccountQuotaNameT>(value);
107 }
108 template <typename AccountQuotaNameT = Aws::String>
109 AccountQuota& WithAccountQuotaName(AccountQuotaNameT&& value) {
110 SetAccountQuotaName(std::forward<AccountQuotaNameT>(value));
111 return *this;
112 }
114
116
119 inline long long GetUsed() const { return m_used; }
120 inline bool UsedHasBeenSet() const { return m_usedHasBeenSet; }
121 inline void SetUsed(long long value) {
122 m_usedHasBeenSet = true;
123 m_used = value;
124 }
125 inline AccountQuota& WithUsed(long long value) {
126 SetUsed(value);
127 return *this;
128 }
130
132
135 inline long long GetMax() const { return m_max; }
136 inline bool MaxHasBeenSet() const { return m_maxHasBeenSet; }
137 inline void SetMax(long long value) {
138 m_maxHasBeenSet = true;
139 m_max = value;
140 }
141 inline AccountQuota& WithMax(long long value) {
142 SetMax(value);
143 return *this;
144 }
146 private:
147 Aws::String m_accountQuotaName;
148
149 long long m_used{0};
150
151 long long m_max{0};
152 bool m_accountQuotaNameHasBeenSet = false;
153 bool m_usedHasBeenSet = false;
154 bool m_maxHasBeenSet = false;
155};
156
157} // namespace Model
158} // namespace RDS
159} // namespace Aws
AWS_RDS_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AccountQuota & WithUsed(long long value)
void SetAccountQuotaName(AccountQuotaNameT &&value)
void SetMax(long long value)
void SetUsed(long long value)
AWS_RDS_API AccountQuota & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_RDS_API AccountQuota(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_RDS_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AccountQuota & WithAccountQuotaName(AccountQuotaNameT &&value)
bool AccountQuotaNameHasBeenSet() const
const Aws::String & GetAccountQuotaName() const
AWS_RDS_API AccountQuota()=default
AccountQuota & WithMax(long long value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream