{-# 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.Personalize.Types.BatchInferenceJobSummary
-- 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.Personalize.Types.BatchInferenceJobSummary where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude

-- | A truncated version of the BatchInferenceJob datatype. The
-- ListBatchInferenceJobs operation returns a list of batch inference job
-- summaries.
--
-- /See:/ 'newBatchInferenceJobSummary' smart constructor.
data BatchInferenceJobSummary = BatchInferenceJobSummary'
  { -- | If the batch inference job failed, the reason for the failure.
    BatchInferenceJobSummary -> Maybe Text
failureReason :: Prelude.Maybe Prelude.Text,
    -- | The status of the batch inference job. The status is one of the
    -- following values:
    --
    -- -   PENDING
    --
    -- -   IN PROGRESS
    --
    -- -   ACTIVE
    --
    -- -   CREATE FAILED
    BatchInferenceJobSummary -> Maybe Text
status :: Prelude.Maybe Prelude.Text,
    -- | The name of the batch inference job.
    BatchInferenceJobSummary -> Maybe Text
jobName :: Prelude.Maybe Prelude.Text,
    -- | The time at which the batch inference job was last updated.
    BatchInferenceJobSummary -> Maybe POSIX
lastUpdatedDateTime :: Prelude.Maybe Core.POSIX,
    -- | The Amazon Resource Name (ARN) of the batch inference job.
    BatchInferenceJobSummary -> Maybe Text
batchInferenceJobArn :: Prelude.Maybe Prelude.Text,
    -- | The time at which the batch inference job was created.
    BatchInferenceJobSummary -> Maybe POSIX
creationDateTime :: Prelude.Maybe Core.POSIX,
    -- | The ARN of the solution version used by the batch inference job.
    BatchInferenceJobSummary -> Maybe Text
solutionVersionArn :: Prelude.Maybe Prelude.Text
  }
  deriving (BatchInferenceJobSummary -> BatchInferenceJobSummary -> Bool
(BatchInferenceJobSummary -> BatchInferenceJobSummary -> Bool)
-> (BatchInferenceJobSummary -> BatchInferenceJobSummary -> Bool)
-> Eq BatchInferenceJobSummary
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: BatchInferenceJobSummary -> BatchInferenceJobSummary -> Bool
$c/= :: BatchInferenceJobSummary -> BatchInferenceJobSummary -> Bool
== :: BatchInferenceJobSummary -> BatchInferenceJobSummary -> Bool
$c== :: BatchInferenceJobSummary -> BatchInferenceJobSummary -> Bool
Prelude.Eq, ReadPrec [BatchInferenceJobSummary]
ReadPrec BatchInferenceJobSummary
Int -> ReadS BatchInferenceJobSummary
ReadS [BatchInferenceJobSummary]
(Int -> ReadS BatchInferenceJobSummary)
-> ReadS [BatchInferenceJobSummary]
-> ReadPrec BatchInferenceJobSummary
-> ReadPrec [BatchInferenceJobSummary]
-> Read BatchInferenceJobSummary
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [BatchInferenceJobSummary]
$creadListPrec :: ReadPrec [BatchInferenceJobSummary]
readPrec :: ReadPrec BatchInferenceJobSummary
$creadPrec :: ReadPrec BatchInferenceJobSummary
readList :: ReadS [BatchInferenceJobSummary]
$creadList :: ReadS [BatchInferenceJobSummary]
readsPrec :: Int -> ReadS BatchInferenceJobSummary
$creadsPrec :: Int -> ReadS BatchInferenceJobSummary
Prelude.Read, Int -> BatchInferenceJobSummary -> ShowS
[BatchInferenceJobSummary] -> ShowS
BatchInferenceJobSummary -> String
(Int -> BatchInferenceJobSummary -> ShowS)
-> (BatchInferenceJobSummary -> String)
-> ([BatchInferenceJobSummary] -> ShowS)
-> Show BatchInferenceJobSummary
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [BatchInferenceJobSummary] -> ShowS
$cshowList :: [BatchInferenceJobSummary] -> ShowS
show :: BatchInferenceJobSummary -> String
$cshow :: BatchInferenceJobSummary -> String
showsPrec :: Int -> BatchInferenceJobSummary -> ShowS
$cshowsPrec :: Int -> BatchInferenceJobSummary -> ShowS
Prelude.Show, (forall x.
 BatchInferenceJobSummary -> Rep BatchInferenceJobSummary x)
-> (forall x.
    Rep BatchInferenceJobSummary x -> BatchInferenceJobSummary)
-> Generic BatchInferenceJobSummary
forall x.
Rep BatchInferenceJobSummary x -> BatchInferenceJobSummary
forall x.
BatchInferenceJobSummary -> Rep BatchInferenceJobSummary x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep BatchInferenceJobSummary x -> BatchInferenceJobSummary
$cfrom :: forall x.
BatchInferenceJobSummary -> Rep BatchInferenceJobSummary x
Prelude.Generic)

-- |
-- Create a value of 'BatchInferenceJobSummary' 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', 'batchInferenceJobSummary_failureReason' - If the batch inference job failed, the reason for the failure.
--
-- 'status', 'batchInferenceJobSummary_status' - The status of the batch inference job. The status is one of the
-- following values:
--
-- -   PENDING
--
-- -   IN PROGRESS
--
-- -   ACTIVE
--
-- -   CREATE FAILED
--
-- 'jobName', 'batchInferenceJobSummary_jobName' - The name of the batch inference job.
--
-- 'lastUpdatedDateTime', 'batchInferenceJobSummary_lastUpdatedDateTime' - The time at which the batch inference job was last updated.
--
-- 'batchInferenceJobArn', 'batchInferenceJobSummary_batchInferenceJobArn' - The Amazon Resource Name (ARN) of the batch inference job.
--
-- 'creationDateTime', 'batchInferenceJobSummary_creationDateTime' - The time at which the batch inference job was created.
--
-- 'solutionVersionArn', 'batchInferenceJobSummary_solutionVersionArn' - The ARN of the solution version used by the batch inference job.
newBatchInferenceJobSummary ::
  BatchInferenceJobSummary
newBatchInferenceJobSummary :: BatchInferenceJobSummary
newBatchInferenceJobSummary =
  BatchInferenceJobSummary' :: Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> BatchInferenceJobSummary
BatchInferenceJobSummary'
    { $sel:failureReason:BatchInferenceJobSummary' :: Maybe Text
failureReason =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:status:BatchInferenceJobSummary' :: Maybe Text
status = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:jobName:BatchInferenceJobSummary' :: Maybe Text
jobName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:lastUpdatedDateTime:BatchInferenceJobSummary' :: Maybe POSIX
lastUpdatedDateTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:batchInferenceJobArn:BatchInferenceJobSummary' :: Maybe Text
batchInferenceJobArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:creationDateTime:BatchInferenceJobSummary' :: Maybe POSIX
creationDateTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:solutionVersionArn:BatchInferenceJobSummary' :: Maybe Text
solutionVersionArn = Maybe Text
forall a. Maybe a
Prelude.Nothing
    }

-- | If the batch inference job failed, the reason for the failure.
batchInferenceJobSummary_failureReason :: Lens.Lens' BatchInferenceJobSummary (Prelude.Maybe Prelude.Text)
batchInferenceJobSummary_failureReason :: (Maybe Text -> f (Maybe Text))
-> BatchInferenceJobSummary -> f BatchInferenceJobSummary
batchInferenceJobSummary_failureReason = (BatchInferenceJobSummary -> Maybe Text)
-> (BatchInferenceJobSummary
    -> Maybe Text -> BatchInferenceJobSummary)
-> Lens
     BatchInferenceJobSummary
     BatchInferenceJobSummary
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchInferenceJobSummary' {Maybe Text
failureReason :: Maybe Text
$sel:failureReason:BatchInferenceJobSummary' :: BatchInferenceJobSummary -> Maybe Text
failureReason} -> Maybe Text
failureReason) (\s :: BatchInferenceJobSummary
s@BatchInferenceJobSummary' {} Maybe Text
a -> BatchInferenceJobSummary
s {$sel:failureReason:BatchInferenceJobSummary' :: Maybe Text
failureReason = Maybe Text
a} :: BatchInferenceJobSummary)

