/** * 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 DynamoDB { namespace Model { namespace SelectMapper { static const int ALL_ATTRIBUTES_HASH = HashingUtils::HashString("ALL_ATTRIBUTES"); static const int ALL_PROJECTED_ATTRIBUTES_HASH = HashingUtils::HashString("ALL_PROJECTED_ATTRIBUTES"); static const int SPECIFIC_ATTRIBUTES_HASH = HashingUtils::HashString("SPECIFIC_ATTRIBUTES"); static const int COUNT_HASH = HashingUtils::HashString("COUNT"); Select GetSelectForName(const Aws::String& name) { int hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == ALL_ATTRIBUTES_HASH) { return Select::ALL_ATTRIBUTES; } else if (hashCode == ALL_PROJECTED_ATTRIBUTES_HASH) { return Select::ALL_PROJECTED_ATTRIBUTES; } else if (hashCode == SPECIFIC_ATTRIBUTES_HASH) { return Select::SPECIFIC_ATTRIBUTES; } else if (hashCode == COUNT_HASH) { return Select::COUNT; } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { overflowContainer->StoreOverflow(hashCode, name); return static_cast