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/dms/DatabaseMigrationService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace DatabaseMigrationService
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_DATABASEMIGRATIONSERVICE_API AccountQuota() = default;
36 AWS_DATABASEMIGRATIONSERVICE_API AccountQuota(Aws::Utils::Json::JsonView jsonValue);
37 AWS_DATABASEMIGRATIONSERVICE_API AccountQuota& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_DATABASEMIGRATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetAccountQuotaName() const { return m_accountQuotaName; }
46 inline bool AccountQuotaNameHasBeenSet() const { return m_accountQuotaNameHasBeenSet; }
47 template<typename AccountQuotaNameT = Aws::String>
48 void SetAccountQuotaName(AccountQuotaNameT&& value) { m_accountQuotaNameHasBeenSet = true; m_accountQuotaName = std::forward<AccountQuotaNameT>(value); }
49 template<typename AccountQuotaNameT = Aws::String>
50 AccountQuota& WithAccountQuotaName(AccountQuotaNameT&& value) { SetAccountQuotaName(std::forward<AccountQuotaNameT>(value)); return *this;}
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) { m_usedHasBeenSet = true; m_used = value; }
60 inline AccountQuota& WithUsed(long long value) { SetUsed(value); return *this;}
62
64
67 inline long long GetMax() const { return m_max; }
68 inline bool MaxHasBeenSet() const { return m_maxHasBeenSet; }
69 inline void SetMax(long long value) { m_maxHasBeenSet = true; m_max = value; }
70 inline AccountQuota& WithMax(long long value) { SetMax(value); return *this;}
72 private:
73
74 Aws::String m_accountQuotaName;
75 bool m_accountQuotaNameHasBeenSet = false;
76
77 long long m_used{0};
78 bool m_usedHasBeenSet = false;
79
80 long long m_max{0};
81 bool m_maxHasBeenSet = false;
82 };
83
84} // namespace Model
85} // namespace DatabaseMigrationService
86} // 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