-- | The status of the batch inference job. The status is one of the
-- following values:
--
-- -   PENDING
--
-- -   IN PROGRESS
--
-- -   ACTIVE
--
-- -   CREATE FAILED
batchInferenceJobSummary_status :: Lens.Lens' BatchInferenceJobSummary (Prelude.Maybe Prelude.Text)
batchInferenceJobSummary_status :: (Maybe Text -> f (Maybe Text))
-> BatchInferenceJobSummary -> f BatchInferenceJobSummary
batchInferenceJobSummary_status = (BatchInferenceJobSummary -> Maybe Text)
-> (BatchInferenceJobSummary
    -> Maybe Text -> BatchInferenceJobSummary)
-> Lens
     BatchInferenceJobSummary
     BatchInferenceJobSummary
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchInferenceJobSummary' {Maybe Text
status :: Maybe Text
$sel:status:BatchInferenceJobSummary' :: BatchInferenceJobSummary -> Maybe Text
status} -> Maybe Text
status) (\s :: BatchInferenceJobSummary
s@BatchInferenceJobSummary' {} Maybe Text
a -> BatchInferenceJobSummary
s {$sel:status:BatchInferenceJobSummary' :: Maybe Text
status = Maybe Text
a} :: BatchInferenceJobSummary)

-- | The name of the batch inference job.
batchInferenceJobSummary_jobName :: Lens.Lens' BatchInferenceJobSummary (Prelude.Maybe Prelude.Text)
batchInferenceJobSummary_jobName :: (Maybe Text -> f (Maybe Text))
-> BatchInferenceJobSummary -> f BatchInferenceJobSummary
batchInferenceJobSummary_jobName = (BatchInferenceJobSummary -> Maybe Text)
-> (BatchInferenceJobSummary
    -> Maybe Text -> BatchInferenceJobSummary)
