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