/** * 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 ChimeSDKMediaPipelines { namespace Model { namespace ContentShareLayoutOptionMapper { static const int PresenterOnly_HASH = HashingUtils::HashString("PresenterOnly"); static const int Horizontal_HASH = HashingUtils::HashString("Horizontal"); static const int Vertical_HASH = HashingUtils::HashString("Vertical"); static const int ActiveSpeakerOnly_HASH = HashingUtils::HashString("ActiveSpeakerOnly"); ContentShareLayoutOption GetContentShareLayoutOptionForName(const Aws::String& name) { int hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == PresenterOnly_HASH) { return ContentShareLayoutOption::PresenterOnly; } else if (hashCode == Horizontal_HASH) { return ContentShareLayoutOption::Horizontal; } else if (hashCode == Vertical_HASH) { return ContentShareLayoutOption::Vertical; } else if (hashCode == ActiveSpeakerOnly_HASH) { return ContentShareLayoutOption::ActiveSpeakerOnly; } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { overflowContainer->StoreOverflow(hashCode, name); return static_cast(hashCode); } return ContentShareLayoutOption::NOT_SET; } Aws::String GetNameForContentShareLayoutOption(ContentShareLayoutOption enumValue) { switch(enumValue) { case ContentShareLayoutOption::PresenterOnly: return "PresenterOnly"; case ContentShareLayoutOption::Horizontal: return "Horizontal"; case ContentShareLayoutOption::Vertical: return "Vertical"; case ContentShareLayoutOption::ActiveSpeakerOnly: return "ActiveSpeakerOnly"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { return overflowContainer->RetrieveOverflow(static_cast(enumValue)); } return {}; } } } // namespace ContentShareLayoutOptionMapper } // namespace Model } // namespace ChimeSDKMediaPipelines } // namespace Aws