-> Lens
     BatchInferenceJobSummary
     BatchInferenceJobSummary
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchInferenceJobSummary' {Maybe Text
jobName :: Maybe Text
$sel:jobName:BatchInferenceJobSummary' :: BatchInferenceJobSummary -> Maybe Text
jobName} -> Maybe Text
jobName) (\s :: BatchInferenceJobSummary
s@BatchInferenceJobSummary' {} Maybe Text
a -> BatchInferenceJobSummary
s {$sel:jobName:BatchInferenceJobSummary' :: Maybe Text
jobName = Maybe Text
a} :: BatchInferenceJobSummary)

-- | The time at which the batch inference job was last updated.
batchInferenceJobSummary_lastUpdatedDateTime :: Lens.Lens' BatchInferenceJobSummary (Prelude.Maybe Prelude.UTCTime)
batchInferenceJobSummary_lastUpdatedDateTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> BatchInferenceJobSummary -> f BatchInferenceJobSummary
batchInferenceJobSummary_lastUpdatedDateTime = (BatchInferenceJobSummary -> Maybe POSIX)
-> (BatchInferenceJobSummary
    -> Maybe POSIX -> BatchInferenceJobSummary)
-> Lens
     BatchInferenceJobSummary
     BatchInferenceJobSummary
     (Maybe POSIX)
     (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchInferenceJobSummary' {Maybe POSIX
lastUpdatedDateTime :: Maybe POSIX
$sel:lastUpdatedDateTime:BatchInferenceJobSummary' :: BatchInferenceJobSummary -> Maybe POSIX
lastUpdatedDateTime} -> Maybe POSIX
lastUpdatedDateTime) (\s :: BatchInferenceJobSummary
s@BatchInferenceJobSummary' {} Maybe POSIX
a -> BatchInferenceJobSummary
s {$sel:lastUpdatedDateTime:BatchInferenceJobSummary' :: Maybe POSIX
lastUpdatedDateTime = Maybe POSIX
a} :: BatchInferenceJobSummary) ((Maybe POSIX -> f (Maybe POSIX))
 -> BatchInferenceJobSummary -> f BatchInferenceJobSummary)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> BatchInferenceJobSummary
-> f BatchInferenceJobSummary
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 Amazon Resource Name (ARN) of the batch inference job.
batchInferenceJobSummary_batchInferenceJobArn :: Lens.Lens' BatchInferenceJobSummary (Prelude.Maybe Prelude.Text)
batchInferenceJobSummary_batchInferenceJobArn :: (Maybe Text -> f (Maybe Text))
-> BatchInferenceJobSummary -> f BatchInferenceJobSummary
batchInferenceJobSummary_batchInferenceJobArn = (BatchInferenceJobSummary -> Maybe Text)
-> (BatchInferenceJobSummary
    -> Maybe Text -> BatchInferenceJobSummary)
-> Lens
     BatchInferenceJobSummary
     BatchInferenceJobSummary
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchInferenceJobSummary' {Maybe Text
batchInferenceJobArn :: Maybe Text
$sel:batchInferenceJobArn:BatchInferenceJobSummary' :: BatchInferenceJobSummary -> Maybe Text
batchInferenceJobArn} -> Maybe Text
batchInferenceJobArn) (\s :: BatchInferenceJobSummary
s@BatchInferenceJobSummary' {} Maybe Text
a -> BatchInferenceJobSummary
s {$sel:batchInferenceJobArn:BatchInferenceJobSummary' :: Maybe Text
batchInferenceJobArn = Maybe Text
a} :: BatchInferenceJobSummary)

