/** * 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 SESV2 { namespace Model { namespace ScalingModeMapper { static const int STANDARD_HASH = HashingUtils::HashString("STANDARD"); static const int MANAGED_HASH = HashingUtils::HashString("MANAGED"); ScalingMode GetScalingModeForName(const Aws::String& name) { int hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == STANDARD_HASH) { return ScalingMode::STANDARD; } else if (hashCode == MANAGED_HASH) { return ScalingMode::MANAGED; } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { overflowContainer->StoreOverflow(hashCode, name); return static_cast(hashCode); } return ScalingMode::NOT_SET; } Aws::String GetNameForScalingMode(ScalingMode enumValue) { switch(enumValue) { case ScalingMode::STANDARD: return "STANDARD"; case ScalingMode::MANAGED: return "MANAGED"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { return overflowContainer->RetrieveOverflow(static_cast(enumValue)); } return {}; } } } // namespace ScalingModeMapper } // namespace Model } // namespace SESV2 } // namespace Aws