{-# 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.EsamManifestConfirmConditionNotification where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data EsamManifestConfirmConditionNotification = EsamManifestConfirmConditionNotification'
{
EsamManifestConfirmConditionNotification -> Maybe Text
mccXml :: Prelude.Maybe Prelude.Text
}
deriving (EsamManifestConfirmConditionNotification
-> EsamManifestConfirmConditionNotification -> Bool
(EsamManifestConfirmConditionNotification
-> EsamManifestConfirmConditionNotification -> Bool)
-> (EsamManifestConfirmConditionNotification
-> EsamManifestConfirmConditionNotification -> Bool)
-> Eq EsamManifestConfirmConditionNotification
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: EsamManifestConfirmConditionNotification
-> EsamManifestConfirmConditionNotification -> Bool
$c/= :: EsamManifestConfirmConditionNotification
-> EsamManifestConfirmConditionNotification -> Bool
== :: EsamManifestConfirmConditionNotification
-> EsamManifestConfirmConditionNotification -> Bool
$c== :: EsamManifestConfirmConditionNotification
-> EsamManifestConfirmConditionNotification -> Bool
Prelude.Eq, ReadPrec [EsamManifestConfirmConditionNotification]
ReadPrec EsamManifestConfirmConditionNotification
Int -> ReadS EsamManifestConfirmConditionNotification
ReadS [EsamManifestConfirmConditionNotification]
(Int -> ReadS EsamManifestConfirmConditionNotification)
-> ReadS [EsamManifestConfirmConditionNotification]
-> ReadPrec EsamManifestConfirmConditionNotification
-> ReadPrec [EsamManifestConfirmConditionNotification]
-> Read EsamManifestConfirmConditionNotification
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [EsamManifestConfirmConditionNotification]
$creadListPrec :: ReadPrec [EsamManifestConfirmConditionNotification]
readPrec :: ReadPrec EsamManifestConfirmConditionNotification
$creadPrec :: ReadPrec EsamManifestConfirmConditionNotification
readList :: ReadS [EsamManifestConfirmConditionNotification]
$creadList :: ReadS [EsamManifestConfirmConditionNotification]
readsPrec :: Int -> ReadS EsamManifestConfirmConditionNotification
$creadsPrec :: Int -> ReadS EsamManifestConfirmConditionNotification
Prelude.Read, Int -> EsamManifestConfirmConditionNotification -> ShowS
[EsamManifestConfirmConditionNotification] -> ShowS
EsamManifestConfirmConditionNotification -> String
(Int -> EsamManifestConfirmConditionNotification -> ShowS)
-> (EsamManifestConfirmConditionNotification -> String)
-> ([EsamManifestConfirmConditionNotification] -> ShowS)
-> Show EsamManifestConfirmConditionNotification
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [EsamManifestConfirmConditionNotification] -> ShowS
$cshowList :: [EsamManifestConfirmConditionNotification] -> ShowS
show :: EsamManifestConfirmConditionNotification -> String
$cshow :: EsamManifestConfirmConditionNotification -> String
showsPrec :: Int -> EsamManifestConfirmConditionNotification -> ShowS
$cshowsPrec :: Int -> EsamManifestConfirmConditionNotification -> ShowS
Prelude.Show, (forall x.
EsamManifestConfirmConditionNotification
-> Rep EsamManifestConfirmConditionNotification x)
-> (forall x.
Rep EsamManifestConfirmConditionNotification x
-> EsamManifestConfirmConditionNotification)
-> Generic EsamManifestConfirmConditionNotification
forall x.
Rep EsamManifestConfirmConditionNotification x
-> EsamManifestConfirmConditionNotification
forall x.
EsamManifestConfirmConditionNotification
-> Rep EsamManifestConfirmConditionNotification x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep EsamManifestConfirmConditionNotification x
-> EsamManifestConfirmConditionNotification
$cfrom :: forall x.
EsamManifestConfirmConditionNotification
-> Rep EsamManifestConfirmConditionNotification x
Prelude.Generic)
newEsamManifestConfirmConditionNotification ::
EsamManifestConfirmConditionNotification
newEsamManifestConfirmConditionNotification :: EsamManifestConfirmConditionNotification
newEsamManifestConfirmConditionNotification =
EsamManifestConfirmConditionNotification' :: Maybe Text -> EsamManifestConfirmConditionNotification
EsamManifestConfirmConditionNotification'
{ $sel:mccXml:EsamManifestConfirmConditionNotification' :: Maybe Text
mccXml =
Maybe Text
forall a. Maybe a
Prelude.Nothing
}
esamManifestConfirmConditionNotification_mccXml :: Lens.Lens' EsamManifestConfirmConditionNotification (Prelude.Maybe Prelude.Text)
esamManifestConfirmConditionNotification_mccXml :: (Maybe Text -> f (Maybe Text))
-> EsamManifestConfirmConditionNotification
-> f EsamManifestConfirmConditionNotification
esamManifestConfirmConditionNotification_mccXml = (EsamManifestConfirmConditionNotification -> Maybe Text)
-> (EsamManifestConfirmConditionNotification
-> Maybe Text -> EsamManifestConfirmConditionNotification)
-> Lens
EsamManifestConfirmConditionNotification
EsamManifestConfirmConditionNotification
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EsamManifestConfirmConditionNotification' {Maybe Text
mccXml :: Maybe Text
$sel:mccXml:EsamManifestConfirmConditionNotification' :: EsamManifestConfirmConditionNotification -> Maybe Text
mccXml} -> Maybe Text
mccXml) (\s :: EsamManifestConfirmConditionNotification
s@EsamManifestConfirmConditionNotification' {} Maybe Text
a -> EsamManifestConfirmConditionNotification
s {$sel:mccXml:EsamManifestConfirmConditionNotification' :: Maybe Text
mccXml = Maybe Text
a} :: EsamManifestConfirmConditionNotification)
instance
Core.FromJSON
EsamManifestConfirmConditionNotification
where
parseJSON :: Value -> Parser EsamManifestConfirmConditionNotification
parseJSON =
String
-> (Object -> Parser EsamManifestConfirmConditionNotification)
-> Value
-> Parser EsamManifestConfirmConditionNotification
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"EsamManifestConfirmConditionNotification"
( \Object
x ->
Maybe Text -> EsamManifestConfirmConditionNotification
EsamManifestConfirmConditionNotification'
(Maybe Text -> EsamManifestConfirmConditionNotification)
-> Parser (Maybe Text)
-> Parser EsamManifestConfirmConditionNotification
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
"mccXml")
)
instance
Prelude.Hashable
EsamManifestConfirmConditionNotification
instance
Prelude.NFData
EsamManifestConfirmConditionNotification
instance
Core.ToJSON
EsamManifestConfirmConditionNotification
where
toJSON :: EsamManifestConfirmConditionNotification -> Value
toJSON EsamManifestConfirmConditionNotification' {Maybe Text
mccXml :: Maybe Text
$sel:mccXml:EsamManifestConfirmConditionNotification' :: EsamManifestConfirmConditionNotification -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[(Text
"mccXml" 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
mccXml]
)