/** * 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 DatabaseMigrationService { namespace Model { namespace ReleaseStatusValuesMapper { static const int beta_HASH = HashingUtils::HashString("beta"); static const int prod_HASH = HashingUtils::HashString("prod"); ReleaseStatusValues GetReleaseStatusValuesForName(const Aws::String& name) { int hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == beta_HASH) { return ReleaseStatusValues::beta; } else if (hashCode == prod_HASH) { return ReleaseStatusValues::prod; } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { overflowContainer->StoreOverflow(hashCode, name); return static_cast(hashCode); } return ReleaseStatusValues::NOT_SET; } Aws::String GetNameForReleaseStatusValues(ReleaseStatusValues enumValue) { switch(enumValue) { case ReleaseStatusValues::beta: return "beta"; case ReleaseStatusValues::prod: return "prod"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { return overflowContainer->RetrieveOverflow(static_cast(enumValue)); } return {}; } } } // namespace ReleaseStatusValuesMapper } // namespace Model } // namespace DatabaseMigrationService } // namespace Aws