/** * 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 Route53 { namespace Model { namespace InsufficientDataHealthStatusMapper { static const int Healthy_HASH = HashingUtils::HashString("Healthy"); static const int Unhealthy_HASH = HashingUtils::HashString("Unhealthy"); static const int LastKnownStatus_HASH = HashingUtils::HashString("LastKnownStatus"); InsufficientDataHealthStatus GetInsufficientDataHealthStatusForName(const Aws::String& name) { int hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Healthy_HASH) { return InsufficientDataHealthStatus::Healthy; } else if (hashCode == Unhealthy_HASH) { return InsufficientDataHealthStatus::Unhealthy; } else if (hashCode == LastKnownStatus_HASH) { return InsufficientDataHealthStatus::LastKnownStatus; } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { overflowContainer->StoreOverflow(hashCode, name); return static_cast(hashCode); } return InsufficientDataHealthStatus::NOT_SET; } Aws::String GetNameForInsufficientDataHealthStatus(InsufficientDataHealthStatus enumValue) { switch(enumValue) { case InsufficientDataHealthStatus::Healthy: return "Healthy"; case InsufficientDataHealthStatus::Unhealthy: return "Unhealthy"; case InsufficientDataHealthStatus::LastKnownStatus: return "LastKnownStatus"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { return overflowContainer->RetrieveOverflow(static_cast(enumValue)); } return {}; } } } // namespace InsufficientDataHealthStatusMapper } // namespace Model } // namespace Route53 } // namespace Aws