AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
AccountQuota.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/dms/DatabaseMigrationService_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace DatabaseMigrationService {
20namespace Model {
21
29 public:
30 AWS_DATABASEMIGRATIONSERVICE_API AccountQuota() = default;
31 AWS_DATABASEMIGRATIONSERVICE_API AccountQuota(Aws::Utils::Json::JsonView jsonValue);
32 AWS_DATABASEMIGRATIONSERVICE_API AccountQuota& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_DATABASEMIGRATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetAccountQuotaName() const { return m_accountQuotaName; }
40 inline bool AccountQuotaNameHasBeenSet() const { return m_accountQuotaNameHasBeenSet; }
41 template <typename AccountQuotaNameT = Aws::String>
42 void SetAccountQuotaName(AccountQuotaNameT&& value) {
43 m_accountQuotaNameHasBeenSet = true;
44 m_accountQuotaName = std::forward<AccountQuotaNameT>(value);
45 }
46 template <typename AccountQuotaNameT = Aws::String>
47 AccountQuota& WithAccountQuotaName(AccountQuotaNameT&& value) {
48 SetAccountQuotaName(std::forward<AccountQuotaNameT>(value));
49 return *this;
50 }
52
54
57 inline long long GetUsed() const { return m_used; }
58 inline bool UsedHasBeenSet() const { return m_usedHasBeenSet; }
59 inline void SetUsed(long long value) {
60 m_usedHasBeenSet = true;
61 m_used = value;
62 }
63 inline AccountQuota& WithUsed(long long value) {
64 SetUsed(value);
65 return *this;
66 }
68
70
73 inline long long GetMax() const { return m_max; }
74 inline bool MaxHasBeenSet() const { return m_maxHasBeenSet; }
75 inline void SetMax(long long value) {
76 m_maxHasBeenSet = true;
77 m_max = value;
78 }
79 inline AccountQuota& WithMax(long long value) {
80 SetMax(value);
81 return *this;
82 }
84 private:
85 Aws::String m_accountQuotaName;
86
87 long long m_used{0};
88
89 long long m_max{0};
90 bool m_accountQuotaNameHasBeenSet = false;
91 bool m_usedHasBeenSet = false;
92 bool m_maxHasBeenSet = false;
93};
94
95} // namespace Model
96} // namespace DatabaseMigrationService
97} // namespace Aws
AccountQuota & WithAccountQuotaName(AccountQuotaNameT &&value)
AWS_DATABASEMIGRATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_DATABASEMIGRATIONSERVICE_API AccountQuota(Aws::Utils::Json::JsonView jsonValue)
AWS_DATABASEMIGRATIONSERVICE_API AccountQuota()=default
AWS_DATABASEMIGRATIONSERVICE_API AccountQuota & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetAccountQuotaName(AccountQuotaNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue