/** * 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 Connect { namespace Model { namespace ContactFlowModuleStatusMapper { static const int PUBLISHED_HASH = HashingUtils::HashString("PUBLISHED"); static const int SAVED_HASH = HashingUtils::HashString("SAVED"); ContactFlowModuleStatus GetContactFlowModuleStatusForName(const Aws::String& name) { int hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PUBLISHED_HASH) { return ContactFlowModuleStatus::PUBLISHED; } else if (hashCode == SAVED_HASH) { return ContactFlowModuleStatus::SAVED; } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { overflowContainer->StoreOverflow(hashCode, name); return static_cast(hashCode); } return ContactFlowModuleStatus::NOT_SET; } Aws::String GetNameForContactFlowModuleStatus(ContactFlowModuleStatus enumValue) { switch(enumValue) { case ContactFlowModuleStatus::PUBLISHED: return "PUBLISHED"; case ContactFlowModuleStatus::SAVED: return "SAVED"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { return overflowContainer->RetrieveOverflow(static_cast(enumValue)); } return {}; } } } // namespace ContactFlowModuleStatusMapper } // namespace Model } // namespace Connect } // namespace Aws