/** * 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 WellArchitected { namespace Model { namespace ImportLensStatusMapper { static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); static const int COMPLETE_HASH = HashingUtils::HashString("COMPLETE"); static const int ERROR__HASH = HashingUtils::HashString("ERROR"); ImportLensStatus GetImportLensStatusForName(const Aws::String& name) { int hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == IN_PROGRESS_HASH) { return ImportLensStatus::IN_PROGRESS; } else if (hashCode == COMPLETE_HASH) { return ImportLensStatus::COMPLETE; } else if (hashCode == ERROR__HASH) { return ImportLensStatus::ERROR_; } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { overflowContainer->StoreOverflow(hashCode, name); return static_cast(hashCode); } return ImportLensStatus::NOT_SET; } Aws::String GetNameForImportLensStatus(ImportLensStatus enumValue) { switch(enumValue) { case ImportLensStatus::IN_PROGRESS: return "IN_PROGRESS"; case ImportLensStatus::COMPLETE: return "COMPLETE"; case ImportLensStatus::ERROR_: return "ERROR"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { return overflowContainer->RetrieveOverflow(static_cast(enumValue)); } return {}; } } } // namespace ImportLensStatusMapper } // namespace Model } // namespace WellArchitected } // namespace Aws