module Stratosphere.QuickSight.Template.FunnelChartVisualProperty ( module Exports, FunnelChartVisualProperty(..), mkFunnelChartVisualProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import {-# SOURCE #-} Stratosphere.QuickSight.Template.ColumnHierarchyProperty as Exports import {-# SOURCE #-} Stratosphere.QuickSight.Template.FunnelChartConfigurationProperty as Exports import {-# SOURCE #-} Stratosphere.QuickSight.Template.VisualCustomActionProperty as Exports import {-# SOURCE #-} Stratosphere.QuickSight.Template.VisualSubtitleLabelOptionsProperty as Exports import {-# SOURCE #-} Stratosphere.QuickSight.Template.VisualTitleLabelOptionsProperty as Exports import Stratosphere.ResourceProperties import Stratosphere.Value data FunnelChartVisualProperty = -- | See: FunnelChartVisualProperty {haddock_workaround_ :: (), -- | See: actions :: (Prelude.Maybe [VisualCustomActionProperty]), -- | See: chartConfiguration :: (Prelude.Maybe FunnelChartConfigurationProperty), -- | 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) mkFunnelChartVisualProperty :: Value Prelude.Text -> FunnelChartVisualProperty mkFunnelChartVisualProperty visualId = FunnelChartVisualProperty {haddock_workaround_ = (), visualId = visualId, actions = Prelude.Nothing, chartConfiguration = Prelude.Nothing, columnHierarchies = Prelude.Nothing, subtitle = Prelude.Nothing, title = Prelude.Nothing, visualContentAltText = Prelude.Nothing} instance ToResourceProperties FunnelChartVisualProperty where toResourceProperties FunnelChartVisualProperty {..} = ResourceProperties {awsType = "AWS::QuickSight::Template.FunnelChartVisual", 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 FunnelChartVisualProperty where toJSON FunnelChartVisualProperty {..} = 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" FunnelChartVisualProperty where type PropertyType "Actions" FunnelChartVisualProperty = [VisualCustomActionProperty] set newValue FunnelChartVisualProperty {..} = FunnelChartVisualProperty {actions = Prelude.pure newValue, ..} instance Property "ChartConfiguration" FunnelChartVisualProperty where type PropertyType "ChartConfiguration" FunnelChartVisualProperty = FunnelChartConfigurationProperty set newValue FunnelChartVisualProperty {..} = FunnelChartVisualProperty {chartConfiguration = Prelude.pure newValue, ..} instance Property "ColumnHierarchies" FunnelChartVisualProperty where type PropertyType "ColumnHierarchies" FunnelChartVisualProperty = [ColumnHierarchyProperty] set newValue FunnelChartVisualProperty {..} = FunnelChartVisualProperty {columnHierarchies = Prelude.pure newValue, ..} instance Property "Subtitle" FunnelChartVisualProperty where type PropertyType "Subtitle" FunnelChartVisualProperty = VisualSubtitleLabelOptionsProperty set newValue FunnelChartVisualProperty {..} = FunnelChartVisualProperty {subtitle = Prelude.pure newValue, ..} instance Property "Title" FunnelChartVisualProperty where type PropertyType "Title" FunnelChartVisualProperty = VisualTitleLabelOptionsProperty set newValue FunnelChartVisualProperty {..} = FunnelChartVisualProperty {title = Prelude.pure newValue, ..} instance Property "VisualContentAltText" FunnelChartVisualProperty where type PropertyType "VisualContentAltText" FunnelChartVisualProperty = Value Prelude.Text set newValue FunnelChartVisualProperty {..} = FunnelChartVisualProperty {visualContentAltText = Prelude.pure newValue, ..} instance Property "VisualId" FunnelChartVisualProperty where type PropertyType "VisualId" FunnelChartVisualProperty = Value Prelude.Text set newValue FunnelChartVisualProperty {..} = FunnelChartVisualProperty {visualId = newValue, ..}