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