module Stratosphere.MediaPackageV2.OriginEndpoint.DashDvbFontDownloadProperty (
DashDvbFontDownloadProperty(..), mkDashDvbFontDownloadProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data DashDvbFontDownloadProperty
=
DashDvbFontDownloadProperty {DashDvbFontDownloadProperty -> ()
haddock_workaround_ :: (),
DashDvbFontDownloadProperty -> Maybe (Value Text)
fontFamily :: (Prelude.Maybe (Value Prelude.Text)),
DashDvbFontDownloadProperty -> Maybe (Value Text)
mimeType :: (Prelude.Maybe (Value Prelude.Text)),
DashDvbFontDownloadProperty -> Maybe (Value Text)
url :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (DashDvbFontDownloadProperty -> DashDvbFontDownloadProperty -> Bool
(DashDvbFontDownloadProperty
-> DashDvbFontDownloadProperty -> Bool)
-> (DashDvbFontDownloadProperty
-> DashDvbFontDownloadProperty -> Bool)
-> Eq DashDvbFontDownloadProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: DashDvbFontDownloadProperty -> DashDvbFontDownloadProperty -> Bool
== :: DashDvbFontDownloadProperty -> DashDvbFontDownloadProperty -> Bool
$c/= :: DashDvbFontDownloadProperty -> DashDvbFontDownloadProperty -> Bool
/= :: DashDvbFontDownloadProperty -> DashDvbFontDownloadProperty -> Bool
Prelude.Eq, Int -> DashDvbFontDownloadProperty -> ShowS
[DashDvbFontDownloadProperty] -> ShowS
DashDvbFontDownloadProperty -> String
(Int -> DashDvbFontDownloadProperty -> ShowS)
-> (DashDvbFontDownloadProperty -> String)
-> ([DashDvbFontDownloadProperty] -> ShowS)
-> Show DashDvbFontDownloadProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> DashDvbFontDownloadProperty -> ShowS
showsPrec :: Int -> DashDvbFontDownloadProperty -> ShowS
$cshow :: DashDvbFontDownloadProperty -> String
show :: DashDvbFontDownloadProperty -> String
$cshowList :: [DashDvbFontDownloadProperty] -> ShowS
showList :: [DashDvbFontDownloadProperty] -> ShowS
Prelude.Show)
mkDashDvbFontDownloadProperty :: DashDvbFontDownloadProperty
mkDashDvbFontDownloadProperty :: DashDvbFontDownloadProperty
mkDashDvbFontDownloadProperty
= DashDvbFontDownloadProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), fontFamily :: Maybe (Value Text)
fontFamily = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
mimeType :: Maybe (Value Text)
mimeType = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, url :: Maybe (Value Text)
url = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties DashDvbFontDownloadProperty where
toResourceProperties :: DashDvbFontDownloadProperty -> ResourceProperties
toResourceProperties DashDvbFontDownloadProperty {Maybe (Value Text)
()
haddock_workaround_ :: DashDvbFontDownloadProperty -> ()
fontFamily :: DashDvbFontDownloadProperty -> Maybe (Value Text)
mimeType :: DashDvbFontDownloadProperty -> Maybe (Value Text)
url :: DashDvbFontDownloadProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
fontFamily :: Maybe (Value Text)
mimeType :: Maybe (Value Text)
url :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::MediaPackageV2::OriginEndpoint.DashDvbFontDownload",
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
"FontFamily" (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)
fontFamily,
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
"MimeType" (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)
mimeType,
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
"Url" (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)
url])}
instance JSON.ToJSON DashDvbFontDownloadProperty where
toJSON :: DashDvbFontDownloadProperty -> Value
toJSON DashDvbFontDownloadProperty {Maybe (Value Text)
()
haddock_workaround_ :: DashDvbFontDownloadProperty -> ()
fontFamily :: DashDvbFontDownloadProperty -> Maybe (Value Text)
mimeType :: DashDvbFontDownloadProperty -> Maybe (Value Text)
url :: DashDvbFontDownloadProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
fontFamily :: Maybe (Value Text)
mimeType :: Maybe (Value Text)
url :: 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
"FontFamily" (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)
fontFamily,
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
"MimeType" (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)
mimeType,
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
"Url" (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)
url]))
instance Property "FontFamily" DashDvbFontDownloadProperty where
type PropertyType "FontFamily" DashDvbFontDownloadProperty = Value Prelude.Text
set :: PropertyType "FontFamily" DashDvbFontDownloadProperty
-> DashDvbFontDownloadProperty -> DashDvbFontDownloadProperty
set PropertyType "FontFamily" DashDvbFontDownloadProperty
newValue DashDvbFontDownloadProperty {Maybe (Value Text)
()
haddock_workaround_ :: DashDvbFontDownloadProperty -> ()
fontFamily :: DashDvbFontDownloadProperty -> Maybe (Value Text)
mimeType :: DashDvbFontDownloadProperty -> Maybe (Value Text)
url :: DashDvbFontDownloadProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
fontFamily :: Maybe (Value Text)
mimeType :: Maybe (Value Text)
url :: Maybe (Value Text)
..}
= DashDvbFontDownloadProperty
{fontFamily :: Maybe (Value Text)
fontFamily = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "FontFamily" DashDvbFontDownloadProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
mimeType :: Maybe (Value Text)
url :: Maybe (Value Text)
haddock_workaround_ :: ()
mimeType :: Maybe (Value Text)
url :: Maybe (Value Text)
..}
instance Property "MimeType" DashDvbFontDownloadProperty where
type PropertyType "MimeType" DashDvbFontDownloadProperty = Value Prelude.Text
set :: PropertyType "MimeType" DashDvbFontDownloadProperty
-> DashDvbFontDownloadProperty -> DashDvbFontDownloadProperty
set PropertyType "MimeType" DashDvbFontDownloadProperty
newValue DashDvbFontDownloadProperty {Maybe (Value Text)
()
haddock_workaround_ :: DashDvbFontDownloadProperty -> ()
fontFamily :: DashDvbFontDownloadProperty -> Maybe (Value Text)
mimeType :: DashDvbFontDownloadProperty -> Maybe (Value Text)
url :: DashDvbFontDownloadProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
fontFamily :: Maybe (Value Text)
mimeType :: Maybe (Value Text)
url :: Maybe (Value Text)
..}
= DashDvbFontDownloadProperty
{mimeType :: Maybe (Value Text)
mimeType = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "MimeType" DashDvbFontDownloadProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
fontFamily :: Maybe (Value Text)
url :: Maybe (Value Text)
haddock_workaround_ :: ()
fontFamily :: Maybe (Value Text)
url :: Maybe (Value Text)
..}
instance Property "Url" DashDvbFontDownloadProperty where
type PropertyType "Url" DashDvbFontDownloadProperty = Value Prelude.Text
set :: PropertyType "Url" DashDvbFontDownloadProperty
-> DashDvbFontDownloadProperty -> DashDvbFontDownloadProperty
set PropertyType "Url" DashDvbFontDownloadProperty
newValue DashDvbFontDownloadProperty {Maybe (Value Text)
()
haddock_workaround_ :: DashDvbFontDownloadProperty -> ()
fontFamily :: DashDvbFontDownloadProperty -> Maybe (Value Text)
mimeType :: DashDvbFontDownloadProperty -> Maybe (Value Text)
url :: DashDvbFontDownloadProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
fontFamily :: Maybe (Value Text)
mimeType :: Maybe (Value Text)
url :: Maybe (Value Text)
..}
= DashDvbFontDownloadProperty {url :: Maybe (Value Text)
url = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Url" DashDvbFontDownloadProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
fontFamily :: Maybe (Value Text)
mimeType :: Maybe (Value Text)
haddock_workaround_ :: ()
fontFamily :: Maybe (Value Text)
mimeType :: Maybe (Value Text)
..}