module Stratosphere.QuickSight.Template.TableSortConfigurationProperty (
module Exports, TableSortConfigurationProperty(..),
mkTableSortConfigurationProperty
) 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.PaginationConfigurationProperty as Exports
import Stratosphere.ResourceProperties
data TableSortConfigurationProperty
=
TableSortConfigurationProperty {TableSortConfigurationProperty -> ()
haddock_workaround_ :: (),
:: (Prelude.Maybe PaginationConfigurationProperty),
TableSortConfigurationProperty -> Maybe [FieldSortOptionsProperty]
rowSort :: (Prelude.Maybe [FieldSortOptionsProperty])}
deriving stock (TableSortConfigurationProperty
-> TableSortConfigurationProperty -> Bool
(TableSortConfigurationProperty
-> TableSortConfigurationProperty -> Bool)
-> (TableSortConfigurationProperty
-> TableSortConfigurationProperty -> Bool)
-> Eq TableSortConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: TableSortConfigurationProperty
-> TableSortConfigurationProperty -> Bool
== :: TableSortConfigurationProperty
-> TableSortConfigurationProperty -> Bool
$c/= :: TableSortConfigurationProperty
-> TableSortConfigurationProperty -> Bool
/= :: TableSortConfigurationProperty
-> TableSortConfigurationProperty -> Bool
Prelude.Eq, Int -> TableSortConfigurationProperty -> ShowS
[TableSortConfigurationProperty] -> ShowS
TableSortConfigurationProperty -> String
(Int -> TableSortConfigurationProperty -> ShowS)
-> (TableSortConfigurationProperty -> String)
-> ([TableSortConfigurationProperty] -> ShowS)
-> Show TableSortConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> TableSortConfigurationProperty -> ShowS
showsPrec :: Int -> TableSortConfigurationProperty -> ShowS
$cshow :: TableSortConfigurationProperty -> String
show :: TableSortConfigurationProperty -> String
$cshowList :: [TableSortConfigurationProperty] -> ShowS
showList :: [TableSortConfigurationProperty] -> ShowS
Prelude.Show)
mkTableSortConfigurationProperty :: TableSortConfigurationProperty
mkTableSortConfigurationProperty :: TableSortConfigurationProperty
mkTableSortConfigurationProperty
= TableSortConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (),
paginationConfiguration :: Maybe PaginationConfigurationProperty
paginationConfiguration = Maybe PaginationConfigurationProperty
forall a. Maybe a
Prelude.Nothing,
rowSort :: Maybe [FieldSortOptionsProperty]
rowSort = Maybe [FieldSortOptionsProperty]
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties TableSortConfigurationProperty where
toResourceProperties :: TableSortConfigurationProperty -> ResourceProperties
toResourceProperties TableSortConfigurationProperty {Maybe [FieldSortOptionsProperty]
Maybe PaginationConfigurationProperty
()
haddock_workaround_ :: TableSortConfigurationProperty -> ()
paginationConfiguration :: TableSortConfigurationProperty
-> Maybe PaginationConfigurationProperty
rowSort :: TableSortConfigurationProperty -> Maybe [FieldSortOptionsProperty]
haddock_workaround_ :: ()
paginationConfiguration :: Maybe PaginationConfigurationProperty
rowSort :: Maybe [FieldSortOptionsProperty]
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::QuickSight::Template.TableSortConfiguration",
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 -> PaginationConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"PaginationConfiguration"
(PaginationConfigurationProperty -> (Key, Value))
-> Maybe PaginationConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe PaginationConfigurationProperty
paginationConfiguration,
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
"RowSort" ([FieldSortOptionsProperty] -> (Key, Value))
-> Maybe [FieldSortOptionsProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [FieldSortOptionsProperty]
rowSort])}
instance JSON.ToJSON TableSortConfigurationProperty where
toJSON :: TableSortConfigurationProperty -> Value
toJSON TableSortConfigurationProperty {Maybe [FieldSortOptionsProperty]
Maybe PaginationConfigurationProperty
()
haddock_workaround_ :: TableSortConfigurationProperty -> ()
paginationConfiguration :: TableSortConfigurationProperty
-> Maybe PaginationConfigurationProperty
rowSort :: TableSortConfigurationProperty -> Maybe [FieldSortOptionsProperty]
haddock_workaround_ :: ()
paginationConfiguration :: Maybe PaginationConfigurationProperty
rowSort :: 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 -> PaginationConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"PaginationConfiguration"
(PaginationConfigurationProperty -> (Key, Value))
-> Maybe PaginationConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe PaginationConfigurationProperty
paginationConfiguration,
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
"RowSort" ([FieldSortOptionsProperty] -> (Key, Value))
-> Maybe [FieldSortOptionsProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [FieldSortOptionsProperty]
rowSort]))
instance Property "PaginationConfiguration" TableSortConfigurationProperty where
type PropertyType "PaginationConfiguration" TableSortConfigurationProperty = PaginationConfigurationProperty
set :: PropertyType
"PaginationConfiguration" TableSortConfigurationProperty
-> TableSortConfigurationProperty -> TableSortConfigurationProperty
set PropertyType
"PaginationConfiguration" TableSortConfigurationProperty
newValue TableSortConfigurationProperty {Maybe [FieldSortOptionsProperty]
Maybe PaginationConfigurationProperty
()
haddock_workaround_ :: TableSortConfigurationProperty -> ()
paginationConfiguration :: TableSortConfigurationProperty
-> Maybe PaginationConfigurationProperty
rowSort :: TableSortConfigurationProperty -> Maybe [FieldSortOptionsProperty]
haddock_workaround_ :: ()
paginationConfiguration :: Maybe PaginationConfigurationProperty
rowSort :: Maybe [FieldSortOptionsProperty]
..}
= TableSortConfigurationProperty
{paginationConfiguration :: Maybe PaginationConfigurationProperty
paginationConfiguration = PaginationConfigurationProperty
-> Maybe PaginationConfigurationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"PaginationConfiguration" TableSortConfigurationProperty
PaginationConfigurationProperty
newValue, Maybe [FieldSortOptionsProperty]
()
haddock_workaround_ :: ()
rowSort :: Maybe [FieldSortOptionsProperty]
haddock_workaround_ :: ()
rowSort :: Maybe [FieldSortOptionsProperty]
..}
instance Property "RowSort" TableSortConfigurationProperty where
type PropertyType "RowSort" TableSortConfigurationProperty = [FieldSortOptionsProperty]
set :: PropertyType "RowSort" TableSortConfigurationProperty
-> TableSortConfigurationProperty -> TableSortConfigurationProperty
set PropertyType "RowSort" TableSortConfigurationProperty
newValue TableSortConfigurationProperty {Maybe [FieldSortOptionsProperty]
Maybe PaginationConfigurationProperty
()
haddock_workaround_ :: TableSortConfigurationProperty -> ()
paginationConfiguration :: TableSortConfigurationProperty
-> Maybe PaginationConfigurationProperty
rowSort :: TableSortConfigurationProperty -> Maybe [FieldSortOptionsProperty]
haddock_workaround_ :: ()
paginationConfiguration :: Maybe PaginationConfigurationProperty
rowSort :: Maybe [FieldSortOptionsProperty]
..}
= TableSortConfigurationProperty
{rowSort :: Maybe [FieldSortOptionsProperty]
rowSort = [FieldSortOptionsProperty] -> Maybe [FieldSortOptionsProperty]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [FieldSortOptionsProperty]
PropertyType "RowSort" TableSortConfigurationProperty
newValue, Maybe PaginationConfigurationProperty
()
haddock_workaround_ :: ()
paginationConfiguration :: Maybe PaginationConfigurationProperty
haddock_workaround_ :: ()
paginationConfiguration :: Maybe PaginationConfigurationProperty
..}