/** * 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 Scte35NoRegionalBlackoutFlagMapper { static const int REGIONAL_BLACKOUT_HASH = HashingUtils::HashString("REGIONAL_BLACKOUT"); static const int NO_REGIONAL_BLACKOUT_HASH = HashingUtils::HashString("NO_REGIONAL_BLACKOUT"); Scte35NoRegionalBlackoutFlag GetScte35NoRegionalBlackoutFlagForName(const Aws::String& name) { int hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == REGIONAL_BLACKOUT_HASH) { return Scte35NoRegionalBlackoutFlag::REGIONAL_BLACKOUT; } else if (hashCode == NO_REGIONAL_BLACKOUT_HASH) { return Scte35NoRegionalBlackoutFlag::NO_REGIONAL_BLACKOUT; } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { overflowContainer->StoreOverflow(hashCode, name); return static_cast(hashCode); } return Scte35NoRegionalBlackoutFlag::NOT_SET; } Aws::String GetNameForScte35NoRegionalBlackoutFlag(Scte35NoRegionalBlackoutFlag enumValue) { switch(enumValue) { case Scte35NoRegionalBlackoutFlag::REGIONAL_BLACKOUT: return "REGIONAL_BLACKOUT"; case Scte35NoRegionalBlackoutFlag::NO_REGIONAL_BLACKOUT: return "NO_REGIONAL_BLACKOUT"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { return overflowContainer->RetrieveOverflow(static_cast(enumValue)); } return {}; } } } // namespace Scte35NoRegionalBlackoutFlagMapper } // namespace Model } // namespace MediaLive } // namespace Aws