module Stratosphere.QuickSight.Dashboard.BoxPlotSortConfigurationProperty (
module Exports, BoxPlotSortConfigurationProperty(..),
mkBoxPlotSortConfigurationProperty
) 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.PaginationConfigurationProperty as Exports
import Stratosphere.ResourceProperties
data BoxPlotSortConfigurationProperty
=
BoxPlotSortConfigurationProperty {BoxPlotSortConfigurationProperty -> ()
haddock_workaround_ :: (),
BoxPlotSortConfigurationProperty
-> Maybe [FieldSortOptionsProperty]
categorySort :: (Prelude.Maybe [FieldSortOptionsProperty]),
:: (Prelude.Maybe PaginationConfigurationProperty)}
deriving stock (BoxPlotSortConfigurationProperty
-> BoxPlotSortConfigurationProperty -> Bool
(BoxPlotSortConfigurationProperty
-> BoxPlotSortConfigurationProperty -> Bool)
-> (BoxPlotSortConfigurationProperty
-> BoxPlotSortConfigurationProperty -> Bool)
-> Eq BoxPlotSortConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: BoxPlotSortConfigurationProperty
-> BoxPlotSortConfigurationProperty -> Bool
== :: BoxPlotSortConfigurationProperty
-> BoxPlotSortConfigurationProperty -> Bool
$c/= :: BoxPlotSortConfigurationProperty
-> BoxPlotSortConfigurationProperty -> Bool
/= :: BoxPlotSortConfigurationProperty
-> BoxPlotSortConfigurationProperty -> Bool
Prelude.Eq, Int -> BoxPlotSortConfigurationProperty -> ShowS
[BoxPlotSortConfigurationProperty] -> ShowS
BoxPlotSortConfigurationProperty -> String
(Int -> BoxPlotSortConfigurationProperty -> ShowS)
-> (BoxPlotSortConfigurationProperty -> String)
-> ([BoxPlotSortConfigurationProperty] -> ShowS)
-> Show BoxPlotSortConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> BoxPlotSortConfigurationProperty -> ShowS
showsPrec :: Int -> BoxPlotSortConfigurationProperty -> ShowS
$cshow :: BoxPlotSortConfigurationProperty -> String
show :: BoxPlotSortConfigurationProperty -> String
$cshowList :: [BoxPlotSortConfigurationProperty] -> ShowS
showList :: [BoxPlotSortConfigurationProperty] -> ShowS
Prelude.Show)
mkBoxPlotSortConfigurationProperty ::
BoxPlotSortConfigurationProperty
mkBoxPlotSortConfigurationProperty :: BoxPlotSortConfigurationProperty
mkBoxPlotSortConfigurationProperty
= BoxPlotSortConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), categorySort :: Maybe [FieldSortOptionsProperty]
categorySort = Maybe [FieldSortOptionsProperty]
forall a. Maybe a
Prelude.Nothing,
paginationConfiguration :: Maybe PaginationConfigurationProperty
paginationConfiguration = Maybe PaginationConfigurationProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties BoxPlotSortConfigurationProperty where
toResourceProperties :: BoxPlotSortConfigurationProperty -> ResourceProperties
toResourceProperties BoxPlotSortConfigurationProperty {Maybe [FieldSortOptionsProperty]
Maybe PaginationConfigurationProperty
()
haddock_workaround_ :: BoxPlotSortConfigurationProperty -> ()
categorySort :: BoxPlotSortConfigurationProperty
-> Maybe [FieldSortOptionsProperty]
paginationConfiguration :: BoxPlotSortConfigurationProperty
-> Maybe PaginationConfigurationProperty
haddock_workaround_ :: ()
categorySort :: Maybe [FieldSortOptionsProperty]
paginationConfiguration :: Maybe PaginationConfigurationProperty
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::QuickSight::Dashboard.BoxPlotSortConfiguration",
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 -> [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,
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])}
instance JSON.ToJSON BoxPlotSortConfigurationProperty where
toJSON :: BoxPlotSortConfigurationProperty -> Value
toJSON BoxPlotSortConfigurationProperty {Maybe [FieldSortOptionsProperty]
Maybe PaginationConfigurationProperty
()
haddock_workaround_ :: BoxPlotSortConfigurationProperty -> ()
categorySort :: BoxPlotSortConfigurationProperty
-> Maybe [FieldSortOptionsProperty]
paginationConfiguration :: BoxPlotSortConfigurationProperty
-> Maybe PaginationConfigurationProperty
haddock_workaround_ :: ()
categorySort :: Maybe [FieldSortOptionsProperty]
paginationConfiguration :: Maybe PaginationConfigurationProperty
..}
= [(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 -> [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,
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]))
instance Property "CategorySort" BoxPlotSortConfigurationProperty where
type PropertyType "CategorySort" BoxPlotSortConfigurationProperty = [FieldSortOptionsProperty]
set :: PropertyType "CategorySort" BoxPlotSortConfigurationProperty
-> BoxPlotSortConfigurationProperty
-> BoxPlotSortConfigurationProperty
set PropertyType "CategorySort" BoxPlotSortConfigurationProperty
newValue BoxPlotSortConfigurationProperty {Maybe [FieldSortOptionsProperty]
Maybe PaginationConfigurationProperty
()
haddock_workaround_ :: BoxPlotSortConfigurationProperty -> ()
categorySort :: BoxPlotSortConfigurationProperty
-> Maybe [FieldSortOptionsProperty]
paginationConfiguration :: BoxPlotSortConfigurationProperty
-> Maybe PaginationConfigurationProperty
haddock_workaround_ :: ()
categorySort :: Maybe [FieldSortOptionsProperty]
paginationConfiguration :: Maybe PaginationConfigurationProperty
..}
= BoxPlotSortConfigurationProperty
{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" BoxPlotSortConfigurationProperty
newValue, Maybe PaginationConfigurationProperty
()
haddock_workaround_ :: ()
paginationConfiguration :: Maybe PaginationConfigurationProperty
haddock_workaround_ :: ()
paginationConfiguration :: Maybe PaginationConfigurationProperty
..}
instance Property "PaginationConfiguration" BoxPlotSortConfigurationProperty where
type PropertyType "PaginationConfiguration" BoxPlotSortConfigurationProperty = PaginationConfigurationProperty
set :: PropertyType
"PaginationConfiguration" BoxPlotSortConfigurationProperty
-> BoxPlotSortConfigurationProperty
-> BoxPlotSortConfigurationProperty
set PropertyType
"PaginationConfiguration" BoxPlotSortConfigurationProperty
newValue BoxPlotSortConfigurationProperty {Maybe [FieldSortOptionsProperty]
Maybe PaginationConfigurationProperty
()
haddock_workaround_ :: BoxPlotSortConfigurationProperty -> ()
categorySort :: BoxPlotSortConfigurationProperty
-> Maybe [FieldSortOptionsProperty]
paginationConfiguration :: BoxPlotSortConfigurationProperty
-> Maybe PaginationConfigurationProperty
haddock_workaround_ :: ()
categorySort :: Maybe [FieldSortOptionsProperty]
paginationConfiguration :: Maybe PaginationConfigurationProperty
..}
= BoxPlotSortConfigurationProperty
{paginationConfiguration :: Maybe PaginationConfigurationProperty
paginationConfiguration = PaginationConfigurationProperty
-> Maybe PaginationConfigurationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"PaginationConfiguration" BoxPlotSortConfigurationProperty
PaginationConfigurationProperty
newValue, Maybe [FieldSortOptionsProperty]
()
haddock_workaround_ :: ()
categorySort :: Maybe [FieldSortOptionsProperty]
haddock_workaround_ :: ()
categorySort :: Maybe [FieldSortOptionsProperty]
..}