/** * 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 SES { namespace Model { namespace ConfigurationSetAttributeMapper { static const int eventDestinations_HASH = HashingUtils::HashString("eventDestinations"); static const int trackingOptions_HASH = HashingUtils::HashString("trackingOptions"); static const int deliveryOptions_HASH = HashingUtils::HashString("deliveryOptions"); static const int reputationOptions_HASH = HashingUtils::HashString("reputationOptions"); ConfigurationSetAttribute GetConfigurationSetAttributeForName(const Aws::String& name) { int hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == eventDestinations_HASH) { return ConfigurationSetAttribute::eventDestinations; } else if (hashCode == trackingOptions_HASH) { return ConfigurationSetAttribute::trackingOptions; } else if (hashCode == deliveryOptions_HASH) { return ConfigurationSetAttribute::deliveryOptions; } else if (hashCode == reputationOptions_HASH) { return ConfigurationSetAttribute::reputationOptions; } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { overflowContainer->StoreOverflow(hashCode, name); return static_cast(hashCode); } return ConfigurationSetAttribute::NOT_SET; } Aws::String GetNameForConfigurationSetAttribute(ConfigurationSetAttribute enumValue) { switch(enumValue) { case ConfigurationSetAttribute::eventDestinations: return "eventDestinations"; case ConfigurationSetAttribute::trackingOptions: return "trackingOptions"; case ConfigurationSetAttribute::deliveryOptions: return "deliveryOptions"; case ConfigurationSetAttribute::reputationOptions: return "reputationOptions"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { return overflowContainer->RetrieveOverflow(static_cast(enumValue)); } return {}; } } } // namespace ConfigurationSetAttributeMapper } // namespace Model } // namespace SES } // namespace Aws