/** * 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 ChimeSDKMeetings { namespace Model { namespace TranscribePartialResultsStabilityMapper { static const int low_HASH = HashingUtils::HashString("low"); static const int medium_HASH = HashingUtils::HashString("medium"); static const int high_HASH = HashingUtils::HashString("high"); TranscribePartialResultsStability GetTranscribePartialResultsStabilityForName(const Aws::String& name) { int hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == low_HASH) { return TranscribePartialResultsStability::low; } else if (hashCode == medium_HASH) { return TranscribePartialResultsStability::medium; } else if (hashCode == high_HASH) { return TranscribePartialResultsStability::high; } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { overflowContainer->StoreOverflow(hashCode, name); return static_cast(hashCode); } return TranscribePartialResultsStability::NOT_SET; } Aws::String GetNameForTranscribePartialResultsStability(TranscribePartialResultsStability enumValue) { switch(enumValue) { case TranscribePartialResultsStability::low: return "low"; case TranscribePartialResultsStability::medium: return "medium"; case TranscribePartialResultsStability::high: return "high"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { return overflowContainer->RetrieveOverflow(static_cast(enumValue)); } return {}; } } } // namespace TranscribePartialResultsStabilityMapper } // namespace Model } // namespace ChimeSDKMeetings } // namespace Aws