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