{-# 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.FraudDetector.Types.BatchPrediction
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.FraudDetector.Types.BatchPrediction where

import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.FraudDetector.Types.AsyncJobStatus
import qualified Amazonka.Prelude as Prelude

-- | The batch prediction details.
--
-- /See:/ 'newBatchPrediction' smart constructor.
data BatchPrediction = BatchPrediction'
  { -- | The ARN of batch prediction job.
    BatchPrediction -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
    -- | Timestamp of when the batch prediction job completed.
    BatchPrediction -> Maybe Text
completionTime :: Prelude.Maybe Prelude.Text,
    -- | The name of the detector.
    BatchPrediction -> Maybe Text
detectorName :: Prelude.Maybe Prelude.Text,
    -- | The detector version.
    BatchPrediction -> Maybe Text
detectorVersion :: Prelude.Maybe Prelude.Text,
    -- | The name of the event type.
    BatchPrediction -> Maybe Text
eventTypeName :: Prelude.Maybe Prelude.Text,
    -- | The reason a batch prediction job failed.
    BatchPrediction -> Maybe Text
failureReason :: Prelude.Maybe Prelude.Text,
    -- | The ARN of the IAM role to use for this job request.
    BatchPrediction -> Maybe Text
iamRoleArn :: Prelude.Maybe Prelude.Text,
    -- | The Amazon S3 location of your training file.
    BatchPrediction -> Maybe Text
inputPath :: Prelude.Maybe Prelude.Text,
    -- | The job ID for the batch prediction.
    BatchPrediction -> Maybe Text
jobId :: Prelude.Maybe Prelude.Text,
    -- | Timestamp of most recent heartbeat indicating the batch prediction job
    -- was making progress.
    BatchPrediction -> Maybe Text
lastHeartbeatTime :: Prelude.Maybe Prelude.Text,
    -- | The Amazon S3 location of your output file.
    BatchPrediction -> Maybe Text
outputPath :: Prelude.Maybe Prelude.Text,
    -- | The number of records processed by the batch prediction job.
    BatchPrediction -> Maybe Int
processedRecordsCount :: Prelude.Maybe Prelude.Int,
    -- | Timestamp of when the batch prediction job started.
    BatchPrediction -> Maybe Text
startTime :: Prelude.Maybe Prelude.Text,
    -- | The batch prediction status.
    BatchPrediction -> Maybe AsyncJobStatus
status :: Prelude.Maybe AsyncJobStatus,
    -- | The total number of records in the batch prediction job.
    BatchPrediction -> Maybe Int
totalRecordsCount :: Prelude.Maybe Prelude.Int
  }
  deriving (BatchPrediction -> BatchPrediction -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: BatchPrediction -> BatchPrediction -> Bool
$c/= :: BatchPrediction -> BatchPrediction -> Bool
== :: BatchPrediction -> BatchPrediction -> Bool
$c== :: BatchPrediction -> BatchPrediction -> Bool
Prelude.Eq, ReadPrec [BatchPrediction]
ReadPrec BatchPrediction
Int -> ReadS BatchPrediction
ReadS [BatchPrediction]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [BatchPrediction]
$creadListPrec :: ReadPrec [BatchPrediction]
readPrec :: ReadPrec BatchPrediction
$creadPrec :: ReadPrec BatchPrediction
readList :: ReadS [BatchPrediction]
$creadList :: ReadS [BatchPrediction]
readsPrec :: Int -> ReadS BatchPrediction
$creadsPrec :: Int -> ReadS BatchPrediction
Prelude.Read, Int -> BatchPrediction -> ShowS
[BatchPrediction] -> ShowS
BatchPrediction -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [BatchPrediction] -> ShowS
$cshowList :: [BatchPrediction] -> ShowS
show :: BatchPrediction -> String
$cshow :: BatchPrediction -> String
showsPrec :: Int -> BatchPrediction -> ShowS
$cshowsPrec :: Int -> BatchPrediction -> ShowS
Prelude.Show, forall x. Rep BatchPrediction x -> BatchPrediction
forall x. BatchPrediction -> Rep BatchPrediction x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep BatchPrediction x -> BatchPrediction
$cfrom :: forall x. BatchPrediction -> Rep BatchPrediction x
Prelude.Generic)

-- |
-- Create a value of 'BatchPrediction' 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:
--
-- 'arn', 'batchPrediction_arn' - The ARN of batch prediction job.
--
-- 'completionTime', 'batchPrediction_completionTime' - Timestamp of when the batch prediction job completed.
--
-- 'detectorName', 'batchPrediction_detectorName' - The name of the detector.
--
-- 'detectorVersion', 'batchPrediction_detectorVersion' - The detector version.
--
-- 'eventTypeName', 'batchPrediction_eventTypeName' - The name of the event type.
--
-- 'failureReason', 'batchPrediction_failureReason' - The reason a batch prediction job failed.
--
-- 'iamRoleArn', 'batchPrediction_iamRoleArn' - The ARN of the IAM role to use for this job request.
--
-- 'inputPath', 'batchPrediction_inputPath' - The Amazon S3 location of your training file.
--
-- 'jobId', 'batchPrediction_jobId' - The job ID for the batch prediction.
--
-- 'lastHeartbeatTime', 'batchPrediction_lastHeartbeatTime' - Timestamp of most recent heartbeat indicating the batch prediction job
-- was making progress.
--
-- 'outputPath', 'batchPrediction_outputPath' - The Amazon S3 location of your output file.
--
-- 'processedRecordsCount', 'batchPrediction_processedRecordsCount' - The number of records processed by the batch prediction job.
--
-- 'startTime', 'batchPrediction_startTime' - Timestamp of when the batch prediction job started.
--
-- 'status', 'batchPrediction_status' - The batch prediction status.
--
-- 'totalRecordsCount', 'batchPrediction_totalRecordsCount' - The total number of records in the batch prediction job.
newBatchPrediction ::
  BatchPrediction
newBatchPrediction :: BatchPrediction
newBatchPrediction =
  BatchPrediction'
    { $sel:arn:BatchPrediction' :: Maybe Text
arn = forall a. Maybe a
Prelude.Nothing,
      $sel:completionTime:BatchPrediction' :: Maybe Text
completionTime = forall a. Maybe a
Prelude.Nothing,
      $sel:detectorName:BatchPrediction' :: Maybe Text
detectorName = forall a. Maybe a
Prelude.Nothing,
      $sel:detectorVersion:BatchPrediction' :: Maybe Text
detectorVersion = forall a. Maybe a
Prelude.Nothing,
      $sel:eventTypeName:BatchPrediction' :: Maybe Text
eventTypeName = forall a. Maybe a
Prelude.Nothing,
      $sel:failureReason:BatchPrediction' :: Maybe Text
failureReason = forall a. Maybe a
Prelude.Nothing,
      $sel:iamRoleArn:BatchPrediction' :: Maybe Text
iamRoleArn = forall a. Maybe a
Prelude.Nothing,
      $sel:inputPath:BatchPrediction' :: Maybe Text
inputPath = forall a. Maybe a
Prelude.Nothing,
      $sel:jobId:BatchPrediction' :: Maybe Text
jobId = forall a. Maybe a
Prelude.Nothing,
      $sel:lastHeartbeatTime:BatchPrediction' :: Maybe Text
lastHeartbeatTime = forall a. Maybe a
Prelude.Nothing,
      $sel:outputPath:BatchPrediction' :: Maybe Text
outputPath = forall a. Maybe a
Prelude.Nothing,
      $sel:processedRecordsCount:BatchPrediction' :: Maybe Int
processedRecordsCount = forall a. Maybe a
Prelude.Nothing,
      $sel:startTime:BatchPrediction' :: Maybe Text
startTime = forall a. Maybe a
Prelude.Nothing,
      $sel:status:BatchPrediction' :: Maybe AsyncJobStatus
status = forall a. Maybe a
Prelude.Nothing,
      $sel:totalRecordsCount:BatchPrediction' :: Maybe Int
totalRecordsCount = forall a. Maybe a
Prelude.Nothing
    }

-- | The ARN of batch prediction job.
batchPrediction_arn :: Lens.Lens' BatchPrediction (Prelude.Maybe Prelude.Text)
batchPrediction_arn :: Lens' BatchPrediction (Maybe Text)
batchPrediction_arn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchPrediction' {Maybe Text
arn :: Maybe Text
$sel:arn:BatchPrediction' :: BatchPrediction -> Maybe Text
arn} -> Maybe Text
arn) (\s :: BatchPrediction
s@BatchPrediction' {} Maybe Text
a -> BatchPrediction
s {$sel:arn:BatchPrediction' :: Maybe Text
arn = Maybe Text
a} :: BatchPrediction)

