AWS SDK for C++  1.9.109
AWS SDK for C++
AccountQuota.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/rds/RDS_EXPORTS.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Xml
17 {
18  class XmlNode;
19 } // namespace Xml
20 } // namespace Utils
21 namespace RDS
22 {
23 namespace Model
24 {
25 
93  {
94  public:
98 
99  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
100  void OutputToStream(Aws::OStream& oStream, const char* location) const;
101 
102 
106  inline const Aws::String& GetAccountQuotaName() const{ return m_accountQuotaName; }
107 
111  inline bool AccountQuotaNameHasBeenSet() const { return m_accountQuotaNameHasBeenSet; }
112 
116  inline void SetAccountQuotaName(const Aws::String& value) { m_accountQuotaNameHasBeenSet = true; m_accountQuotaName = value; }
117 
121  inline void SetAccountQuotaName(Aws::String&& value) { m_accountQuotaNameHasBeenSet = true; m_accountQuotaName = std::move(value); }
122 
126  inline void SetAccountQuotaName(const char* value) { m_accountQuotaNameHasBeenSet = true; m_accountQuotaName.assign(value); }
127 
131  inline AccountQuota& WithAccountQuotaName(const Aws::String& value) { SetAccountQuotaName(value); return *this;}
132 
136  inline AccountQuota& WithAccountQuotaName(Aws::String&& value) { SetAccountQuotaName(std::move(value)); return *this;}
137 
141  inline AccountQuota& WithAccountQuotaName(const char* value) { SetAccountQuotaName(value); return *this;}
142 
143 
147  inline long long GetUsed() const{ return m_used; }
148 
152  inline bool UsedHasBeenSet() const { return m_usedHasBeenSet; }
153 
157  inline void SetUsed(long long value) { m_usedHasBeenSet = true; m_used = value; }
158 
162  inline AccountQuota& WithUsed(long long value) { SetUsed(value); return *this;}
163 
164 
168  inline long long GetMax() const{ return m_max; }
169 
173  inline bool MaxHasBeenSet() const { return m_maxHasBeenSet; }
174 
178  inline void SetMax(long long value) { m_maxHasBeenSet = true; m_max = value; }
179 
183  inline AccountQuota& WithMax(long long value) { SetMax(value); return *this;}
184 
185  private:
186 
187  Aws::String m_accountQuotaName;
188  bool m_accountQuotaNameHasBeenSet;
189 
190  long long m_used;
191  bool m_usedHasBeenSet;
192 
193  long long m_max;
194  bool m_maxHasBeenSet;
195  };
196 
197 } // namespace Model
198 } // namespace RDS
199 } // namespace Aws
Aws::RDS::Model::AccountQuota::SetUsed
void SetUsed(long long value)
Definition: AccountQuota.h:157
Aws::RDS::Model::AccountQuota::AccountQuota
AccountQuota(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::RDS::Model::AccountQuota::MaxHasBeenSet
bool MaxHasBeenSet() const
Definition: AccountQuota.h:173
Aws::RDS::Model::AccountQuota::SetAccountQuotaName
void SetAccountQuotaName(const Aws::String &value)
Definition: AccountQuota.h:116
AWSStreamFwd.h
Aws::RDS::Model::AccountQuota::SetMax
void SetMax(long long value)
Definition: AccountQuota.h:178
Aws::RDS::Model::AccountQuota::WithAccountQuotaName
AccountQuota & WithAccountQuotaName(Aws::String &&value)
Definition: AccountQuota.h:136
Aws::RDS::Model::AccountQuota::WithUsed
AccountQuota & WithUsed(long long value)
Definition: AccountQuota.h:162
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::RDS::Model::AccountQuota::WithMax
AccountQuota & WithMax(long long value)
Definition: AccountQuota.h:183
Aws::RDS::Model::AccountQuota::GetAccountQuotaName
const Aws::String & GetAccountQuotaName() const
Definition: AccountQuota.h:106
Aws::RDS::Model::AccountQuota::GetMax
long long GetMax() const
Definition: AccountQuota.h:168
RDS_EXPORTS.h
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::RDS::Model::AccountQuota::UsedHasBeenSet
bool UsedHasBeenSet() const
Definition: AccountQuota.h:152
Aws::RDS::Model::AccountQuota::operator=
AccountQuota & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::RDS::Model::AccountQuota
Definition: AccountQuota.h:93
AWSString.h
Aws::RDS::Model::AccountQuota::WithAccountQuotaName
AccountQuota & WithAccountQuotaName(const char *value)
Definition: AccountQuota.h:141
Aws::RDS::Model::AccountQuota::AccountQuotaNameHasBeenSet
bool AccountQuotaNameHasBeenSet() const
Definition: AccountQuota.h:111
Aws::RDS::Model::AccountQuota::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::RDS::Model::AccountQuota::WithAccountQuotaName
AccountQuota & WithAccountQuotaName(const Aws::String &value)
Definition: AccountQuota.h:131
AWS_RDS_API
#define AWS_RDS_API
Definition: RDS_EXPORTS.h:28
Aws::RDS::Model::AccountQuota::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::RDS::Model::AccountQuota::AccountQuota
AccountQuota()
index
int index
Definition: cJSON.h:181
Aws::RDS::Model::AccountQuota::GetUsed
long long GetUsed() const
Definition: AccountQuota.h:147
Aws::RDS::Model::AccountQuota::SetAccountQuotaName
void SetAccountQuotaName(Aws::String &&value)
Definition: AccountQuota.h:121
Aws::RDS::Model::AccountQuota::SetAccountQuotaName
void SetAccountQuotaName(const char *value)
Definition: AccountQuota.h:126