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