-- | Timestamp of when the batch prediction job completed.
batchPrediction_completionTime :: Lens.Lens' BatchPrediction (Prelude.Maybe Prelude.Text)
batchPrediction_completionTime :: Lens' BatchPrediction (Maybe Text)
batchPrediction_completionTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchPrediction' {Maybe Text
completionTime :: Maybe Text
$sel:completionTime:BatchPrediction' :: BatchPrediction -> Maybe Text
completionTime} -> Maybe Text
completionTime) (\s :: BatchPrediction
s@BatchPrediction' {} Maybe Text
a -> BatchPrediction
s {$sel:completionTime:BatchPrediction' :: Maybe Text
completionTime = Maybe Text
a} :: BatchPrediction)

-- | The name of the detector.
batchPrediction_detectorName :: Lens.Lens' BatchPrediction (Prelude.Maybe Prelude.Text)
batchPrediction_detectorName :: Lens' BatchPrediction (Maybe Text)
batchPrediction_detectorName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchPrediction' {Maybe Text
detectorName :: Maybe Text
$sel:detectorName:BatchPrediction' :: BatchPrediction -> Maybe Text
detectorName} -> Maybe Text
detectorName) (\s :: BatchPrediction
s@BatchPrediction' {} Maybe Text
a -> BatchPrediction
s {$sel:detectorName:BatchPrediction' :: Maybe Text
detectorName = Maybe Text
a} :: BatchPrediction)

