/** * 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 Mp4FreeSpaceBoxMapper { static const int INCLUDE_HASH = HashingUtils::HashString("INCLUDE"); static const int EXCLUDE_HASH = HashingUtils::HashString("EXCLUDE"); Mp4FreeSpaceBox GetMp4FreeSpaceBoxForName(const Aws::String& name) { int hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INCLUDE_HASH) { return Mp4FreeSpaceBox::INCLUDE; } else if (hashCode == EXCLUDE_HASH) { return Mp4FreeSpaceBox::EXCLUDE; } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { overflowContainer->StoreOverflow(hashCode, name); return static_cast(hashCode); } return Mp4FreeSpaceBox::NOT_SET; } Aws::String GetNameForMp4FreeSpaceBox(Mp4FreeSpaceBox enumValue) { switch(enumValue) { case Mp4FreeSpaceBox::INCLUDE: return "INCLUDE"; case Mp4FreeSpaceBox::EXCLUDE: return "EXCLUDE"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { return overflowContainer->RetrieveOverflow(static_cast(enumValue)); } return {}; } } } // namespace Mp4FreeSpaceBoxMapper } // namespace Model } // namespace MediaConvert } // namespace Aws