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/DashConfigurationForPut.cpp

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