/** * 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 { SankeyDiagramChartConfiguration::SankeyDiagramChartConfiguration() : m_fieldWellsHasBeenSet(false), m_sortConfigurationHasBeenSet(false), m_dataLabelsHasBeenSet(false) { } SankeyDiagramChartConfiguration::SankeyDiagramChartConfiguration(JsonView jsonValue) : m_fieldWellsHasBeenSet(false), m_sortConfigurationHasBeenSet(false), m_dataLabelsHasBeenSet(false) { *this = jsonValue; } SankeyDiagramChartConfiguration& SankeyDiagramChartConfiguration::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("FieldWells")) { m_fieldWells = jsonValue.GetObject("FieldWells"); m_fieldWellsHasBeenSet = true; } if(jsonValue.ValueExists("SortConfiguration")) { m_sortConfiguration = jsonValue.GetObject("SortConfiguration"); m_sortConfigurationHasBeenSet = true; } if(jsonValue.ValueExists("DataLabels")) { m_dataLabels = jsonValue.GetObject("DataLabels"); m_dataLabelsHasBeenSet = true; } return *this; } JsonValue SankeyDiagramChartConfiguration::Jsonize() const { JsonValue payload; if(m_fieldWellsHasBeenSet) { payload.WithObject("FieldWells", m_fieldWells.Jsonize()); } if(m_sortConfigurationHasBeenSet) { payload.WithObject("SortConfiguration", m_sortConfiguration.Jsonize()); } if(m_dataLabelsHasBeenSet) { payload.WithObject("DataLabels", m_dataLabels.Jsonize()); } return payload; } } // namespace Model } // namespace QuickSight } // namespace Aws