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