/** * 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 IVS { namespace Model { namespace RecordingConfigurationStateMapper { static const int CREATING_HASH = HashingUtils::HashString("CREATING"); static const int CREATE_FAILED_HASH = HashingUtils::HashString("CREATE_FAILED"); static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); RecordingConfigurationState GetRecordingConfigurationStateForName(const Aws::String& name) { int hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return RecordingConfigurationState::CREATING; } else if (hashCode == CREATE_FAILED_HASH) { return RecordingConfigurationState::CREATE_FAILED; } else if (hashCode == ACTIVE_HASH) { return RecordingConfigurationState::ACTIVE; } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { overflowContainer->StoreOverflow(hashCode, name); return static_cast(hashCode); } return RecordingConfigurationState::NOT_SET; } Aws::String GetNameForRecordingConfigurationState(RecordingConfigurationState enumValue) { switch(enumValue) { case RecordingConfigurationState::CREATING: return "CREATING"; case RecordingConfigurationState::CREATE_FAILED: return "CREATE_FAILED"; case RecordingConfigurationState::ACTIVE: return "ACTIVE"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { return overflowContainer->RetrieveOverflow(static_cast(enumValue)); } return {}; } } } // namespace RecordingConfigurationStateMapper } // namespace Model } // namespace IVS } // namespace Aws