module Stratosphere.QuickSight.Analysis.GeospatialColorProperty (
module Exports, GeospatialColorProperty(..),
mkGeospatialColorProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.QuickSight.Analysis.GeospatialCategoricalColorProperty as Exports
import {-# SOURCE #-} Stratosphere.QuickSight.Analysis.GeospatialGradientColorProperty as Exports
import {-# SOURCE #-} Stratosphere.QuickSight.Analysis.GeospatialSolidColorProperty as Exports
import Stratosphere.ResourceProperties
data GeospatialColorProperty
=
GeospatialColorProperty {GeospatialColorProperty -> ()
haddock_workaround_ :: (),
GeospatialColorProperty -> Maybe GeospatialCategoricalColorProperty
categorical :: (Prelude.Maybe GeospatialCategoricalColorProperty),
GeospatialColorProperty -> Maybe GeospatialGradientColorProperty
gradient :: (Prelude.Maybe GeospatialGradientColorProperty),
GeospatialColorProperty -> Maybe GeospatialSolidColorProperty
solid :: (Prelude.Maybe GeospatialSolidColorProperty)}
deriving stock (GeospatialColorProperty -> GeospatialColorProperty -> Bool
(GeospatialColorProperty -> GeospatialColorProperty -> Bool)
-> (GeospatialColorProperty -> GeospatialColorProperty -> Bool)
-> Eq GeospatialColorProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: GeospatialColorProperty -> GeospatialColorProperty -> Bool
== :: GeospatialColorProperty -> GeospatialColorProperty -> Bool
$c/= :: GeospatialColorProperty -> GeospatialColorProperty -> Bool
/= :: GeospatialColorProperty -> GeospatialColorProperty -> Bool
Prelude.Eq, Int -> GeospatialColorProperty -> ShowS
[GeospatialColorProperty] -> ShowS
GeospatialColorProperty -> String
(Int -> GeospatialColorProperty -> ShowS)
-> (GeospatialColorProperty -> String)
-> ([GeospatialColorProperty] -> ShowS)
-> Show GeospatialColorProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> GeospatialColorProperty -> ShowS
showsPrec :: Int -> GeospatialColorProperty -> ShowS
$cshow :: GeospatialColorProperty -> String
show :: GeospatialColorProperty -> String
$cshowList :: [GeospatialColorProperty] -> ShowS
showList :: [GeospatialColorProperty] -> ShowS
Prelude.Show)
mkGeospatialColorProperty :: GeospatialColorProperty
mkGeospatialColorProperty :: GeospatialColorProperty
mkGeospatialColorProperty
= GeospatialColorProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), categorical :: Maybe GeospatialCategoricalColorProperty
categorical = Maybe GeospatialCategoricalColorProperty
forall a. Maybe a
Prelude.Nothing,
gradient :: Maybe GeospatialGradientColorProperty
gradient = Maybe GeospatialGradientColorProperty
forall a. Maybe a
Prelude.Nothing, solid :: Maybe GeospatialSolidColorProperty
solid = Maybe GeospatialSolidColorProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties GeospatialColorProperty where
toResourceProperties :: GeospatialColorProperty -> ResourceProperties
toResourceProperties GeospatialColorProperty {Maybe GeospatialGradientColorProperty
Maybe GeospatialCategoricalColorProperty
Maybe GeospatialSolidColorProperty
()
haddock_workaround_ :: GeospatialColorProperty -> ()
categorical :: GeospatialColorProperty -> Maybe GeospatialCategoricalColorProperty
gradient :: GeospatialColorProperty -> Maybe GeospatialGradientColorProperty
solid :: GeospatialColorProperty -> Maybe GeospatialSolidColorProperty
haddock_workaround_ :: ()
categorical :: Maybe GeospatialCategoricalColorProperty
gradient :: Maybe GeospatialGradientColorProperty
solid :: Maybe GeospatialSolidColorProperty
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::QuickSight::Analysis.GeospatialColor",
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 -> GeospatialCategoricalColorProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Categorical" (GeospatialCategoricalColorProperty -> (Key, Value))
-> Maybe GeospatialCategoricalColorProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe GeospatialCategoricalColorProperty
categorical,
Key -> GeospatialGradientColorProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Gradient" (GeospatialGradientColorProperty -> (Key, Value))
-> Maybe GeospatialGradientColorProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe GeospatialGradientColorProperty
gradient,
Key -> GeospatialSolidColorProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Solid" (GeospatialSolidColorProperty -> (Key, Value))
-> Maybe GeospatialSolidColorProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe GeospatialSolidColorProperty
solid])}
instance JSON.ToJSON GeospatialColorProperty where
toJSON :: GeospatialColorProperty -> Value
toJSON GeospatialColorProperty {Maybe GeospatialGradientColorProperty
Maybe GeospatialCategoricalColorProperty
Maybe GeospatialSolidColorProperty
()
haddock_workaround_ :: GeospatialColorProperty -> ()
categorical :: GeospatialColorProperty -> Maybe GeospatialCategoricalColorProperty
gradient :: GeospatialColorProperty -> Maybe GeospatialGradientColorProperty
solid :: GeospatialColorProperty -> Maybe GeospatialSolidColorProperty
haddock_workaround_ :: ()
categorical :: Maybe GeospatialCategoricalColorProperty
gradient :: Maybe GeospatialGradientColorProperty
solid :: Maybe GeospatialSolidColorProperty
..}
= [(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 -> GeospatialCategoricalColorProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Categorical" (GeospatialCategoricalColorProperty -> (Key, Value))
-> Maybe GeospatialCategoricalColorProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe GeospatialCategoricalColorProperty
categorical,
Key -> GeospatialGradientColorProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Gradient" (GeospatialGradientColorProperty -> (Key, Value))
-> Maybe GeospatialGradientColorProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe GeospatialGradientColorProperty
gradient,
Key -> GeospatialSolidColorProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Solid" (GeospatialSolidColorProperty -> (Key, Value))
-> Maybe GeospatialSolidColorProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe GeospatialSolidColorProperty
solid]))
instance Property "Categorical" GeospatialColorProperty where
type PropertyType "Categorical" GeospatialColorProperty = GeospatialCategoricalColorProperty
set :: PropertyType "Categorical" GeospatialColorProperty
-> GeospatialColorProperty -> GeospatialColorProperty
set PropertyType "Categorical" GeospatialColorProperty
newValue GeospatialColorProperty {Maybe GeospatialGradientColorProperty
Maybe GeospatialCategoricalColorProperty
Maybe GeospatialSolidColorProperty
()
haddock_workaround_ :: GeospatialColorProperty -> ()
categorical :: GeospatialColorProperty -> Maybe GeospatialCategoricalColorProperty
gradient :: GeospatialColorProperty -> Maybe GeospatialGradientColorProperty
solid :: GeospatialColorProperty -> Maybe GeospatialSolidColorProperty
haddock_workaround_ :: ()
categorical :: Maybe GeospatialCategoricalColorProperty
gradient :: Maybe GeospatialGradientColorProperty
solid :: Maybe GeospatialSolidColorProperty
..}
= GeospatialColorProperty {categorical :: Maybe GeospatialCategoricalColorProperty
categorical = GeospatialCategoricalColorProperty
-> Maybe GeospatialCategoricalColorProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Categorical" GeospatialColorProperty
GeospatialCategoricalColorProperty
newValue, Maybe GeospatialGradientColorProperty
Maybe GeospatialSolidColorProperty
()
haddock_workaround_ :: ()
gradient :: Maybe GeospatialGradientColorProperty
solid :: Maybe GeospatialSolidColorProperty
haddock_workaround_ :: ()
gradient :: Maybe GeospatialGradientColorProperty
solid :: Maybe GeospatialSolidColorProperty
..}
instance Property "Gradient" GeospatialColorProperty where
type PropertyType "Gradient" GeospatialColorProperty = GeospatialGradientColorProperty
set :: PropertyType "Gradient" GeospatialColorProperty
-> GeospatialColorProperty -> GeospatialColorProperty
set PropertyType "Gradient" GeospatialColorProperty
newValue GeospatialColorProperty {Maybe GeospatialGradientColorProperty
Maybe GeospatialCategoricalColorProperty
Maybe GeospatialSolidColorProperty
()
haddock_workaround_ :: GeospatialColorProperty -> ()
categorical :: GeospatialColorProperty -> Maybe GeospatialCategoricalColorProperty
gradient :: GeospatialColorProperty -> Maybe GeospatialGradientColorProperty
solid :: GeospatialColorProperty -> Maybe GeospatialSolidColorProperty
haddock_workaround_ :: ()
categorical :: Maybe GeospatialCategoricalColorProperty
gradient :: Maybe GeospatialGradientColorProperty
solid :: Maybe GeospatialSolidColorProperty
..}
= GeospatialColorProperty {gradient :: Maybe GeospatialGradientColorProperty
gradient = GeospatialGradientColorProperty
-> Maybe GeospatialGradientColorProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Gradient" GeospatialColorProperty
GeospatialGradientColorProperty
newValue, Maybe GeospatialCategoricalColorProperty
Maybe GeospatialSolidColorProperty
()
haddock_workaround_ :: ()
categorical :: Maybe GeospatialCategoricalColorProperty
solid :: Maybe GeospatialSolidColorProperty
haddock_workaround_ :: ()
categorical :: Maybe GeospatialCategoricalColorProperty
solid :: Maybe GeospatialSolidColorProperty
..}
instance Property "Solid" GeospatialColorProperty where
type PropertyType "Solid" GeospatialColorProperty = GeospatialSolidColorProperty
set :: PropertyType "Solid" GeospatialColorProperty
-> GeospatialColorProperty -> GeospatialColorProperty
set PropertyType "Solid" GeospatialColorProperty
newValue GeospatialColorProperty {Maybe GeospatialGradientColorProperty
Maybe GeospatialCategoricalColorProperty
Maybe GeospatialSolidColorProperty
()
haddock_workaround_ :: GeospatialColorProperty -> ()
categorical :: GeospatialColorProperty -> Maybe GeospatialCategoricalColorProperty
gradient :: GeospatialColorProperty -> Maybe GeospatialGradientColorProperty
solid :: GeospatialColorProperty -> Maybe GeospatialSolidColorProperty
haddock_workaround_ :: ()
categorical :: Maybe GeospatialCategoricalColorProperty
gradient :: Maybe GeospatialGradientColorProperty
solid :: Maybe GeospatialSolidColorProperty
..}
= GeospatialColorProperty {solid :: Maybe GeospatialSolidColorProperty
solid = GeospatialSolidColorProperty -> Maybe GeospatialSolidColorProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Solid" GeospatialColorProperty
GeospatialSolidColorProperty
newValue, Maybe GeospatialGradientColorProperty
Maybe GeospatialCategoricalColorProperty
()
haddock_workaround_ :: ()
categorical :: Maybe GeospatialCategoricalColorProperty
gradient :: Maybe GeospatialGradientColorProperty
haddock_workaround_ :: ()
categorical :: Maybe GeospatialCategoricalColorProperty
gradient :: Maybe GeospatialGradientColorProperty
..}