/** * 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 Outposts { namespace Model { namespace MaximumSupportedWeightLbsMapper { static const int NO_LIMIT_HASH = HashingUtils::HashString("NO_LIMIT"); static const int MAX_1400_LBS_HASH = HashingUtils::HashString("MAX_1400_LBS"); static const int MAX_1600_LBS_HASH = HashingUtils::HashString("MAX_1600_LBS"); static const int MAX_1800_LBS_HASH = HashingUtils::HashString("MAX_1800_LBS"); static const int MAX_2000_LBS_HASH = HashingUtils::HashString("MAX_2000_LBS"); MaximumSupportedWeightLbs GetMaximumSupportedWeightLbsForName(const Aws::String& name) { int hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == NO_LIMIT_HASH) { return MaximumSupportedWeightLbs::NO_LIMIT; } else if (hashCode == MAX_1400_LBS_HASH) { return MaximumSupportedWeightLbs::MAX_1400_LBS; } else if (hashCode == MAX_1600_LBS_HASH) { return MaximumSupportedWeightLbs::MAX_1600_LBS; } else if (hashCode == MAX_1800_LBS_HASH) { return MaximumSupportedWeightLbs::MAX_1800_LBS; } else if (hashCode == MAX_2000_LBS_HASH) { return MaximumSupportedWeightLbs::MAX_2000_LBS; } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { overflowContainer->StoreOverflow(hashCode, name); return static_cast(hashCode); } return MaximumSupportedWeightLbs::NOT_SET; } Aws::String GetNameForMaximumSupportedWeightLbs(MaximumSupportedWeightLbs enumValue) { switch(enumValue) { case MaximumSupportedWeightLbs::NO_LIMIT: return "NO_LIMIT"; case MaximumSupportedWeightLbs::MAX_1400_LBS: return "MAX_1400_LBS"; case MaximumSupportedWeightLbs::MAX_1600_LBS: return "MAX_1600_LBS"; case MaximumSupportedWeightLbs::MAX_1800_LBS: return "MAX_1800_LBS"; case MaximumSupportedWeightLbs::MAX_2000_LBS: return "MAX_2000_LBS"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { return overflowContainer->RetrieveOverflow(static_cast(enumValue)); } return {}; } } } // namespace MaximumSupportedWeightLbsMapper } // namespace Model } // namespace Outposts } // namespace Aws