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-kinesis-video-archived-media/source/model/DASHFragmentSelector.cpp

76 lines
1.8 KiB
C++
Raw Normal View History

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/kinesis-video-archived-media/model/DASHFragmentSelector.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace KinesisVideoArchivedMedia
{
namespace Model
{
DASHFragmentSelector::DASHFragmentSelector() :
m_fragmentSelectorType(DASHFragmentSelectorType::NOT_SET),
m_fragmentSelectorTypeHasBeenSet(false),
m_timestampRangeHasBeenSet(false)
{
}
DASHFragmentSelector::DASHFragmentSelector(JsonView jsonValue) :
m_fragmentSelectorType(DASHFragmentSelectorType::NOT_SET),
m_fragmentSelectorTypeHasBeenSet(false),
m_timestampRangeHasBeenSet(false)
{
*this = jsonValue;
}
DASHFragmentSelector& DASHFragmentSelector::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("FragmentSelectorType"))
{
m_fragmentSelectorType = DASHFragmentSelectorTypeMapper::GetDASHFragmentSelectorTypeForName(jsonValue.GetString("FragmentSelectorType"));
m_fragmentSelectorTypeHasBeenSet = true;
}
if(jsonValue.ValueExists("TimestampRange"))
{
m_timestampRange = jsonValue.GetObject("TimestampRange");
m_timestampRangeHasBeenSet = true;
}
return *this;
}
JsonValue DASHFragmentSelector::Jsonize() const
{
JsonValue payload;
if(m_fragmentSelectorTypeHasBeenSet)
{
payload.WithString("FragmentSelectorType", DASHFragmentSelectorTypeMapper::GetNameForDASHFragmentSelectorType(m_fragmentSelectorType));
}
if(m_timestampRangeHasBeenSet)
{
payload.WithObject("TimestampRange", m_timestampRange.Jsonize());
}
return payload;
}
} // namespace Model
} // namespace KinesisVideoArchivedMedia
} // namespace Aws