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