/** * 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 OpsWorksCM { namespace Model { /** *

Stores account attributes.

See Also:

AWS * API Reference

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

The attribute name. The following are supported attribute names.

    *
  • ServerLimit: The number of current servers/maximum number of * servers allowed. By default, you can have a maximum of 10 servers.

  • *
  • ManualBackupLimit: The number of current manual backups/maximum * number of backups allowed. By default, you can have a maximum of 50 manual * backups saved.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The attribute name. The following are supported attribute names.

    *
  • ServerLimit: The number of current servers/maximum number of * servers allowed. By default, you can have a maximum of 10 servers.

  • *
  • ManualBackupLimit: The number of current manual backups/maximum * number of backups allowed. By default, you can have a maximum of 50 manual * backups saved.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The attribute name. The following are supported attribute names.

    *
  • ServerLimit: The number of current servers/maximum number of * servers allowed. By default, you can have a maximum of 10 servers.

  • *
  • ManualBackupLimit: The number of current manual backups/maximum * number of backups allowed. By default, you can have a maximum of 50 manual * backups saved.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The attribute name. The following are supported attribute names.

    *
  • ServerLimit: The number of current servers/maximum number of * servers allowed. By default, you can have a maximum of 10 servers.

  • *
  • ManualBackupLimit: The number of current manual backups/maximum * number of backups allowed. By default, you can have a maximum of 50 manual * backups saved.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The attribute name. The following are supported attribute names.

    *
  • ServerLimit: The number of current servers/maximum number of * servers allowed. By default, you can have a maximum of 10 servers.

  • *
  • ManualBackupLimit: The number of current manual backups/maximum * number of backups allowed. By default, you can have a maximum of 50 manual * backups saved.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The attribute name. The following are supported attribute names.

    *
  • ServerLimit: The number of current servers/maximum number of * servers allowed. By default, you can have a maximum of 10 servers.

  • *
  • ManualBackupLimit: The number of current manual backups/maximum * number of backups allowed. By default, you can have a maximum of 50 manual * backups saved.

*/ inline AccountAttribute& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The attribute name. The following are supported attribute names.

    *
  • ServerLimit: The number of current servers/maximum number of * servers allowed. By default, you can have a maximum of 10 servers.

  • *
  • ManualBackupLimit: The number of current manual backups/maximum * number of backups allowed. By default, you can have a maximum of 50 manual * backups saved.

*/ inline AccountAttribute& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The attribute name. The following are supported attribute names.

    *
  • ServerLimit: The number of current servers/maximum number of * servers allowed. By default, you can have a maximum of 10 servers.

  • *
  • ManualBackupLimit: The number of current manual backups/maximum * number of backups allowed. By default, you can have a maximum of 50 manual * backups saved.

*/ inline AccountAttribute& WithName(const char* value) { SetName(value); return *this;} /** *

The maximum allowed value.

*/ inline int GetMaximum() const{ return m_maximum; } /** *

The maximum allowed value.

*/ inline bool MaximumHasBeenSet() const { return m_maximumHasBeenSet; } /** *

The maximum allowed value.

*/ inline void SetMaximum(int value) { m_maximumHasBeenSet = true; m_maximum = value; } /** *

The maximum allowed value.

*/ inline AccountAttribute& WithMaximum(int value) { SetMaximum(value); return *this;} /** *

The current usage, such as the current number of servers that are associated * with the account.

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

The current usage, such as the current number of servers that are associated * with the account.

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

The current usage, such as the current number of servers that are associated * with the account.

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

The current usage, such as the current number of servers that are associated * with the account.

*/ inline AccountAttribute& WithUsed(int value) { SetUsed(value); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; int m_maximum; bool m_maximumHasBeenSet = false; int m_used; bool m_usedHasBeenSet = false; }; } // namespace Model } // namespace OpsWorksCM } // namespace Aws