This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-detective/source/model/DeleteMembersRequest.cpp

48 lines
1.0 KiB
C++
Raw Normal View History

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/detective/model/DeleteMembersRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Detective::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
DeleteMembersRequest::DeleteMembersRequest() :
m_graphArnHasBeenSet(false),
m_accountIdsHasBeenSet(false)
{
}
Aws::String DeleteMembersRequest::SerializePayload() const
{
JsonValue payload;
if(m_graphArnHasBeenSet)
{
payload.WithString("GraphArn", m_graphArn);
}
if(m_accountIdsHasBeenSet)
{
Array<JsonValue> accountIdsJsonList(m_accountIds.size());
for(unsigned accountIdsIndex = 0; accountIdsIndex < accountIdsJsonList.GetLength(); ++accountIdsIndex)
{
accountIdsJsonList[accountIdsIndex].AsString(m_accountIds[accountIdsIndex]);
}
payload.WithArray("AccountIds", std::move(accountIdsJsonList));
}
return payload.View().WriteReadable();
}