/** * 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 QuickSight { namespace Model { namespace ArcThicknessOptionsMapper { static const int SMALL_HASH = HashingUtils::HashString("SMALL"); static const int MEDIUM_HASH = HashingUtils::HashString("MEDIUM"); static const int LARGE_HASH = HashingUtils::HashString("LARGE"); ArcThicknessOptions GetArcThicknessOptionsForName(const Aws::String& name) { int hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SMALL_HASH) { return ArcThicknessOptions::SMALL; } else if (hashCode == MEDIUM_HASH) { return ArcThicknessOptions::MEDIUM; } else if (hashCode == LARGE_HASH) { return ArcThicknessOptions::LARGE; } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { overflowContainer->StoreOverflow(hashCode, name); return static_cast(hashCode); } return ArcThicknessOptions::NOT_SET; } Aws::String GetNameForArcThicknessOptions(ArcThicknessOptions enumValue) { switch(enumValue) { case ArcThicknessOptions::SMALL: return "SMALL"; case ArcThicknessOptions::MEDIUM: return "MEDIUM"; case ArcThicknessOptions::LARGE: return "LARGE"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { return overflowContainer->RetrieveOverflow(static_cast(enumValue)); } return {}; } } } // namespace ArcThicknessOptionsMapper } // namespace Model } // namespace QuickSight } // namespace Aws