-- | The detector version.
batchPrediction_detectorVersion :: Lens.Lens' BatchPrediction (Prelude.Maybe Prelude.Text)
batchPrediction_detectorVersion :: Lens' BatchPrediction (Maybe Text)
batchPrediction_detectorVersion = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchPrediction' {Maybe Text
detectorVersion :: Maybe Text
$sel:detectorVersion:BatchPrediction' :: BatchPrediction -> Maybe Text
detectorVersion} -> Maybe Text
detectorVersion) (\s :: BatchPrediction
s@BatchPrediction' {} Maybe Text
a -> BatchPrediction
s {$sel:detectorVersion:BatchPrediction' :: Maybe Text
detectorVersion = Maybe Text
a} :: BatchPrediction)

-- | The name of the event type.
batchPrediction_eventTypeName :: Lens.Lens' BatchPrediction (Prelude.Maybe Prelude.Text)
batchPrediction_eventTypeName :: Lens' BatchPrediction (Maybe Text)
batchPrediction_eventTypeName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchPrediction' {Maybe Text
eventTypeName :: Maybe Text
$sel:eventTypeName:BatchPrediction' :: BatchPrediction -> Maybe Text
eventTypeName} -> Maybe Text
eventTypeName) (\s :: BatchPrediction
s@BatchPrediction' {} Maybe Text
a -> BatchPrediction
s {$sel:eventTypeName:BatchPrediction' :: Maybe Text
eventTypeName = Maybe Text
a} :: BatchPrediction)

-- | The reason a batch prediction job failed.
batchPrediction_failureReason :: Lens.Lens' BatchPrediction (Prelude.Maybe Prelude.Text)
batchPrediction_failureReason :: Lens' BatchPrediction (Maybe Text)
batchPrediction_failureReason = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchPrediction' {Maybe Text
failureReason :: Maybe Text
$sel:failureReason:BatchPrediction' :: BatchPrediction -> Maybe Text
failureReason} -> Maybe Text
failureReason) (\s :: BatchPrediction
s@BatchPrediction' {} Maybe Text
a -> BatchPrediction
s {$sel:failureReason:BatchPrediction' :: Maybe Text
failureReason = Maybe Text
a} :: BatchPrediction)

