/** * 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 Glue { namespace Model { namespace QuoteCharMapper { static const int quote_HASH = HashingUtils::HashString("quote"); static const int quillemet_HASH = HashingUtils::HashString("quillemet"); static const int single_quote_HASH = HashingUtils::HashString("single_quote"); static const int disabled_HASH = HashingUtils::HashString("disabled"); QuoteChar GetQuoteCharForName(const Aws::String& name) { int hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == quote_HASH) { return QuoteChar::quote; } else if (hashCode == quillemet_HASH) { return QuoteChar::quillemet; } else if (hashCode == single_quote_HASH) { return QuoteChar::single_quote; } else if (hashCode == disabled_HASH) { return QuoteChar::disabled; } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { overflowContainer->StoreOverflow(hashCode, name); return static_cast(hashCode); } return QuoteChar::NOT_SET; } Aws::String GetNameForQuoteChar(QuoteChar enumValue) { switch(enumValue) { case QuoteChar::quote: return "quote"; case QuoteChar::quillemet: return "quillemet"; case QuoteChar::single_quote: return "single_quote"; case QuoteChar::disabled: return "disabled"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { return overflowContainer->RetrieveOverflow(static_cast(enumValue)); } return {}; } } } // namespace QuoteCharMapper } // namespace Model } // namespace Glue } // namespace Aws