This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-workspaces/source/model/WorkspaceImageIngestionProcess.cpp

78 lines
2.5 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/workspaces/model/WorkspaceImageIngestionProcess.h>
#include <aws/core/utils/HashingUtils.h>
#include <aws/core/Globals.h>
#include <aws/core/utils/EnumParseOverflowContainer.h>
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<WorkspaceImageIngestionProcess>(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<int>(enumValue));
}
return {};
}
}
} // namespace WorkspaceImageIngestionProcessMapper
} // namespace Model
} // namespace WorkSpaces
} // namespace Aws