/** * 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 GuardDuty { namespace Model { namespace OrgFeatureAdditionalConfigurationMapper { static const int EKS_ADDON_MANAGEMENT_HASH = HashingUtils::HashString("EKS_ADDON_MANAGEMENT"); OrgFeatureAdditionalConfiguration GetOrgFeatureAdditionalConfigurationForName(const Aws::String& name) { int hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EKS_ADDON_MANAGEMENT_HASH) { return OrgFeatureAdditionalConfiguration::EKS_ADDON_MANAGEMENT; } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { overflowContainer->StoreOverflow(hashCode, name); return static_cast(hashCode); } return OrgFeatureAdditionalConfiguration::NOT_SET; } Aws::String GetNameForOrgFeatureAdditionalConfiguration(OrgFeatureAdditionalConfiguration enumValue) { switch(enumValue) { case OrgFeatureAdditionalConfiguration::EKS_ADDON_MANAGEMENT: return "EKS_ADDON_MANAGEMENT"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { return overflowContainer->RetrieveOverflow(static_cast(enumValue)); } return {}; } } } // namespace OrgFeatureAdditionalConfigurationMapper } // namespace Model } // namespace GuardDuty } // namespace Aws