module Stratosphere.QuickSight.Dashboard.GeospatialLineWidthProperty (
GeospatialLineWidthProperty(..), mkGeospatialLineWidthProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data GeospatialLineWidthProperty
=
GeospatialLineWidthProperty {GeospatialLineWidthProperty -> ()
haddock_workaround_ :: (),
GeospatialLineWidthProperty -> Maybe (Value Double)
lineWidth :: (Prelude.Maybe (Value Prelude.Double))}
deriving stock (GeospatialLineWidthProperty -> GeospatialLineWidthProperty -> Bool
(GeospatialLineWidthProperty
-> GeospatialLineWidthProperty -> Bool)
-> (GeospatialLineWidthProperty
-> GeospatialLineWidthProperty -> Bool)
-> Eq GeospatialLineWidthProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: GeospatialLineWidthProperty -> GeospatialLineWidthProperty -> Bool
== :: GeospatialLineWidthProperty -> GeospatialLineWidthProperty -> Bool
$c/= :: GeospatialLineWidthProperty -> GeospatialLineWidthProperty -> Bool
/= :: GeospatialLineWidthProperty -> GeospatialLineWidthProperty -> Bool
Prelude.Eq, Int -> GeospatialLineWidthProperty -> ShowS
[GeospatialLineWidthProperty] -> ShowS
GeospatialLineWidthProperty -> String
(Int -> GeospatialLineWidthProperty -> ShowS)
-> (GeospatialLineWidthProperty -> String)
-> ([GeospatialLineWidthProperty] -> ShowS)
-> Show GeospatialLineWidthProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> GeospatialLineWidthProperty -> ShowS
showsPrec :: Int -> GeospatialLineWidthProperty -> ShowS
$cshow :: GeospatialLineWidthProperty -> String
show :: GeospatialLineWidthProperty -> String
$cshowList :: [GeospatialLineWidthProperty] -> ShowS
showList :: [GeospatialLineWidthProperty] -> ShowS
Prelude.Show)
mkGeospatialLineWidthProperty :: GeospatialLineWidthProperty
mkGeospatialLineWidthProperty :: GeospatialLineWidthProperty
mkGeospatialLineWidthProperty
= GeospatialLineWidthProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), lineWidth :: Maybe (Value Double)
lineWidth = Maybe (Value Double)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties GeospatialLineWidthProperty where
toResourceProperties :: GeospatialLineWidthProperty -> ResourceProperties
toResourceProperties GeospatialLineWidthProperty {Maybe (Value Double)
()
haddock_workaround_ :: GeospatialLineWidthProperty -> ()
lineWidth :: GeospatialLineWidthProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
lineWidth :: Maybe (Value Double)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::QuickSight::Dashboard.GeospatialLineWidth",
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 Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"LineWidth" (Value Double -> (Key, Value))
-> Maybe (Value Double) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Double)
lineWidth])}
instance JSON.ToJSON GeospatialLineWidthProperty where
toJSON :: GeospatialLineWidthProperty -> Value
toJSON GeospatialLineWidthProperty {Maybe (Value Double)
()
haddock_workaround_ :: GeospatialLineWidthProperty -> ()
lineWidth :: GeospatialLineWidthProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
lineWidth :: Maybe (Value Double)
..}
= [(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 Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"LineWidth" (Value Double -> (Key, Value))
-> Maybe (Value Double) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Double)
lineWidth]))
instance Property "LineWidth" GeospatialLineWidthProperty where
type PropertyType "LineWidth" GeospatialLineWidthProperty = Value Prelude.Double
set :: PropertyType "LineWidth" GeospatialLineWidthProperty
-> GeospatialLineWidthProperty -> GeospatialLineWidthProperty
set PropertyType "LineWidth" GeospatialLineWidthProperty
newValue GeospatialLineWidthProperty {Maybe (Value Double)
()
haddock_workaround_ :: GeospatialLineWidthProperty -> ()
lineWidth :: GeospatialLineWidthProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
lineWidth :: Maybe (Value Double)
..}
= GeospatialLineWidthProperty
{lineWidth :: Maybe (Value Double)
lineWidth = Value Double -> Maybe (Value Double)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "LineWidth" GeospatialLineWidthProperty
Value Double
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}