{-# 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 #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.SageMaker.Types.ProcessingJobSummary
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.SageMaker.Types.ProcessingJobSummary where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import Amazonka.SageMaker.Types.ProcessingJobStatus

-- | Summary of information about a processing job.
--
-- /See:/ 'newProcessingJobSummary' smart constructor.
data ProcessingJobSummary = ProcessingJobSummary'
  { -- | A string, up to one KB in size, that contains the reason a processing
    -- job failed, if it failed.
    ProcessingJobSummary -> Maybe Text
failureReason :: Prelude.Maybe Prelude.Text,
    -- | A timestamp that indicates the last time the processing job was
    -- modified.
    ProcessingJobSummary -> Maybe POSIX
lastModifiedTime :: Prelude.Maybe Core.POSIX,
    -- | An optional string, up to one KB in size, that contains metadata from
    -- the processing container when the processing job exits.
    ProcessingJobSummary -> Maybe Text
exitMessage :: Prelude.Maybe Prelude.Text,
    -- | The time at which the processing job completed.
    ProcessingJobSummary -> Maybe POSIX
processingEndTime :: Prelude.Maybe Core.POSIX,
    -- | The name of the processing job.
    ProcessingJobSummary -> Text
processingJobName :: Prelude.Text,
    -- | The Amazon Resource Name (ARN) of the processing job..
    ProcessingJobSummary -> Text
processingJobArn :: Prelude.Text,
    -- | The time at which the processing job was created.
    ProcessingJobSummary -> POSIX
creationTime :: Core.POSIX,
    -- | The status of the processing job.
    ProcessingJobSummary -> ProcessingJobStatus
processingJobStatus :: ProcessingJobStatus
  }
  deriving (ProcessingJobSummary -> ProcessingJobSummary -> Bool
(ProcessingJobSummary -> ProcessingJobSummary -> Bool)
-> (ProcessingJobSummary -> ProcessingJobSummary -> Bool)
-> Eq ProcessingJobSummary
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ProcessingJobSummary -> ProcessingJobSummary -> Bool
$c/= :: ProcessingJobSummary -> ProcessingJobSummary -> Bool
== :: ProcessingJobSummary -> ProcessingJobSummary -> Bool
$c== :: ProcessingJobSummary -> ProcessingJobSummary -> Bool
Prelude.Eq, ReadPrec [ProcessingJobSummary]
ReadPrec ProcessingJobSummary
Int -> ReadS ProcessingJobSummary
ReadS [ProcessingJobSummary]
(Int -> ReadS ProcessingJobSummary)
-> ReadS [ProcessingJobSummary]
-> ReadPrec ProcessingJobSummary
-> ReadPrec [ProcessingJobSummary]
-> Read ProcessingJobSummary
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ProcessingJobSummary]
$creadListPrec :: ReadPrec [ProcessingJobSummary]
readPrec :: ReadPrec ProcessingJobSummary
$creadPrec :: ReadPrec ProcessingJobSummary
readList :: ReadS [ProcessingJobSummary]
$creadList :: ReadS [ProcessingJobSummary]
readsPrec :: Int -> ReadS ProcessingJobSummary
$creadsPrec :: Int -> ReadS ProcessingJobSummary
Prelude.Read, Int -> ProcessingJobSummary -> ShowS
[ProcessingJobSummary] -> ShowS
ProcessingJobSummary -> String
(Int -> ProcessingJobSummary -> ShowS)
-> (ProcessingJobSummary -> String)
-> ([ProcessingJobSummary] -> ShowS)
-> Show ProcessingJobSummary
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ProcessingJobSummary] -> ShowS
$cshowList :: [ProcessingJobSummary] -> ShowS
show :: ProcessingJobSummary -> String
$cshow :: ProcessingJobSummary -> String
showsPrec :: Int -> ProcessingJobSummary -> ShowS
$cshowsPrec :: Int -> ProcessingJobSummary -> ShowS
Prelude.Show, (forall x. ProcessingJobSummary -> Rep ProcessingJobSummary x)
-> (forall x. Rep ProcessingJobSummary x -> ProcessingJobSummary)
-> Generic ProcessingJobSummary
forall x. Rep ProcessingJobSummary x -> ProcessingJobSummary
forall x. ProcessingJobSummary -> Rep ProcessingJobSummary x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ProcessingJobSummary x -> ProcessingJobSummary
$cfrom :: forall x. ProcessingJobSummary -> Rep ProcessingJobSummary x
Prelude.Generic)

