75 lines
1.4 KiB
C++
75 lines
1.4 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#include <aws/mediapackage-vod/model/MssManifest.h>
|
|
#include <aws/core/utils/json/JsonSerializer.h>
|
|
|
|
#include <utility>
|
|
|
|
using namespace Aws::Utils::Json;
|
|
using namespace Aws::Utils;
|
|
|
|
namespace Aws
|
|
{
|
|
namespace MediaPackageVod
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
MssManifest::MssManifest() :
|
|
m_manifestNameHasBeenSet(false),
|
|
m_streamSelectionHasBeenSet(false)
|
|
{
|
|
}
|
|
|
|
MssManifest::MssManifest(JsonView jsonValue) :
|
|
m_manifestNameHasBeenSet(false),
|
|
m_streamSelectionHasBeenSet(false)
|
|
{
|
|
*this = jsonValue;
|
|
}
|
|
|
|
MssManifest& MssManifest::operator =(JsonView jsonValue)
|
|
{
|
|
if(jsonValue.ValueExists("manifestName"))
|
|
{
|
|
m_manifestName = jsonValue.GetString("manifestName");
|
|
|
|
m_manifestNameHasBeenSet = true;
|
|
}
|
|
|
|
if(jsonValue.ValueExists("streamSelection"))
|
|
{
|
|
m_streamSelection = jsonValue.GetObject("streamSelection");
|
|
|
|
m_streamSelectionHasBeenSet = true;
|
|
}
|
|
|
|
return *this;
|
|
}
|
|
|
|
JsonValue MssManifest::Jsonize() const
|
|
{
|
|
JsonValue payload;
|
|
|
|
if(m_manifestNameHasBeenSet)
|
|
{
|
|
payload.WithString("manifestName", m_manifestName);
|
|
|
|
}
|
|
|
|
if(m_streamSelectionHasBeenSet)
|
|
{
|
|
payload.WithObject("streamSelection", m_streamSelection.Jsonize());
|
|
|
|
}
|
|
|
|
return payload;
|
|
}
|
|
|
|
} // namespace Model
|
|
} // namespace MediaPackageVod
|
|
} // namespace Aws
|