-- | The time at which the batch inference job was created.
batchInferenceJobSummary_creationDateTime :: Lens.Lens' BatchInferenceJobSummary (Prelude.Maybe Prelude.UTCTime)
batchInferenceJobSummary_creationDateTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> BatchInferenceJobSummary -> f BatchInferenceJobSummary
batchInferenceJobSummary_creationDateTime = (BatchInferenceJobSummary -> Maybe POSIX)
-> (BatchInferenceJobSummary
    -> Maybe POSIX -> BatchInferenceJobSummary)
-> Lens
     BatchInferenceJobSummary
     BatchInferenceJobSummary
     (Maybe POSIX)
     (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchInferenceJobSummary' {Maybe POSIX
creationDateTime :: Maybe POSIX
$sel:creationDateTime:BatchInferenceJobSummary' :: BatchInferenceJobSummary -> Maybe POSIX
creationDateTime} -> Maybe POSIX
creationDateTime) (\s :: BatchInferenceJobSummary
s@BatchInferenceJobSummary' {} Maybe POSIX
a -> BatchInferenceJobSummary
s {$sel:creationDateTime:BatchInferenceJobSummary' :: Maybe POSIX
creationDateTime = Maybe POSIX
a} :: BatchInferenceJobSummary) ((Maybe POSIX -> f (Maybe POSIX))
 -> BatchInferenceJobSummary -> f BatchInferenceJobSummary)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> BatchInferenceJobSummary
-> f BatchInferenceJobSummary
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 ARN of the solution version used by the batch inference job.
batchInferenceJobSummary_solutionVersionArn :: Lens.Lens' BatchInferenceJobSummary (Prelude.Maybe Prelude.Text)
batchInferenceJobSummary_solutionVersionArn :: (Maybe Text -> f (Maybe Text))
-> BatchInferenceJobSummary -> f BatchInferenceJobSummary
batchInferenceJobSummary_solutionVersionArn = (BatchInferenceJobSummary -> Maybe Text)
-> (BatchInferenceJobSummary
    -> Maybe Text -> BatchInferenceJobSummary)
-> Lens
     BatchInferenceJobSummary
     BatchInferenceJobSummary
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchInferenceJobSummary' {Maybe Text
solutionVersionArn :: Maybe Text
$sel:solutionVersionArn:BatchInferenceJobSummary' :: BatchInferenceJobSummary -> Maybe Text
solutionVersionArn} -> Maybe Text
solutionVersionArn) (\s :: BatchInferenceJobSummary
s@BatchInferenceJobSummary' {} Maybe Text
a -> BatchInferenceJobSummary
s {$sel:solutionVersionArn:BatchInferenceJobSummary' :: Maybe Text
solutionVersionArn = Maybe Text
a} :: BatchInferenceJobSummary)

instance Core.FromJSON BatchInferenceJobSummary where
  parseJSON :: Value -> Parser BatchInferenceJobSummary
parseJSON =
    String
-> (Object -> Parser BatchInferenceJobSummary)
-> Value
-> Parser BatchInferenceJobSummary
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
      String
"BatchInferenceJobSummary"
      ( \Object
x ->
          Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> BatchInferenceJobSummary
BatchInferenceJobSummary'
            (Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe POSIX
 -> Maybe Text
 -> Maybe POSIX
 -> Maybe Text
 -> BatchInferenceJobSummary)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe Text
      -> BatchInferenceJobSummary)
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 Text
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe Text
   -> BatchInferenceJobSummary)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe Text
      -> BatchInferenceJobSummary)
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
"status")
            Parser
  (Maybe Text
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe Text
   -> BatchInferenceJobSummary)
-> Parser (Maybe Text)
-> Parser
     (Maybe POSIX
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe Text
      -> BatchInferenceJobSummary)
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
"jobName")
            Parser
  (Maybe POSIX
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe Text
   -> BatchInferenceJobSummary)
-> Parser (Maybe POSIX)
-> Parser
     (Maybe Text
      -> Maybe POSIX -> Maybe Text -> BatchInferenceJobSummary)
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
"lastUpdatedDateTime")
            Parser
  (Maybe Text
   -> Maybe POSIX -> Maybe Text -> BatchInferenceJobSummary)
-> Parser (Maybe Text)
-> Parser (Maybe POSIX -> Maybe Text -> BatchInferenceJobSummary)
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
"batchInferenceJobArn")
            Parser (Maybe POSIX -> Maybe Text -> BatchInferenceJobSummary)
-> Parser (Maybe POSIX)
-> Parser (Maybe Text -> BatchInferenceJobSummary)
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
"creationDateTime")
            Parser (Maybe Text -> BatchInferenceJobSummary)
-> Parser (Maybe Text) -> Parser BatchInferenceJobSummary
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
"solutionVersionArn")
      )

instance Prelude.Hashable BatchInferenceJobSummary

instance Prelude.NFData BatchInferenceJobSummary