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