-- |
-- Create a value of 'ProcessingJobSummary' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'failureReason', 'processingJobSummary_failureReason' - A string, up to one KB in size, that contains the reason a processing
-- job failed, if it failed.
--
-- 'lastModifiedTime', 'processingJobSummary_lastModifiedTime' - A timestamp that indicates the last time the processing job was
-- modified.
--
-- 'exitMessage', 'processingJobSummary_exitMessage' - An optional string, up to one KB in size, that contains metadata from
-- the processing container when the processing job exits.
--
-- 'processingEndTime', 'processingJobSummary_processingEndTime' - The time at which the processing job completed.
--
-- 'processingJobName', 'processingJobSummary_processingJobName' - The name of the processing job.
--
-- 'processingJobArn', 'processingJobSummary_processingJobArn' - The Amazon Resource Name (ARN) of the processing job..
--
-- 'creationTime', 'processingJobSummary_creationTime' - The time at which the processing job was created.
--
-- 'processingJobStatus', 'processingJobSummary_processingJobStatus' - The status of the processing job.
newProcessingJobSummary ::
  -- | 'processingJobName'
  Prelude.Text ->
  -- | 'processingJobArn'
  Prelude.Text ->
  -- | 'creationTime'
  Prelude.UTCTime ->
  -- | 'processingJobStatus'
  ProcessingJobStatus ->
  ProcessingJobSummary
newProcessingJobSummary :: Text
-> Text -> UTCTime -> ProcessingJobStatus -> ProcessingJobSummary
newProcessingJobSummary
  Text
pProcessingJobName_
  Text
pProcessingJobArn_
  UTCTime
pCreationTime_
  ProcessingJobStatus
pProcessingJobStatus_ =
    ProcessingJobSummary' :: Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Text
-> Text
-> POSIX
-> ProcessingJobStatus
-> ProcessingJobSummary
ProcessingJobSummary'
      { $sel:failureReason:ProcessingJobSummary' :: Maybe Text
failureReason =
          Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:lastModifiedTime:ProcessingJobSummary' :: Maybe POSIX
lastModifiedTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
        $sel:exitMessage:ProcessingJobSummary' :: Maybe Text
exitMessage = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:processingEndTime:ProcessingJobSummary' :: Maybe POSIX
processingEndTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
        $sel:processingJobName:ProcessingJobSummary' :: Text
processingJobName = Text
pProcessingJobName_,
        $sel:processingJobArn:ProcessingJobSummary' :: Text
processingJobArn = Text
pProcessingJobArn_,
        $sel:creationTime:ProcessingJobSummary' :: POSIX
creationTime = Tagged UTCTime (Identity UTCTime) -> Tagged POSIX (Identity POSIX)
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time (Tagged UTCTime (Identity UTCTime)
 -> Tagged POSIX (Identity POSIX))
-> UTCTime -> POSIX
forall t b. AReview t b -> b -> t
Lens.# UTCTime
pCreationTime_,
        $sel:processingJobStatus:ProcessingJobSummary' :: ProcessingJobStatus
processingJobStatus = ProcessingJobStatus
pProcessingJobStatus_
      }

-- | A string, up to one KB in size, that contains the reason a processing
-- job failed, if it failed.
processingJobSummary_failureReason :: Lens.Lens' ProcessingJobSummary (Prelude.Maybe Prelude.Text)
processingJobSummary_failureReason :: (Maybe Text -> f (Maybe Text))
-> ProcessingJobSummary -> f ProcessingJobSummary
processingJobSummary_failureReason = (ProcessingJobSummary -> Maybe Text)
-> (ProcessingJobSummary -> Maybe Text -> ProcessingJobSummary)
-> Lens
     ProcessingJobSummary ProcessingJobSummary (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProcessingJobSummary' {Maybe Text
failureReason :: Maybe Text
$sel:failureReason:ProcessingJobSummary' :: ProcessingJobSummary -> Maybe Text
failureReason} -> Maybe Text
failureReason) (\s :: ProcessingJobSummary
s@ProcessingJobSummary' {} Maybe Text
a -> ProcessingJobSummary
s {$sel:failureReason:ProcessingJobSummary' :: Maybe Text
failureReason = Maybe Text
a} :: ProcessingJobSummary)

