This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-email/source/model/ConfigurationSetAttribute.cpp

85 lines
2.8 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/email/model/ConfigurationSetAttribute.h>
#include <aws/core/utils/HashingUtils.h>
#include <aws/core/Globals.h>
#include <aws/core/utils/EnumParseOverflowContainer.h>
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<ConfigurationSetAttribute>(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<int>(enumValue));
}
return {};
}
}
} // namespace ConfigurationSetAttributeMapper
} // namespace Model
} // namespace SES
} // namespace Aws