AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AccountQuota.h
1
6#pragma once
7#include <aws/rds/RDS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace RDS
22{
23namespace Model
24{
25
93 {
94 public:
95 AWS_RDS_API AccountQuota() = default;
96 AWS_RDS_API AccountQuota(const Aws::Utils::Xml::XmlNode& xmlNode);
97 AWS_RDS_API AccountQuota& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
98
99 AWS_RDS_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
100 AWS_RDS_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
101
102
104
107 inline const Aws::String& GetAccountQuotaName() const { return m_accountQuotaName; }
108 inline bool AccountQuotaNameHasBeenSet() const { return m_accountQuotaNameHasBeenSet; }
109 template<typename AccountQuotaNameT = Aws::String>
110 void SetAccountQuotaName(AccountQuotaNameT&& value) { m_accountQuotaNameHasBeenSet = true; m_accountQuotaName = std::forward<AccountQuotaNameT>(value); }
111 template<typename AccountQuotaNameT = Aws::String>
112 AccountQuota& WithAccountQuotaName(AccountQuotaNameT&& value) { SetAccountQuotaName(std::forward<AccountQuotaNameT>(value)); return *this;}
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) { m_usedHasBeenSet = true; m_used = value; }
122 inline AccountQuota& WithUsed(long long value) { SetUsed(value); return *this;}
124
126
129 inline long long GetMax() const { return m_max; }
130 inline bool MaxHasBeenSet() const { return m_maxHasBeenSet; }
131 inline void SetMax(long long value) { m_maxHasBeenSet = true; m_max = value; }
132 inline AccountQuota& WithMax(long long value) { SetMax(value); return *this;}
134 private:
135
136 Aws::String m_accountQuotaName;
137 bool m_accountQuotaNameHasBeenSet = false;
138
139 long long m_used{0};
140 bool m_usedHasBeenSet = false;
141
142 long long m_max{0};
143 bool m_maxHasBeenSet = false;
144 };
145
146} // namespace Model
147} // namespace RDS
148} // 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