module Stratosphere.QuickSight.Template.TreeMapSortConfigurationProperty ( module Exports, TreeMapSortConfigurationProperty(..), mkTreeMapSortConfigurationProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import {-# SOURCE #-} Stratosphere.QuickSight.Template.FieldSortOptionsProperty as Exports import {-# SOURCE #-} Stratosphere.QuickSight.Template.ItemsLimitConfigurationProperty as Exports import Stratosphere.ResourceProperties data TreeMapSortConfigurationProperty = -- | See: TreeMapSortConfigurationProperty {haddock_workaround_ :: (), -- | See: treeMapGroupItemsLimitConfiguration :: (Prelude.Maybe ItemsLimitConfigurationProperty), -- | See: treeMapSort :: (Prelude.Maybe [FieldSortOptionsProperty])} deriving stock (Prelude.Eq, Prelude.Show) mkTreeMapSortConfigurationProperty :: TreeMapSortConfigurationProperty mkTreeMapSortConfigurationProperty = TreeMapSortConfigurationProperty {haddock_workaround_ = (), treeMapGroupItemsLimitConfiguration = Prelude.Nothing, treeMapSort = Prelude.Nothing} instance ToResourceProperties TreeMapSortConfigurationProperty where toResourceProperties TreeMapSortConfigurationProperty {..} = ResourceProperties {awsType = "AWS::QuickSight::Template.TreeMapSortConfiguration", supportsTags = Prelude.False, properties = Prelude.fromList (Prelude.catMaybes [(JSON..=) "TreeMapGroupItemsLimitConfiguration" Prelude.<$> treeMapGroupItemsLimitConfiguration, (JSON..=) "TreeMapSort" Prelude.<$> treeMapSort])} instance JSON.ToJSON TreeMapSortConfigurationProperty where toJSON TreeMapSortConfigurationProperty {..} = JSON.object (Prelude.fromList (Prelude.catMaybes [(JSON..=) "TreeMapGroupItemsLimitConfiguration" Prelude.<$> treeMapGroupItemsLimitConfiguration, (JSON..=) "TreeMapSort" Prelude.<$> treeMapSort])) instance Property "TreeMapGroupItemsLimitConfiguration" TreeMapSortConfigurationProperty where type PropertyType "TreeMapGroupItemsLimitConfiguration" TreeMapSortConfigurationProperty = ItemsLimitConfigurationProperty set newValue TreeMapSortConfigurationProperty {..} = TreeMapSortConfigurationProperty {treeMapGroupItemsLimitConfiguration = Prelude.pure newValue, ..} instance Property "TreeMapSort" TreeMapSortConfigurationProperty where type PropertyType "TreeMapSort" TreeMapSortConfigurationProperty = [FieldSortOptionsProperty] set newValue TreeMapSortConfigurationProperty {..} = TreeMapSortConfigurationProperty {treeMapSort = Prelude.pure newValue, ..}