/** * 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 an account that's designated as a delegated * administrator of Amazon Macie for an AWS organization.

See Also:

* AWS * API Reference

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

The AWS account ID for the account.

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

The AWS account ID for the account.

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

The AWS account ID for the account.

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

The AWS account ID for the account.

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

The AWS account ID for the account.

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

The AWS account ID for the account.

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

The AWS account ID for the account.

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

The AWS account ID for the account.

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

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

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

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

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

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

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

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

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

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

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

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

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