/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::Utils::Json; using namespace Aws::Utils; namespace Aws { namespace KinesisVideoArchivedMedia { namespace Model { HLSFragmentSelector::HLSFragmentSelector() : m_fragmentSelectorType(HLSFragmentSelectorType::NOT_SET), m_fragmentSelectorTypeHasBeenSet(false), m_timestampRangeHasBeenSet(false) { } HLSFragmentSelector::HLSFragmentSelector(JsonView jsonValue) : m_fragmentSelectorType(HLSFragmentSelectorType::NOT_SET), m_fragmentSelectorTypeHasBeenSet(false), m_timestampRangeHasBeenSet(false) { *this = jsonValue; } HLSFragmentSelector& HLSFragmentSelector::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("FragmentSelectorType")) { m_fragmentSelectorType = HLSFragmentSelectorTypeMapper::GetHLSFragmentSelectorTypeForName(jsonValue.GetString("FragmentSelectorType")); m_fragmentSelectorTypeHasBeenSet = true; } if(jsonValue.ValueExists("TimestampRange")) { m_timestampRange = jsonValue.GetObject("TimestampRange"); m_timestampRangeHasBeenSet = true; } return *this; } JsonValue HLSFragmentSelector::Jsonize() const { JsonValue payload; if(m_fragmentSelectorTypeHasBeenSet) { payload.WithString("FragmentSelectorType", HLSFragmentSelectorTypeMapper::GetNameForHLSFragmentSelectorType(m_fragmentSelectorType)); } if(m_timestampRangeHasBeenSet) { payload.WithObject("TimestampRange", m_timestampRange.Jsonize()); } return payload; } } // namespace Model } // namespace KinesisVideoArchivedMedia } // namespace Aws