-- | A timestamp that indicates the last time the processing job was
-- modified.
processingJobSummary_lastModifiedTime :: Lens.Lens' ProcessingJobSummary (Prelude.Maybe Prelude.UTCTime)
processingJobSummary_lastModifiedTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> ProcessingJobSummary -> f ProcessingJobSummary
processingJobSummary_lastModifiedTime = (ProcessingJobSummary -> Maybe POSIX)
-> (ProcessingJobSummary -> Maybe POSIX -> ProcessingJobSummary)
-> Lens
     ProcessingJobSummary
     ProcessingJobSummary
     (Maybe POSIX)
     (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProcessingJobSummary' {Maybe POSIX
lastModifiedTime :: Maybe POSIX
$sel:lastModifiedTime:ProcessingJobSummary' :: ProcessingJobSummary -> Maybe POSIX
lastModifiedTime} -> Maybe POSIX
lastModifiedTime) (\s :: ProcessingJobSummary
s@ProcessingJobSummary' {} Maybe POSIX
a -> ProcessingJobSummary
s {$sel:lastModifiedTime:ProcessingJobSummary' :: Maybe POSIX
lastModifiedTime = Maybe POSIX
a} :: ProcessingJobSummary) ((Maybe POSIX -> f (Maybe POSIX))
 -> ProcessingJobSummary -> f ProcessingJobSummary)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> ProcessingJobSummary
-> f ProcessingJobSummary
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

-- | An optional string, up to one KB in size, that contains metadata from
-- the processing container when the processing job exits.
processingJobSummary_exitMessage :: Lens.Lens' ProcessingJobSummary (Prelude.Maybe Prelude.Text)
processingJobSummary_exitMessage :: (Maybe Text -> f (Maybe Text))
-> ProcessingJobSummary -> f ProcessingJobSummary
processingJobSummary_exitMessage = (ProcessingJobSummary -> Maybe Text)
-> (ProcessingJobSummary -> Maybe Text -> ProcessingJobSummary)
-> Lens
     ProcessingJobSummary ProcessingJobSummary (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProcessingJobSummary' {Maybe Text
exitMessage :: Maybe Text
$sel:exitMessage:ProcessingJobSummary' :: ProcessingJobSummary -> Maybe Text
exitMessage} -> Maybe Text
exitMessage) (\s :: ProcessingJobSummary
s@ProcessingJobSummary' {} Maybe Text
a -> ProcessingJobSummary
s {$sel:exitMessage:ProcessingJobSummary' :: Maybe Text
exitMessage = Maybe Text
a} :: ProcessingJobSummary)

-- | The time at which the processing job completed.
processingJobSummary_processingEndTime :: Lens.Lens' ProcessingJobSummary (Prelude.Maybe Prelude.UTCTime)
processingJobSummary_processingEndTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> ProcessingJobSummary -> f ProcessingJobSummary
processingJobSummary_processingEndTime = (ProcessingJobSummary -> Maybe POSIX)
-> (ProcessingJobSummary -> Maybe POSIX -> ProcessingJobSummary)
-> Lens
     ProcessingJobSummary
     ProcessingJobSummary
     (Maybe POSIX)
     (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProcessingJobSummary' {Maybe POSIX
processingEndTime :: Maybe POSIX
$sel:processingEndTime:ProcessingJobSummary' :: ProcessingJobSummary -> Maybe POSIX
processingEndTime} -> Maybe POSIX
processingEndTime) (\s :: ProcessingJobSummary
s@ProcessingJobSummary' {} Maybe POSIX
a -> ProcessingJobSummary
s {$sel:processingEndTime:ProcessingJobSummary' :: Maybe POSIX
processingEndTime = Maybe POSIX
a} :: ProcessingJobSummary) ((Maybe POSIX -> f (Maybe POSIX))
 -> ProcessingJobSummary -> f ProcessingJobSummary)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> ProcessingJobSummary
