module Stratosphere.QuickSight.Template.ScatterPlotVisualProperty ( module Exports, ScatterPlotVisualProperty(..), mkScatterPlotVisualProperty ) 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.ScatterPlotConfigurationProperty 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 ScatterPlotVisualProperty = -- | See: ScatterPlotVisualProperty {haddock_workaround_ :: (), -- | See: actions :: (Prelude.Maybe [VisualCustomActionProperty]), -- | See: chartConfiguration :: (Prelude.Maybe ScatterPlotConfigurationProperty), -- | 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) mkScatterPlotVisualProperty :: Value Prelude.Text -> ScatterPlotVisualProperty mkScatterPlotVisualProperty visualId = ScatterPlotVisualProperty {haddock_workaround_ = (), visualId = visualId, actions = Prelude.Nothing, chartConfiguration = Prelude.Nothing, columnHierarchies = Prelude.Nothing, subtitle = Prelude.Nothing, title = Prelude.Nothing, visualContentAltText = Prelude.Nothing} instance ToResourceProperties ScatterPlotVisualProperty where toResourceProperties ScatterPlotVisualProperty {..} = ResourceProperties {awsType = "AWS::QuickSight::Template.ScatterPlotVisual", 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 ScatterPlotVisualProperty where toJSON ScatterPlotVisualProperty {..} = 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" ScatterPlotVisualProperty where type PropertyType "Actions" ScatterPlotVisualProperty = [VisualCustomActionProperty] set newValue ScatterPlotVisualProperty {..} = ScatterPlotVisualProperty {actions = Prelude.pure newValue, ..} instance Property "ChartConfiguration" ScatterPlotVisualProperty where type PropertyType "ChartConfiguration" ScatterPlotVisualProperty = ScatterPlotConfigurationProperty set newValue ScatterPlotVisualProperty {..} = ScatterPlotVisualProperty {chartConfiguration = Prelude.pure newValue, ..} instance Property "ColumnHierarchies" ScatterPlotVisualProperty where type PropertyType "ColumnHierarchies" ScatterPlotVisualProperty = [ColumnHierarchyProperty] set newValue ScatterPlotVisualProperty {..} = ScatterPlotVisualProperty {columnHierarchies = Prelude.pure newValue, ..} instance Property "Subtitle" ScatterPlotVisualProperty where type PropertyType "Subtitle" ScatterPlotVisualProperty = VisualSubtitleLabelOptionsProperty set newValue ScatterPlotVisualProperty {..} = ScatterPlotVisualProperty {subtitle = Prelude.pure newValue, ..} instance Property "Title" ScatterPlotVisualProperty where type PropertyType "Title" ScatterPlotVisualProperty = VisualTitleLabelOptionsProperty set newValue ScatterPlotVisualProperty {..} = ScatterPlotVisualProperty {title = Prelude.pure newValue, ..} instance Property "VisualContentAltText" ScatterPlotVisualProperty where type PropertyType "VisualContentAltText" ScatterPlotVisualProperty = Value Prelude.Text set newValue ScatterPlotVisualProperty {..} = ScatterPlotVisualProperty {visualContentAltText = Prelude.pure newValue, ..} instance Property "VisualId" ScatterPlotVisualProperty where type PropertyType "VisualId" ScatterPlotVisualProperty = Value Prelude.Text set newValue ScatterPlotVisualProperty {..} = ScatterPlotVisualProperty {visualId = newValue, ..}