/** * 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 DashIsoSegmentControlMapper { static const int SINGLE_FILE_HASH = HashingUtils::HashString("SINGLE_FILE"); static const int SEGMENTED_FILES_HASH = HashingUtils::HashString("SEGMENTED_FILES"); DashIsoSegmentControl GetDashIsoSegmentControlForName(const Aws::String& name) { int hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == SINGLE_FILE_HASH) { return DashIsoSegmentControl::SINGLE_FILE; } else if (hashCode == SEGMENTED_FILES_HASH) { return DashIsoSegmentControl::SEGMENTED_FILES; } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { overflowContainer->StoreOverflow(hashCode, name); return static_cast(hashCode); } return DashIsoSegmentControl::NOT_SET; } Aws::String GetNameForDashIsoSegmentControl(DashIsoSegmentControl enumValue) { switch(enumValue) { case DashIsoSegmentControl::SINGLE_FILE: return "SINGLE_FILE"; case DashIsoSegmentControl::SEGMENTED_FILES: return "SEGMENTED_FILES"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { return overflowContainer->RetrieveOverflow(static_cast(enumValue)); } return {}; } } } // namespace DashIsoSegmentControlMapper } // namespace Model } // namespace MediaConvert } // namespace Aws