/** * 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 SageMakerGeospatial { namespace Model { namespace VectorEnrichmentJobStatusMapper { static const int INITIALIZING_HASH = HashingUtils::HashString("INITIALIZING"); static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); static const int STOPPING_HASH = HashingUtils::HashString("STOPPING"); static const int STOPPED_HASH = HashingUtils::HashString("STOPPED"); static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); static const int FAILED_HASH = HashingUtils::HashString("FAILED"); static const int DELETING_HASH = HashingUtils::HashString("DELETING"); static const int DELETED_HASH = HashingUtils::HashString("DELETED"); VectorEnrichmentJobStatus GetVectorEnrichmentJobStatusForName(const Aws::String& name) { int hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == INITIALIZING_HASH) { return VectorEnrichmentJobStatus::INITIALIZING; } else if (hashCode == IN_PROGRESS_HASH) { return VectorEnrichmentJobStatus::IN_PROGRESS; } else if (hashCode == STOPPING_HASH) { return VectorEnrichmentJobStatus::STOPPING; } else if (hashCode == STOPPED_HASH) { return VectorEnrichmentJobStatus::STOPPED; } else if (hashCode == COMPLETED_HASH) { return VectorEnrichmentJobStatus::COMPLETED; } else if (hashCode == FAILED_HASH) { return VectorEnrichmentJobStatus::FAILED; } else if (hashCode == DELETING_HASH) { return VectorEnrichmentJobStatus::DELETING; } else if (hashCode == DELETED_HASH) { return VectorEnrichmentJobStatus::DELETED; } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { overflowContainer->StoreOverflow(hashCode, name); return static_cast(hashCode); } return VectorEnrichmentJobStatus::NOT_SET; } Aws::String GetNameForVectorEnrichmentJobStatus(VectorEnrichmentJobStatus enumValue) { switch(enumValue) { case VectorEnrichmentJobStatus::INITIALIZING: return "INITIALIZING"; case VectorEnrichmentJobStatus::IN_PROGRESS: return "IN_PROGRESS"; case VectorEnrichmentJobStatus::STOPPING: return "STOPPING"; case VectorEnrichmentJobStatus::STOPPED: return "STOPPED"; case VectorEnrichmentJobStatus::COMPLETED: return "COMPLETED"; case VectorEnrichmentJobStatus::FAILED: return "FAILED"; case VectorEnrichmentJobStatus::DELETING: return "DELETING"; case VectorEnrichmentJobStatus::DELETED: return "DELETED"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { return overflowContainer->RetrieveOverflow(static_cast(enumValue)); } return {}; } } } // namespace VectorEnrichmentJobStatusMapper } // namespace Model } // namespace SageMakerGeospatial } // namespace Aws