/** * 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 EvaluationFormSingleSelectQuestionDisplayModeMapper { static const int DROPDOWN_HASH = HashingUtils::HashString("DROPDOWN"); static const int RADIO_HASH = HashingUtils::HashString("RADIO"); EvaluationFormSingleSelectQuestionDisplayMode GetEvaluationFormSingleSelectQuestionDisplayModeForName(const Aws::String& name) { int hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == DROPDOWN_HASH) { return EvaluationFormSingleSelectQuestionDisplayMode::DROPDOWN; } else if (hashCode == RADIO_HASH) { return EvaluationFormSingleSelectQuestionDisplayMode::RADIO; } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { overflowContainer->StoreOverflow(hashCode, name); return static_cast(hashCode); } return EvaluationFormSingleSelectQuestionDisplayMode::NOT_SET; } Aws::String GetNameForEvaluationFormSingleSelectQuestionDisplayMode(EvaluationFormSingleSelectQuestionDisplayMode enumValue) { switch(enumValue) { case EvaluationFormSingleSelectQuestionDisplayMode::DROPDOWN: return "DROPDOWN"; case EvaluationFormSingleSelectQuestionDisplayMode::RADIO: return "RADIO"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { return overflowContainer->RetrieveOverflow(static_cast(enumValue)); } return {}; } } } // namespace EvaluationFormSingleSelectQuestionDisplayModeMapper } // namespace Model } // namespace Connect } // namespace Aws