/** * 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 EmbeddedTerminateCaptionsMapper { static const int END_OF_INPUT_HASH = HashingUtils::HashString("END_OF_INPUT"); static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); EmbeddedTerminateCaptions GetEmbeddedTerminateCaptionsForName(const Aws::String& name) { int hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == END_OF_INPUT_HASH) { return EmbeddedTerminateCaptions::END_OF_INPUT; } else if (hashCode == DISABLED_HASH) { return EmbeddedTerminateCaptions::DISABLED; } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { overflowContainer->StoreOverflow(hashCode, name); return static_cast(hashCode); } return EmbeddedTerminateCaptions::NOT_SET; } Aws::String GetNameForEmbeddedTerminateCaptions(EmbeddedTerminateCaptions enumValue) { switch(enumValue) { case EmbeddedTerminateCaptions::END_OF_INPUT: return "END_OF_INPUT"; case EmbeddedTerminateCaptions::DISABLED: return "DISABLED"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { return overflowContainer->RetrieveOverflow(static_cast(enumValue)); } return {}; } } } // namespace EmbeddedTerminateCaptionsMapper } // namespace Model } // namespace MediaConvert } // namespace Aws