{-# 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.JobTemplate where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.MediaConvert.Types.AccelerationSettings
import Amazonka.MediaConvert.Types.HopDestination
import Amazonka.MediaConvert.Types.JobTemplateSettings
import Amazonka.MediaConvert.Types.StatusUpdateInterval
import Amazonka.MediaConvert.Types.Type
import qualified Amazonka.Prelude as Prelude
data JobTemplate = JobTemplate'
{
JobTemplate -> Maybe AccelerationSettings
accelerationSettings :: Prelude.Maybe AccelerationSettings,
JobTemplate -> Maybe POSIX
lastUpdated :: Prelude.Maybe Core.POSIX,
JobTemplate -> Maybe Int
priority :: Prelude.Maybe Prelude.Int,
JobTemplate -> Maybe StatusUpdateInterval
statusUpdateInterval :: Prelude.Maybe StatusUpdateInterval,
JobTemplate -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
JobTemplate -> Maybe POSIX
createdAt :: Prelude.Maybe Core.POSIX,
JobTemplate -> Maybe Text
category :: Prelude.Maybe Prelude.Text,
JobTemplate -> Maybe [HopDestination]
hopDestinations :: Prelude.Maybe [HopDestination],
JobTemplate -> Maybe Text
queue :: Prelude.Maybe Prelude.Text,
JobTemplate -> Maybe Type
type' :: Prelude.Maybe Type,
JobTemplate -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
JobTemplate -> JobTemplateSettings
settings :: JobTemplateSettings,
JobTemplate -> Text
name :: Prelude.Text
}
deriving (JobTemplate -> JobTemplate -> Bool
(JobTemplate -> JobTemplate -> Bool)
-> (JobTemplate -> JobTemplate -> Bool) -> Eq JobTemplate
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: JobTemplate -> JobTemplate -> Bool
$c/= :: JobTemplate -> JobTemplate -> Bool
== :: JobTemplate -> JobTemplate -> Bool
$c== :: JobTemplate -> JobTemplate -> Bool
Prelude.Eq, ReadPrec [JobTemplate]
ReadPrec JobTemplate
Int -> ReadS JobTemplate
ReadS [JobTemplate]
(Int -> ReadS JobTemplate)
-> ReadS [JobTemplate]
-> ReadPrec JobTemplate
-> ReadPrec [JobTemplate]
-> Read JobTemplate
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [JobTemplate]
$creadListPrec :: ReadPrec [JobTemplate]
readPrec :: ReadPrec JobTemplate
$creadPrec :: ReadPrec JobTemplate
readList :: ReadS [JobTemplate]
$creadList :: ReadS [JobTemplate]
readsPrec :: Int -> ReadS JobTemplate
$creadsPrec :: Int -> ReadS JobTemplate
Prelude.Read, Int -> JobTemplate -> ShowS
[JobTemplate] -> ShowS
JobTemplate -> String
(Int -> JobTemplate -> ShowS)
-> (JobTemplate -> String)
-> ([JobTemplate] -> ShowS)
-> Show JobTemplate
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [JobTemplate] -> ShowS
$cshowList :: [JobTemplate] -> ShowS
show :: JobTemplate -> String
$cshow :: JobTemplate -> String
showsPrec :: Int -> JobTemplate -> ShowS
$cshowsPrec :: Int -> JobTemplate -> ShowS
Prelude.Show, (forall x. JobTemplate -> Rep JobTemplate x)
-> (forall x. Rep JobTemplate x -> JobTemplate)
-> Generic JobTemplate
forall x. Rep JobTemplate x -> JobTemplate
forall x. JobTemplate -> Rep JobTemplate x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep JobTemplate x -> JobTemplate
$cfrom :: forall x. JobTemplate -> Rep JobTemplate x
Prelude.Generic)
newJobTemplate ::
JobTemplateSettings ->
Prelude.Text ->
JobTemplate
newJobTemplate :: JobTemplateSettings -> Text -> JobTemplate
newJobTemplate JobTemplateSettings
pSettings_ Text
pName_ =
JobTemplate' :: Maybe AccelerationSettings
-> Maybe POSIX
-> Maybe Int
-> Maybe StatusUpdateInterval
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe [HopDestination]
-> Maybe Text
-> Maybe Type
-> Maybe Text
-> JobTemplateSettings
-> Text
-> JobTemplate
JobTemplate'
{ $sel:accelerationSettings:JobTemplate' :: Maybe AccelerationSettings
accelerationSettings =
Maybe AccelerationSettings
forall a. Maybe a
Prelude.Nothing,
$sel:lastUpdated:JobTemplate' :: Maybe POSIX
lastUpdated = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:priority:JobTemplate' :: Maybe Int
priority = Maybe Int
forall a. Maybe a
Prelude.Nothing,
$sel:statusUpdateInterval:JobTemplate' :: Maybe StatusUpdateInterval
statusUpdateInterval = Maybe StatusUpdateInterval
forall a. Maybe a
Prelude.Nothing,
$sel:arn:JobTemplate' :: Maybe Text
arn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:createdAt:JobTemplate' :: Maybe POSIX
createdAt = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:category:JobTemplate' :: Maybe Text
category = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:hopDestinations:JobTemplate' :: Maybe [HopDestination]
hopDestinations = Maybe [HopDestination]
forall a. Maybe a
Prelude.Nothing,
$sel:queue:JobTemplate' :: Maybe Text
queue = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:type':JobTemplate' :: Maybe Type
type' = Maybe Type
forall a. Maybe a
Prelude.Nothing,
$sel:description:JobTemplate' :: Maybe Text
description = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:settings:JobTemplate' :: JobTemplateSettings
settings = JobTemplateSettings
pSettings_,
$sel:name:JobTemplate' :: Text
name = Text
pName_
}
jobTemplate_accelerationSettings :: Lens.Lens' JobTemplate (Prelude.Maybe AccelerationSettings)
jobTemplate_accelerationSettings :: (Maybe AccelerationSettings -> f (Maybe AccelerationSettings))
-> JobTemplate -> f JobTemplate
jobTemplate_accelerationSettings = (JobTemplate -> Maybe AccelerationSettings)
-> (JobTemplate -> Maybe AccelerationSettings -> JobTemplate)
-> Lens
JobTemplate
JobTemplate
(Maybe AccelerationSettings)
(Maybe AccelerationSettings)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\JobTemplate' {Maybe AccelerationSettings
accelerationSettings :: Maybe AccelerationSettings
$sel:accelerationSettings:JobTemplate' :: JobTemplate -> Maybe AccelerationSettings
accelerationSettings} -> Maybe AccelerationSettings
accelerationSettings) (\s :: JobTemplate
s@JobTemplate' {} Maybe AccelerationSettings
a -> JobTemplate
s {$sel:accelerationSettings:JobTemplate' :: Maybe AccelerationSettings
accelerationSettings = Maybe AccelerationSettings
a} :: JobTemplate)
jobTemplate_lastUpdated :: Lens.Lens' JobTemplate (Prelude.Maybe Prelude.UTCTime)
jobTemplate_lastUpdated :: (Maybe UTCTime -> f (Maybe UTCTime))
-> JobTemplate -> f JobTemplate
jobTemplate_lastUpdated = (JobTemplate -> Maybe POSIX)
-> (JobTemplate -> Maybe POSIX -> JobTemplate)
-> Lens JobTemplate JobTemplate (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\JobTemplate' {Maybe POSIX
lastUpdated :: Maybe POSIX
$sel:lastUpdated:JobTemplate' :: JobTemplate -> Maybe POSIX
lastUpdated} -> Maybe POSIX
lastUpdated) (\s :: JobTemplate
s@JobTemplate' {} Maybe POSIX
a -> JobTemplate
s {$sel:lastUpdated:JobTemplate' :: Maybe POSIX
lastUpdated = Maybe POSIX
a} :: JobTemplate) ((Maybe POSIX -> f (Maybe POSIX)) -> JobTemplate -> f JobTemplate)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> JobTemplate
-> f JobTemplate
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
jobTemplate_priority :: Lens.Lens' JobTemplate (Prelude.Maybe Prelude.Int)
jobTemplate_priority :: (Maybe Int -> f (Maybe Int)) -> JobTemplate -> f JobTemplate
jobTemplate_priority = (JobTemplate -> Maybe Int)
-> (JobTemplate -> Maybe Int -> JobTemplate)
-> Lens JobTemplate JobTemplate (Maybe Int) (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\JobTemplate' {Maybe Int
priority :: Maybe Int
$sel:priority:JobTemplate' :: JobTemplate -> Maybe Int
priority} -> Maybe Int
priority) (\s :: JobTemplate
s@JobTemplate' {} Maybe Int
a -> JobTemplate
s {$sel:priority:JobTemplate' :: Maybe Int
priority = Maybe Int
a} :: JobTemplate)
jobTemplate_statusUpdateInterval :: Lens.Lens' JobTemplate (Prelude.Maybe StatusUpdateInterval)
jobTemplate_statusUpdateInterval :: (Maybe StatusUpdateInterval -> f (Maybe StatusUpdateInterval))
-> JobTemplate -> f JobTemplate
jobTemplate_statusUpdateInterval = (JobTemplate -> Maybe StatusUpdateInterval)
-> (JobTemplate -> Maybe StatusUpdateInterval -> JobTemplate)
-> Lens
JobTemplate
JobTemplate
(Maybe StatusUpdateInterval)
(Maybe StatusUpdateInterval)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\JobTemplate' {Maybe StatusUpdateInterval
statusUpdateInterval :: Maybe StatusUpdateInterval
$sel:statusUpdateInterval:JobTemplate' :: JobTemplate -> Maybe StatusUpdateInterval
statusUpdateInterval} -> Maybe StatusUpdateInterval
statusUpdateInterval) (\s :: JobTemplate
s@JobTemplate' {} Maybe StatusUpdateInterval
a -> JobTemplate
s {$sel:statusUpdateInterval:JobTemplate' :: Maybe StatusUpdateInterval
statusUpdateInterval = Maybe StatusUpdateInterval
a} :: JobTemplate)
jobTemplate_arn :: Lens.Lens' JobTemplate (Prelude.Maybe Prelude.Text)
jobTemplate_arn :: (Maybe Text -> f (Maybe Text)) -> JobTemplate -> f JobTemplate
jobTemplate_arn = (JobTemplate -> Maybe Text)
-> (JobTemplate -> Maybe Text -> JobTemplate)
-> Lens JobTemplate JobTemplate (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\JobTemplate' {Maybe Text
arn :: Maybe Text
$sel:arn:JobTemplate' :: JobTemplate -> Maybe Text
arn} -> Maybe Text
arn) (\s :: JobTemplate
s@JobTemplate' {} Maybe Text
a -> JobTemplate
s {$sel:arn:JobTemplate' :: Maybe Text
arn = Maybe Text
a} :: JobTemplate)
jobTemplate_createdAt :: Lens.Lens' JobTemplate (Prelude.Maybe Prelude.UTCTime)
jobTemplate_createdAt :: (Maybe UTCTime -> f (Maybe UTCTime))
-> JobTemplate -> f JobTemplate
jobTemplate_createdAt = (JobTemplate -> Maybe POSIX)
-> (JobTemplate -> Maybe POSIX -> JobTemplate)
-> Lens JobTemplate JobTemplate (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\JobTemplate' {Maybe POSIX
createdAt :: Maybe POSIX
$sel:createdAt:JobTemplate' :: JobTemplate -> Maybe POSIX
createdAt} -> Maybe POSIX
createdAt) (\s :: JobTemplate
s@JobTemplate' {} Maybe POSIX
a -> JobTemplate
s {$sel:createdAt:JobTemplate' :: Maybe POSIX
createdAt = Maybe POSIX
a} :: JobTemplate) ((Maybe POSIX -> f (Maybe POSIX)) -> JobTemplate -> f JobTemplate)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> JobTemplate
-> f JobTemplate
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
jobTemplate_category :: Lens.Lens' JobTemplate (Prelude.Maybe Prelude.Text)
jobTemplate_category :: (Maybe Text -> f (Maybe Text)) -> JobTemplate -> f JobTemplate
jobTemplate_category = (JobTemplate -> Maybe Text)
-> (JobTemplate -> Maybe Text -> JobTemplate)
-> Lens JobTemplate JobTemplate (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\JobTemplate' {Maybe Text
category :: Maybe Text
$sel:category:JobTemplate' :: JobTemplate -> Maybe Text
category} -> Maybe Text
category) (\s :: JobTemplate
s@JobTemplate' {} Maybe Text
a -> JobTemplate
s {$sel:category:JobTemplate' :: Maybe Text
category = Maybe Text
a} :: JobTemplate)
jobTemplate_hopDestinations :: Lens.Lens' JobTemplate (Prelude.Maybe [HopDestination])
jobTemplate_hopDestinations :: (Maybe [HopDestination] -> f (Maybe [HopDestination]))
-> JobTemplate -> f JobTemplate
jobTemplate_hopDestinations = (JobTemplate -> Maybe [HopDestination])
-> (JobTemplate -> Maybe [HopDestination] -> JobTemplate)
-> Lens
JobTemplate
JobTemplate
(Maybe [HopDestination])
(Maybe [HopDestination])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\JobTemplate' {Maybe [HopDestination]
hopDestinations :: Maybe [HopDestination]
$sel:hopDestinations:JobTemplate' :: JobTemplate -> Maybe [HopDestination]
hopDestinations} -> Maybe [HopDestination]
hopDestinations) (\s :: JobTemplate
s@JobTemplate' {} Maybe [HopDestination]
a -> JobTemplate
s {$sel:hopDestinations:JobTemplate' :: Maybe [HopDestination]
hopDestinations = Maybe [HopDestination]
a} :: JobTemplate) ((Maybe [HopDestination] -> f (Maybe [HopDestination]))
-> JobTemplate -> f JobTemplate)
-> ((Maybe [HopDestination] -> f (Maybe [HopDestination]))
-> Maybe [HopDestination] -> f (Maybe [HopDestination]))
-> (Maybe [HopDestination] -> f (Maybe [HopDestination]))
-> JobTemplate
-> f JobTemplate
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[HopDestination] [HopDestination] [HopDestination] [HopDestination]
-> Iso
(Maybe [HopDestination])
(Maybe [HopDestination])
(Maybe [HopDestination])
(Maybe [HopDestination])
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso
[HopDestination] [HopDestination] [HopDestination] [HopDestination]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
jobTemplate_queue :: Lens.Lens' JobTemplate (Prelude.Maybe Prelude.Text)
jobTemplate_queue :: (Maybe Text -> f (Maybe Text)) -> JobTemplate -> f JobTemplate
jobTemplate_queue = (JobTemplate -> Maybe Text)
-> (JobTemplate -> Maybe Text -> JobTemplate)
-> Lens JobTemplate JobTemplate (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\JobTemplate' {Maybe Text
queue :: Maybe Text
$sel:queue:JobTemplate' :: JobTemplate -> Maybe Text
queue} -> Maybe Text
queue) (\s :: JobTemplate
s@JobTemplate' {} Maybe Text
a -> JobTemplate
s {$sel:queue:JobTemplate' :: Maybe Text
queue = Maybe Text
a} :: JobTemplate)
jobTemplate_type :: Lens.Lens' JobTemplate (Prelude.Maybe Type)
jobTemplate_type :: (Maybe Type -> f (Maybe Type)) -> JobTemplate -> f JobTemplate
jobTemplate_type = (JobTemplate -> Maybe Type)
-> (JobTemplate -> Maybe Type -> JobTemplate)
-> Lens JobTemplate JobTemplate (Maybe Type) (Maybe Type)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\JobTemplate' {Maybe Type
type' :: Maybe Type
$sel:type':JobTemplate' :: JobTemplate -> Maybe Type
type'} -> Maybe Type
type') (\s :: JobTemplate
s@JobTemplate' {} Maybe Type
a -> JobTemplate
s {$sel:type':JobTemplate' :: Maybe Type
type' = Maybe Type
a} :: JobTemplate)
jobTemplate_description :: Lens.Lens' JobTemplate (Prelude.Maybe Prelude.Text)
jobTemplate_description :: (Maybe Text -> f (Maybe Text)) -> JobTemplate -> f JobTemplate
jobTemplate_description = (JobTemplate -> Maybe Text)
-> (JobTemplate -> Maybe Text -> JobTemplate)
-> Lens JobTemplate JobTemplate (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\JobTemplate' {Maybe Text
description :: Maybe Text
$sel:description:JobTemplate' :: JobTemplate -> Maybe Text
description} -> Maybe Text
description) (\s :: JobTemplate
s@JobTemplate' {} Maybe Text
a -> JobTemplate
s {$sel:description:JobTemplate' :: Maybe Text
description = Maybe Text
a} :: JobTemplate)
jobTemplate_settings :: Lens.Lens' JobTemplate JobTemplateSettings
jobTemplate_settings :: (JobTemplateSettings -> f JobTemplateSettings)
-> JobTemplate -> f JobTemplate
jobTemplate_settings = (JobTemplate -> JobTemplateSettings)
-> (JobTemplate -> JobTemplateSettings -> JobTemplate)
-> Lens
JobTemplate JobTemplate JobTemplateSettings JobTemplateSettings
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\JobTemplate' {JobTemplateSettings
settings :: JobTemplateSettings
$sel:settings:JobTemplate' :: JobTemplate -> JobTemplateSettings
settings} -> JobTemplateSettings
settings) (\s :: JobTemplate
s@JobTemplate' {} JobTemplateSettings
a -> JobTemplate
s {$sel:settings:JobTemplate' :: JobTemplateSettings
settings = JobTemplateSettings
a} :: JobTemplate)
jobTemplate_name :: Lens.Lens' JobTemplate Prelude.Text
jobTemplate_name :: (Text -> f Text) -> JobTemplate -> f JobTemplate
jobTemplate_name = (JobTemplate -> Text)
-> (JobTemplate -> Text -> JobTemplate)
-> Lens JobTemplate JobTemplate Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\JobTemplate' {Text
name :: Text
$sel:name:JobTemplate' :: JobTemplate -> Text
name} -> Text
name) (\s :: JobTemplate
s@JobTemplate' {} Text
a -> JobTemplate
s {$sel:name:JobTemplate' :: Text
name = Text
a} :: JobTemplate)
instance Core.FromJSON JobTemplate where
parseJSON :: Value -> Parser JobTemplate
parseJSON =
String
-> (Object -> Parser JobTemplate) -> Value -> Parser JobTemplate
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"JobTemplate"
( \Object
x ->
Maybe AccelerationSettings
-> Maybe POSIX
-> Maybe Int
-> Maybe StatusUpdateInterval
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe [HopDestination]
-> Maybe Text
-> Maybe Type
-> Maybe Text
-> JobTemplateSettings
-> Text
-> JobTemplate
JobTemplate'
(Maybe AccelerationSettings
-> Maybe POSIX
-> Maybe Int
-> Maybe StatusUpdateInterval
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe [HopDestination]
-> Maybe Text
-> Maybe Type
-> Maybe Text
-> JobTemplateSettings
-> Text
-> JobTemplate)
-> Parser (Maybe AccelerationSettings)
-> Parser
(Maybe POSIX
-> Maybe Int
-> Maybe StatusUpdateInterval
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe [HopDestination]
-> Maybe Text
-> Maybe Type
-> Maybe Text
-> JobTemplateSettings
-> Text
-> JobTemplate)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe AccelerationSettings)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"accelerationSettings")
Parser
(Maybe POSIX
-> Maybe Int
-> Maybe StatusUpdateInterval
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe [HopDestination]
-> Maybe Text
-> Maybe Type
-> Maybe Text
-> JobTemplateSettings
-> Text
-> JobTemplate)
-> Parser (Maybe POSIX)
-> Parser
(Maybe Int
-> Maybe StatusUpdateInterval
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe [HopDestination]
-> Maybe Text
-> Maybe Type
-> Maybe Text
-> JobTemplateSettings
-> Text
-> JobTemplate)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"lastUpdated")
Parser
(Maybe Int
-> Maybe StatusUpdateInterval
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe [HopDestination]
-> Maybe Text
-> Maybe Type
-> Maybe Text
-> JobTemplateSettings
-> Text
-> JobTemplate)
-> Parser (Maybe Int)
-> Parser
(Maybe StatusUpdateInterval
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe [HopDestination]
-> Maybe Text
-> Maybe Type
-> Maybe Text
-> JobTemplateSettings
-> Text
-> JobTemplate)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Int)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"priority")
Parser
(Maybe StatusUpdateInterval
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe [HopDestination]
-> Maybe Text
-> Maybe Type
-> Maybe Text
-> JobTemplateSettings
-> Text
-> JobTemplate)
-> Parser (Maybe StatusUpdateInterval)
-> Parser
(Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe [HopDestination]
-> Maybe Text
-> Maybe Type
-> Maybe Text
-> JobTemplateSettings
-> Text
-> JobTemplate)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe StatusUpdateInterval)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"statusUpdateInterval")
Parser
(Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe [HopDestination]
-> Maybe Text
-> Maybe Type
-> Maybe Text
-> JobTemplateSettings
-> Text
-> JobTemplate)
-> Parser (Maybe Text)
-> Parser
(Maybe POSIX
-> Maybe Text
-> Maybe [HopDestination]
-> Maybe Text
-> Maybe Type
-> Maybe Text
-> JobTemplateSettings
-> Text
-> JobTemplate)
forall (f :: * -> *) a b. Applicative f => 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
"arn")
Parser
(Maybe POSIX
-> Maybe Text
-> Maybe [HopDestination]
-> Maybe Text
-> Maybe Type
-> Maybe Text
-> JobTemplateSettings
-> Text
-> JobTemplate)
-> Parser (Maybe POSIX)
-> Parser
(Maybe Text
-> Maybe [HopDestination]
-> Maybe Text
-> Maybe Type
-> Maybe Text
-> JobTemplateSettings
-> Text
-> JobTemplate)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"createdAt")
Parser
(Maybe Text
-> Maybe [HopDestination]
-> Maybe Text
-> Maybe Type
-> Maybe Text
-> JobTemplateSettings
-> Text
-> JobTemplate)
-> Parser (Maybe Text)
-> Parser
(Maybe [HopDestination]
-> Maybe Text
-> Maybe Type
-> Maybe Text
-> JobTemplateSettings
-> Text
-> JobTemplate)
forall (f :: * -> *) a b. Applicative f => 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
"category")
Parser
(Maybe [HopDestination]
-> Maybe Text
-> Maybe Type
-> Maybe Text
-> JobTemplateSettings
-> Text
-> JobTemplate)
-> Parser (Maybe [HopDestination])
-> Parser
(Maybe Text
-> Maybe Type
-> Maybe Text
-> JobTemplateSettings
-> Text
-> JobTemplate)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object -> Text -> Parser (Maybe (Maybe [HopDestination]))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"hopDestinations"
Parser (Maybe (Maybe [HopDestination]))
-> Maybe [HopDestination] -> Parser (Maybe [HopDestination])
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe [HopDestination]
forall a. Monoid a => a
Prelude.mempty
)
Parser
(Maybe Text
-> Maybe Type
-> Maybe Text
-> JobTemplateSettings
-> Text
-> JobTemplate)
-> Parser (Maybe Text)
-> Parser
(Maybe Type
-> Maybe Text -> JobTemplateSettings -> Text -> JobTemplate)
forall (f :: * -> *) a b. Applicative f => 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
"queue")
Parser
(Maybe Type
-> Maybe Text -> JobTemplateSettings -> Text -> JobTemplate)
-> Parser (Maybe Type)
-> Parser
(Maybe Text -> JobTemplateSettings -> Text -> JobTemplate)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Type)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"type")
Parser (Maybe Text -> JobTemplateSettings -> Text -> JobTemplate)
-> Parser (Maybe Text)
-> Parser (JobTemplateSettings -> Text -> JobTemplate)
forall (f :: * -> *) a b. Applicative f => 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
"description")
Parser (JobTemplateSettings -> Text -> JobTemplate)
-> Parser JobTemplateSettings -> Parser (Text -> JobTemplate)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser JobTemplateSettings
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"settings")
Parser (Text -> JobTemplate) -> Parser Text -> Parser JobTemplate
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser Text
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"name")
)
instance Prelude.Hashable JobTemplate
instance Prelude.NFData JobTemplate