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-mediaconvert/source/model/DvbSdtSettings.cpp

108 lines
2.2 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/mediaconvert/model/DvbSdtSettings.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace MediaConvert
{
namespace Model
{
DvbSdtSettings::DvbSdtSettings() :
m_outputSdt(OutputSdt::NOT_SET),
m_outputSdtHasBeenSet(false),
m_sdtInterval(0),
m_sdtIntervalHasBeenSet(false),
m_serviceNameHasBeenSet(false),
m_serviceProviderNameHasBeenSet(false)
{
}
DvbSdtSettings::DvbSdtSettings(JsonView jsonValue) :
m_outputSdt(OutputSdt::NOT_SET),
m_outputSdtHasBeenSet(false),
m_sdtInterval(0),
m_sdtIntervalHasBeenSet(false),
m_serviceNameHasBeenSet(false),
m_serviceProviderNameHasBeenSet(false)
{
*this = jsonValue;
}
DvbSdtSettings& DvbSdtSettings::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("outputSdt"))
{
m_outputSdt = OutputSdtMapper::GetOutputSdtForName(jsonValue.GetString("outputSdt"));
m_outputSdtHasBeenSet = true;
}
if(jsonValue.ValueExists("sdtInterval"))
{
m_sdtInterval = jsonValue.GetInteger("sdtInterval");
m_sdtIntervalHasBeenSet = true;
}
if(jsonValue.ValueExists("serviceName"))
{
m_serviceName = jsonValue.GetString("serviceName");
m_serviceNameHasBeenSet = true;
}
if(jsonValue.ValueExists("serviceProviderName"))
{
m_serviceProviderName = jsonValue.GetString("serviceProviderName");
m_serviceProviderNameHasBeenSet = true;
}
return *this;
}
JsonValue DvbSdtSettings::Jsonize() const
{
JsonValue payload;
if(m_outputSdtHasBeenSet)
{
payload.WithString("outputSdt", OutputSdtMapper::GetNameForOutputSdt(m_outputSdt));
}
if(m_sdtIntervalHasBeenSet)
{
payload.WithInteger("sdtInterval", m_sdtInterval);
}
if(m_serviceNameHasBeenSet)
{
payload.WithString("serviceName", m_serviceName);
}
if(m_serviceProviderNameHasBeenSet)
{
payload.WithString("serviceProviderName", m_serviceProviderName);
}
return payload;
}
} // namespace Model
} // namespace MediaConvert
} // namespace Aws