-- | The ARN of the IAM role to use for this job request.
batchPrediction_iamRoleArn :: Lens.Lens' BatchPrediction (Prelude.Maybe Prelude.Text)
batchPrediction_iamRoleArn :: Lens' BatchPrediction (Maybe Text)
batchPrediction_iamRoleArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchPrediction' {Maybe Text
iamRoleArn :: Maybe Text
$sel:iamRoleArn:BatchPrediction' :: BatchPrediction -> Maybe Text
iamRoleArn} -> Maybe Text
iamRoleArn) (\s :: BatchPrediction
s@BatchPrediction' {} Maybe Text
a -> BatchPrediction
s {$sel:iamRoleArn:BatchPrediction' :: Maybe Text
iamRoleArn = Maybe Text
a} :: BatchPrediction)

-- | The Amazon S3 location of your training file.
batchPrediction_inputPath :: Lens.Lens' BatchPrediction (Prelude.Maybe Prelude.Text)
batchPrediction_inputPath :: Lens' BatchPrediction (Maybe Text)
batchPrediction_inputPath = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchPrediction' {Maybe Text
inputPath :: Maybe Text
$sel:inputPath:BatchPrediction' :: BatchPrediction -> Maybe Text
inputPath} -> Maybe Text
inputPath) (\s :: BatchPrediction
s@BatchPrediction' {} Maybe Text
a -> BatchPrediction
s {$sel:inputPath:BatchPrediction' :: Maybe Text
inputPath = Maybe Text
a} :: BatchPrediction)

-- | The job ID for the batch prediction.
batchPrediction_jobId :: Lens.Lens' BatchPrediction (Prelude.Maybe Prelude.Text)
batchPrediction_jobId :: Lens' BatchPrediction (Maybe Text)
batchPrediction_jobId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchPrediction' {Maybe Text
jobId :: Maybe Text
$sel:jobId:BatchPrediction' :: BatchPrediction -> Maybe Text
jobId} -> Maybe Text
jobId) (\s :: BatchPrediction
s@BatchPrediction' {} Maybe Text
a -> BatchPrediction
s {$sel:jobId:BatchPrediction' :: Maybe Text
jobId = Maybe Text
a} :: BatchPrediction)

-- | Timestamp of most recent heartbeat indicating the batch prediction job
-- was making progress.
batchPrediction_lastHeartbeatTime :: Lens.Lens' BatchPrediction (Prelude.Maybe Prelude.Text)
batchPrediction_lastHeartbeatTime :: Lens' BatchPrediction (Maybe Text)
batchPrediction_lastHeartbeatTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchPrediction' {Maybe Text
lastHeartbeatTime :: Maybe Text
$sel:lastHeartbeatTime:BatchPrediction' :: BatchPrediction -> Maybe Text
lastHeartbeatTime} -> Maybe Text
lastHeartbeatTime) (\s :: BatchPrediction
s@BatchPrediction' {} Maybe Text
a -> BatchPrediction
s {$sel:lastHeartbeatTime:BatchPrediction' :: Maybe Text
lastHeartbeatTime = Maybe Text
a} :: BatchPrediction)

-- | The Amazon S3 location of your output file.
batchPrediction_outputPath :: Lens.Lens' BatchPrediction (Prelude.Maybe Prelude.Text)
batchPrediction_outputPath :: Lens' BatchPrediction (Maybe Text)
batchPrediction_outputPath = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchPrediction' {Maybe Text
outputPath :: Maybe Text
$sel:outputPath:BatchPrediction' :: BatchPrediction -> Maybe Text
outputPath} -> Maybe Text
outputPath) (\s :: BatchPrediction
s@BatchPrediction' {} Maybe Text
a -> BatchPrediction
s {$sel:outputPath:BatchPrediction' :: Maybe Text
outputPath = Maybe Text
a} :: BatchPrediction)

