/** * 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 EC2 { namespace Model { namespace FindingsFoundMapper { static const int true__HASH = HashingUtils::HashString("true"); static const int false__HASH = HashingUtils::HashString("false"); static const int unknown_HASH = HashingUtils::HashString("unknown"); FindingsFound GetFindingsFoundForName(const Aws::String& name) { int hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == true__HASH) { return FindingsFound::true_; } else if (hashCode == false__HASH) { return FindingsFound::false_; } else if (hashCode == unknown_HASH) { return FindingsFound::unknown; } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { overflowContainer->StoreOverflow(hashCode, name); return static_cast(hashCode); } return FindingsFound::NOT_SET; } Aws::String GetNameForFindingsFound(FindingsFound enumValue) { switch(enumValue) { case FindingsFound::true_: return "true"; case FindingsFound::false_: return "false"; case FindingsFound::unknown: return "unknown"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { return overflowContainer->RetrieveOverflow(static_cast(enumValue)); } return {}; } } } // namespace FindingsFoundMapper } // namespace Model } // namespace EC2 } // namespace Aws