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