/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include 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) { Aws::Utils::Array 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(); }