/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace Macie2 { namespace Model { class GetMasterAccountResult { public: AWS_MACIE2_API GetMasterAccountResult(); AWS_MACIE2_API GetMasterAccountResult(const Aws::AmazonWebServiceResult& result); AWS_MACIE2_API GetMasterAccountResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

(Deprecated) The Amazon Web Services account ID for the administrator * account. If the accounts are associated by a Macie membership invitation, this * object also provides details about the invitation that was sent to establish the * relationship between the accounts.

*/ inline const Invitation& GetMaster() const{ return m_master; } /** *

(Deprecated) The Amazon Web Services account ID for the administrator * account. If the accounts are associated by a Macie membership invitation, this * object also provides details about the invitation that was sent to establish the * relationship between the accounts.

*/ inline void SetMaster(const Invitation& value) { m_master = value; } /** *

(Deprecated) The Amazon Web Services account ID for the administrator * account. If the accounts are associated by a Macie membership invitation, this * object also provides details about the invitation that was sent to establish the * relationship between the accounts.

*/ inline void SetMaster(Invitation&& value) { m_master = std::move(value); } /** *

(Deprecated) The Amazon Web Services account ID for the administrator * account. If the accounts are associated by a Macie membership invitation, this * object also provides details about the invitation that was sent to establish the * relationship between the accounts.

*/ inline GetMasterAccountResult& WithMaster(const Invitation& value) { SetMaster(value); return *this;} /** *

(Deprecated) The Amazon Web Services account ID for the administrator * account. If the accounts are associated by a Macie membership invitation, this * object also provides details about the invitation that was sent to establish the * relationship between the accounts.

*/ inline GetMasterAccountResult& WithMaster(Invitation&& value) { SetMaster(std::move(value)); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline GetMasterAccountResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetMasterAccountResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetMasterAccountResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Invitation m_master; Aws::String m_requestId; }; } // namespace Model } // namespace Macie2 } // namespace Aws