/** * 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 ChimeSDKMediaPipelines { namespace Model { namespace HorizontalTilePositionMapper { static const int Top_HASH = HashingUtils::HashString("Top"); static const int Bottom_HASH = HashingUtils::HashString("Bottom"); HorizontalTilePosition GetHorizontalTilePositionForName(const Aws::String& name) { int hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Top_HASH) { return HorizontalTilePosition::Top; } else if (hashCode == Bottom_HASH) { return HorizontalTilePosition::Bottom; } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { overflowContainer->StoreOverflow(hashCode, name); return static_cast(hashCode); } return HorizontalTilePosition::NOT_SET; } Aws::String GetNameForHorizontalTilePosition(HorizontalTilePosition enumValue) { switch(enumValue) { case HorizontalTilePosition::Top: return "Top"; case HorizontalTilePosition::Bottom: return "Bottom"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { return overflowContainer->RetrieveOverflow(static_cast(enumValue)); } return {}; } } } // namespace HorizontalTilePositionMapper } // namespace Model } // namespace ChimeSDKMediaPipelines } // namespace Aws