/** * 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 details about the remote Amazon Web Services account that made the * API call.

See Also:

AWS * API Reference

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

The Amazon Web Services account ID of the remote API caller.

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

The Amazon Web Services account ID of the remote API caller.

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

The Amazon Web Services account ID of the remote API caller.

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

The Amazon Web Services account ID of the remote API caller.

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

The Amazon Web Services account ID of the remote API caller.

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

The Amazon Web Services account ID of the remote API caller.

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

The Amazon Web Services account ID of the remote API caller.

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

The Amazon Web Services account ID of the remote API caller.

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

Details on whether the Amazon Web Services account of the remote API caller * is related to your GuardDuty environment. If this value is True the * API caller is affiliated to your account in some way. If it is * False the API caller is from outside your environment.

*/ inline bool GetAffiliated() const{ return m_affiliated; } /** *

Details on whether the Amazon Web Services account of the remote API caller * is related to your GuardDuty environment. If this value is True the * API caller is affiliated to your account in some way. If it is * False the API caller is from outside your environment.

*/ inline bool AffiliatedHasBeenSet() const { return m_affiliatedHasBeenSet; } /** *

Details on whether the Amazon Web Services account of the remote API caller * is related to your GuardDuty environment. If this value is True the * API caller is affiliated to your account in some way. If it is * False the API caller is from outside your environment.

*/ inline void SetAffiliated(bool value) { m_affiliatedHasBeenSet = true; m_affiliated = value; } /** *

Details on whether the Amazon Web Services account of the remote API caller * is related to your GuardDuty environment. If this value is True the * API caller is affiliated to your account in some way. If it is * False the API caller is from outside your environment.

*/ inline RemoteAccountDetails& WithAffiliated(bool value) { SetAffiliated(value); return *this;} private: Aws::String m_accountId; bool m_accountIdHasBeenSet = false; bool m_affiliated; bool m_affiliatedHasBeenSet = false; }; } // namespace Model } // namespace GuardDuty } // namespace Aws