/** * 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 QuickSight { namespace Model { namespace ValueWhenUnsetOptionMapper { static const int RECOMMENDED_VALUE_HASH = HashingUtils::HashString("RECOMMENDED_VALUE"); static const int NULL__HASH = HashingUtils::HashString("NULL"); ValueWhenUnsetOption GetValueWhenUnsetOptionForName(const Aws::String& name) { int hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RECOMMENDED_VALUE_HASH) { return ValueWhenUnsetOption::RECOMMENDED_VALUE; } else if (hashCode == NULL__HASH) { return ValueWhenUnsetOption::NULL_; } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { overflowContainer->StoreOverflow(hashCode, name); return static_cast(hashCode); } return ValueWhenUnsetOption::NOT_SET; } Aws::String GetNameForValueWhenUnsetOption(ValueWhenUnsetOption enumValue) { switch(enumValue) { case ValueWhenUnsetOption::RECOMMENDED_VALUE: return "RECOMMENDED_VALUE"; case ValueWhenUnsetOption::NULL_: return "NULL"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { return overflowContainer->RetrieveOverflow(static_cast(enumValue)); } return {}; } } } // namespace ValueWhenUnsetOptionMapper } // namespace Model } // namespace QuickSight } // namespace Aws