/** * 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 EC2 { namespace Model { namespace ResetFpgaImageAttributeNameMapper { static const int loadPermission_HASH = HashingUtils::HashString("loadPermission"); ResetFpgaImageAttributeName GetResetFpgaImageAttributeNameForName(const Aws::String& name) { int hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == loadPermission_HASH) { return ResetFpgaImageAttributeName::loadPermission; } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { overflowContainer->StoreOverflow(hashCode, name); return static_cast(hashCode); } return ResetFpgaImageAttributeName::NOT_SET; } Aws::String GetNameForResetFpgaImageAttributeName(ResetFpgaImageAttributeName enumValue) { switch(enumValue) { case ResetFpgaImageAttributeName::loadPermission: return "loadPermission"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { return overflowContainer->RetrieveOverflow(static_cast(enumValue)); } return {}; } } } // namespace ResetFpgaImageAttributeNameMapper } // namespace Model } // namespace EC2 } // namespace Aws