module Stratosphere.QuickSight.Dashboard.WaterfallChartSortConfigurationProperty (
module Exports, WaterfallChartSortConfigurationProperty(..),
mkWaterfallChartSortConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.QuickSight.Dashboard.FieldSortOptionsProperty as Exports
import {-# SOURCE #-} Stratosphere.QuickSight.Dashboard.ItemsLimitConfigurationProperty as Exports
import Stratosphere.ResourceProperties
data WaterfallChartSortConfigurationProperty
=
WaterfallChartSortConfigurationProperty {WaterfallChartSortConfigurationProperty -> ()
haddock_workaround_ :: (),
WaterfallChartSortConfigurationProperty
-> Maybe ItemsLimitConfigurationProperty
breakdownItemsLimit :: (Prelude.Maybe ItemsLimitConfigurationProperty),
WaterfallChartSortConfigurationProperty
-> Maybe [FieldSortOptionsProperty]
categorySort :: (Prelude.Maybe [FieldSortOptionsProperty])}
deriving stock (WaterfallChartSortConfigurationProperty
-> WaterfallChartSortConfigurationProperty -> Bool
(WaterfallChartSortConfigurationProperty
-> WaterfallChartSortConfigurationProperty -> Bool)
-> (WaterfallChartSortConfigurationProperty
-> WaterfallChartSortConfigurationProperty -> Bool)
-> Eq WaterfallChartSortConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: WaterfallChartSortConfigurationProperty
-> WaterfallChartSortConfigurationProperty -> Bool
== :: WaterfallChartSortConfigurationProperty
-> WaterfallChartSortConfigurationProperty -> Bool
$c/= :: WaterfallChartSortConfigurationProperty
-> WaterfallChartSortConfigurationProperty -> Bool
/= :: WaterfallChartSortConfigurationProperty
-> WaterfallChartSortConfigurationProperty -> Bool
Prelude.Eq, Int -> WaterfallChartSortConfigurationProperty -> ShowS
[WaterfallChartSortConfigurationProperty] -> ShowS
WaterfallChartSortConfigurationProperty -> String
(Int -> WaterfallChartSortConfigurationProperty -> ShowS)
-> (WaterfallChartSortConfigurationProperty -> String)
-> ([WaterfallChartSortConfigurationProperty] -> ShowS)
-> Show WaterfallChartSortConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> WaterfallChartSortConfigurationProperty -> ShowS
showsPrec :: Int -> WaterfallChartSortConfigurationProperty -> ShowS
$cshow :: WaterfallChartSortConfigurationProperty -> String
show :: WaterfallChartSortConfigurationProperty -> String
$cshowList :: [WaterfallChartSortConfigurationProperty] -> ShowS
showList :: [WaterfallChartSortConfigurationProperty] -> ShowS
Prelude.Show)
mkWaterfallChartSortConfigurationProperty ::
WaterfallChartSortConfigurationProperty
mkWaterfallChartSortConfigurationProperty :: WaterfallChartSortConfigurationProperty
mkWaterfallChartSortConfigurationProperty
= WaterfallChartSortConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), breakdownItemsLimit :: Maybe ItemsLimitConfigurationProperty
breakdownItemsLimit = Maybe ItemsLimitConfigurationProperty
forall a. Maybe a
Prelude.Nothing,
categorySort :: Maybe [FieldSortOptionsProperty]
categorySort = Maybe [FieldSortOptionsProperty]
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties WaterfallChartSortConfigurationProperty where
toResourceProperties :: WaterfallChartSortConfigurationProperty -> ResourceProperties
toResourceProperties WaterfallChartSortConfigurationProperty {Maybe [FieldSortOptionsProperty]
Maybe ItemsLimitConfigurationProperty
()
haddock_workaround_ :: WaterfallChartSortConfigurationProperty -> ()
breakdownItemsLimit :: WaterfallChartSortConfigurationProperty
-> Maybe ItemsLimitConfigurationProperty
categorySort :: WaterfallChartSortConfigurationProperty
-> Maybe [FieldSortOptionsProperty]
haddock_workaround_ :: ()
breakdownItemsLimit :: Maybe ItemsLimitConfigurationProperty
categorySort :: Maybe [FieldSortOptionsProperty]
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::QuickSight::Dashboard.WaterfallChartSortConfiguration",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> ItemsLimitConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"BreakdownItemsLimit" (ItemsLimitConfigurationProperty -> (Key, Value))
-> Maybe ItemsLimitConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ItemsLimitConfigurationProperty
breakdownItemsLimit,
Key -> [FieldSortOptionsProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"CategorySort" ([FieldSortOptionsProperty] -> (Key, Value))
-> Maybe [FieldSortOptionsProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [FieldSortOptionsProperty]
categorySort])}
instance JSON.ToJSON WaterfallChartSortConfigurationProperty where
toJSON :: WaterfallChartSortConfigurationProperty -> Value
toJSON WaterfallChartSortConfigurationProperty {Maybe [FieldSortOptionsProperty]
Maybe ItemsLimitConfigurationProperty
()
haddock_workaround_ :: WaterfallChartSortConfigurationProperty -> ()
breakdownItemsLimit :: WaterfallChartSortConfigurationProperty
-> Maybe ItemsLimitConfigurationProperty
categorySort :: WaterfallChartSortConfigurationProperty
-> Maybe [FieldSortOptionsProperty]
haddock_workaround_ :: ()
breakdownItemsLimit :: Maybe ItemsLimitConfigurationProperty
categorySort :: Maybe [FieldSortOptionsProperty]
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> ItemsLimitConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"BreakdownItemsLimit" (ItemsLimitConfigurationProperty -> (Key, Value))
-> Maybe ItemsLimitConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ItemsLimitConfigurationProperty
breakdownItemsLimit,
Key -> [FieldSortOptionsProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"CategorySort" ([FieldSortOptionsProperty] -> (Key, Value))
-> Maybe [FieldSortOptionsProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [FieldSortOptionsProperty]
categorySort]))
instance Property "BreakdownItemsLimit" WaterfallChartSortConfigurationProperty where
type PropertyType "BreakdownItemsLimit" WaterfallChartSortConfigurationProperty = ItemsLimitConfigurationProperty
set :: PropertyType
"BreakdownItemsLimit" WaterfallChartSortConfigurationProperty
-> WaterfallChartSortConfigurationProperty
-> WaterfallChartSortConfigurationProperty
set PropertyType
"BreakdownItemsLimit" WaterfallChartSortConfigurationProperty
newValue WaterfallChartSortConfigurationProperty {Maybe [FieldSortOptionsProperty]
Maybe ItemsLimitConfigurationProperty
()
haddock_workaround_ :: WaterfallChartSortConfigurationProperty -> ()
breakdownItemsLimit :: WaterfallChartSortConfigurationProperty
-> Maybe ItemsLimitConfigurationProperty
categorySort :: WaterfallChartSortConfigurationProperty
-> Maybe [FieldSortOptionsProperty]
haddock_workaround_ :: ()
breakdownItemsLimit :: Maybe ItemsLimitConfigurationProperty
categorySort :: Maybe [FieldSortOptionsProperty]
..}
= WaterfallChartSortConfigurationProperty
{breakdownItemsLimit :: Maybe ItemsLimitConfigurationProperty
breakdownItemsLimit = ItemsLimitConfigurationProperty
-> Maybe ItemsLimitConfigurationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"BreakdownItemsLimit" WaterfallChartSortConfigurationProperty
ItemsLimitConfigurationProperty
newValue, Maybe [FieldSortOptionsProperty]
()
haddock_workaround_ :: ()
categorySort :: Maybe [FieldSortOptionsProperty]
haddock_workaround_ :: ()
categorySort :: Maybe [FieldSortOptionsProperty]
..}
instance Property "CategorySort" WaterfallChartSortConfigurationProperty where
type PropertyType "CategorySort" WaterfallChartSortConfigurationProperty = [FieldSortOptionsProperty]
set :: PropertyType "CategorySort" WaterfallChartSortConfigurationProperty
-> WaterfallChartSortConfigurationProperty
-> WaterfallChartSortConfigurationProperty
set PropertyType "CategorySort" WaterfallChartSortConfigurationProperty
newValue WaterfallChartSortConfigurationProperty {Maybe [FieldSortOptionsProperty]
Maybe ItemsLimitConfigurationProperty
()
haddock_workaround_ :: WaterfallChartSortConfigurationProperty -> ()
breakdownItemsLimit :: WaterfallChartSortConfigurationProperty
-> Maybe ItemsLimitConfigurationProperty
categorySort :: WaterfallChartSortConfigurationProperty
-> Maybe [FieldSortOptionsProperty]
haddock_workaround_ :: ()
breakdownItemsLimit :: Maybe ItemsLimitConfigurationProperty
categorySort :: Maybe [FieldSortOptionsProperty]
..}
= WaterfallChartSortConfigurationProperty
{categorySort :: Maybe [FieldSortOptionsProperty]
categorySort = [FieldSortOptionsProperty] -> Maybe [FieldSortOptionsProperty]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [FieldSortOptionsProperty]
PropertyType "CategorySort" WaterfallChartSortConfigurationProperty
newValue, Maybe ItemsLimitConfigurationProperty
()
haddock_workaround_ :: ()
breakdownItemsLimit :: Maybe ItemsLimitConfigurationProperty
haddock_workaround_ :: ()
breakdownItemsLimit :: Maybe ItemsLimitConfigurationProperty
..}