module Stratosphere.QuickSight.Dashboard.DefaultPaginatedLayoutConfigurationProperty (
        module Exports, DefaultPaginatedLayoutConfigurationProperty(..),
        mkDefaultPaginatedLayoutConfigurationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.QuickSight.Dashboard.DefaultSectionBasedLayoutConfigurationProperty as Exports
import Stratosphere.ResourceProperties
data DefaultPaginatedLayoutConfigurationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dashboard-defaultpaginatedlayoutconfiguration.html>
    DefaultPaginatedLayoutConfigurationProperty {DefaultPaginatedLayoutConfigurationProperty -> ()
haddock_workaround_ :: (),
                                                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dashboard-defaultpaginatedlayoutconfiguration.html#cfn-quicksight-dashboard-defaultpaginatedlayoutconfiguration-sectionbased>
                                                 DefaultPaginatedLayoutConfigurationProperty
-> Maybe DefaultSectionBasedLayoutConfigurationProperty
sectionBased :: (Prelude.Maybe DefaultSectionBasedLayoutConfigurationProperty)}
  deriving stock (DefaultPaginatedLayoutConfigurationProperty
-> DefaultPaginatedLayoutConfigurationProperty -> Bool
(DefaultPaginatedLayoutConfigurationProperty
 -> DefaultPaginatedLayoutConfigurationProperty -> Bool)
-> (DefaultPaginatedLayoutConfigurationProperty
    -> DefaultPaginatedLayoutConfigurationProperty -> Bool)
-> Eq DefaultPaginatedLayoutConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: DefaultPaginatedLayoutConfigurationProperty
-> DefaultPaginatedLayoutConfigurationProperty -> Bool
== :: DefaultPaginatedLayoutConfigurationProperty
-> DefaultPaginatedLayoutConfigurationProperty -> Bool
$c/= :: DefaultPaginatedLayoutConfigurationProperty
-> DefaultPaginatedLayoutConfigurationProperty -> Bool
/= :: DefaultPaginatedLayoutConfigurationProperty
-> DefaultPaginatedLayoutConfigurationProperty -> Bool
Prelude.Eq, Int -> DefaultPaginatedLayoutConfigurationProperty -> ShowS
[DefaultPaginatedLayoutConfigurationProperty] -> ShowS
DefaultPaginatedLayoutConfigurationProperty -> String
(Int -> DefaultPaginatedLayoutConfigurationProperty -> ShowS)
-> (DefaultPaginatedLayoutConfigurationProperty -> String)
-> ([DefaultPaginatedLayoutConfigurationProperty] -> ShowS)
-> Show DefaultPaginatedLayoutConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> DefaultPaginatedLayoutConfigurationProperty -> ShowS
showsPrec :: Int -> DefaultPaginatedLayoutConfigurationProperty -> ShowS
$cshow :: DefaultPaginatedLayoutConfigurationProperty -> String
show :: DefaultPaginatedLayoutConfigurationProperty -> String
$cshowList :: [DefaultPaginatedLayoutConfigurationProperty] -> ShowS
showList :: [DefaultPaginatedLayoutConfigurationProperty] -> ShowS
Prelude.Show)
mkDefaultPaginatedLayoutConfigurationProperty ::
  DefaultPaginatedLayoutConfigurationProperty
mkDefaultPaginatedLayoutConfigurationProperty :: DefaultPaginatedLayoutConfigurationProperty
mkDefaultPaginatedLayoutConfigurationProperty
  = DefaultPaginatedLayoutConfigurationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), sectionBased :: Maybe DefaultSectionBasedLayoutConfigurationProperty
sectionBased = Maybe DefaultSectionBasedLayoutConfigurationProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties DefaultPaginatedLayoutConfigurationProperty where
  toResourceProperties :: DefaultPaginatedLayoutConfigurationProperty -> ResourceProperties
toResourceProperties
    DefaultPaginatedLayoutConfigurationProperty {Maybe DefaultSectionBasedLayoutConfigurationProperty
()
haddock_workaround_ :: DefaultPaginatedLayoutConfigurationProperty -> ()
sectionBased :: DefaultPaginatedLayoutConfigurationProperty
-> Maybe DefaultSectionBasedLayoutConfigurationProperty
haddock_workaround_ :: ()
sectionBased :: Maybe DefaultSectionBasedLayoutConfigurationProperty
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::QuickSight::Dashboard.DefaultPaginatedLayoutConfiguration",
         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
-> DefaultSectionBasedLayoutConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"SectionBased" (DefaultSectionBasedLayoutConfigurationProperty -> (Key, Value))
-> Maybe DefaultSectionBasedLayoutConfigurationProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe DefaultSectionBasedLayoutConfigurationProperty
sectionBased])}
instance JSON.ToJSON DefaultPaginatedLayoutConfigurationProperty where
  toJSON :: DefaultPaginatedLayoutConfigurationProperty -> Value
toJSON DefaultPaginatedLayoutConfigurationProperty {Maybe DefaultSectionBasedLayoutConfigurationProperty
()
haddock_workaround_ :: DefaultPaginatedLayoutConfigurationProperty -> ()
sectionBased :: DefaultPaginatedLayoutConfigurationProperty
-> Maybe DefaultSectionBasedLayoutConfigurationProperty
haddock_workaround_ :: ()
sectionBased :: Maybe DefaultSectionBasedLayoutConfigurationProperty
..}
    = [(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
-> DefaultSectionBasedLayoutConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"SectionBased" (DefaultSectionBasedLayoutConfigurationProperty -> (Key, Value))
-> Maybe DefaultSectionBasedLayoutConfigurationProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe DefaultSectionBasedLayoutConfigurationProperty
sectionBased]))
instance Property "SectionBased" DefaultPaginatedLayoutConfigurationProperty where
  type PropertyType "SectionBased" DefaultPaginatedLayoutConfigurationProperty = DefaultSectionBasedLayoutConfigurationProperty
  set :: PropertyType
  "SectionBased" DefaultPaginatedLayoutConfigurationProperty
-> DefaultPaginatedLayoutConfigurationProperty
-> DefaultPaginatedLayoutConfigurationProperty
set PropertyType
  "SectionBased" DefaultPaginatedLayoutConfigurationProperty
newValue DefaultPaginatedLayoutConfigurationProperty {Maybe DefaultSectionBasedLayoutConfigurationProperty
()
haddock_workaround_ :: DefaultPaginatedLayoutConfigurationProperty -> ()
sectionBased :: DefaultPaginatedLayoutConfigurationProperty
-> Maybe DefaultSectionBasedLayoutConfigurationProperty
haddock_workaround_ :: ()
sectionBased :: Maybe DefaultSectionBasedLayoutConfigurationProperty
..}
    = DefaultPaginatedLayoutConfigurationProperty
        {sectionBased :: Maybe DefaultSectionBasedLayoutConfigurationProperty
sectionBased = DefaultSectionBasedLayoutConfigurationProperty
-> Maybe DefaultSectionBasedLayoutConfigurationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "SectionBased" DefaultPaginatedLayoutConfigurationProperty
DefaultSectionBasedLayoutConfigurationProperty
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}