module Stratosphere.QuickSight.Template.VisualSubtitleLabelOptionsProperty (
        module Exports, VisualSubtitleLabelOptionsProperty(..),
        mkVisualSubtitleLabelOptionsProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.QuickSight.Template.LongFormatTextProperty as Exports
import Stratosphere.ResourceProperties
data VisualSubtitleLabelOptionsProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-template-visualsubtitlelabeloptions.html>
    VisualSubtitleLabelOptionsProperty {VisualSubtitleLabelOptionsProperty -> ()
haddock_workaround_ :: (),
                                        -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-template-visualsubtitlelabeloptions.html#cfn-quicksight-template-visualsubtitlelabeloptions-formattext>
                                        VisualSubtitleLabelOptionsProperty -> Maybe LongFormatTextProperty
formatText :: (Prelude.Maybe LongFormatTextProperty),
                                        -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-template-visualsubtitlelabeloptions.html#cfn-quicksight-template-visualsubtitlelabeloptions-visibility>
                                        VisualSubtitleLabelOptionsProperty -> Maybe Object
visibility :: (Prelude.Maybe JSON.Object)}
  deriving stock (VisualSubtitleLabelOptionsProperty
-> VisualSubtitleLabelOptionsProperty -> Bool
(VisualSubtitleLabelOptionsProperty
 -> VisualSubtitleLabelOptionsProperty -> Bool)
-> (VisualSubtitleLabelOptionsProperty
    -> VisualSubtitleLabelOptionsProperty -> Bool)
-> Eq VisualSubtitleLabelOptionsProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: VisualSubtitleLabelOptionsProperty
-> VisualSubtitleLabelOptionsProperty -> Bool
== :: VisualSubtitleLabelOptionsProperty
-> VisualSubtitleLabelOptionsProperty -> Bool
$c/= :: VisualSubtitleLabelOptionsProperty
-> VisualSubtitleLabelOptionsProperty -> Bool
/= :: VisualSubtitleLabelOptionsProperty
-> VisualSubtitleLabelOptionsProperty -> Bool
Prelude.Eq, Int -> VisualSubtitleLabelOptionsProperty -> ShowS
[VisualSubtitleLabelOptionsProperty] -> ShowS
VisualSubtitleLabelOptionsProperty -> String
(Int -> VisualSubtitleLabelOptionsProperty -> ShowS)
-> (VisualSubtitleLabelOptionsProperty -> String)
-> ([VisualSubtitleLabelOptionsProperty] -> ShowS)
-> Show VisualSubtitleLabelOptionsProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> VisualSubtitleLabelOptionsProperty -> ShowS
showsPrec :: Int -> VisualSubtitleLabelOptionsProperty -> ShowS
$cshow :: VisualSubtitleLabelOptionsProperty -> String
show :: VisualSubtitleLabelOptionsProperty -> String
$cshowList :: [VisualSubtitleLabelOptionsProperty] -> ShowS
showList :: [VisualSubtitleLabelOptionsProperty] -> ShowS
Prelude.Show)
mkVisualSubtitleLabelOptionsProperty ::
  VisualSubtitleLabelOptionsProperty
mkVisualSubtitleLabelOptionsProperty :: VisualSubtitleLabelOptionsProperty
mkVisualSubtitleLabelOptionsProperty
  = VisualSubtitleLabelOptionsProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), formatText :: Maybe LongFormatTextProperty
formatText = Maybe LongFormatTextProperty
forall a. Maybe a
Prelude.Nothing,
       visibility :: Maybe Object
visibility = Maybe Object
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties VisualSubtitleLabelOptionsProperty where
  toResourceProperties :: VisualSubtitleLabelOptionsProperty -> ResourceProperties