-> f ProcessingJobSummary
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

-- | The name of the processing job.
processingJobSummary_processingJobName :: Lens.Lens' ProcessingJobSummary Prelude.Text
processingJobSummary_processingJobName :: (Text -> f Text) -> ProcessingJobSummary -> f ProcessingJobSummary
processingJobSummary_processingJobName = (ProcessingJobSummary -> Text)
-> (ProcessingJobSummary -> Text -> ProcessingJobSummary)
-> Lens ProcessingJobSummary ProcessingJobSummary Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProcessingJobSummary' {Text
processingJobName :: Text
$sel:processingJobName:ProcessingJobSummary' :: ProcessingJobSummary -> Text
processingJobName} -> Text
processingJobName) (\s :: ProcessingJobSummary
s@ProcessingJobSummary' {} Text
a -> ProcessingJobSummary
s {$sel:processingJobName:ProcessingJobSummary' :: Text
processingJobName = Text
a} :: ProcessingJobSummary)

-- | The Amazon Resource Name (ARN) of the processing job..
processingJobSummary_processingJobArn :: Lens.Lens' ProcessingJobSummary Prelude.Text
processingJobSummary_processingJobArn :: (Text -> f Text) -> ProcessingJobSummary -> f ProcessingJobSummary
processingJobSummary_processingJobArn = (ProcessingJobSummary -> Text)
-> (ProcessingJobSummary -> Text -> ProcessingJobSummary)
-> Lens ProcessingJobSummary ProcessingJobSummary Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProcessingJobSummary' {Text
processingJobArn :: Text
$sel:processingJobArn:ProcessingJobSummary' :: ProcessingJobSummary -> Text
processingJobArn} -> Text
processingJobArn) (\s :: ProcessingJobSummary
s@ProcessingJobSummary' {} Text
a -> ProcessingJobSummary
s {$sel:processingJobArn:ProcessingJobSummary' :: Text
processingJobArn = Text
a} :: ProcessingJobSummary)

-- | The time at which the processing job was created.
processingJobSummary_creationTime :: Lens.Lens' ProcessingJobSummary Prelude.UTCTime
processingJobSummary_creationTime :: (UTCTime -> f UTCTime)
-> ProcessingJobSummary -> f ProcessingJobSummary
processingJobSummary_creationTime = (ProcessingJobSummary -> POSIX)
-> (ProcessingJobSummary -> POSIX -> ProcessingJobSummary)
-> Lens ProcessingJobSummary ProcessingJobSummary POSIX POSIX
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProcessingJobSummary' {POSIX
creationTime :: POSIX
$sel:creationTime:ProcessingJobSummary' :: ProcessingJobSummary -> POSIX
creationTime} -> POSIX
creationTime) (\s :: ProcessingJobSummary
s@ProcessingJobSummary' {} POSIX
a -> ProcessingJobSummary
s {$sel:creationTime:ProcessingJobSummary' :: POSIX
creationTime = POSIX
a} :: ProcessingJobSummary) ((POSIX -> f POSIX)
 -> ProcessingJobSummary -> f ProcessingJobSummary)
-> ((UTCTime -> f UTCTime) -> POSIX -> f POSIX)
-> (UTCTime -> f UTCTime)
-> ProcessingJobSummary
-> f ProcessingJobSummary
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (UTCTime -> f UTCTime) -> POSIX -> f POSIX
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time

-- | The status of the processing job.
processingJobSummary_processingJobStatus :: Lens.Lens' ProcessingJobSummary ProcessingJobStatus
processingJobSummary_processingJobStatus :: (ProcessingJobStatus -> f ProcessingJobStatus)
-> ProcessingJobSummary -> f ProcessingJobSummary
processingJobSummary_processingJobStatus = (ProcessingJobSummary -> ProcessingJobStatus)
-> (ProcessingJobSummary
    -> ProcessingJobStatus -> ProcessingJobSummary)
