/** * 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 WorkSpaces { namespace Model { namespace WorkspaceImageIngestionProcessMapper { static const int BYOL_REGULAR_HASH = HashingUtils::HashString("BYOL_REGULAR"); static const int BYOL_GRAPHICS_HASH = HashingUtils::HashString("BYOL_GRAPHICS"); static const int BYOL_GRAPHICSPRO_HASH = HashingUtils::HashString("BYOL_GRAPHICSPRO"); WorkspaceImageIngestionProcess GetWorkspaceImageIngestionProcessForName(const Aws::String& name) { int hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == BYOL_REGULAR_HASH) { return WorkspaceImageIngestionProcess::BYOL_REGULAR; } else if (hashCode == BYOL_GRAPHICS_HASH) { return WorkspaceImageIngestionProcess::BYOL_GRAPHICS; } else if (hashCode == BYOL_GRAPHICSPRO_HASH) { return WorkspaceImageIngestionProcess::BYOL_GRAPHICSPRO; } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { overflowContainer->StoreOverflow(hashCode, name); return static_cast(hashCode); } return WorkspaceImageIngestionProcess::NOT_SET; } Aws::String GetNameForWorkspaceImageIngestionProcess(WorkspaceImageIngestionProcess enumValue) { switch(enumValue) { case WorkspaceImageIngestionProcess::BYOL_REGULAR: return "BYOL_REGULAR"; case WorkspaceImageIngestionProcess::BYOL_GRAPHICS: return "BYOL_GRAPHICS"; case WorkspaceImageIngestionProcess::BYOL_GRAPHICSPRO: return "BYOL_GRAPHICSPRO"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { return overflowContainer->RetrieveOverflow(static_cast(enumValue)); } return {}; } } } // namespace WorkspaceImageIngestionProcessMapper } // namespace Model } // namespace WorkSpaces } // namespace Aws