76 lines
1.7 KiB
C++
76 lines
1.7 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#include <aws/mediatailor/model/DashConfigurationForPut.h>
|
|
#include <aws/core/utils/json/JsonSerializer.h>
|
|
|
|
#include <utility>
|
|
|
|
using namespace Aws::Utils::Json;
|
|
using namespace Aws::Utils;
|
|
|
|
namespace Aws
|
|
{
|
|
namespace MediaTailor
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
DashConfigurationForPut::DashConfigurationForPut() :
|
|
m_mpdLocationHasBeenSet(false),
|
|
m_originManifestType(OriginManifestType::NOT_SET),
|
|
m_originManifestTypeHasBeenSet(false)
|
|
{
|
|
}
|
|
|
|
DashConfigurationForPut::DashConfigurationForPut(JsonView jsonValue) :
|
|
m_mpdLocationHasBeenSet(false),
|
|
m_originManifestType(OriginManifestType::NOT_SET),
|
|
m_originManifestTypeHasBeenSet(false)
|
|
{
|
|
*this = jsonValue;
|
|
}
|
|
|
|
DashConfigurationForPut& DashConfigurationForPut::operator =(JsonView jsonValue)
|
|
{
|
|
if(jsonValue.ValueExists("MpdLocation"))
|
|
{
|
|
m_mpdLocation = jsonValue.GetString("MpdLocation");
|
|
|
|
m_mpdLocationHasBeenSet = true;
|
|
}
|
|
|
|
if(jsonValue.ValueExists("OriginManifestType"))
|
|
{
|
|
m_originManifestType = OriginManifestTypeMapper::GetOriginManifestTypeForName(jsonValue.GetString("OriginManifestType"));
|
|
|
|
m_originManifestTypeHasBeenSet = true;
|
|
}
|
|
|
|
return *this;
|
|
}
|
|
|
|
JsonValue DashConfigurationForPut::Jsonize() const
|
|
{
|
|
JsonValue payload;
|
|
|
|
if(m_mpdLocationHasBeenSet)
|
|
{
|
|
payload.WithString("MpdLocation", m_mpdLocation);
|
|
|
|
}
|
|
|
|
if(m_originManifestTypeHasBeenSet)
|
|
{
|
|
payload.WithString("OriginManifestType", OriginManifestTypeMapper::GetNameForOriginManifestType(m_originManifestType));
|
|
}
|
|
|
|
return payload;
|
|
}
|
|
|
|
} // namespace Model
|
|
} // namespace MediaTailor
|
|
} // namespace Aws
|