/** * 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 ElasticLoadBalancingv2 { namespace Model { namespace AuthenticateOidcActionConditionalBehaviorEnumMapper { static const int deny_HASH = HashingUtils::HashString("deny"); static const int allow_HASH = HashingUtils::HashString("allow"); static const int authenticate_HASH = HashingUtils::HashString("authenticate"); AuthenticateOidcActionConditionalBehaviorEnum GetAuthenticateOidcActionConditionalBehaviorEnumForName(const Aws::String& name) { int hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == deny_HASH) { return AuthenticateOidcActionConditionalBehaviorEnum::deny; } else if (hashCode == allow_HASH) { return AuthenticateOidcActionConditionalBehaviorEnum::allow; } else if (hashCode == authenticate_HASH) { return AuthenticateOidcActionConditionalBehaviorEnum::authenticate; } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { overflowContainer->StoreOverflow(hashCode, name); return static_cast(hashCode); } return AuthenticateOidcActionConditionalBehaviorEnum::NOT_SET; } Aws::String GetNameForAuthenticateOidcActionConditionalBehaviorEnum(AuthenticateOidcActionConditionalBehaviorEnum enumValue) { switch(enumValue) { case AuthenticateOidcActionConditionalBehaviorEnum::deny: return "deny"; case AuthenticateOidcActionConditionalBehaviorEnum::allow: return "allow"; case AuthenticateOidcActionConditionalBehaviorEnum::authenticate: return "authenticate"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { return overflowContainer->RetrieveOverflow(static_cast(enumValue)); } return {}; } } } // namespace AuthenticateOidcActionConditionalBehaviorEnumMapper } // namespace Model } // namespace ElasticLoadBalancingv2 } // namespace Aws