toResourceProperties VisualSubtitleLabelOptionsProperty {Maybe Object
Maybe LongFormatTextProperty
()
haddock_workaround_ :: VisualSubtitleLabelOptionsProperty -> ()
formatText :: VisualSubtitleLabelOptionsProperty -> Maybe LongFormatTextProperty
visibility :: VisualSubtitleLabelOptionsProperty -> Maybe Object
haddock_workaround_ :: ()
formatText :: Maybe LongFormatTextProperty
visibility :: Maybe Object
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::QuickSight::Template.VisualSubtitleLabelOptions",
         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 -> LongFormatTextProperty -> (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" (LongFormatTextProperty -> (Key, Value))
-> Maybe LongFormatTextProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe LongFormatTextProperty
formatText,
                            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 VisualSubtitleLabelOptionsProperty where
  toJSON :: VisualSubtitleLabelOptionsProperty -> Value
toJSON VisualSubtitleLabelOptionsProperty {Maybe Object
Maybe LongFormatTextProperty
()
haddock_workaround_ :: VisualSubtitleLabelOptionsProperty -> ()
formatText :: VisualSubtitleLabelOptionsProperty -> Maybe LongFormatTextProperty
visibility :: VisualSubtitleLabelOptionsProperty -> Maybe Object
haddock_workaround_ :: ()
formatText :: Maybe LongFormatTextProperty
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 -> LongFormatTextProperty -> (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" (LongFormatTextProperty -> (Key, Value))
-> Maybe LongFormatTextProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe LongFormatTextProperty
formatText,
               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 "FormatText" VisualSubtitleLabelOptionsProperty where
  type PropertyType "FormatText" VisualSubtitleLabelOptionsProperty = LongFormatTextProperty
  set :: PropertyType "FormatText" VisualSubtitleLabelOptionsProperty
-> VisualSubtitleLabelOptionsProperty
-> VisualSubtitleLabelOptionsProperty
set PropertyType "FormatText" VisualSubtitleLabelOptionsProperty
newValue VisualSubtitleLabelOptionsProperty {Maybe Object
Maybe LongFormatTextProperty
()
haddock_workaround_ :: VisualSubtitleLabelOptionsProperty -> ()
formatText :: VisualSubtitleLabelOptionsProperty -> Maybe LongFormatTextProperty
visibility :: VisualSubtitleLabelOptionsProperty -> Maybe Object
haddock_workaround_ :: ()
formatText :: Maybe LongFormatTextProperty
visibility :: Maybe Object
..}
    = VisualSubtitleLabelOptionsProperty
        {formatText :: Maybe LongFormatTextProperty
formatText = LongFormatTextProperty -> Maybe LongFormatTextProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "FormatText" VisualSubtitleLabelOptionsProperty
LongFormatTextProperty
newValue, Maybe Object
()
haddock_workaround_ :: ()
visibility :: Maybe Object
haddock_workaround_ :: ()
visibility :: Maybe Object
..}
instance Property "Visibility" VisualSubtitleLabelOptionsProperty where
  type PropertyType "Visibility" VisualSubtitleLabelOptionsProperty = JSON.Object
  set :: PropertyType "Visibility" VisualSubtitleLabelOptionsProperty
-> VisualSubtitleLabelOptionsProperty
-> VisualSubtitleLabelOptionsProperty
set PropertyType "Visibility" VisualSubtitleLabelOptionsProperty
newValue VisualSubtitleLabelOptionsProperty {Maybe Object
Maybe LongFormatTextProperty
()
haddock_workaround_ :: VisualSubtitleLabelOptionsProperty -> ()
formatText :: VisualSubtitleLabelOptionsProperty -> Maybe LongFormatTextProperty
visibility :: VisualSubtitleLabelOptionsProperty -> Maybe Object
haddock_workaround_ :: ()
formatText :: Maybe LongFormatTextProperty
visibility :: Maybe Object
..}
    = VisualSubtitleLabelOptionsProperty
        {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" VisualSubtitleLabelOptionsProperty
newValue, Maybe LongFormatTextProperty
()
haddock_workaround_ :: ()
formatText :: Maybe LongFormatTextProperty
haddock_workaround_ :: ()
formatText :: Maybe LongFormatTextProperty
..}