/** * 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 { GeospatialMapConfiguration::GeospatialMapConfiguration() : m_fieldWellsHasBeenSet(false), m_legendHasBeenSet(false), m_tooltipHasBeenSet(false), m_windowOptionsHasBeenSet(false), m_mapStyleOptionsHasBeenSet(false), m_pointStyleOptionsHasBeenSet(false), m_visualPaletteHasBeenSet(false) { } GeospatialMapConfiguration::GeospatialMapConfiguration(JsonView jsonValue) : m_fieldWellsHasBeenSet(false), m_legendHasBeenSet(false), m_tooltipHasBeenSet(false), m_windowOptionsHasBeenSet(false), m_mapStyleOptionsHasBeenSet(false), m_pointStyleOptionsHasBeenSet(false), m_visualPaletteHasBeenSet(false) { *this = jsonValue; } GeospatialMapConfiguration& GeospatialMapConfiguration::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("FieldWells")) { m_fieldWells = jsonValue.GetObject("FieldWells"); m_fieldWellsHasBeenSet = true; } if(jsonValue.ValueExists("Legend")) { m_legend = jsonValue.GetObject("Legend"); m_legendHasBeenSet = true; } if(jsonValue.ValueExists("Tooltip")) { m_tooltip = jsonValue.GetObject("Tooltip"); m_tooltipHasBeenSet = true; } if(jsonValue.ValueExists("WindowOptions")) { m_windowOptions = jsonValue.GetObject("WindowOptions"); m_windowOptionsHasBeenSet = true; } if(jsonValue.ValueExists("MapStyleOptions")) { m_mapStyleOptions = jsonValue.GetObject("MapStyleOptions"); m_mapStyleOptionsHasBeenSet = true; } if(jsonValue.ValueExists("PointStyleOptions")) { m_pointStyleOptions = jsonValue.GetObject("PointStyleOptions"); m_pointStyleOptionsHasBeenSet = true; } if(jsonValue.ValueExists("VisualPalette")) { m_visualPalette = jsonValue.GetObject("VisualPalette"); m_visualPaletteHasBeenSet = true; } return *this; } JsonValue GeospatialMapConfiguration::Jsonize() const { JsonValue payload; if(m_fieldWellsHasBeenSet) { payload.WithObject("FieldWells", m_fieldWells.Jsonize()); } if(m_legendHasBeenSet) { payload.WithObject("Legend", m_legend.Jsonize()); } if(m_tooltipHasBeenSet) { payload.WithObject("Tooltip", m_tooltip.Jsonize()); } if(m_windowOptionsHasBeenSet) { payload.WithObject("WindowOptions", m_windowOptions.Jsonize()); } if(m_mapStyleOptionsHasBeenSet) { payload.WithObject("MapStyleOptions", m_mapStyleOptions.Jsonize()); } if(m_pointStyleOptionsHasBeenSet) { payload.WithObject("PointStyleOptions", m_pointStyleOptions.Jsonize()); } if(m_visualPaletteHasBeenSet) { payload.WithObject("VisualPalette", m_visualPalette.Jsonize()); } return payload; } } // namespace Model } // namespace QuickSight } // namespace Aws