module Stratosphere.QuickSight.Template.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.Template.ShortFormatTextProperty as Exports
import Stratosphere.ResourceProperties
data VisualTitleLabelOptionsProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-template-visualtitlelabeloptions.html>
    VisualTitleLabelOptionsProperty {VisualTitleLabelOptionsProperty -> ()
haddock_workaround_ :: (),
                                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-template-visualtitlelabeloptions.html#cfn-quicksight-template-visualtitlelabeloptions-formattext>
                                     VisualTitleLabelOptionsProperty -> Maybe ShortFormatTextProperty
formatText :: (Prelude.Maybe ShortFormatTextProperty),
                                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-template-visualtitlelabeloptions.html#cfn-quicksight-template-visualtitlelabeloptions-visibility>
                                     VisualTitleLabelOptionsProperty -> Maybe Object
visibility :: (Prelude.Maybe JSON.Object)}
  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 Object
visibility = Maybe Object
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties VisualTitleLabelOptionsProperty where
  toResourceProperties :: VisualTitleLabelOptionsProperty -> ResourceProperties
toResourceProperties VisualTitleLabelOptionsProperty {Maybe Object
Maybe ShortFormatTextProperty
()
haddock_workaround_ :: VisualTitleLabelOptionsProperty -> ()
formatText :: VisualTitleLabelOptionsProperty -> Maybe ShortFormatTextProperty
visibility :: VisualTitleLabelOptionsProperty -> Maybe Object
haddock_workaround_ :: ()
formatText :: Maybe ShortFormatTextProperty
visibility :: Maybe Object
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::QuickSight::Template.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 -> 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 VisualTitleLabelOptionsProperty where
  toJSON :: VisualTitleLabelOptionsProperty -> Value
toJSON VisualTitleLabelOptionsProperty {Maybe Object
Maybe ShortFormatTextProperty
()
haddock_workaround_ :: VisualTitleLabelOptionsProperty -> ()
formatText :: VisualTitleLabelOptionsProperty -> Maybe ShortFormatTextProperty
visibility :: VisualTitleLabelOptionsProperty -> Maybe Object
haddock_workaround_ :: ()
formatText :: Maybe ShortFormatTextProperty
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 -> 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 -> 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" VisualTitleLabelOptionsProperty where
  type PropertyType "FormatText" VisualTitleLabelOptionsProperty = ShortFormatTextProperty
  set :: PropertyType "FormatText" VisualTitleLabelOptionsProperty
-> VisualTitleLabelOptionsProperty
-> VisualTitleLabelOptionsProperty
set PropertyType "FormatText" VisualTitleLabelOptionsProperty
newValue VisualTitleLabelOptionsProperty {Maybe Object
Maybe ShortFormatTextProperty
()
haddock_workaround_ :: VisualTitleLabelOptionsProperty -> ()
formatText :: VisualTitleLabelOptionsProperty -> Maybe ShortFormatTextProperty
visibility :: VisualTitleLabelOptionsProperty -> Maybe Object
haddock_workaround_ :: ()
formatText :: Maybe ShortFormatTextProperty
visibility :: Maybe Object
..}
    = 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 Object
()
haddock_workaround_ :: ()
visibility :: Maybe Object
haddock_workaround_ :: ()
visibility :: Maybe Object
..}
instance Property "Visibility" VisualTitleLabelOptionsProperty where
  type PropertyType "Visibility" VisualTitleLabelOptionsProperty = JSON.Object
  set :: PropertyType "Visibility" VisualTitleLabelOptionsProperty
-> VisualTitleLabelOptionsProperty
-> VisualTitleLabelOptionsProperty
set PropertyType "Visibility" VisualTitleLabelOptionsProperty
newValue VisualTitleLabelOptionsProperty {Maybe Object
Maybe ShortFormatTextProperty
()
haddock_workaround_ :: VisualTitleLabelOptionsProperty -> ()
formatText :: VisualTitleLabelOptionsProperty -> Maybe ShortFormatTextProperty
visibility :: VisualTitleLabelOptionsProperty -> Maybe Object
haddock_workaround_ :: ()
formatText :: Maybe ShortFormatTextProperty
visibility :: Maybe Object
..}
    = VisualTitleLabelOptionsProperty
        {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" VisualTitleLabelOptionsProperty
newValue, Maybe ShortFormatTextProperty
()
haddock_workaround_ :: ()
formatText :: Maybe ShortFormatTextProperty
haddock_workaround_ :: ()
formatText :: Maybe ShortFormatTextProperty
..}