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/TimecodeBurnin.cpp

93 lines
1.8 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/mediaconvert/model/TimecodeBurnin.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
{
TimecodeBurnin::TimecodeBurnin() :
m_fontSize(0),
m_fontSizeHasBeenSet(false),
m_position(TimecodeBurninPosition::NOT_SET),
m_positionHasBeenSet(false),
m_prefixHasBeenSet(false)
{
}
TimecodeBurnin::TimecodeBurnin(JsonView jsonValue) :
m_fontSize(0),
m_fontSizeHasBeenSet(false),
m_position(TimecodeBurninPosition::NOT_SET),
m_positionHasBeenSet(false),
m_prefixHasBeenSet(false)
{
*this = jsonValue;
}
TimecodeBurnin& TimecodeBurnin::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("fontSize"))
{
m_fontSize = jsonValue.GetInteger("fontSize");
m_fontSizeHasBeenSet = true;
}
if(jsonValue.ValueExists("position"))
{
m_position = TimecodeBurninPositionMapper::GetTimecodeBurninPositionForName(jsonValue.GetString("position"));
m_positionHasBeenSet = true;
}
if(jsonValue.ValueExists("prefix"))
{
m_prefix = jsonValue.GetString("prefix");
m_prefixHasBeenSet = true;
}
return *this;
}
JsonValue TimecodeBurnin::Jsonize() const
{
JsonValue payload;
if(m_fontSizeHasBeenSet)
{
payload.WithInteger("fontSize", m_fontSize);
}
if(m_positionHasBeenSet)
{
payload.WithString("position", TimecodeBurninPositionMapper::GetNameForTimecodeBurninPosition(m_position));
}
if(m_prefixHasBeenSet)
{
payload.WithString("prefix", m_prefix);
}
return payload;
}
} // namespace Model
} // namespace MediaConvert
} // namespace Aws