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-mediatailor/source/model/DashConfiguration.cpp

91 lines
2.0 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/mediatailor/model/DashConfiguration.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
{
DashConfiguration::DashConfiguration() :
m_manifestEndpointPrefixHasBeenSet(false),
m_mpdLocationHasBeenSet(false),
m_originManifestType(OriginManifestType::NOT_SET),
m_originManifestTypeHasBeenSet(false)
{
}
DashConfiguration::DashConfiguration(JsonView jsonValue) :
m_manifestEndpointPrefixHasBeenSet(false),
m_mpdLocationHasBeenSet(false),
m_originManifestType(OriginManifestType::NOT_SET),
m_originManifestTypeHasBeenSet(false)
{
*this = jsonValue;
}
DashConfiguration& DashConfiguration::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("ManifestEndpointPrefix"))
{
m_manifestEndpointPrefix = jsonValue.GetString("ManifestEndpointPrefix");
m_manifestEndpointPrefixHasBeenSet = true;
}
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 DashConfiguration::Jsonize() const
{
JsonValue payload;
if(m_manifestEndpointPrefixHasBeenSet)
{
payload.WithString("ManifestEndpointPrefix", m_manifestEndpointPrefix);
}
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