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