module Stratosphere.QuickSight.Template.FontSizeProperty (
        FontSizeProperty(..), mkFontSizeProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data FontSizeProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-template-fontsize.html>
    FontSizeProperty {FontSizeProperty -> ()
haddock_workaround_ :: (),
                      -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-template-fontsize.html#cfn-quicksight-template-fontsize-absolute>
                      FontSizeProperty -> Maybe (Value Text)
absolute :: (Prelude.Maybe (Value Prelude.Text)),
                      -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-template-fontsize.html#cfn-quicksight-template-fontsize-relative>
                      FontSizeProperty -> Maybe (Value Text)
relative :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (FontSizeProperty -> FontSizeProperty -> Bool
(FontSizeProperty -> FontSizeProperty -> Bool)
-> (FontSizeProperty -> FontSizeProperty -> Bool)
-> Eq FontSizeProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: FontSizeProperty -> FontSizeProperty -> Bool
== :: FontSizeProperty -> FontSizeProperty -> Bool
$c/= :: FontSizeProperty -> FontSizeProperty -> Bool
/= :: FontSizeProperty -> FontSizeProperty -> Bool
Prelude.Eq, Int -> FontSizeProperty -> ShowS
[FontSizeProperty] -> ShowS
FontSizeProperty -> String
(Int -> FontSizeProperty -> ShowS)
-> (FontSizeProperty -> String)
-> ([FontSizeProperty] -> ShowS)
-> Show FontSizeProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> FontSizeProperty -> ShowS
showsPrec :: Int -> FontSizeProperty -> ShowS
$cshow :: FontSizeProperty -> String
show :: FontSizeProperty -> String
$cshowList :: [FontSizeProperty] -> ShowS
showList :: [FontSizeProperty] -> ShowS
Prelude.Show)
mkFontSizeProperty :: FontSizeProperty
mkFontSizeProperty :: FontSizeProperty
mkFontSizeProperty
  = FontSizeProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), absolute :: Maybe (Value Text)
absolute = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       relative :: Maybe (Value Text)
relative = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties FontSizeProperty where
  toResourceProperties :: FontSizeProperty -> ResourceProperties
toResourceProperties FontSizeProperty {Maybe (Value Text)
()
haddock_workaround_ :: FontSizeProperty -> ()
absolute :: FontSizeProperty -> Maybe (Value Text)
relative :: FontSizeProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
absolute :: Maybe (Value Text)
relative :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::QuickSight::Template.FontSize",
         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 -> 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
"Absolute" (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)
absolute,
                            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
"Relative" (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)
relative])}
instance JSON.ToJSON FontSizeProperty where
  toJSON :: FontSizeProperty -> Value
toJSON FontSizeProperty {Maybe (Value Text)
()
haddock_workaround_ :: FontSizeProperty -> ()
absolute :: FontSizeProperty -> Maybe (Value Text)
relative :: FontSizeProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
absolute :: Maybe (Value Text)
relative :: 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 -> 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
"Absolute" (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)
absolute,
               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
"Relative" (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)
relative]))
instance Property "Absolute" FontSizeProperty where
  type PropertyType "Absolute" FontSizeProperty = Value Prelude.Text
  set :: PropertyType "Absolute" FontSizeProperty
-> FontSizeProperty -> FontSizeProperty
set PropertyType "Absolute" FontSizeProperty
newValue FontSizeProperty {Maybe (Value Text)
()
haddock_workaround_ :: FontSizeProperty -> ()
absolute :: FontSizeProperty -> Maybe (Value Text)
relative :: FontSizeProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
absolute :: Maybe (Value Text)
relative :: Maybe (Value Text)
..}
    = FontSizeProperty {absolute :: Maybe (Value Text)
absolute = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Absolute" FontSizeProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
relative :: Maybe (Value Text)
haddock_workaround_ :: ()
relative :: Maybe (Value Text)
..}
instance Property "Relative" FontSizeProperty where
  type PropertyType "Relative" FontSizeProperty = Value Prelude.Text
  set :: PropertyType "Relative" FontSizeProperty
-> FontSizeProperty -> FontSizeProperty
set PropertyType "Relative" FontSizeProperty
newValue FontSizeProperty {Maybe (Value Text)
()
haddock_workaround_ :: FontSizeProperty -> ()
absolute :: FontSizeProperty -> Maybe (Value Text)
relative :: FontSizeProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
absolute :: Maybe (Value Text)
relative :: Maybe (Value Text)
..}
    = FontSizeProperty {relative :: Maybe (Value Text)
relative = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Relative" FontSizeProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
absolute :: Maybe (Value Text)
haddock_workaround_ :: ()
absolute :: Maybe (Value Text)
..}