41 lines
849 B
C++
41 lines
849 B
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#include <aws/ivs/model/BatchGetStreamKeyRequest.h>
|
|
#include <aws/core/utils/json/JsonSerializer.h>
|
|
|
|
#include <utility>
|
|
|
|
using namespace Aws::IVS::Model;
|
|
using namespace Aws::Utils::Json;
|
|
using namespace Aws::Utils;
|
|
|
|
BatchGetStreamKeyRequest::BatchGetStreamKeyRequest() :
|
|
m_arnsHasBeenSet(false)
|
|
{
|
|
}
|
|
|
|
Aws::String BatchGetStreamKeyRequest::SerializePayload() const
|
|
{
|
|
JsonValue payload;
|
|
|
|
if(m_arnsHasBeenSet)
|
|
{
|
|
Array<JsonValue> arnsJsonList(m_arns.size());
|
|
for(unsigned arnsIndex = 0; arnsIndex < arnsJsonList.GetLength(); ++arnsIndex)
|
|
{
|
|
arnsJsonList[arnsIndex].AsString(m_arns[arnsIndex]);
|
|
}
|
|
payload.WithArray("arns", std::move(arnsJsonList));
|
|
|
|
}
|
|
|
|
return payload.View().WriteReadable();
|
|
}
|
|
|
|
|
|
|
|
|