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