/** * 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 MetadataOperationMapper { static const int CREATE_HASH = HashingUtils::HashString("CREATE"); MetadataOperation GetMetadataOperationForName(const Aws::String& name) { int hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATE_HASH) { return MetadataOperation::CREATE; } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { overflowContainer->StoreOverflow(hashCode, name); return static_cast(hashCode); } return MetadataOperation::NOT_SET; } Aws::String GetNameForMetadataOperation(MetadataOperation enumValue) { switch(enumValue) { case MetadataOperation::CREATE: return "CREATE"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { return overflowContainer->RetrieveOverflow(static_cast(enumValue)); } return {}; } } } // namespace MetadataOperationMapper } // namespace Model } // namespace Glue } // namespace Aws