/** * 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 NumericQuestionPropertyAutomationLabelMapper { static const int OVERALL_CUSTOMER_SENTIMENT_SCORE_HASH = HashingUtils::HashString("OVERALL_CUSTOMER_SENTIMENT_SCORE"); static const int OVERALL_AGENT_SENTIMENT_SCORE_HASH = HashingUtils::HashString("OVERALL_AGENT_SENTIMENT_SCORE"); static const int NON_TALK_TIME_HASH = HashingUtils::HashString("NON_TALK_TIME"); static const int NON_TALK_TIME_PERCENTAGE_HASH = HashingUtils::HashString("NON_TALK_TIME_PERCENTAGE"); static const int NUMBER_OF_INTERRUPTIONS_HASH = HashingUtils::HashString("NUMBER_OF_INTERRUPTIONS"); static const int CONTACT_DURATION_HASH = HashingUtils::HashString("CONTACT_DURATION"); static const int AGENT_INTERACTION_DURATION_HASH = HashingUtils::HashString("AGENT_INTERACTION_DURATION"); static const int CUSTOMER_HOLD_TIME_HASH = HashingUtils::HashString("CUSTOMER_HOLD_TIME"); NumericQuestionPropertyAutomationLabel GetNumericQuestionPropertyAutomationLabelForName(const Aws::String& name) { int hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == OVERALL_CUSTOMER_SENTIMENT_SCORE_HASH) { return NumericQuestionPropertyAutomationLabel::OVERALL_CUSTOMER_SENTIMENT_SCORE; } else if (hashCode == OVERALL_AGENT_SENTIMENT_SCORE_HASH) { return NumericQuestionPropertyAutomationLabel::OVERALL_AGENT_SENTIMENT_SCORE; } else if (hashCode == NON_TALK_TIME_HASH) { return NumericQuestionPropertyAutomationLabel::NON_TALK_TIME; } else if (hashCode == NON_TALK_TIME_PERCENTAGE_HASH) { return NumericQuestionPropertyAutomationLabel::NON_TALK_TIME_PERCENTAGE; } else if (hashCode == NUMBER_OF_INTERRUPTIONS_HASH) { return NumericQuestionPropertyAutomationLabel::NUMBER_OF_INTERRUPTIONS; } else if (hashCode == CONTACT_DURATION_HASH) { return NumericQuestionPropertyAutomationLabel::CONTACT_DURATION; } else if (hashCode == AGENT_INTERACTION_DURATION_HASH) { return NumericQuestionPropertyAutomationLabel::AGENT_INTERACTION_DURATION; } else if (hashCode == CUSTOMER_HOLD_TIME_HASH) { return NumericQuestionPropertyAutomationLabel::CUSTOMER_HOLD_TIME; } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { overflowContainer->StoreOverflow(hashCode, name); return static_cast(hashCode); } return NumericQuestionPropertyAutomationLabel::NOT_SET; } Aws::String GetNameForNumericQuestionPropertyAutomationLabel(NumericQuestionPropertyAutomationLabel enumValue) { switch(enumValue) { case NumericQuestionPropertyAutomationLabel::OVERALL_CUSTOMER_SENTIMENT_SCORE: return "OVERALL_CUSTOMER_SENTIMENT_SCORE"; case NumericQuestionPropertyAutomationLabel::OVERALL_AGENT_SENTIMENT_SCORE: return "OVERALL_AGENT_SENTIMENT_SCORE"; case NumericQuestionPropertyAutomationLabel::NON_TALK_TIME: return "NON_TALK_TIME"; case NumericQuestionPropertyAutomationLabel::NON_TALK_TIME_PERCENTAGE: return "NON_TALK_TIME_PERCENTAGE"; case NumericQuestionPropertyAutomationLabel::NUMBER_OF_INTERRUPTIONS: return "NUMBER_OF_INTERRUPTIONS"; case NumericQuestionPropertyAutomationLabel::CONTACT_DURATION: return "CONTACT_DURATION"; case NumericQuestionPropertyAutomationLabel::AGENT_INTERACTION_DURATION: return "AGENT_INTERACTION_DURATION"; case NumericQuestionPropertyAutomationLabel::CUSTOMER_HOLD_TIME: return "CUSTOMER_HOLD_TIME"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { return overflowContainer->RetrieveOverflow(static_cast(enumValue)); } return {}; } } } // namespace NumericQuestionPropertyAutomationLabelMapper } // namespace Model } // namespace Connect } // namespace Aws