/** * 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 Connect { namespace Model { namespace ComparisonMapper { static const int LT_HASH = HashingUtils::HashString("LT"); Comparison GetComparisonForName(const Aws::String& name) { int hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == LT_HASH) { return Comparison::LT; } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { overflowContainer->StoreOverflow(hashCode, name); return static_cast(hashCode); } return Comparison::NOT_SET; } Aws::String GetNameForComparison(Comparison enumValue) { switch(enumValue) { case Comparison::LT: return "LT"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { return overflowContainer->RetrieveOverflow(static_cast(enumValue)); } return {}; } } } // namespace ComparisonMapper } // namespace Model } // namespace Connect } // namespace Aws