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

(Discontinued) A list of the Amazon Macie Classic member accounts returned by * the action. The current Macie Classic administrator account is also included in * this list.

*/ inline const Aws::Vector& GetMemberAccounts() const{ return m_memberAccounts; } /** *

(Discontinued) A list of the Amazon Macie Classic member accounts returned by * the action. The current Macie Classic administrator account is also included in * this list.

*/ inline void SetMemberAccounts(const Aws::Vector& value) { m_memberAccounts = value; } /** *

(Discontinued) A list of the Amazon Macie Classic member accounts returned by * the action. The current Macie Classic administrator account is also included in * this list.

*/ inline void SetMemberAccounts(Aws::Vector&& value) { m_memberAccounts = std::move(value); } /** *

(Discontinued) A list of the Amazon Macie Classic member accounts returned by * the action. The current Macie Classic administrator account is also included in * this list.

*/ inline ListMemberAccountsResult& WithMemberAccounts(const Aws::Vector& value) { SetMemberAccounts(value); return *this;} /** *

(Discontinued) A list of the Amazon Macie Classic member accounts returned by * the action. The current Macie Classic administrator account is also included in * this list.

*/ inline ListMemberAccountsResult& WithMemberAccounts(Aws::Vector&& value) { SetMemberAccounts(std::move(value)); return *this;} /** *

(Discontinued) A list of the Amazon Macie Classic member accounts returned by * the action. The current Macie Classic administrator account is also included in * this list.

*/ inline ListMemberAccountsResult& AddMemberAccounts(const MemberAccount& value) { m_memberAccounts.push_back(value); return *this; } /** *

(Discontinued) A list of the Amazon Macie Classic member accounts returned by * the action. The current Macie Classic administrator account is also included in * this list.

*/ inline ListMemberAccountsResult& AddMemberAccounts(MemberAccount&& value) { m_memberAccounts.push_back(std::move(value)); return *this; } /** *

(Discontinued) When a response is generated, if there is more data to be * listed, this parameter is present in the response and contains the value to use * for the nextToken parameter in a subsequent pagination request. If * there is no more data to be listed, this parameter is set to null.

*/ inline const Aws::String& GetNextToken() const{ return m_nextToken; } /** *

(Discontinued) When a response is generated, if there is more data to be * listed, this parameter is present in the response and contains the value to use * for the nextToken parameter in a subsequent pagination request. If * there is no more data to be listed, this parameter is set to null.

*/ inline void SetNextToken(const Aws::String& value) { m_nextToken = value; } /** *

(Discontinued) When a response is generated, if there is more data to be * listed, this parameter is present in the response and contains the value to use * for the nextToken parameter in a subsequent pagination request. If * there is no more data to be listed, this parameter is set to null.

*/ inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); } /** *

(Discontinued) When a response is generated, if there is more data to be * listed, this parameter is present in the response and contains the value to use * for the nextToken parameter in a subsequent pagination request. If * there is no more data to be listed, this parameter is set to null.

*/ inline void SetNextToken(const char* value) { m_nextToken.assign(value); } /** *

(Discontinued) When a response is generated, if there is more data to be * listed, this parameter is present in the response and contains the value to use * for the nextToken parameter in a subsequent pagination request. If * there is no more data to be listed, this parameter is set to null.

*/ inline ListMemberAccountsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** *

(Discontinued) When a response is generated, if there is more data to be * listed, this parameter is present in the response and contains the value to use * for the nextToken parameter in a subsequent pagination request. If * there is no more data to be listed, this parameter is set to null.

*/ inline ListMemberAccountsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} /** *

(Discontinued) When a response is generated, if there is more data to be * listed, this parameter is present in the response and contains the value to use * for the nextToken parameter in a subsequent pagination request. If * there is no more data to be listed, this parameter is set to null.

*/ inline ListMemberAccountsResult& WithNextToken(const char* value) { SetNextToken(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 ListMemberAccountsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline ListMemberAccountsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline ListMemberAccountsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_memberAccounts; Aws::String m_nextToken; Aws::String m_requestId; }; } // namespace Model } // namespace Macie } // namespace Aws