/** * 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 CleanRooms { namespace Model { namespace AnalysisMethodMapper { static const int DIRECT_QUERY_HASH = HashingUtils::HashString("DIRECT_QUERY"); AnalysisMethod GetAnalysisMethodForName(const Aws::String& name) { int hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DIRECT_QUERY_HASH) { return AnalysisMethod::DIRECT_QUERY; } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { overflowContainer->StoreOverflow(hashCode, name); return static_cast(hashCode); } return AnalysisMethod::NOT_SET; } Aws::String GetNameForAnalysisMethod(AnalysisMethod enumValue) { switch(enumValue) { case AnalysisMethod::DIRECT_QUERY: return "DIRECT_QUERY"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { return overflowContainer->RetrieveOverflow(static_cast(enumValue)); } return {}; } } } // namespace AnalysisMethodMapper } // namespace Model } // namespace CleanRooms } // namespace Aws