module Stratosphere.QuickSight.Analysis.SankeyDiagramChartConfigurationProperty ( module Exports, SankeyDiagramChartConfigurationProperty(..), mkSankeyDiagramChartConfigurationProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import {-# SOURCE #-} Stratosphere.QuickSight.Analysis.DataLabelOptionsProperty as Exports import {-# SOURCE #-} Stratosphere.QuickSight.Analysis.SankeyDiagramFieldWellsProperty as Exports import {-# SOURCE #-} Stratosphere.QuickSight.Analysis.SankeyDiagramSortConfigurationProperty as Exports import {-# SOURCE #-} Stratosphere.QuickSight.Analysis.VisualInteractionOptionsProperty as Exports import Stratosphere.ResourceProperties data SankeyDiagramChartConfigurationProperty = -- | See: SankeyDiagramChartConfigurationProperty {haddock_workaround_ :: (), -- | See: dataLabels :: (Prelude.Maybe DataLabelOptionsProperty), -- | See: fieldWells :: (Prelude.Maybe SankeyDiagramFieldWellsProperty), -- | See: interactions :: (Prelude.Maybe VisualInteractionOptionsProperty), -- | See: sortConfiguration :: (Prelude.Maybe SankeyDiagramSortConfigurationProperty)} deriving stock (Prelude.Eq, Prelude.Show) mkSankeyDiagramChartConfigurationProperty :: SankeyDiagramChartConfigurationProperty mkSankeyDiagramChartConfigurationProperty = SankeyDiagramChartConfigurationProperty {haddock_workaround_ = (), dataLabels = Prelude.Nothing, fieldWells = Prelude.Nothing, interactions = Prelude.Nothing, sortConfiguration = Prelude.Nothing} instance ToResourceProperties SankeyDiagramChartConfigurationProperty where toResourceProperties SankeyDiagramChartConfigurationProperty {..} = ResourceProperties {awsType = "AWS::QuickSight::Analysis.SankeyDiagramChartConfiguration", supportsTags = Prelude.False, properties = Prelude.fromList (Prelude.catMaybes [(JSON..=) "DataLabels" Prelude.<$> dataLabels, (JSON..=) "FieldWells" Prelude.<$> fieldWells, (JSON..=) "Interactions" Prelude.<$> interactions, (JSON..=) "SortConfiguration" Prelude.<$> sortConfiguration])} instance JSON.ToJSON SankeyDiagramChartConfigurationProperty where toJSON SankeyDiagramChartConfigurationProperty {..} = JSON.object (Prelude.fromList (Prelude.catMaybes [(JSON..=) "DataLabels" Prelude.<$> dataLabels, (JSON..=) "FieldWells" Prelude.<$> fieldWells, (JSON..=) "Interactions" Prelude.<$> interactions, (JSON..=) "SortConfiguration" Prelude.<$> sortConfiguration])) instance Property "DataLabels" SankeyDiagramChartConfigurationProperty where type PropertyType "DataLabels" SankeyDiagramChartConfigurationProperty = DataLabelOptionsProperty set newValue SankeyDiagramChartConfigurationProperty {..} = SankeyDiagramChartConfigurationProperty {dataLabels = Prelude.pure newValue, ..} instance Property "FieldWells" SankeyDiagramChartConfigurationProperty where type PropertyType "FieldWells" SankeyDiagramChartConfigurationProperty = SankeyDiagramFieldWellsProperty set newValue SankeyDiagramChartConfigurationProperty {..} = SankeyDiagramChartConfigurationProperty {fieldWells = Prelude.pure newValue, ..} instance Property "Interactions" SankeyDiagramChartConfigurationProperty where type PropertyType "Interactions" SankeyDiagramChartConfigurationProperty = VisualInteractionOptionsProperty set newValue SankeyDiagramChartConfigurationProperty {..} = SankeyDiagramChartConfigurationProperty {interactions = Prelude.pure newValue, ..} instance Property "SortConfiguration" SankeyDiagramChartConfigurationProperty where type PropertyType "SortConfiguration" SankeyDiagramChartConfigurationProperty = SankeyDiagramSortConfigurationProperty set newValue SankeyDiagramChartConfigurationProperty {..} = SankeyDiagramChartConfigurationProperty {sortConfiguration = Prelude.pure newValue, ..}