/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include #include using namespace Aws::Utils; namespace Aws { namespace MediaConvert { namespace Model { namespace Mpeg2DynamicSubGopMapper { static const int ADAPTIVE_HASH = HashingUtils::HashString("ADAPTIVE"); static const int STATIC__HASH = HashingUtils::HashString("STATIC"); Mpeg2DynamicSubGop GetMpeg2DynamicSubGopForName(const Aws::String& name) { int hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ADAPTIVE_HASH) { return Mpeg2DynamicSubGop::ADAPTIVE; } else if (hashCode == STATIC__HASH) { return Mpeg2DynamicSubGop::STATIC_; } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { overflowContainer->StoreOverflow(hashCode, name); return static_cast(hashCode); } return Mpeg2DynamicSubGop::NOT_SET; } Aws::String GetNameForMpeg2DynamicSubGop(Mpeg2DynamicSubGop enumValue) { switch(enumValue) { case Mpeg2DynamicSubGop::ADAPTIVE: return "ADAPTIVE"; case Mpeg2DynamicSubGop::STATIC_: return "STATIC"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { return overflowContainer->RetrieveOverflow(static_cast(enumValue)); } return {}; } } } // namespace Mpeg2DynamicSubGopMapper } // namespace Model } // namespace MediaConvert } // namespace Aws