/** * 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 VerifiedAccessEndpointProtocolMapper { static const int http_HASH = HashingUtils::HashString("http"); static const int https_HASH = HashingUtils::HashString("https"); VerifiedAccessEndpointProtocol GetVerifiedAccessEndpointProtocolForName(const Aws::String& name) { int hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == http_HASH) { return VerifiedAccessEndpointProtocol::http; } else if (hashCode == https_HASH) { return VerifiedAccessEndpointProtocol::https; } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { overflowContainer->StoreOverflow(hashCode, name); return static_cast(hashCode); } return VerifiedAccessEndpointProtocol::NOT_SET; } Aws::String GetNameForVerifiedAccessEndpointProtocol(VerifiedAccessEndpointProtocol enumValue) { switch(enumValue) { case VerifiedAccessEndpointProtocol::http: return "http"; case VerifiedAccessEndpointProtocol::https: return "https"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { return overflowContainer->RetrieveOverflow(static_cast(enumValue)); } return {}; } } } // namespace VerifiedAccessEndpointProtocolMapper } // namespace Model } // namespace EC2 } // namespace Aws