module Stratosphere.QuickSight.Template.RowAlternateColorOptionsProperty (
RowAlternateColorOptionsProperty(..),
mkRowAlternateColorOptionsProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data RowAlternateColorOptionsProperty
=
RowAlternateColorOptionsProperty {RowAlternateColorOptionsProperty -> ()
haddock_workaround_ :: (),
RowAlternateColorOptionsProperty -> Maybe (ValueList Text)
rowAlternateColors :: (Prelude.Maybe (ValueList Prelude.Text)),
RowAlternateColorOptionsProperty -> Maybe (Value Text)
status :: (Prelude.Maybe (Value Prelude.Text)),
RowAlternateColorOptionsProperty -> Maybe (Value Text)
usePrimaryBackgroundColor :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (RowAlternateColorOptionsProperty
-> RowAlternateColorOptionsProperty -> Bool
(RowAlternateColorOptionsProperty
-> RowAlternateColorOptionsProperty -> Bool)
-> (RowAlternateColorOptionsProperty
-> RowAlternateColorOptionsProperty -> Bool)
-> Eq RowAlternateColorOptionsProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: RowAlternateColorOptionsProperty
-> RowAlternateColorOptionsProperty -> Bool
== :: RowAlternateColorOptionsProperty
-> RowAlternateColorOptionsProperty -> Bool
$c/= :: RowAlternateColorOptionsProperty
-> RowAlternateColorOptionsProperty -> Bool
/= :: RowAlternateColorOptionsProperty
-> RowAlternateColorOptionsProperty -> Bool
Prelude.Eq, Int -> RowAlternateColorOptionsProperty -> ShowS
[RowAlternateColorOptionsProperty] -> ShowS
RowAlternateColorOptionsProperty -> String
(Int -> RowAlternateColorOptionsProperty -> ShowS)
-> (RowAlternateColorOptionsProperty -> String)
-> ([RowAlternateColorOptionsProperty] -> ShowS)
-> Show RowAlternateColorOptionsProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> RowAlternateColorOptionsProperty -> ShowS
showsPrec :: Int -> RowAlternateColorOptionsProperty -> ShowS
$cshow :: RowAlternateColorOptionsProperty -> String
show :: RowAlternateColorOptionsProperty -> String
$cshowList :: [RowAlternateColorOptionsProperty] -> ShowS
showList :: [RowAlternateColorOptionsProperty] -> ShowS
Prelude.Show)
mkRowAlternateColorOptionsProperty ::
RowAlternateColorOptionsProperty
mkRowAlternateColorOptionsProperty :: RowAlternateColorOptionsProperty
mkRowAlternateColorOptionsProperty
= RowAlternateColorOptionsProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), rowAlternateColors :: Maybe (ValueList Text)
rowAlternateColors = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing,
status :: Maybe (Value Text)
status = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
usePrimaryBackgroundColor :: Maybe (Value Text)
usePrimaryBackgroundColor = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties RowAlternateColorOptionsProperty where
toResourceProperties :: RowAlternateColorOptionsProperty -> ResourceProperties
toResourceProperties RowAlternateColorOptionsProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: RowAlternateColorOptionsProperty -> ()
rowAlternateColors :: RowAlternateColorOptionsProperty -> Maybe (ValueList Text)
status :: RowAlternateColorOptionsProperty -> Maybe (Value Text)
usePrimaryBackgroundColor :: RowAlternateColorOptionsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
rowAlternateColors :: Maybe (ValueList Text)
status :: Maybe (Value Text)
usePrimaryBackgroundColor :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::QuickSight::Template.RowAlternateColorOptions",
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 -> ValueList 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
"RowAlternateColors" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
rowAlternateColors,
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
"Status" (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)
status,
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
"UsePrimaryBackgroundColor"
(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)
usePrimaryBackgroundColor])}
instance JSON.ToJSON RowAlternateColorOptionsProperty where
toJSON :: RowAlternateColorOptionsProperty -> Value
toJSON RowAlternateColorOptionsProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: RowAlternateColorOptionsProperty -> ()
rowAlternateColors :: RowAlternateColorOptionsProperty -> Maybe (ValueList Text)
status :: RowAlternateColorOptionsProperty -> Maybe (Value Text)
usePrimaryBackgroundColor :: RowAlternateColorOptionsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
rowAlternateColors :: Maybe (ValueList Text)
status :: Maybe (Value Text)
usePrimaryBackgroundColor :: 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 -> ValueList 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
"RowAlternateColors" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
rowAlternateColors,
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
"Status" (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)
status,
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
"UsePrimaryBackgroundColor"
(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)
usePrimaryBackgroundColor]))
instance Property "RowAlternateColors" RowAlternateColorOptionsProperty where
type PropertyType "RowAlternateColors" RowAlternateColorOptionsProperty = ValueList Prelude.Text
set :: PropertyType "RowAlternateColors" RowAlternateColorOptionsProperty
-> RowAlternateColorOptionsProperty
-> RowAlternateColorOptionsProperty
set PropertyType "RowAlternateColors" RowAlternateColorOptionsProperty
newValue RowAlternateColorOptionsProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: RowAlternateColorOptionsProperty -> ()
rowAlternateColors :: RowAlternateColorOptionsProperty -> Maybe (ValueList Text)
status :: RowAlternateColorOptionsProperty -> Maybe (Value Text)
usePrimaryBackgroundColor :: RowAlternateColorOptionsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
rowAlternateColors :: Maybe (ValueList Text)
status :: Maybe (Value Text)
usePrimaryBackgroundColor :: Maybe (Value Text)
..}
= RowAlternateColorOptionsProperty
{rowAlternateColors :: Maybe (ValueList Text)
rowAlternateColors = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "RowAlternateColors" RowAlternateColorOptionsProperty
ValueList Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
status :: Maybe (Value Text)
usePrimaryBackgroundColor :: Maybe (Value Text)
haddock_workaround_ :: ()
status :: Maybe (Value Text)
usePrimaryBackgroundColor :: Maybe (Value Text)
..}
instance Property "Status" RowAlternateColorOptionsProperty where
type PropertyType "Status" RowAlternateColorOptionsProperty = Value Prelude.Text
set :: PropertyType "Status" RowAlternateColorOptionsProperty
-> RowAlternateColorOptionsProperty
-> RowAlternateColorOptionsProperty
set PropertyType "Status" RowAlternateColorOptionsProperty
newValue RowAlternateColorOptionsProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: RowAlternateColorOptionsProperty -> ()
rowAlternateColors :: RowAlternateColorOptionsProperty -> Maybe (ValueList Text)
status :: RowAlternateColorOptionsProperty -> Maybe (Value Text)
usePrimaryBackgroundColor :: RowAlternateColorOptionsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
rowAlternateColors :: Maybe (ValueList Text)
status :: Maybe (Value Text)
usePrimaryBackgroundColor :: Maybe (Value Text)
..}
= RowAlternateColorOptionsProperty
{status :: Maybe (Value Text)
status = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Status" RowAlternateColorOptionsProperty
Value Text
newValue, Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ()
rowAlternateColors :: Maybe (ValueList Text)
usePrimaryBackgroundColor :: Maybe (Value Text)
haddock_workaround_ :: ()
rowAlternateColors :: Maybe (ValueList Text)
usePrimaryBackgroundColor :: Maybe (Value Text)
..}
instance Property "UsePrimaryBackgroundColor" RowAlternateColorOptionsProperty where
type PropertyType "UsePrimaryBackgroundColor" RowAlternateColorOptionsProperty = Value Prelude.Text
set :: PropertyType
"UsePrimaryBackgroundColor" RowAlternateColorOptionsProperty
-> RowAlternateColorOptionsProperty
-> RowAlternateColorOptionsProperty
set PropertyType
"UsePrimaryBackgroundColor" RowAlternateColorOptionsProperty
newValue RowAlternateColorOptionsProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: RowAlternateColorOptionsProperty -> ()
rowAlternateColors :: RowAlternateColorOptionsProperty -> Maybe (ValueList Text)
status :: RowAlternateColorOptionsProperty -> Maybe (Value Text)
usePrimaryBackgroundColor :: RowAlternateColorOptionsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
rowAlternateColors :: Maybe (ValueList Text)
status :: Maybe (Value Text)
usePrimaryBackgroundColor :: Maybe (Value Text)
..}
= RowAlternateColorOptionsProperty
{usePrimaryBackgroundColor :: Maybe (Value Text)
usePrimaryBackgroundColor = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"UsePrimaryBackgroundColor" RowAlternateColorOptionsProperty
Value Text
newValue, Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ()
rowAlternateColors :: Maybe (ValueList Text)
status :: Maybe (Value Text)
haddock_workaround_ :: ()
rowAlternateColors :: Maybe (ValueList Text)
status :: Maybe (Value Text)
..}