module Stratosphere.QuickSight.Dashboard.GeospatialSolidColorProperty (
GeospatialSolidColorProperty(..), mkGeospatialSolidColorProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data GeospatialSolidColorProperty
=
GeospatialSolidColorProperty {GeospatialSolidColorProperty -> ()
haddock_workaround_ :: (),
GeospatialSolidColorProperty -> Value Text
color :: (Value Prelude.Text),
GeospatialSolidColorProperty -> Maybe (Value Text)
state :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (GeospatialSolidColorProperty
-> GeospatialSolidColorProperty -> Bool
(GeospatialSolidColorProperty
-> GeospatialSolidColorProperty -> Bool)
-> (GeospatialSolidColorProperty
-> GeospatialSolidColorProperty -> Bool)
-> Eq GeospatialSolidColorProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: GeospatialSolidColorProperty
-> GeospatialSolidColorProperty -> Bool
== :: GeospatialSolidColorProperty
-> GeospatialSolidColorProperty -> Bool
$c/= :: GeospatialSolidColorProperty
-> GeospatialSolidColorProperty -> Bool
/= :: GeospatialSolidColorProperty
-> GeospatialSolidColorProperty -> Bool
Prelude.Eq, Int -> GeospatialSolidColorProperty -> ShowS
[GeospatialSolidColorProperty] -> ShowS
GeospatialSolidColorProperty -> String
(Int -> GeospatialSolidColorProperty -> ShowS)
-> (GeospatialSolidColorProperty -> String)
-> ([GeospatialSolidColorProperty] -> ShowS)
-> Show GeospatialSolidColorProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> GeospatialSolidColorProperty -> ShowS
showsPrec :: Int -> GeospatialSolidColorProperty -> ShowS
$cshow :: GeospatialSolidColorProperty -> String
show :: GeospatialSolidColorProperty -> String
$cshowList :: [GeospatialSolidColorProperty] -> ShowS
showList :: [GeospatialSolidColorProperty] -> ShowS
Prelude.Show)
mkGeospatialSolidColorProperty ::
Value Prelude.Text -> GeospatialSolidColorProperty
mkGeospatialSolidColorProperty :: Value Text -> GeospatialSolidColorProperty
mkGeospatialSolidColorProperty Value Text
color
= GeospatialSolidColorProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), color :: Value Text
color = Value Text
color, state :: Maybe (Value Text)
state = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties GeospatialSolidColorProperty where
toResourceProperties :: GeospatialSolidColorProperty -> ResourceProperties
toResourceProperties GeospatialSolidColorProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: GeospatialSolidColorProperty -> ()
color :: GeospatialSolidColorProperty -> Value Text
state :: GeospatialSolidColorProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
color :: Value Text
state :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::QuickSight::Dashboard.GeospatialSolidColor",
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
"Color" 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
color]
([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
"State" (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)
state]))}
instance JSON.ToJSON GeospatialSolidColorProperty where
toJSON :: GeospatialSolidColorProperty -> Value
toJSON GeospatialSolidColorProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: GeospatialSolidColorProperty -> ()
color :: GeospatialSolidColorProperty -> Value Text
state :: GeospatialSolidColorProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
color :: Value Text
state :: Maybe (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
"Color" 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
color]
([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
"State" (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)
state])))
instance Property "Color" GeospatialSolidColorProperty where
type PropertyType "Color" GeospatialSolidColorProperty = Value Prelude.Text
set :: PropertyType "Color" GeospatialSolidColorProperty
-> GeospatialSolidColorProperty -> GeospatialSolidColorProperty
set PropertyType "Color" GeospatialSolidColorProperty
newValue GeospatialSolidColorProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: GeospatialSolidColorProperty -> ()
color :: GeospatialSolidColorProperty -> Value Text
state :: GeospatialSolidColorProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
color :: Value Text
state :: Maybe (Value Text)
..}
= GeospatialSolidColorProperty {color :: Value Text
color = PropertyType "Color" GeospatialSolidColorProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
state :: Maybe (Value Text)
haddock_workaround_ :: ()
state :: Maybe (Value Text)
..}
instance Property "State" GeospatialSolidColorProperty where
type PropertyType "State" GeospatialSolidColorProperty = Value Prelude.Text
set :: PropertyType "State" GeospatialSolidColorProperty
-> GeospatialSolidColorProperty -> GeospatialSolidColorProperty
set PropertyType "State" GeospatialSolidColorProperty
newValue GeospatialSolidColorProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: GeospatialSolidColorProperty -> ()
color :: GeospatialSolidColorProperty -> Value Text
state :: GeospatialSolidColorProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
color :: Value Text
state :: Maybe (Value Text)
..}
= GeospatialSolidColorProperty {state :: Maybe (Value Text)
state = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "State" GeospatialSolidColorProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
color :: Value Text
haddock_workaround_ :: ()
color :: Value Text
..}