/** * 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 GlobalConfigurationOutputLockingModeMapper { static const int EPOCH_LOCKING_HASH = HashingUtils::HashString("EPOCH_LOCKING"); static const int PIPELINE_LOCKING_HASH = HashingUtils::HashString("PIPELINE_LOCKING"); GlobalConfigurationOutputLockingMode GetGlobalConfigurationOutputLockingModeForName(const Aws::String& name) { int hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EPOCH_LOCKING_HASH) { return GlobalConfigurationOutputLockingMode::EPOCH_LOCKING; } else if (hashCode == PIPELINE_LOCKING_HASH) { return GlobalConfigurationOutputLockingMode::PIPELINE_LOCKING; } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { overflowContainer->StoreOverflow(hashCode, name); return static_cast(hashCode); } return GlobalConfigurationOutputLockingMode::NOT_SET; } Aws::String GetNameForGlobalConfigurationOutputLockingMode(GlobalConfigurationOutputLockingMode enumValue) { switch(enumValue) { case GlobalConfigurationOutputLockingMode::EPOCH_LOCKING: return "EPOCH_LOCKING"; case GlobalConfigurationOutputLockingMode::PIPELINE_LOCKING: return "PIPELINE_LOCKING"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { return overflowContainer->RetrieveOverflow(static_cast(enumValue)); } return {}; } } } // namespace GlobalConfigurationOutputLockingModeMapper } // namespace Model } // namespace MediaLive } // namespace Aws