/** * 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 S3Crt { namespace Model { namespace OptionalObjectAttributesMapper { static const int RestoreStatus_HASH = HashingUtils::HashString("RestoreStatus"); OptionalObjectAttributes GetOptionalObjectAttributesForName(const Aws::String& name) { int hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == RestoreStatus_HASH) { return OptionalObjectAttributes::RestoreStatus; } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { overflowContainer->StoreOverflow(hashCode, name); return static_cast(hashCode); } return OptionalObjectAttributes::NOT_SET; } Aws::String GetNameForOptionalObjectAttributes(OptionalObjectAttributes enumValue) { switch(enumValue) { case OptionalObjectAttributes::RestoreStatus: return "RestoreStatus"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { return overflowContainer->RetrieveOverflow(static_cast(enumValue)); } return {}; } } } // namespace OptionalObjectAttributesMapper } // namespace Model } // namespace S3Crt } // namespace Aws