/** * 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 LineChartLineStyleMapper { static const int SOLID_HASH = HashingUtils::HashString("SOLID"); static const int DOTTED_HASH = HashingUtils::HashString("DOTTED"); static const int DASHED_HASH = HashingUtils::HashString("DASHED"); LineChartLineStyle GetLineChartLineStyleForName(const Aws::String& name) { int hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SOLID_HASH) { return LineChartLineStyle::SOLID; } else if (hashCode == DOTTED_HASH) { return LineChartLineStyle::DOTTED; } else if (hashCode == DASHED_HASH) { return LineChartLineStyle::DASHED; } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { overflowContainer->StoreOverflow(hashCode, name); return static_cast(hashCode); } return LineChartLineStyle::NOT_SET; } Aws::String GetNameForLineChartLineStyle(LineChartLineStyle enumValue) { switch(enumValue) { case LineChartLineStyle::SOLID: return "SOLID"; case LineChartLineStyle::DOTTED: return "DOTTED"; case LineChartLineStyle::DASHED: return "DASHED"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { return overflowContainer->RetrieveOverflow(static_cast(enumValue)); } return {}; } } } // namespace LineChartLineStyleMapper } // namespace Model } // namespace QuickSight } // namespace Aws