/** * 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 MediaConvert { namespace Model { namespace MsSmoothAudioDeduplicationMapper { static const int COMBINE_DUPLICATE_STREAMS_HASH = HashingUtils::HashString("COMBINE_DUPLICATE_STREAMS"); static const int NONE_HASH = HashingUtils::HashString("NONE"); MsSmoothAudioDeduplication GetMsSmoothAudioDeduplicationForName(const Aws::String& name) { int hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == COMBINE_DUPLICATE_STREAMS_HASH) { return MsSmoothAudioDeduplication::COMBINE_DUPLICATE_STREAMS; } else if (hashCode == NONE_HASH) { return MsSmoothAudioDeduplication::NONE; } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { overflowContainer->StoreOverflow(hashCode, name); return static_cast(hashCode); } return MsSmoothAudioDeduplication::NOT_SET; } Aws::String GetNameForMsSmoothAudioDeduplication(MsSmoothAudioDeduplication enumValue) { switch(enumValue) { case MsSmoothAudioDeduplication::COMBINE_DUPLICATE_STREAMS: return "COMBINE_DUPLICATE_STREAMS"; case MsSmoothAudioDeduplication::NONE: return "NONE"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { return overflowContainer->RetrieveOverflow(static_cast(enumValue)); } return {}; } } } // namespace MsSmoothAudioDeduplicationMapper } // namespace Model } // namespace MediaConvert } // namespace Aws