64 lines
1.1 KiB
C++
64 lines
1.1 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#include <aws/kinesisvideo/model/UpdateStreamRequest.h>
|
|
#include <aws/core/utils/json/JsonSerializer.h>
|
|
|
|
#include <utility>
|
|
|
|
using namespace Aws::KinesisVideo::Model;
|
|
using namespace Aws::Utils::Json;
|
|
using namespace Aws::Utils;
|
|
|
|
UpdateStreamRequest::UpdateStreamRequest() :
|
|
m_streamNameHasBeenSet(false),
|
|
m_streamARNHasBeenSet(false),
|
|
m_currentVersionHasBeenSet(false),
|
|
m_deviceNameHasBeenSet(false),
|
|
m_mediaTypeHasBeenSet(false)
|
|
{
|
|
}
|
|
|
|
Aws::String UpdateStreamRequest::SerializePayload() const
|
|
{
|
|
JsonValue payload;
|
|
|
|
if(m_streamNameHasBeenSet)
|
|
{
|
|
payload.WithString("StreamName", m_streamName);
|
|
|
|
}
|
|
|
|
if(m_streamARNHasBeenSet)
|
|
{
|
|
payload.WithString("StreamARN", m_streamARN);
|
|
|
|
}
|
|
|
|
if(m_currentVersionHasBeenSet)
|
|
{
|
|
payload.WithString("CurrentVersion", m_currentVersion);
|
|
|
|
}
|
|
|
|
if(m_deviceNameHasBeenSet)
|
|
{
|
|
payload.WithString("DeviceName", m_deviceName);
|
|
|
|
}
|
|
|
|
if(m_mediaTypeHasBeenSet)
|
|
{
|
|
payload.WithString("MediaType", m_mediaType);
|
|
|
|
}
|
|
|
|
return payload.View().WriteReadable();
|
|
}
|
|
|
|
|
|
|
|
|