/** * 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 PadVideoMapper { static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); static const int BLACK_HASH = HashingUtils::HashString("BLACK"); PadVideo GetPadVideoForName(const Aws::String& name) { int hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DISABLED_HASH) { return PadVideo::DISABLED; } else if (hashCode == BLACK_HASH) { return PadVideo::BLACK; } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { overflowContainer->StoreOverflow(hashCode, name); return static_cast(hashCode); } return PadVideo::NOT_SET; } Aws::String GetNameForPadVideo(PadVideo enumValue) { switch(enumValue) { case PadVideo::DISABLED: return "DISABLED"; case PadVideo::BLACK: return "BLACK"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { return overflowContainer->RetrieveOverflow(static_cast(enumValue)); } return {}; } } } // namespace PadVideoMapper } // namespace Model } // namespace MediaConvert } // namespace Aws