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-iotsitewise/source/model/BatchDisassociateProjectAssetsRequest.cpp

50 lines
1.2 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/iotsitewise/model/BatchDisassociateProjectAssetsRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::IoTSiteWise::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
BatchDisassociateProjectAssetsRequest::BatchDisassociateProjectAssetsRequest() :
m_projectIdHasBeenSet(false),
m_assetIdsHasBeenSet(false),
m_clientToken(Aws::Utils::UUID::RandomUUID()),
m_clientTokenHasBeenSet(true)
{
}
Aws::String BatchDisassociateProjectAssetsRequest::SerializePayload() const
{
JsonValue payload;
if(m_assetIdsHasBeenSet)
{
Array<JsonValue> assetIdsJsonList(m_assetIds.size());
for(unsigned assetIdsIndex = 0; assetIdsIndex < assetIdsJsonList.GetLength(); ++assetIdsIndex)
{
assetIdsJsonList[assetIdsIndex].AsString(m_assetIds[assetIdsIndex]);
}
payload.WithArray("assetIds", std::move(assetIdsJsonList));
}
if(m_clientTokenHasBeenSet)
{
payload.WithString("clientToken", m_clientToken);
}
return payload.View().WriteReadable();
}