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-medialive/source/model/OutputSettings.cpp

165 lines
3.9 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/medialive/model/OutputSettings.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace MediaLive
{
namespace Model
{
OutputSettings::OutputSettings() :
m_archiveOutputSettingsHasBeenSet(false),
m_frameCaptureOutputSettingsHasBeenSet(false),
m_hlsOutputSettingsHasBeenSet(false),
m_mediaPackageOutputSettingsHasBeenSet(false),
m_msSmoothOutputSettingsHasBeenSet(false),
m_multiplexOutputSettingsHasBeenSet(false),
m_rtmpOutputSettingsHasBeenSet(false),
m_udpOutputSettingsHasBeenSet(false)
{
}
OutputSettings::OutputSettings(JsonView jsonValue) :
m_archiveOutputSettingsHasBeenSet(false),
m_frameCaptureOutputSettingsHasBeenSet(false),
m_hlsOutputSettingsHasBeenSet(false),
m_mediaPackageOutputSettingsHasBeenSet(false),
m_msSmoothOutputSettingsHasBeenSet(false),
m_multiplexOutputSettingsHasBeenSet(false),
m_rtmpOutputSettingsHasBeenSet(false),
m_udpOutputSettingsHasBeenSet(false)
{
*this = jsonValue;
}
OutputSettings& OutputSettings::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("archiveOutputSettings"))
{
m_archiveOutputSettings = jsonValue.GetObject("archiveOutputSettings");
m_archiveOutputSettingsHasBeenSet = true;
}
if(jsonValue.ValueExists("frameCaptureOutputSettings"))
{
m_frameCaptureOutputSettings = jsonValue.GetObject("frameCaptureOutputSettings");
m_frameCaptureOutputSettingsHasBeenSet = true;
}
if(jsonValue.ValueExists("hlsOutputSettings"))
{
m_hlsOutputSettings = jsonValue.GetObject("hlsOutputSettings");
m_hlsOutputSettingsHasBeenSet = true;
}
if(jsonValue.ValueExists("mediaPackageOutputSettings"))
{
m_mediaPackageOutputSettings = jsonValue.GetObject("mediaPackageOutputSettings");
m_mediaPackageOutputSettingsHasBeenSet = true;
}
if(jsonValue.ValueExists("msSmoothOutputSettings"))
{
m_msSmoothOutputSettings = jsonValue.GetObject("msSmoothOutputSettings");
m_msSmoothOutputSettingsHasBeenSet = true;
}
if(jsonValue.ValueExists("multiplexOutputSettings"))
{
m_multiplexOutputSettings = jsonValue.GetObject("multiplexOutputSettings");
m_multiplexOutputSettingsHasBeenSet = true;
}
if(jsonValue.ValueExists("rtmpOutputSettings"))
{
m_rtmpOutputSettings = jsonValue.GetObject("rtmpOutputSettings");
m_rtmpOutputSettingsHasBeenSet = true;
}
if(jsonValue.ValueExists("udpOutputSettings"))
{
m_udpOutputSettings = jsonValue.GetObject("udpOutputSettings");
m_udpOutputSettingsHasBeenSet = true;
}
return *this;
}
JsonValue OutputSettings::Jsonize() const
{
JsonValue payload;
if(m_archiveOutputSettingsHasBeenSet)
{
payload.WithObject("archiveOutputSettings", m_archiveOutputSettings.Jsonize());
}
if(m_frameCaptureOutputSettingsHasBeenSet)
{
payload.WithObject("frameCaptureOutputSettings", m_frameCaptureOutputSettings.Jsonize());
}
if(m_hlsOutputSettingsHasBeenSet)
{
payload.WithObject("hlsOutputSettings", m_hlsOutputSettings.Jsonize());
}
if(m_mediaPackageOutputSettingsHasBeenSet)
{
payload.WithObject("mediaPackageOutputSettings", m_mediaPackageOutputSettings.Jsonize());
}
if(m_msSmoothOutputSettingsHasBeenSet)
{
payload.WithObject("msSmoothOutputSettings", m_msSmoothOutputSettings.Jsonize());
}
if(m_multiplexOutputSettingsHasBeenSet)
{
payload.WithObject("multiplexOutputSettings", m_multiplexOutputSettings.Jsonize());
}
if(m_rtmpOutputSettingsHasBeenSet)
{
payload.WithObject("rtmpOutputSettings", m_rtmpOutputSettings.Jsonize());
}
if(m_udpOutputSettingsHasBeenSet)
{
payload.WithObject("udpOutputSettings", m_udpOutputSettings.Jsonize());
}
return payload;
}
} // namespace Model
} // namespace MediaLive
} // namespace Aws