module Stratosphere.MediaTailor.PlaybackConfiguration.BumperProperty (
BumperProperty(..), mkBumperProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data BumperProperty
=
BumperProperty {BumperProperty -> ()
haddock_workaround_ :: (),
BumperProperty -> Maybe (Value Text)
endUrl :: (Prelude.Maybe (Value Prelude.Text)),
BumperProperty -> Maybe (Value Text)
startUrl :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (BumperProperty -> BumperProperty -> Bool
(BumperProperty -> BumperProperty -> Bool)
-> (BumperProperty -> BumperProperty -> Bool) -> Eq BumperProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: BumperProperty -> BumperProperty -> Bool
== :: BumperProperty -> BumperProperty -> Bool
$c/= :: BumperProperty -> BumperProperty -> Bool
/= :: BumperProperty -> BumperProperty -> Bool
Prelude.Eq, Int -> BumperProperty -> ShowS
[BumperProperty] -> ShowS
BumperProperty -> String
(Int -> BumperProperty -> ShowS)
-> (BumperProperty -> String)
-> ([BumperProperty] -> ShowS)
-> Show BumperProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> BumperProperty -> ShowS
showsPrec :: Int -> BumperProperty -> ShowS
$cshow :: BumperProperty -> String
show :: BumperProperty -> String
$cshowList :: [BumperProperty] -> ShowS
showList :: [BumperProperty] -> ShowS
Prelude.Show)
mkBumperProperty :: BumperProperty
mkBumperProperty :: BumperProperty
mkBumperProperty
= BumperProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), endUrl :: Maybe (Value Text)
endUrl = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
startUrl :: Maybe (Value Text)
startUrl = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties BumperProperty where
toResourceProperties :: BumperProperty -> ResourceProperties
toResourceProperties BumperProperty {Maybe (Value Text)
()
haddock_workaround_ :: BumperProperty -> ()
endUrl :: BumperProperty -> Maybe (Value Text)
startUrl :: BumperProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
endUrl :: Maybe (Value Text)
startUrl :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::MediaTailor::PlaybackConfiguration.Bumper",
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
"EndUrl" (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)
endUrl,
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
"StartUrl" (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)
startUrl])}
instance JSON.ToJSON BumperProperty where
toJSON :: BumperProperty -> Value
toJSON BumperProperty {Maybe (Value Text)
()
haddock_workaround_ :: BumperProperty -> ()
endUrl :: BumperProperty -> Maybe (Value Text)
startUrl :: BumperProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
endUrl :: Maybe (Value Text)
startUrl :: 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
"EndUrl" (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)
endUrl,
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
"StartUrl" (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)
startUrl]))
instance Property "EndUrl" BumperProperty where
type PropertyType "EndUrl" BumperProperty = Value Prelude.Text
set :: PropertyType "EndUrl" BumperProperty
-> BumperProperty -> BumperProperty
set PropertyType "EndUrl" BumperProperty
newValue BumperProperty {Maybe (Value Text)
()
haddock_workaround_ :: BumperProperty -> ()
endUrl :: BumperProperty -> Maybe (Value Text)
startUrl :: BumperProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
endUrl :: Maybe (Value Text)
startUrl :: Maybe (Value Text)
..}
= BumperProperty {endUrl :: Maybe (Value Text)
endUrl = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "EndUrl" BumperProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
startUrl :: Maybe (Value Text)
haddock_workaround_ :: ()
startUrl :: Maybe (Value Text)
..}
instance Property "StartUrl" BumperProperty where
type PropertyType "StartUrl" BumperProperty = Value Prelude.Text
set :: PropertyType "StartUrl" BumperProperty
-> BumperProperty -> BumperProperty
set PropertyType "StartUrl" BumperProperty
newValue BumperProperty {Maybe (Value Text)
()
haddock_workaround_ :: BumperProperty -> ()
endUrl :: BumperProperty -> Maybe (Value Text)
startUrl :: BumperProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
endUrl :: Maybe (Value Text)
startUrl :: Maybe (Value Text)
..}
= BumperProperty {startUrl :: Maybe (Value Text)
startUrl = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "StartUrl" BumperProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
endUrl :: Maybe (Value Text)
haddock_workaround_ :: ()
endUrl :: Maybe (Value Text)
..}