module Stratosphere.QuickSight.Dashboard.PieChartVisualProperty ( module Exports, PieChartVisualProperty(..), mkPieChartVisualProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import {-# SOURCE #-} Stratosphere.QuickSight.Dashboard.ColumnHierarchyProperty as Exports import {-# SOURCE #-} Stratosphere.QuickSight.Dashboard.PieChartConfigurationProperty as Exports import {-# SOURCE #-} Stratosphere.QuickSight.Dashboard.VisualCustomActionProperty as Exports import {-# SOURCE #-} Stratosphere.QuickSight.Dashboard.VisualSubtitleLabelOptionsProperty as Exports import {-# SOURCE #-} Stratosphere.QuickSight.Dashboard.VisualTitleLabelOptionsProperty as Exports import Stratosphere.ResourceProperties import Stratosphere.Value data PieChartVisualProperty = -- | See: PieChartVisualProperty {haddock_workaround_ :: (), -- | See: actions :: (Prelude.Maybe [VisualCustomActionProperty]), -- | See: chartConfiguration :: (Prelude.Maybe PieChartConfigurationProperty), -- | See: columnHierarchies :: (Prelude.Maybe [ColumnHierarchyProperty]), -- | See: subtitle :: (Prelude.Maybe VisualSubtitleLabelOptionsProperty), -- | See: title :: (Prelude.Maybe VisualTitleLabelOptionsProperty), -- | See: visualContentAltText :: (Prelude.Maybe (Value Prelude.Text)), -- | See: visualId :: (Value Prelude.Text)} deriving stock (Prelude.Eq, Prelude.Show) mkPieChartVisualProperty :: Value Prelude.Text -> PieChartVisualProperty mkPieChartVisualProperty visualId = PieChartVisualProperty {haddock_workaround_ = (), visualId = visualId, actions = Prelude.Nothing, chartConfiguration = Prelude.Nothing, columnHierarchies = Prelude.Nothing, subtitle = Prelude.Nothing, title = Prelude.Nothing, visualContentAltText = Prelude.Nothing} instance ToResourceProperties PieChartVisualProperty where toResourceProperties PieChartVisualProperty {..} = ResourceProperties {awsType = "AWS::QuickSight::Dashboard.PieChartVisual", supportsTags = Prelude.False, properties = Prelude.fromList ((Prelude.<>) ["VisualId" JSON..= visualId] (Prelude.catMaybes [(JSON..=) "Actions" Prelude.<$> actions, (JSON..=) "ChartConfiguration" Prelude.<$> chartConfiguration, (JSON..=) "ColumnHierarchies" Prelude.<$> columnHierarchies, (JSON..=) "Subtitle" Prelude.<$> subtitle, (JSON..=) "Title" Prelude.<$> title, (JSON..=) "VisualContentAltText" Prelude.<$> visualContentAltText]))} instance JSON.ToJSON PieChartVisualProperty where toJSON PieChartVisualProperty {..} = JSON.object (Prelude.fromList ((Prelude.<>) ["VisualId" JSON..= visualId] (Prelude.catMaybes [(JSON..=) "Actions" Prelude.<$> actions, (JSON..=) "ChartConfiguration" Prelude.<$> chartConfiguration, (JSON..=) "ColumnHierarchies" Prelude.<$> columnHierarchies, (JSON..=) "Subtitle" Prelude.<$> subtitle, (JSON..=) "Title" Prelude.<$> title, (JSON..=) "VisualContentAltText" Prelude.<$> visualContentAltText]))) instance Property "Actions" PieChartVisualProperty where type PropertyType "Actions" PieChartVisualProperty = [VisualCustomActionProperty] set newValue PieChartVisualProperty {..} = PieChartVisualProperty {actions = Prelude.pure newValue, ..} instance Property "ChartConfiguration" PieChartVisualProperty where type PropertyType "ChartConfiguration" PieChartVisualProperty = PieChartConfigurationProperty set newValue PieChartVisualProperty {..} = PieChartVisualProperty {chartConfiguration = Prelude.pure newValue, ..} instance Property "ColumnHierarchies" PieChartVisualProperty where type PropertyType "ColumnHierarchies" PieChartVisualProperty = [ColumnHierarchyProperty] set newValue PieChartVisualProperty {..} = PieChartVisualProperty {columnHierarchies = Prelude.pure newValue, ..} instance Property "Subtitle" PieChartVisualProperty where type PropertyType "Subtitle" PieChartVisualProperty = VisualSubtitleLabelOptionsProperty set newValue PieChartVisualProperty {..} = PieChartVisualProperty {subtitle = Prelude.pure newValue, ..} instance Property "Title" PieChartVisualProperty where type PropertyType "Title" PieChartVisualProperty = VisualTitleLabelOptionsProperty set newValue PieChartVisualProperty {..} = PieChartVisualProperty {title = Prelude.pure newValue, ..} instance Property "VisualContentAltText" PieChartVisualProperty where type PropertyType "VisualContentAltText" PieChartVisualProperty = Value Prelude.Text set newValue PieChartVisualProperty {..} = PieChartVisualProperty {visualContentAltText = Prelude.pure newValue, ..} instance Property "VisualId" PieChartVisualProperty where type PropertyType "VisualId" PieChartVisualProperty = Value Prelude.Text set newValue PieChartVisualProperty {..} = PieChartVisualProperty {visualId = newValue, ..}