-> Lens
     ProcessingJobSummary
     ProcessingJobSummary
     ProcessingJobStatus
     ProcessingJobStatus
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProcessingJobSummary' {ProcessingJobStatus
processingJobStatus :: ProcessingJobStatus
$sel:processingJobStatus:ProcessingJobSummary' :: ProcessingJobSummary -> ProcessingJobStatus
processingJobStatus} -> ProcessingJobStatus
processingJobStatus) (\s :: ProcessingJobSummary
s@ProcessingJobSummary' {} ProcessingJobStatus
a -> ProcessingJobSummary
s {$sel:processingJobStatus:ProcessingJobSummary' :: ProcessingJobStatus
processingJobStatus = ProcessingJobStatus
a} :: ProcessingJobSummary)

instance Core.FromJSON ProcessingJobSummary where
  parseJSON :: Value -> Parser ProcessingJobSummary
parseJSON =
    String
-> (Object -> Parser ProcessingJobSummary)
-> Value
-> Parser ProcessingJobSummary
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
      String
"ProcessingJobSummary"
      ( \Object
x ->
          Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Text
-> Text
-> POSIX
-> ProcessingJobStatus
-> ProcessingJobSummary
ProcessingJobSummary'
            (Maybe Text
 -> Maybe POSIX
 -> Maybe Text
 -> Maybe POSIX
 -> Text
 -> Text
 -> POSIX
 -> ProcessingJobStatus
 -> ProcessingJobSummary)
-> Parser (Maybe Text)
-> Parser
     (Maybe POSIX
      -> Maybe Text
      -> Maybe POSIX
      -> Text
      -> Text
      -> POSIX
      -> ProcessingJobStatus
      -> ProcessingJobSummary)
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
"FailureReason")
            Parser
  (Maybe POSIX
   -> Maybe Text
   -> Maybe POSIX
   -> Text
   -> Text
   -> POSIX
   -> ProcessingJobStatus
   -> ProcessingJobSummary)
-> Parser (Maybe POSIX)
-> Parser
     (Maybe Text
      -> Maybe POSIX
      -> Text
      -> Text
      -> POSIX
      -> ProcessingJobStatus
      -> ProcessingJobSummary)
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
"LastModifiedTime")
            Parser
  (Maybe Text
   -> Maybe POSIX
   -> Text
   -> Text
   -> POSIX
   -> ProcessingJobStatus
   -> ProcessingJobSummary)
-> Parser (Maybe Text)
-> Parser
     (Maybe POSIX
      -> Text
      -> Text
      -> POSIX
      -> ProcessingJobStatus
      -> ProcessingJobSummary)
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
"ExitMessage")
            Parser
  (Maybe POSIX
   -> Text
   -> Text
   -> POSIX
   -> ProcessingJobStatus
   -> ProcessingJobSummary)
-> Parser (Maybe POSIX)
-> Parser
     (Text
      -> Text -> POSIX -> ProcessingJobStatus -> ProcessingJobSummary)
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
"ProcessingEndTime")
            Parser
  (Text
   -> Text -> POSIX -> ProcessingJobStatus -> ProcessingJobSummary)
-> Parser Text
-> Parser
     (Text -> POSIX -> ProcessingJobStatus -> ProcessingJobSummary)
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
"ProcessingJobName")
            Parser
  (Text -> POSIX -> ProcessingJobStatus -> ProcessingJobSummary)
-> Parser Text
-> Parser (POSIX -> ProcessingJobStatus -> ProcessingJobSummary)
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
"ProcessingJobArn")
            Parser (POSIX -> ProcessingJobStatus -> ProcessingJobSummary)
-> Parser POSIX
-> Parser (ProcessingJobStatus -> ProcessingJobSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser POSIX
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"CreationTime")
            Parser (ProcessingJobStatus -> ProcessingJobSummary)
-> Parser ProcessingJobStatus -> Parser ProcessingJobSummary
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser ProcessingJobStatus
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"ProcessingJobStatus")
      )

instance Prelude.Hashable ProcessingJobSummary

instance Prelude.NFData ProcessingJobSummary