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