/** * 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 WorkSpaces { namespace Model { namespace DeletableSamlPropertyMapper { static const int SAML_PROPERTIES_USER_ACCESS_URL_HASH = HashingUtils::HashString("SAML_PROPERTIES_USER_ACCESS_URL"); static const int SAML_PROPERTIES_RELAY_STATE_PARAMETER_NAME_HASH = HashingUtils::HashString("SAML_PROPERTIES_RELAY_STATE_PARAMETER_NAME"); DeletableSamlProperty GetDeletableSamlPropertyForName(const Aws::String& name) { int hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SAML_PROPERTIES_USER_ACCESS_URL_HASH) { return DeletableSamlProperty::SAML_PROPERTIES_USER_ACCESS_URL; } else if (hashCode == SAML_PROPERTIES_RELAY_STATE_PARAMETER_NAME_HASH) { return DeletableSamlProperty::SAML_PROPERTIES_RELAY_STATE_PARAMETER_NAME; } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { overflowContainer->StoreOverflow(hashCode, name); return static_cast(hashCode); } return DeletableSamlProperty::NOT_SET; } Aws::String GetNameForDeletableSamlProperty(DeletableSamlProperty enumValue) { switch(enumValue) { case DeletableSamlProperty::SAML_PROPERTIES_USER_ACCESS_URL: return "SAML_PROPERTIES_USER_ACCESS_URL"; case DeletableSamlProperty::SAML_PROPERTIES_RELAY_STATE_PARAMETER_NAME: return "SAML_PROPERTIES_RELAY_STATE_PARAMETER_NAME"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { return overflowContainer->RetrieveOverflow(static_cast(enumValue)); } return {}; } } } // namespace DeletableSamlPropertyMapper } // namespace Model } // namespace WorkSpaces } // namespace Aws