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

Contains information about the account.

See Also:

AWS * API Reference

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

The member account ID.

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

The member account ID.

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

The member account ID.

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

The member account ID.

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

The member account ID.

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

The member account ID.

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

The member account ID.

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

The member account ID.

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

The email address of the member account.

*/ inline const Aws::String& GetEmail() const{ return m_email; } /** *

The email address of the member account.

*/ inline bool EmailHasBeenSet() const { return m_emailHasBeenSet; } /** *

The email address of the member account.

*/ inline void SetEmail(const Aws::String& value) { m_emailHasBeenSet = true; m_email = value; } /** *

The email address of the member account.

*/ inline void SetEmail(Aws::String&& value) { m_emailHasBeenSet = true; m_email = std::move(value); } /** *

The email address of the member account.

*/ inline void SetEmail(const char* value) { m_emailHasBeenSet = true; m_email.assign(value); } /** *

The email address of the member account.

*/ inline AccountDetail& WithEmail(const Aws::String& value) { SetEmail(value); return *this;} /** *

The email address of the member account.

*/ inline AccountDetail& WithEmail(Aws::String&& value) { SetEmail(std::move(value)); return *this;} /** *

The email address of the member account.

*/ inline AccountDetail& WithEmail(const char* value) { SetEmail(value); return *this;} private: Aws::String m_accountId; bool m_accountIdHasBeenSet = false; Aws::String m_email; bool m_emailHasBeenSet = false; }; } // namespace Model } // namespace GuardDuty } // namespace Aws