/** * 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 Route53Resolver { namespace Model { namespace ResolverQueryLogConfigAssociationStatusMapper { static const int CREATING_HASH = HashingUtils::HashString("CREATING"); static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); static const int ACTION_NEEDED_HASH = HashingUtils::HashString("ACTION_NEEDED"); static const int DELETING_HASH = HashingUtils::HashString("DELETING"); static const int FAILED_HASH = HashingUtils::HashString("FAILED"); ResolverQueryLogConfigAssociationStatus GetResolverQueryLogConfigAssociationStatusForName(const Aws::String& name) { int hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == CREATING_HASH) { return ResolverQueryLogConfigAssociationStatus::CREATING; } else if (hashCode == ACTIVE_HASH) { return ResolverQueryLogConfigAssociationStatus::ACTIVE; } else if (hashCode == ACTION_NEEDED_HASH) { return ResolverQueryLogConfigAssociationStatus::ACTION_NEEDED; } else if (hashCode == DELETING_HASH) { return ResolverQueryLogConfigAssociationStatus::DELETING; } else if (hashCode == FAILED_HASH) { return ResolverQueryLogConfigAssociationStatus::FAILED; } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { overflowContainer->StoreOverflow(hashCode, name); return static_cast(hashCode); } return ResolverQueryLogConfigAssociationStatus::NOT_SET; } Aws::String GetNameForResolverQueryLogConfigAssociationStatus(ResolverQueryLogConfigAssociationStatus enumValue) { switch(enumValue) { case ResolverQueryLogConfigAssociationStatus::CREATING: return "CREATING"; case ResolverQueryLogConfigAssociationStatus::ACTIVE: return "ACTIVE"; case ResolverQueryLogConfigAssociationStatus::ACTION_NEEDED: return "ACTION_NEEDED"; case ResolverQueryLogConfigAssociationStatus::DELETING: return "DELETING"; case ResolverQueryLogConfigAssociationStatus::FAILED: return "FAILED"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { return overflowContainer->RetrieveOverflow(static_cast(enumValue)); } return {}; } } } // namespace ResolverQueryLogConfigAssociationStatusMapper } // namespace Model } // namespace Route53Resolver } // namespace Aws