/** * 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 MediaLive { namespace Model { namespace SmoothGroupAudioOnlyTimecodeControlMapper { static const int PASSTHROUGH_HASH = HashingUtils::HashString("PASSTHROUGH"); static const int USE_CONFIGURED_CLOCK_HASH = HashingUtils::HashString("USE_CONFIGURED_CLOCK"); SmoothGroupAudioOnlyTimecodeControl GetSmoothGroupAudioOnlyTimecodeControlForName(const Aws::String& name) { int hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PASSTHROUGH_HASH) { return SmoothGroupAudioOnlyTimecodeControl::PASSTHROUGH; } else if (hashCode == USE_CONFIGURED_CLOCK_HASH) { return SmoothGroupAudioOnlyTimecodeControl::USE_CONFIGURED_CLOCK; } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { overflowContainer->StoreOverflow(hashCode, name); return static_cast(hashCode); } return SmoothGroupAudioOnlyTimecodeControl::NOT_SET; } Aws::String GetNameForSmoothGroupAudioOnlyTimecodeControl(SmoothGroupAudioOnlyTimecodeControl enumValue) { switch(enumValue) { case SmoothGroupAudioOnlyTimecodeControl::PASSTHROUGH: return "PASSTHROUGH"; case SmoothGroupAudioOnlyTimecodeControl::USE_CONFIGURED_CLOCK: return "USE_CONFIGURED_CLOCK"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { return overflowContainer->RetrieveOverflow(static_cast(enumValue)); } return {}; } } } // namespace SmoothGroupAudioOnlyTimecodeControlMapper } // namespace Model } // namespace MediaLive } // namespace Aws