module Stratosphere.QuickSight.Analysis.SpatialStaticFileProperty (
        module Exports, SpatialStaticFileProperty(..),
        mkSpatialStaticFileProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.QuickSight.Analysis.StaticFileSourceProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data SpatialStaticFileProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-analysis-spatialstaticfile.html>
    SpatialStaticFileProperty {SpatialStaticFileProperty -> ()
haddock_workaround_ :: (),
                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-analysis-spatialstaticfile.html#cfn-quicksight-analysis-spatialstaticfile-source>
                               SpatialStaticFileProperty -> Maybe StaticFileSourceProperty
source :: (Prelude.Maybe StaticFileSourceProperty),
                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-analysis-spatialstaticfile.html#cfn-quicksight-analysis-spatialstaticfile-staticfileid>
                               SpatialStaticFileProperty -> Value Text
staticFileId :: (Value Prelude.Text)}
  deriving stock (SpatialStaticFileProperty -> SpatialStaticFileProperty -> Bool
(SpatialStaticFileProperty -> SpatialStaticFileProperty -> Bool)
-> (SpatialStaticFileProperty -> SpatialStaticFileProperty -> Bool)
-> Eq SpatialStaticFileProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: SpatialStaticFileProperty -> SpatialStaticFileProperty -> Bool
== :: SpatialStaticFileProperty -> SpatialStaticFileProperty -> Bool
$c/= :: SpatialStaticFileProperty -> SpatialStaticFileProperty -> Bool
/= :: SpatialStaticFileProperty -> SpatialStaticFileProperty -> Bool
Prelude.Eq, Int -> SpatialStaticFileProperty -> ShowS
[SpatialStaticFileProperty] -> ShowS
SpatialStaticFileProperty -> String
(Int -> SpatialStaticFileProperty -> ShowS)
-> (SpatialStaticFileProperty -> String)
-> ([SpatialStaticFileProperty] -> ShowS)
-> Show SpatialStaticFileProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> SpatialStaticFileProperty -> ShowS
showsPrec :: Int -> SpatialStaticFileProperty -> ShowS
$cshow :: SpatialStaticFileProperty -> String
show :: SpatialStaticFileProperty -> String
$cshowList :: [SpatialStaticFileProperty] -> ShowS
showList :: [SpatialStaticFileProperty] -> ShowS
Prelude.Show)
mkSpatialStaticFileProperty ::
  Value Prelude.Text -> SpatialStaticFileProperty
mkSpatialStaticFileProperty :: Value Text -> SpatialStaticFileProperty
mkSpatialStaticFileProperty Value Text
staticFileId
  = SpatialStaticFileProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), staticFileId :: Value Text
staticFileId = Value Text
staticFileId,
       source :: Maybe StaticFileSourceProperty
source = Maybe StaticFileSourceProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties SpatialStaticFileProperty where
  toResourceProperties :: SpatialStaticFileProperty -> ResourceProperties
toResourceProperties SpatialStaticFileProperty {Maybe StaticFileSourceProperty
()
Value Text
haddock_workaround_ :: SpatialStaticFileProperty -> ()
source :: SpatialStaticFileProperty -> Maybe StaticFileSourceProperty
staticFileId :: SpatialStaticFileProperty -> Value Text
haddock_workaround_ :: ()
source :: Maybe StaticFileSourceProperty
staticFileId :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::QuickSight::Analysis.SpatialStaticFile",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
                        ([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
                           [Key
"StaticFileId" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
staticFileId]
                           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes [Key -> StaticFileSourceProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Source" (StaticFileSourceProperty -> (Key, Value))
-> Maybe StaticFileSourceProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe StaticFileSourceProperty
source]))}
instance JSON.ToJSON SpatialStaticFileProperty where
  toJSON :: SpatialStaticFileProperty -> Value
toJSON SpatialStaticFileProperty {Maybe StaticFileSourceProperty
()
Value Text
haddock_workaround_ :: SpatialStaticFileProperty -> ()
source :: SpatialStaticFileProperty -> Maybe StaticFileSourceProperty
staticFileId :: SpatialStaticFileProperty -> Value Text
haddock_workaround_ :: ()
source :: Maybe StaticFileSourceProperty
staticFileId :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object
        ([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
           ([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
              [Key
"StaticFileId" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
staticFileId]
              ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes [Key -> StaticFileSourceProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Source" (StaticFileSourceProperty -> (Key, Value))
-> Maybe StaticFileSourceProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe StaticFileSourceProperty
source])))
instance Property "Source" SpatialStaticFileProperty where
  type PropertyType "Source" SpatialStaticFileProperty = StaticFileSourceProperty
  set :: PropertyType "Source" SpatialStaticFileProperty
-> SpatialStaticFileProperty -> SpatialStaticFileProperty
set PropertyType "Source" SpatialStaticFileProperty
newValue SpatialStaticFileProperty {Maybe StaticFileSourceProperty
()
Value Text
haddock_workaround_ :: SpatialStaticFileProperty -> ()
source :: SpatialStaticFileProperty -> Maybe StaticFileSourceProperty
staticFileId :: SpatialStaticFileProperty -> Value Text
haddock_workaround_ :: ()
source :: Maybe StaticFileSourceProperty
staticFileId :: Value Text
..}
    = SpatialStaticFileProperty {source :: Maybe StaticFileSourceProperty
source = StaticFileSourceProperty -> Maybe StaticFileSourceProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Source" SpatialStaticFileProperty
StaticFileSourceProperty
newValue, ()
Value Text
haddock_workaround_ :: ()
staticFileId :: Value Text
haddock_workaround_ :: ()
staticFileId :: Value Text
..}
instance Property "StaticFileId" SpatialStaticFileProperty where
  type PropertyType "StaticFileId" SpatialStaticFileProperty = Value Prelude.Text
  set :: PropertyType "StaticFileId" SpatialStaticFileProperty
-> SpatialStaticFileProperty -> SpatialStaticFileProperty
set PropertyType "StaticFileId" SpatialStaticFileProperty
newValue SpatialStaticFileProperty {Maybe StaticFileSourceProperty
()
Value Text
haddock_workaround_ :: SpatialStaticFileProperty -> ()
source :: SpatialStaticFileProperty -> Maybe StaticFileSourceProperty
staticFileId :: SpatialStaticFileProperty -> Value Text
haddock_workaround_ :: ()
source :: Maybe StaticFileSourceProperty
staticFileId :: Value Text
..}
    = SpatialStaticFileProperty {staticFileId :: Value Text
staticFileId = PropertyType "StaticFileId" SpatialStaticFileProperty
Value Text
newValue, Maybe StaticFileSourceProperty
()
haddock_workaround_ :: ()
source :: Maybe StaticFileSourceProperty
haddock_workaround_ :: ()
source :: Maybe StaticFileSourceProperty
..}