75 lines
1.3 KiB
C++
75 lines
1.3 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#include <aws/mediaconvert/model/InputClipping.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
|
|
{
|
|
|
|
InputClipping::InputClipping() :
|
|
m_endTimecodeHasBeenSet(false),
|
|
m_startTimecodeHasBeenSet(false)
|
|
{
|
|
}
|
|
|
|
InputClipping::InputClipping(JsonView jsonValue) :
|
|
m_endTimecodeHasBeenSet(false),
|
|
m_startTimecodeHasBeenSet(false)
|
|
{
|
|
*this = jsonValue;
|
|
}
|
|
|
|
InputClipping& InputClipping::operator =(JsonView jsonValue)
|
|
{
|
|
if(jsonValue.ValueExists("endTimecode"))
|
|
{
|
|
m_endTimecode = jsonValue.GetString("endTimecode");
|
|
|
|
m_endTimecodeHasBeenSet = true;
|
|
}
|
|
|
|
if(jsonValue.ValueExists("startTimecode"))
|
|
{
|
|
m_startTimecode = jsonValue.GetString("startTimecode");
|
|
|
|
m_startTimecodeHasBeenSet = true;
|
|
}
|
|
|
|
return *this;
|
|
}
|
|
|
|
JsonValue InputClipping::Jsonize() const
|
|
{
|
|
JsonValue payload;
|
|
|
|
if(m_endTimecodeHasBeenSet)
|
|
{
|
|
payload.WithString("endTimecode", m_endTimecode);
|
|
|
|
}
|
|
|
|
if(m_startTimecodeHasBeenSet)
|
|
{
|
|
payload.WithString("startTimecode", m_startTimecode);
|
|
|
|
}
|
|
|
|
return payload;
|
|
}
|
|
|
|
} // namespace Model
|
|
} // namespace MediaConvert
|
|
} // namespace Aws
|