/** * 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 Lambda { namespace Model { namespace FullDocumentMapper { static const int UpdateLookup_HASH = HashingUtils::HashString("UpdateLookup"); static const int Default_HASH = HashingUtils::HashString("Default"); FullDocument GetFullDocumentForName(const Aws::String& name) { int hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == UpdateLookup_HASH) { return FullDocument::UpdateLookup; } else if (hashCode == Default_HASH) { return FullDocument::Default; } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { overflowContainer->StoreOverflow(hashCode, name); return static_cast(hashCode); } return FullDocument::NOT_SET; } Aws::String GetNameForFullDocument(FullDocument enumValue) { switch(enumValue) { case FullDocument::UpdateLookup: return "UpdateLookup"; case FullDocument::Default: return "Default"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { return overflowContainer->RetrieveOverflow(static_cast(enumValue)); } return {}; } } } // namespace FullDocumentMapper } // namespace Model } // namespace Lambda } // namespace Aws