/** * 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 FecOutputIncludeFecMapper { static const int COLUMN_HASH = HashingUtils::HashString("COLUMN"); static const int COLUMN_AND_ROW_HASH = HashingUtils::HashString("COLUMN_AND_ROW"); FecOutputIncludeFec GetFecOutputIncludeFecForName(const Aws::String& name) { int hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == COLUMN_HASH) { return FecOutputIncludeFec::COLUMN; } else if (hashCode == COLUMN_AND_ROW_HASH) { return FecOutputIncludeFec::COLUMN_AND_ROW; } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { overflowContainer->StoreOverflow(hashCode, name); return static_cast(hashCode); } return FecOutputIncludeFec::NOT_SET; } Aws::String GetNameForFecOutputIncludeFec(FecOutputIncludeFec enumValue) { switch(enumValue) { case FecOutputIncludeFec::COLUMN: return "COLUMN"; case FecOutputIncludeFec::COLUMN_AND_ROW: return "COLUMN_AND_ROW"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { return overflowContainer->RetrieveOverflow(static_cast(enumValue)); } return {}; } } } // namespace FecOutputIncludeFecMapper } // namespace Model } // namespace MediaLive } // namespace Aws