{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.MediaConvert.Types.EsamSignalProcessingNotification where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data EsamSignalProcessingNotification = EsamSignalProcessingNotification'
{
EsamSignalProcessingNotification -> Maybe Text
sccXml :: Prelude.Maybe Prelude.Text
}
deriving (EsamSignalProcessingNotification
-> EsamSignalProcessingNotification -> Bool
(EsamSignalProcessingNotification
-> EsamSignalProcessingNotification -> Bool)
-> (EsamSignalProcessingNotification
-> EsamSignalProcessingNotification -> Bool)
-> Eq EsamSignalProcessingNotification
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: EsamSignalProcessingNotification
-> EsamSignalProcessingNotification -> Bool
$c/= :: EsamSignalProcessingNotification
-> EsamSignalProcessingNotification -> Bool
== :: EsamSignalProcessingNotification
-> EsamSignalProcessingNotification -> Bool
$c== :: EsamSignalProcessingNotification
-> EsamSignalProcessingNotification -> Bool
Prelude.Eq, ReadPrec [EsamSignalProcessingNotification]
ReadPrec EsamSignalProcessingNotification
Int -> ReadS EsamSignalProcessingNotification
ReadS [EsamSignalProcessingNotification]
(Int -> ReadS EsamSignalProcessingNotification)
-> ReadS [EsamSignalProcessingNotification]
-> ReadPrec EsamSignalProcessingNotification
-> ReadPrec [EsamSignalProcessingNotification]
-> Read EsamSignalProcessingNotification
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [EsamSignalProcessingNotification]
$creadListPrec :: ReadPrec [EsamSignalProcessingNotification]
readPrec :: ReadPrec EsamSignalProcessingNotification
$creadPrec :: ReadPrec EsamSignalProcessingNotification
readList :: ReadS [EsamSignalProcessingNotification]
$creadList :: ReadS [EsamSignalProcessingNotification]
readsPrec :: Int -> ReadS EsamSignalProcessingNotification
$creadsPrec :: Int -> ReadS EsamSignalProcessingNotification
Prelude.Read, Int -> EsamSignalProcessingNotification -> ShowS
[EsamSignalProcessingNotification] -> ShowS
EsamSignalProcessingNotification -> String
(Int -> EsamSignalProcessingNotification -> ShowS)
-> (EsamSignalProcessingNotification -> String)
-> ([EsamSignalProcessingNotification] -> ShowS)
-> Show EsamSignalProcessingNotification
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [EsamSignalProcessingNotification] -> ShowS
$cshowList :: [EsamSignalProcessingNotification] -> ShowS
show :: EsamSignalProcessingNotification -> String
$cshow :: EsamSignalProcessingNotification -> String
showsPrec :: Int -> EsamSignalProcessingNotification -> ShowS
$cshowsPrec :: Int -> EsamSignalProcessingNotification -> ShowS
Prelude.Show, (forall x.
EsamSignalProcessingNotification
-> Rep EsamSignalProcessingNotification x)
-> (forall x.
Rep EsamSignalProcessingNotification x
-> EsamSignalProcessingNotification)
-> Generic EsamSignalProcessingNotification
forall x.
Rep EsamSignalProcessingNotification x
-> EsamSignalProcessingNotification
forall x.
EsamSignalProcessingNotification
-> Rep EsamSignalProcessingNotification x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep EsamSignalProcessingNotification x
-> EsamSignalProcessingNotification
$cfrom :: forall x.
EsamSignalProcessingNotification
-> Rep EsamSignalProcessingNotification x
Prelude.Generic)
newEsamSignalProcessingNotification ::
EsamSignalProcessingNotification
newEsamSignalProcessingNotification :: EsamSignalProcessingNotification
newEsamSignalProcessingNotification =
EsamSignalProcessingNotification' :: Maybe Text -> EsamSignalProcessingNotification
EsamSignalProcessingNotification'
{ $sel:sccXml:EsamSignalProcessingNotification' :: Maybe Text
sccXml =
Maybe Text
forall a. Maybe a
Prelude.Nothing
}
esamSignalProcessingNotification_sccXml :: Lens.Lens' EsamSignalProcessingNotification (Prelude.Maybe Prelude.Text)
esamSignalProcessingNotification_sccXml :: (Maybe Text -> f (Maybe Text))
-> EsamSignalProcessingNotification
-> f EsamSignalProcessingNotification
esamSignalProcessingNotification_sccXml = (EsamSignalProcessingNotification -> Maybe Text)
-> (EsamSignalProcessingNotification
-> Maybe Text -> EsamSignalProcessingNotification)
-> Lens
EsamSignalProcessingNotification
EsamSignalProcessingNotification
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EsamSignalProcessingNotification' {Maybe Text
sccXml :: Maybe Text
$sel:sccXml:EsamSignalProcessingNotification' :: EsamSignalProcessingNotification -> Maybe Text
sccXml} -> Maybe Text
sccXml) (\s :: EsamSignalProcessingNotification
s@EsamSignalProcessingNotification' {} Maybe Text
a -> EsamSignalProcessingNotification
s {$sel:sccXml:EsamSignalProcessingNotification' :: Maybe Text
sccXml = Maybe Text
a} :: EsamSignalProcessingNotification)
instance
Core.FromJSON
EsamSignalProcessingNotification
where
parseJSON :: Value -> Parser EsamSignalProcessingNotification
parseJSON =
String
-> (Object -> Parser EsamSignalProcessingNotification)
-> Value
-> Parser EsamSignalProcessingNotification
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"EsamSignalProcessingNotification"
( \Object
x ->
Maybe Text -> EsamSignalProcessingNotification
EsamSignalProcessingNotification'
(Maybe Text -> EsamSignalProcessingNotification)
-> Parser (Maybe Text) -> Parser EsamSignalProcessingNotification
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"sccXml")
)
instance
Prelude.Hashable
EsamSignalProcessingNotification
instance
Prelude.NFData
EsamSignalProcessingNotification
instance Core.ToJSON EsamSignalProcessingNotification where
toJSON :: EsamSignalProcessingNotification -> Value
toJSON EsamSignalProcessingNotification' {Maybe Text
sccXml :: Maybe Text
$sel:sccXml:EsamSignalProcessingNotification' :: EsamSignalProcessingNotification -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[(Text
"sccXml" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
sccXml]
)