/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::Utils::Json; using namespace Aws::Utils; namespace Aws { namespace QuickSight { namespace Model { FreeFormLayoutElementBackgroundStyle::FreeFormLayoutElementBackgroundStyle() : m_visibility(Visibility::NOT_SET), m_visibilityHasBeenSet(false), m_colorHasBeenSet(false) { } FreeFormLayoutElementBackgroundStyle::FreeFormLayoutElementBackgroundStyle(JsonView jsonValue) : m_visibility(Visibility::NOT_SET), m_visibilityHasBeenSet(false), m_colorHasBeenSet(false) { *this = jsonValue; } FreeFormLayoutElementBackgroundStyle& FreeFormLayoutElementBackgroundStyle::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("Visibility")) { m_visibility = VisibilityMapper::GetVisibilityForName(jsonValue.GetString("Visibility")); m_visibilityHasBeenSet = true; } if(jsonValue.ValueExists("Color")) { m_color = jsonValue.GetString("Color"); m_colorHasBeenSet = true; } return *this; } JsonValue FreeFormLayoutElementBackgroundStyle::Jsonize() const { JsonValue payload; if(m_visibilityHasBeenSet) { payload.WithString("Visibility", VisibilityMapper::GetNameForVisibility(m_visibility)); } if(m_colorHasBeenSet) { payload.WithString("Color", m_color); } return payload; } } // namespace Model } // namespace QuickSight } // namespace Aws