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