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-chime/source/model/BatchDeletePhoneNumberRequest.cpp

41 lines
1013 B
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/chime/model/BatchDeletePhoneNumberRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Chime::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
BatchDeletePhoneNumberRequest::BatchDeletePhoneNumberRequest() :
m_phoneNumberIdsHasBeenSet(false)
{
}
Aws::String BatchDeletePhoneNumberRequest::SerializePayload() const
{
JsonValue payload;
if(m_phoneNumberIdsHasBeenSet)
{
Array<JsonValue> phoneNumberIdsJsonList(m_phoneNumberIds.size());
for(unsigned phoneNumberIdsIndex = 0; phoneNumberIdsIndex < phoneNumberIdsJsonList.GetLength(); ++phoneNumberIdsIndex)
{
phoneNumberIdsJsonList[phoneNumberIdsIndex].AsString(m_phoneNumberIds[phoneNumberIdsIndex]);
}
payload.WithArray("PhoneNumberIds", std::move(phoneNumberIdsJsonList));
}
return payload.View().WriteReadable();
}