42 lines
939 B
C++
42 lines
939 B
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#include <aws/mediaconnect/model/AddFlowSourcesRequest.h>
|
|
#include <aws/core/utils/json/JsonSerializer.h>
|
|
|
|
#include <utility>
|
|
|
|
using namespace Aws::MediaConnect::Model;
|
|
using namespace Aws::Utils::Json;
|
|
using namespace Aws::Utils;
|
|
|
|
AddFlowSourcesRequest::AddFlowSourcesRequest() :
|
|
m_flowArnHasBeenSet(false),
|
|
m_sourcesHasBeenSet(false)
|
|
{
|
|
}
|
|
|
|
Aws::String AddFlowSourcesRequest::SerializePayload() const
|
|
{
|
|
JsonValue payload;
|
|
|
|
if(m_sourcesHasBeenSet)
|
|
{
|
|
Array<JsonValue> sourcesJsonList(m_sources.size());
|
|
for(unsigned sourcesIndex = 0; sourcesIndex < sourcesJsonList.GetLength(); ++sourcesIndex)
|
|
{
|
|
sourcesJsonList[sourcesIndex].AsObject(m_sources[sourcesIndex].Jsonize());
|
|
}
|
|
payload.WithArray("sources", std::move(sourcesJsonList));
|
|
|
|
}
|
|
|
|
return payload.View().WriteReadable();
|
|
}
|
|
|
|
|
|
|
|
|