/** * 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 MediaLive { namespace Model { namespace Ac3MetadataControlMapper { static const int FOLLOW_INPUT_HASH = HashingUtils::HashString("FOLLOW_INPUT"); static const int USE_CONFIGURED_HASH = HashingUtils::HashString("USE_CONFIGURED"); Ac3MetadataControl GetAc3MetadataControlForName(const Aws::String& name) { int hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FOLLOW_INPUT_HASH) { return Ac3MetadataControl::FOLLOW_INPUT; } else if (hashCode == USE_CONFIGURED_HASH) { return Ac3MetadataControl::USE_CONFIGURED; } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { overflowContainer->StoreOverflow(hashCode, name); return static_cast(hashCode); } return Ac3MetadataControl::NOT_SET; } Aws::String GetNameForAc3MetadataControl(Ac3MetadataControl enumValue) { switch(enumValue) { case Ac3MetadataControl::FOLLOW_INPUT: return "FOLLOW_INPUT"; case Ac3MetadataControl::USE_CONFIGURED: return "USE_CONFIGURED"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { return overflowContainer->RetrieveOverflow(static_cast(enumValue)); } return {}; } } } // namespace Ac3MetadataControlMapper } // namespace Model } // namespace MediaLive } // namespace Aws