/** * 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 { GeospatialPointStyleOptions::GeospatialPointStyleOptions() : m_selectedPointStyle(GeospatialSelectedPointStyle::NOT_SET), m_selectedPointStyleHasBeenSet(false), m_clusterMarkerConfigurationHasBeenSet(false), m_heatmapConfigurationHasBeenSet(false) { } GeospatialPointStyleOptions::GeospatialPointStyleOptions(JsonView jsonValue) : m_selectedPointStyle(GeospatialSelectedPointStyle::NOT_SET), m_selectedPointStyleHasBeenSet(false), m_clusterMarkerConfigurationHasBeenSet(false), m_heatmapConfigurationHasBeenSet(false) { *this = jsonValue; } GeospatialPointStyleOptions& GeospatialPointStyleOptions::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("SelectedPointStyle")) { m_selectedPointStyle = GeospatialSelectedPointStyleMapper::GetGeospatialSelectedPointStyleForName(jsonValue.GetString("SelectedPointStyle")); m_selectedPointStyleHasBeenSet = true; } if(jsonValue.ValueExists("ClusterMarkerConfiguration")) { m_clusterMarkerConfiguration = jsonValue.GetObject("ClusterMarkerConfiguration"); m_clusterMarkerConfigurationHasBeenSet = true; } if(jsonValue.ValueExists("HeatmapConfiguration")) { m_heatmapConfiguration = jsonValue.GetObject("HeatmapConfiguration"); m_heatmapConfigurationHasBeenSet = true; } return *this; } JsonValue GeospatialPointStyleOptions::Jsonize() const { JsonValue payload; if(m_selectedPointStyleHasBeenSet) { payload.WithString("SelectedPointStyle", GeospatialSelectedPointStyleMapper::GetNameForGeospatialSelectedPointStyle(m_selectedPointStyle)); } if(m_clusterMarkerConfigurationHasBeenSet) { payload.WithObject("ClusterMarkerConfiguration", m_clusterMarkerConfiguration.Jsonize()); } if(m_heatmapConfigurationHasBeenSet) { payload.WithObject("HeatmapConfiguration", m_heatmapConfiguration.Jsonize()); } return payload; } } // namespace Model } // namespace QuickSight } // namespace Aws