/** * 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 DvbddsHandlingMapper { static const int NONE_HASH = HashingUtils::HashString("NONE"); static const int SPECIFIED_HASH = HashingUtils::HashString("SPECIFIED"); static const int NO_DISPLAY_WINDOW_HASH = HashingUtils::HashString("NO_DISPLAY_WINDOW"); DvbddsHandling GetDvbddsHandlingForName(const Aws::String& name) { int hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NONE_HASH) { return DvbddsHandling::NONE; } else if (hashCode == SPECIFIED_HASH) { return DvbddsHandling::SPECIFIED; } else if (hashCode == NO_DISPLAY_WINDOW_HASH) { return DvbddsHandling::NO_DISPLAY_WINDOW; } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { overflowContainer->StoreOverflow(hashCode, name); return static_cast(hashCode); } return DvbddsHandling::NOT_SET; } Aws::String GetNameForDvbddsHandling(DvbddsHandling enumValue) { switch(enumValue) { case DvbddsHandling::NONE: return "NONE"; case DvbddsHandling::SPECIFIED: return "SPECIFIED"; case DvbddsHandling::NO_DISPLAY_WINDOW: return "NO_DISPLAY_WINDOW"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { return overflowContainer->RetrieveOverflow(static_cast(enumValue)); } return {}; } } } // namespace DvbddsHandlingMapper } // namespace Model } // namespace MediaConvert } // namespace Aws