/** * 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 MediaConvert { namespace Model { namespace FileSourceConvert608To708Mapper { static const int UPCONVERT_HASH = HashingUtils::HashString("UPCONVERT"); static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); FileSourceConvert608To708 GetFileSourceConvert608To708ForName(const Aws::String& name) { int hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == UPCONVERT_HASH) { return FileSourceConvert608To708::UPCONVERT; } else if (hashCode == DISABLED_HASH) { return FileSourceConvert608To708::DISABLED; } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { overflowContainer->StoreOverflow(hashCode, name); return static_cast(hashCode); } return FileSourceConvert608To708::NOT_SET; } Aws::String GetNameForFileSourceConvert608To708(FileSourceConvert608To708 enumValue) { switch(enumValue) { case FileSourceConvert608To708::UPCONVERT: return "UPCONVERT"; case FileSourceConvert608To708::DISABLED: return "DISABLED"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { return overflowContainer->RetrieveOverflow(static_cast(enumValue)); } return {}; } } } // namespace FileSourceConvert608To708Mapper } // namespace Model } // namespace MediaConvert } // namespace Aws