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