module Stratosphere.MediaPackageV2.OriginEndpoint.DashProgramInformationProperty (
DashProgramInformationProperty(..),
mkDashProgramInformationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data DashProgramInformationProperty
=
DashProgramInformationProperty {DashProgramInformationProperty -> ()
haddock_workaround_ :: (),
DashProgramInformationProperty -> Maybe (Value Text)
copyright :: (Prelude.Maybe (Value Prelude.Text)),
DashProgramInformationProperty -> Maybe (Value Text)
languageCode :: (Prelude.Maybe (Value Prelude.Text)),
DashProgramInformationProperty -> Maybe (Value Text)
moreInformationUrl :: (Prelude.Maybe (Value Prelude.Text)),
DashProgramInformationProperty -> Maybe (Value Text)
source :: (Prelude.Maybe (Value Prelude.Text)),
DashProgramInformationProperty -> Maybe (Value Text)
title :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (DashProgramInformationProperty
-> DashProgramInformationProperty -> Bool
(DashProgramInformationProperty
-> DashProgramInformationProperty -> Bool)
-> (DashProgramInformationProperty
-> DashProgramInformationProperty -> Bool)
-> Eq DashProgramInformationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: DashProgramInformationProperty
-> DashProgramInformationProperty -> Bool
== :: DashProgramInformationProperty
-> DashProgramInformationProperty -> Bool
$c/= :: DashProgramInformationProperty
-> DashProgramInformationProperty -> Bool
/= :: DashProgramInformationProperty
-> DashProgramInformationProperty -> Bool
Prelude.Eq, Int -> DashProgramInformationProperty -> ShowS
[DashProgramInformationProperty] -> ShowS
DashProgramInformationProperty -> String
(Int -> DashProgramInformationProperty -> ShowS)
-> (DashProgramInformationProperty -> String)
-> ([DashProgramInformationProperty] -> ShowS)
-> Show DashProgramInformationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> DashProgramInformationProperty -> ShowS
showsPrec :: Int -> DashProgramInformationProperty -> ShowS
$cshow :: DashProgramInformationProperty -> String
show :: DashProgramInformationProperty -> String
$cshowList :: [DashProgramInformationProperty] -> ShowS
showList :: [DashProgramInformationProperty] -> ShowS
Prelude.Show)
mkDashProgramInformationProperty :: DashProgramInformationProperty
mkDashProgramInformationProperty :: DashProgramInformationProperty
mkDashProgramInformationProperty
= DashProgramInformationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), copyright :: Maybe (Value Text)
copyright = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
languageCode :: Maybe (Value Text)
languageCode = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
moreInformationUrl :: Maybe (Value Text)
moreInformationUrl = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, source :: Maybe (Value Text)
source = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
title :: Maybe (Value Text)
title = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties DashProgramInformationProperty where
toResourceProperties :: DashProgramInformationProperty -> ResourceProperties
toResourceProperties DashProgramInformationProperty {Maybe (Value Text)
()
haddock_workaround_ :: DashProgramInformationProperty -> ()
copyright :: DashProgramInformationProperty -> Maybe (Value Text)
languageCode :: DashProgramInformationProperty -> Maybe (Value Text)
moreInformationUrl :: DashProgramInformationProperty -> Maybe (Value Text)
source :: DashProgramInformationProperty -> Maybe (Value Text)
title :: DashProgramInformationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
copyright :: Maybe (Value Text)
languageCode :: Maybe (Value Text)
moreInformationUrl :: Maybe (Value Text)
source :: Maybe (Value Text)
title :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::MediaPackageV2::OriginEndpoint.DashProgramInformation",
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
"Copyright" (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)
copyright,
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
"LanguageCode" (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)
languageCode,
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
"MoreInformationUrl" (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)
moreInformationUrl,
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
"Source" (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)
source,
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
"Title" (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)
title])}
instance JSON.ToJSON DashProgramInformationProperty where
toJSON :: DashProgramInformationProperty -> Value
toJSON DashProgramInformationProperty {Maybe (Value Text)
()
haddock_workaround_ :: DashProgramInformationProperty -> ()
copyright :: DashProgramInformationProperty -> Maybe (Value Text)
languageCode :: DashProgramInformationProperty -> Maybe (Value Text)
moreInformationUrl :: DashProgramInformationProperty -> Maybe (Value Text)
source :: DashProgramInformationProperty -> Maybe (Value Text)
title :: DashProgramInformationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
copyright :: Maybe (Value Text)
languageCode :: Maybe (Value Text)
moreInformationUrl :: Maybe (Value Text)
source :: Maybe (Value Text)
title :: 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
"Copyright" (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)
copyright,
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
"LanguageCode" (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)
languageCode,
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
"MoreInformationUrl" (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)
moreInformationUrl,
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
"Source" (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)
source,
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
"Title" (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)
title]))
instance Property "Copyright" DashProgramInformationProperty where
type PropertyType "Copyright" DashProgramInformationProperty = Value Prelude.Text
set :: PropertyType "Copyright" DashProgramInformationProperty
-> DashProgramInformationProperty -> DashProgramInformationProperty
set PropertyType "Copyright" DashProgramInformationProperty
newValue DashProgramInformationProperty {Maybe (Value Text)
()
haddock_workaround_ :: DashProgramInformationProperty -> ()
copyright :: DashProgramInformationProperty -> Maybe (Value Text)
languageCode :: DashProgramInformationProperty -> Maybe (Value Text)
moreInformationUrl :: DashProgramInformationProperty -> Maybe (Value Text)
source :: DashProgramInformationProperty -> Maybe (Value Text)
title :: DashProgramInformationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
copyright :: Maybe (Value Text)
languageCode :: Maybe (Value Text)
moreInformationUrl :: Maybe (Value Text)
source :: Maybe (Value Text)
title :: Maybe (Value Text)
..}
= DashProgramInformationProperty
{copyright :: Maybe (Value Text)
copyright = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Copyright" DashProgramInformationProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
languageCode :: Maybe (Value Text)
moreInformationUrl :: Maybe (Value Text)
source :: Maybe (Value Text)
title :: Maybe (Value Text)
haddock_workaround_ :: ()
languageCode :: Maybe (Value Text)
moreInformationUrl :: Maybe (Value Text)
source :: Maybe (Value Text)
title :: Maybe (Value Text)
..}
instance Property "LanguageCode" DashProgramInformationProperty where
type PropertyType "LanguageCode" DashProgramInformationProperty = Value Prelude.Text
set :: PropertyType "LanguageCode" DashProgramInformationProperty
-> DashProgramInformationProperty -> DashProgramInformationProperty
set PropertyType "LanguageCode" DashProgramInformationProperty
newValue DashProgramInformationProperty {Maybe (Value Text)
()
haddock_workaround_ :: DashProgramInformationProperty -> ()
copyright :: DashProgramInformationProperty -> Maybe (Value Text)
languageCode :: DashProgramInformationProperty -> Maybe (Value Text)
moreInformationUrl :: DashProgramInformationProperty -> Maybe (Value Text)
source :: DashProgramInformationProperty -> Maybe (Value Text)
title :: DashProgramInformationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
copyright :: Maybe (Value Text)
languageCode :: Maybe (Value Text)
moreInformationUrl :: Maybe (Value Text)
source :: Maybe (Value Text)
title :: Maybe (Value Text)
..}
= DashProgramInformationProperty
{languageCode :: Maybe (Value Text)
languageCode = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "LanguageCode" DashProgramInformationProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
copyright :: Maybe (Value Text)
moreInformationUrl :: Maybe (Value Text)
source :: Maybe (Value Text)
title :: Maybe (Value Text)
haddock_workaround_ :: ()
copyright :: Maybe (Value Text)
moreInformationUrl :: Maybe (Value Text)
source :: Maybe (Value Text)
title :: Maybe (Value Text)
..}
instance Property "MoreInformationUrl" DashProgramInformationProperty where
type PropertyType "MoreInformationUrl" DashProgramInformationProperty = Value Prelude.Text
set :: PropertyType "MoreInformationUrl" DashProgramInformationProperty
-> DashProgramInformationProperty -> DashProgramInformationProperty
set PropertyType "MoreInformationUrl" DashProgramInformationProperty
newValue DashProgramInformationProperty {Maybe (Value Text)
()
haddock_workaround_ :: DashProgramInformationProperty -> ()
copyright :: DashProgramInformationProperty -> Maybe (Value Text)
languageCode :: DashProgramInformationProperty -> Maybe (Value Text)
moreInformationUrl :: DashProgramInformationProperty -> Maybe (Value Text)
source :: DashProgramInformationProperty -> Maybe (Value Text)
title :: DashProgramInformationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
copyright :: Maybe (Value Text)
languageCode :: Maybe (Value Text)
moreInformationUrl :: Maybe (Value Text)
source :: Maybe (Value Text)
title :: Maybe (Value Text)
..}
= DashProgramInformationProperty
{moreInformationUrl :: Maybe (Value Text)
moreInformationUrl = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "MoreInformationUrl" DashProgramInformationProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
copyright :: Maybe (Value Text)
languageCode :: Maybe (Value Text)
source :: Maybe (Value Text)
title :: Maybe (Value Text)
haddock_workaround_ :: ()
copyright :: Maybe (Value Text)
languageCode :: Maybe (Value Text)
source :: Maybe (Value Text)
title :: Maybe (Value Text)
..}
instance Property "Source" DashProgramInformationProperty where
type PropertyType "Source" DashProgramInformationProperty = Value Prelude.Text
set :: PropertyType "Source" DashProgramInformationProperty
-> DashProgramInformationProperty -> DashProgramInformationProperty
set PropertyType "Source" DashProgramInformationProperty
newValue DashProgramInformationProperty {Maybe (Value Text)
()
haddock_workaround_ :: DashProgramInformationProperty -> ()
copyright :: DashProgramInformationProperty -> Maybe (Value Text)
languageCode :: DashProgramInformationProperty -> Maybe (Value Text)
moreInformationUrl :: DashProgramInformationProperty -> Maybe (Value Text)
source :: DashProgramInformationProperty -> Maybe (Value Text)
title :: DashProgramInformationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
copyright :: Maybe (Value Text)
languageCode :: Maybe (Value Text)
moreInformationUrl :: Maybe (Value Text)
source :: Maybe (Value Text)
title :: Maybe (Value Text)
..}
= DashProgramInformationProperty
{source :: Maybe (Value Text)
source = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Source" DashProgramInformationProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
copyright :: Maybe (Value Text)
languageCode :: Maybe (Value Text)
moreInformationUrl :: Maybe (Value Text)
title :: Maybe (Value Text)
haddock_workaround_ :: ()
copyright :: Maybe (Value Text)
languageCode :: Maybe (Value Text)
moreInformationUrl :: Maybe (Value Text)
title :: Maybe (Value Text)
..}
instance Property "Title" DashProgramInformationProperty where
type PropertyType "Title" DashProgramInformationProperty = Value Prelude.Text
set :: PropertyType "Title" DashProgramInformationProperty
-> DashProgramInformationProperty -> DashProgramInformationProperty
set PropertyType "Title" DashProgramInformationProperty
newValue DashProgramInformationProperty {Maybe (Value Text)
()
haddock_workaround_ :: DashProgramInformationProperty -> ()
copyright :: DashProgramInformationProperty -> Maybe (Value Text)
languageCode :: DashProgramInformationProperty -> Maybe (Value Text)
moreInformationUrl :: DashProgramInformationProperty -> Maybe (Value Text)
source :: DashProgramInformationProperty -> Maybe (Value Text)
title :: DashProgramInformationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
copyright :: Maybe (Value Text)
languageCode :: Maybe (Value Text)
moreInformationUrl :: Maybe (Value Text)
source :: Maybe (Value Text)
title :: Maybe (Value Text)
..}
= DashProgramInformationProperty
{title :: Maybe (Value Text)
title = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Title" DashProgramInformationProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
copyright :: Maybe (Value Text)
languageCode :: Maybe (Value Text)
moreInformationUrl :: Maybe (Value Text)
source :: Maybe (Value Text)
haddock_workaround_ :: ()
copyright :: Maybe (Value Text)
languageCode :: Maybe (Value Text)
moreInformationUrl :: Maybe (Value Text)
source :: Maybe (Value Text)
..}