-- | The number of records processed by the batch prediction job.
batchPrediction_processedRecordsCount :: Lens.Lens' BatchPrediction (Prelude.Maybe Prelude.Int)
batchPrediction_processedRecordsCount :: Lens' BatchPrediction (Maybe Int)
batchPrediction_processedRecordsCount = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchPrediction' {Maybe Int
processedRecordsCount :: Maybe Int
$sel:processedRecordsCount:BatchPrediction' :: BatchPrediction -> Maybe Int
processedRecordsCount} -> Maybe Int
processedRecordsCount) (\s :: BatchPrediction
s@BatchPrediction' {} Maybe Int
a -> BatchPrediction
s {$sel:processedRecordsCount:BatchPrediction' :: Maybe Int
processedRecordsCount = Maybe Int
a} :: BatchPrediction)

-- | Timestamp of when the batch prediction job started.
batchPrediction_startTime :: Lens.Lens' BatchPrediction (Prelude.Maybe Prelude.Text)
batchPrediction_startTime :: Lens' BatchPrediction (Maybe Text)
batchPrediction_startTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchPrediction' {Maybe Text
startTime :: Maybe Text
$sel:startTime:BatchPrediction' :: BatchPrediction -> Maybe Text
startTime} -> Maybe Text
startTime) (\s :: BatchPrediction
s@BatchPrediction' {} Maybe Text
a -> BatchPrediction
s {$sel:startTime:BatchPrediction' :: Maybe Text
startTime = Maybe Text
a} :: BatchPrediction)

-- | The batch prediction status.
batchPrediction_status :: Lens.Lens' BatchPrediction (Prelude.Maybe AsyncJobStatus)
batchPrediction_status :: Lens' BatchPrediction (Maybe AsyncJobStatus)
batchPrediction_status = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchPrediction' {Maybe AsyncJobStatus
status :: Maybe AsyncJobStatus
$sel:status:BatchPrediction' :: BatchPrediction -> Maybe AsyncJobStatus
status} -> Maybe AsyncJobStatus
status) (\s :: BatchPrediction
s@BatchPrediction' {} Maybe AsyncJobStatus
a -> BatchPrediction
s {$sel:status:BatchPrediction' :: Maybe AsyncJobStatus
status = Maybe AsyncJobStatus
a} :: BatchPrediction)

-- | The total number of records in the batch prediction job.
batchPrediction_totalRecordsCount :: Lens.Lens' BatchPrediction (Prelude.Maybe Prelude.Int)
batchPrediction_totalRecordsCount :: Lens' BatchPrediction (Maybe Int)
batchPrediction_totalRecordsCount = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchPrediction' {Maybe Int
totalRecordsCount :: Maybe Int
$sel:totalRecordsCount:BatchPrediction' :: BatchPrediction -> Maybe Int
totalRecordsCount} -> Maybe Int
totalRecordsCount) (\s :: BatchPrediction
s@BatchPrediction' {} Maybe Int
a -> BatchPrediction
s {$sel:totalRecordsCount:BatchPrediction' :: Maybe Int
totalRecordsCount = Maybe Int
a} :: BatchPrediction)

instance Data.FromJSON BatchPrediction where
  parseJSON :: Value -> Parser BatchPrediction
parseJSON =
    forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
      String
"BatchPrediction"
      ( \Object
x ->
          Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe AsyncJobStatus
-> Maybe Int
-> BatchPrediction
BatchPrediction'
            forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"arn")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"completionTime")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"detectorName")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"detectorVersion")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"eventTypeName")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"failureReason")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"iamRoleArn")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"inputPath")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"jobId")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"lastHeartbeatTime")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"outputPath")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"processedRecordsCount")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"startTime")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"status")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"totalRecordsCount")
      )

instance Prelude.Hashable BatchPrediction where
  hashWithSalt :: Int -> BatchPrediction -> Int
