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

Provides information about the delegated Amazon Macie administrator account * for an organization in Organizations.

See Also:

AWS * API Reference

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

The Amazon Web Services account ID for the account.

*/ inline const Aws::String& GetAccountId() const{ return m_accountId; } /** *

The Amazon Web Services account ID for the account.

*/ inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; } /** *

The Amazon Web Services account ID for the account.

*/ inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; } /** *

The Amazon Web Services account ID for the account.

*/ inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); } /** *

The Amazon Web Services account ID for the account.

*/ inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); } /** *

The Amazon Web Services account ID for the account.

*/ inline AdminAccount& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;} /** *

The Amazon Web Services account ID for the account.

*/ inline AdminAccount& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;} /** *

The Amazon Web Services account ID for the account.

*/ inline AdminAccount& WithAccountId(const char* value) { SetAccountId(value); return *this;} /** *

The current status of the account as the delegated Amazon Macie administrator * account for the organization.

*/ inline const AdminStatus& GetStatus() const{ return m_status; } /** *

The current status of the account as the delegated Amazon Macie administrator * account for the organization.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The current status of the account as the delegated Amazon Macie administrator * account for the organization.

*/ inline void SetStatus(const AdminStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The current status of the account as the delegated Amazon Macie administrator * account for the organization.

*/ inline void SetStatus(AdminStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The current status of the account as the delegated Amazon Macie administrator * account for the organization.

*/ inline AdminAccount& WithStatus(const AdminStatus& value) { SetStatus(value); return *this;} /** *

The current status of the account as the delegated Amazon Macie administrator * account for the organization.

*/ inline AdminAccount& WithStatus(AdminStatus&& value) { SetStatus(std::move(value)); return *this;} private: Aws::String m_accountId; bool m_accountIdHasBeenSet = false; AdminStatus m_status; bool m_statusHasBeenSet = false; }; } // namespace Model } // namespace Macie2 } // namespace Aws