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