hashWithSalt Int
_salt BatchPrediction' {Maybe Int
Maybe Text
Maybe AsyncJobStatus
totalRecordsCount :: Maybe Int
status :: Maybe AsyncJobStatus
startTime :: Maybe Text
processedRecordsCount :: Maybe Int
outputPath :: Maybe Text
lastHeartbeatTime :: Maybe Text
jobId :: Maybe Text
inputPath :: Maybe Text
iamRoleArn :: Maybe Text
failureReason :: Maybe Text
eventTypeName :: Maybe Text
detectorVersion :: Maybe Text
detectorName :: Maybe Text
completionTime :: Maybe Text
arn :: Maybe Text
$sel:totalRecordsCount:BatchPrediction' :: BatchPrediction -> Maybe Int
$sel:status:BatchPrediction' :: BatchPrediction -> Maybe AsyncJobStatus
$sel:startTime:BatchPrediction' :: BatchPrediction -> Maybe Text
$sel:processedRecordsCount:BatchPrediction' :: BatchPrediction -> Maybe Int
$sel:outputPath:BatchPrediction' :: BatchPrediction -> Maybe Text
$sel:lastHeartbeatTime:BatchPrediction' :: BatchPrediction -> Maybe Text
$sel:jobId:BatchPrediction' :: BatchPrediction -> Maybe Text
$sel:inputPath:BatchPrediction' :: BatchPrediction -> Maybe Text
$sel:iamRoleArn:BatchPrediction' :: BatchPrediction -> Maybe Text
$sel:failureReason:BatchPrediction' :: BatchPrediction -> Maybe Text
$sel:eventTypeName:BatchPrediction' :: BatchPrediction -> Maybe Text
$sel:detectorVersion:BatchPrediction' :: BatchPrediction -> Maybe Text
$sel:detectorName:BatchPrediction' :: BatchPrediction -> Maybe Text
$sel:completionTime:BatchPrediction' :: BatchPrediction -> Maybe Text
$sel:arn:BatchPrediction' :: BatchPrediction -> Maybe Text
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
arn
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
completionTime
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
detectorName
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
detectorVersion
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
eventTypeName
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
failureReason
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
iamRoleArn
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
inputPath
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
jobId
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
lastHeartbeatTime
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
outputPath
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Int
processedRecordsCount
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
startTime
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe AsyncJobStatus
status
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Int
totalRecordsCount

instance Prelude.NFData BatchPrediction where
  rnf :: BatchPrediction -> ()
rnf BatchPrediction' {Maybe Int
Maybe Text
Maybe AsyncJobStatus
totalRecordsCount :: Maybe Int
status :: Maybe AsyncJobStatus
startTime :: Maybe Text
processedRecordsCount :: Maybe Int
outputPath :: Maybe Text
lastHeartbeatTime :: Maybe Text
jobId :: Maybe Text
inputPath :: Maybe Text
iamRoleArn :: Maybe Text
failureReason :: Maybe Text
eventTypeName :: Maybe Text
detectorVersion :: Maybe Text
detectorName :: Maybe Text
completionTime :: Maybe Text
arn :: Maybe Text
$sel:totalRecordsCount:BatchPrediction' :: BatchPrediction -> Maybe Int
$sel:status:BatchPrediction' :: BatchPrediction -> Maybe AsyncJobStatus
$sel:startTime:BatchPrediction' :: BatchPrediction -> Maybe Text
$sel:processedRecordsCount:BatchPrediction' :: BatchPrediction -> Maybe Int
$sel:outputPath:BatchPrediction' :: BatchPrediction -> Maybe Text
$sel:lastHeartbeatTime:BatchPrediction' :: BatchPrediction -> Maybe Text
$sel:jobId:BatchPrediction' :: BatchPrediction -> Maybe Text
$sel:inputPath:BatchPrediction' :: BatchPrediction -> Maybe Text
$sel:iamRoleArn:BatchPrediction' :: BatchPrediction -> Maybe Text
$sel:failureReason:BatchPrediction' :: BatchPrediction -> Maybe Text
$sel:eventTypeName:BatchPrediction' :: BatchPrediction -> Maybe Text
$sel:detectorVersion:BatchPrediction' :: BatchPrediction -> Maybe Text
$sel:detectorName:BatchPrediction' :: BatchPrediction -> Maybe Text
$sel:completionTime:BatchPrediction' :: BatchPrediction -> Maybe Text
$sel:arn:BatchPrediction' :: BatchPrediction -> Maybe Text
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
arn
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
completionTime
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
detectorName
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
detectorVersion
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
eventTypeName
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
failureReason
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
iamRoleArn
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
inputPath
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
jobId
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
lastHeartbeatTime
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
outputPath
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Int
processedRecordsCount
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
startTime
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe AsyncJobStatus
status
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Int
totalRecordsCount