/** * 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 SageMakerFeatureStoreRuntime { namespace Model { namespace TargetStoreMapper { static const int OnlineStore_HASH = HashingUtils::HashString("OnlineStore"); static const int OfflineStore_HASH = HashingUtils::HashString("OfflineStore"); TargetStore GetTargetStoreForName(const Aws::String& name) { int hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == OnlineStore_HASH) { return TargetStore::OnlineStore; } else if (hashCode == OfflineStore_HASH) { return TargetStore::OfflineStore; } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { overflowContainer->StoreOverflow(hashCode, name); return static_cast(hashCode); } return TargetStore::NOT_SET; } Aws::String GetNameForTargetStore(TargetStore enumValue) { switch(enumValue) { case TargetStore::OnlineStore: return "OnlineStore"; case TargetStore::OfflineStore: return "OfflineStore"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { return overflowContainer->RetrieveOverflow(static_cast(enumValue)); } return {}; } } } // namespace TargetStoreMapper } // namespace Model } // namespace SageMakerFeatureStoreRuntime } // namespace Aws