/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace DatabaseMigrationService { namespace Model { /** *

Describes a quota for an Amazon Web Services account, for example the number * of replication instances allowed.

See Also:

AWS * API Reference

*/ class AccountQuota { public: AWS_DATABASEMIGRATIONSERVICE_API AccountQuota(); AWS_DATABASEMIGRATIONSERVICE_API AccountQuota(Aws::Utils::Json::JsonView jsonValue); AWS_DATABASEMIGRATIONSERVICE_API AccountQuota& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_DATABASEMIGRATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The name of the DMS quota for this Amazon Web Services account.

*/ inline const Aws::String& GetAccountQuotaName() const{ return m_accountQuotaName; } /** *

The name of the DMS quota for this Amazon Web Services account.

*/ inline bool AccountQuotaNameHasBeenSet() const { return m_accountQuotaNameHasBeenSet; } /** *

The name of the DMS quota for this Amazon Web Services account.

*/ inline void SetAccountQuotaName(const Aws::String& value) { m_accountQuotaNameHasBeenSet = true; m_accountQuotaName = value; } /** *

The name of the DMS quota for this Amazon Web Services account.

*/ inline void SetAccountQuotaName(Aws::String&& value) { m_accountQuotaNameHasBeenSet = true; m_accountQuotaName = std::move(value); } /** *

The name of the DMS quota for this Amazon Web Services account.

*/ inline void SetAccountQuotaName(const char* value) { m_accountQuotaNameHasBeenSet = true; m_accountQuotaName.assign(value); } /** *

The name of the DMS quota for this Amazon Web Services account.

*/ inline AccountQuota& WithAccountQuotaName(const Aws::String& value) { SetAccountQuotaName(value); return *this;} /** *

The name of the DMS quota for this Amazon Web Services account.

*/ inline AccountQuota& WithAccountQuotaName(Aws::String&& value) { SetAccountQuotaName(std::move(value)); return *this;} /** *

The name of the DMS quota for this Amazon Web Services account.

*/ inline AccountQuota& WithAccountQuotaName(const char* value) { SetAccountQuotaName(value); return *this;} /** *

The amount currently used toward the quota maximum.

*/ inline long long GetUsed() const{ return m_used; } /** *

The amount currently used toward the quota maximum.

*/ inline bool UsedHasBeenSet() const { return m_usedHasBeenSet; } /** *

The amount currently used toward the quota maximum.

*/ inline void SetUsed(long long value) { m_usedHasBeenSet = true; m_used = value; } /** *

The amount currently used toward the quota maximum.

*/ inline AccountQuota& WithUsed(long long value) { SetUsed(value); return *this;} /** *

The maximum allowed value for the quota.

*/ inline long long GetMax() const{ return m_max; } /** *

The maximum allowed value for the quota.

*/ inline bool MaxHasBeenSet() const { return m_maxHasBeenSet; } /** *

The maximum allowed value for the quota.

*/ inline void SetMax(long long value) { m_maxHasBeenSet = true; m_max = value; } /** *

The maximum allowed value for the quota.

*/ inline AccountQuota& WithMax(long long value) { SetMax(value); return *this;} private: Aws::String m_accountQuotaName; bool m_accountQuotaNameHasBeenSet = false; long long m_used; bool m_usedHasBeenSet = false; long long m_max; bool m_maxHasBeenSet = false; }; } // namespace Model } // namespace DatabaseMigrationService } // namespace Aws