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

import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.Personalize.Types.BatchSegmentJobInput
import Amazonka.Personalize.Types.BatchSegmentJobOutput
import qualified Amazonka.Prelude as Prelude

-- | Contains information on a batch segment job.
--
-- /See:/ 'newBatchSegmentJob' smart constructor.
data BatchSegmentJob = BatchSegmentJob'
  { -- | The Amazon Resource Name (ARN) of the batch segment job.
    BatchSegmentJob -> Maybe Text
batchSegmentJobArn :: Prelude.Maybe Prelude.Text,
    -- | The time at which the batch segment job was created.
    BatchSegmentJob -> Maybe POSIX
creationDateTime :: Prelude.Maybe Data.POSIX,
    -- | If the batch segment job failed, the reason for the failure.
    BatchSegmentJob -> Maybe Text
failureReason :: Prelude.Maybe Prelude.Text,
    -- | The ARN of the filter used on the batch segment job.
    BatchSegmentJob -> Maybe Text
filterArn :: Prelude.Maybe Prelude.Text,
    -- | The Amazon S3 path that leads to the input data used to generate the
    -- batch segment job.
    BatchSegmentJob -> Maybe BatchSegmentJobInput
jobInput :: Prelude.Maybe BatchSegmentJobInput,
    -- | The name of the batch segment job.
    BatchSegmentJob -> Maybe Text
jobName :: Prelude.Maybe Prelude.Text,
    -- | The Amazon S3 bucket that contains the output data generated by the
    -- batch segment job.
    BatchSegmentJob -> Maybe BatchSegmentJobOutput
jobOutput :: Prelude.Maybe BatchSegmentJobOutput,
    -- | The time at which the batch segment job last updated.
    BatchSegmentJob -> Maybe POSIX
lastUpdatedDateTime :: Prelude.Maybe Data.POSIX,
    -- | The number of predicted users generated by the batch segment job for
    -- each line of input data.
    BatchSegmentJob -> Maybe Int
numResults :: Prelude.Maybe Prelude.Int,
    -- | The ARN of the Amazon Identity and Access Management (IAM) role that
    -- requested the batch segment job.
    BatchSegmentJob -> Maybe Text
roleArn :: Prelude.Maybe Prelude.Text,
    -- | The Amazon Resource Name (ARN) of the solution version used by the batch
    -- segment job to generate batch segments.
    BatchSegmentJob -> Maybe Text
solutionVersionArn :: Prelude.Maybe Prelude.Text,
    -- | The status of the batch segment job. The status is one of the following
    -- values:
    --
    -- -   PENDING
    --
    -- -   IN PROGRESS
    --
    -- -   ACTIVE
    --
    -- -   CREATE FAILED
    BatchSegmentJob -> Maybe Text
status :: Prelude.Maybe Prelude.Text
  }
  deriving (BatchSegmentJob -> BatchSegmentJob -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: BatchSegmentJob -> BatchSegmentJob -> Bool
$c/= :: BatchSegmentJob -> BatchSegmentJob -> Bool
== :: BatchSegmentJob -> BatchSegmentJob -> Bool
$c== :: BatchSegmentJob -> BatchSegmentJob -> Bool
Prelude.Eq, ReadPrec [BatchSegmentJob]
ReadPrec BatchSegmentJob
Int -> ReadS BatchSegmentJob
ReadS [BatchSegmentJob]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [BatchSegmentJob]
$creadListPrec :: ReadPrec [BatchSegmentJob]
readPrec :: ReadPrec BatchSegmentJob
$creadPrec :: ReadPrec BatchSegmentJob
readList :: ReadS [BatchSegmentJob]
$creadList :: ReadS [BatchSegmentJob]
readsPrec :: Int -> ReadS BatchSegmentJob
$creadsPrec :: Int -> ReadS BatchSegmentJob
Prelude.Read, Int -> BatchSegmentJob -> ShowS
[BatchSegmentJob] -> ShowS
BatchSegmentJob -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [BatchSegmentJob] -> ShowS
$cshowList :: [BatchSegmentJob] -> ShowS
show :: BatchSegmentJob -> String
$cshow :: BatchSegmentJob -> String
showsPrec :: Int -> BatchSegmentJob -> ShowS
$cshowsPrec :: Int -> BatchSegmentJob -> ShowS
Prelude.Show, forall x. Rep BatchSegmentJob x -> BatchSegmentJob
forall x. BatchSegmentJob -> Rep BatchSegmentJob x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep BatchSegmentJob x -> BatchSegmentJob
$cfrom :: forall x. BatchSegmentJob -> Rep BatchSegmentJob x
Prelude.Generic)

-- |
-- Create a value of 'BatchSegmentJob' 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:
--
-- 'batchSegmentJobArn', 'batchSegmentJob_batchSegmentJobArn' - The Amazon Resource Name (ARN) of the batch segment job.
--
-- 'creationDateTime', 'batchSegmentJob_creationDateTime' - The time at which the batch segment job was created.
--
-- 'failureReason', 'batchSegmentJob_failureReason' - If the batch segment job failed, the reason for the failure.
--
-- 'filterArn', 'batchSegmentJob_filterArn' - The ARN of the filter used on the batch segment job.
--
-- 'jobInput', 'batchSegmentJob_jobInput' - The Amazon S3 path that leads to the input data used to generate the
-- batch segment job.
--
-- 'jobName', 'batchSegmentJob_jobName' - The name of the batch segment job.
--
-- 'jobOutput', 'batchSegmentJob_jobOutput' - The Amazon S3 bucket that contains the output data generated by the
-- batch segment job.
--
-- 'lastUpdatedDateTime', 'batchSegmentJob_lastUpdatedDateTime' - The time at which the batch segment job last updated.
--
-- 'numResults', 'batchSegmentJob_numResults' - The number of predicted users generated by the batch segment job for
-- each line of input data.
--
-- 'roleArn', 'batchSegmentJob_roleArn' - The ARN of the Amazon Identity and Access Management (IAM) role that
-- requested the batch segment job.
--
-- 'solutionVersionArn', 'batchSegmentJob_solutionVersionArn' - The Amazon Resource Name (ARN) of the solution version used by the batch
-- segment job to generate batch segments.
--
-- 'status', 'batchSegmentJob_status' - The status of the batch segment job. The status is one of the following
-- values:
--
-- -   PENDING
--
-- -   IN PROGRESS
--
-- -   ACTIVE
--
-- -   CREATE FAILED
newBatchSegmentJob ::
  BatchSegmentJob
newBatchSegmentJob :: BatchSegmentJob
newBatchSegmentJob =
  BatchSegmentJob'
    { $sel:batchSegmentJobArn:BatchSegmentJob' :: Maybe Text
batchSegmentJobArn =
        forall a. Maybe a
Prelude.Nothing,
      $sel:creationDateTime:BatchSegmentJob' :: Maybe POSIX
creationDateTime = forall a. Maybe a
Prelude.Nothing,
      $sel:failureReason:BatchSegmentJob' :: Maybe Text
failureReason = forall a. Maybe a
Prelude.Nothing,
      $sel:filterArn:BatchSegmentJob' :: Maybe Text
filterArn = forall a. Maybe a
Prelude.Nothing,
      $sel:jobInput:BatchSegmentJob' :: Maybe BatchSegmentJobInput
jobInput = forall a. Maybe a
Prelude.Nothing,
      $sel:jobName:BatchSegmentJob' :: Maybe Text
jobName = forall a. Maybe a
Prelude.Nothing,
      $sel:jobOutput:BatchSegmentJob' :: Maybe BatchSegmentJobOutput
jobOutput = forall a. Maybe a
Prelude.Nothing,
      $sel:lastUpdatedDateTime:BatchSegmentJob' :: Maybe POSIX
lastUpdatedDateTime = forall a. Maybe a
Prelude.Nothing,
      $sel:numResults:BatchSegmentJob' :: Maybe Int
numResults = forall a. Maybe a
Prelude.Nothing,
      $sel:roleArn:BatchSegmentJob' :: Maybe Text
roleArn = forall a. Maybe a
Prelude.Nothing,
      $sel:solutionVersionArn:BatchSegmentJob' :: Maybe Text
solutionVersionArn = forall a. Maybe a
Prelude.Nothing,
      $sel:status:BatchSegmentJob' :: Maybe Text
status = forall a. Maybe a
Prelude.Nothing
    }

-- | The Amazon Resource Name (ARN) of the batch segment job.
batchSegmentJob_batchSegmentJobArn :: Lens.Lens' BatchSegmentJob (Prelude.Maybe Prelude.Text)
batchSegmentJob_batchSegmentJobArn :: Lens' BatchSegmentJob (Maybe Text)
batchSegmentJob_batchSegmentJobArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchSegmentJob' {Maybe Text
batchSegmentJobArn :: Maybe Text
$sel:batchSegmentJobArn:BatchSegmentJob' :: BatchSegmentJob -> Maybe Text
batchSegmentJobArn} -> Maybe Text
batchSegmentJobArn) (\s :: BatchSegmentJob
s@BatchSegmentJob' {} Maybe Text
a -> BatchSegmentJob
s {$sel:batchSegmentJobArn:BatchSegmentJob' :: Maybe Text
batchSegmentJobArn = Maybe Text
a} :: BatchSegmentJob)

-- | The time at which the batch segment job was created.
batchSegmentJob_creationDateTime :: Lens.Lens' BatchSegmentJob (Prelude.Maybe Prelude.UTCTime)
batchSegmentJob_creationDateTime :: Lens' BatchSegmentJob (Maybe UTCTime)
batchSegmentJob_creationDateTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchSegmentJob' {Maybe POSIX
creationDateTime :: Maybe POSIX
$sel:creationDateTime:BatchSegmentJob' :: BatchSegmentJob -> Maybe POSIX
creationDateTime} -> Maybe POSIX
creationDateTime) (\s :: BatchSegmentJob
s@BatchSegmentJob' {} Maybe POSIX
a -> BatchSegmentJob
s {$sel:creationDateTime:BatchSegmentJob' :: Maybe POSIX
creationDateTime = Maybe POSIX
a} :: BatchSegmentJob) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall (a :: Format). Iso' (Time a) UTCTime
Data._Time

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

-- | The ARN of the filter used on the batch segment job.
batchSegmentJob_filterArn :: Lens.Lens' BatchSegmentJob (Prelude.Maybe Prelude.Text)
batchSegmentJob_filterArn :: Lens' BatchSegmentJob (Maybe Text)
batchSegmentJob_filterArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchSegmentJob' {Maybe Text
filterArn :: Maybe Text
$sel:filterArn:BatchSegmentJob' :: BatchSegmentJob -> Maybe Text
filterArn} -> Maybe Text
filterArn) (\s :: BatchSegmentJob
s@BatchSegmentJob' {} Maybe Text
a -> BatchSegmentJob
s {$sel:filterArn:BatchSegmentJob' :: Maybe Text
filterArn = Maybe Text
a} :: BatchSegmentJob)

-- | The Amazon S3 path that leads to the input data used to generate the
-- batch segment job.
batchSegmentJob_jobInput :: Lens.Lens' BatchSegmentJob (Prelude.Maybe BatchSegmentJobInput)
batchSegmentJob_jobInput :: Lens' BatchSegmentJob (Maybe BatchSegmentJobInput)
batchSegmentJob_jobInput = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchSegmentJob' {Maybe BatchSegmentJobInput
jobInput :: Maybe BatchSegmentJobInput
$sel:jobInput:BatchSegmentJob' :: BatchSegmentJob -> Maybe BatchSegmentJobInput
jobInput} -> Maybe BatchSegmentJobInput
jobInput) (\s :: BatchSegmentJob
s@BatchSegmentJob' {} Maybe BatchSegmentJobInput
a -> BatchSegmentJob
s {$sel:jobInput:BatchSegmentJob' :: Maybe BatchSegmentJobInput
jobInput = Maybe BatchSegmentJobInput
a} :: BatchSegmentJob)

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

-- | The Amazon S3 bucket that contains the output data generated by the
-- batch segment job.
batchSegmentJob_jobOutput :: Lens.Lens' BatchSegmentJob (Prelude.Maybe BatchSegmentJobOutput)
batchSegmentJob_jobOutput :: Lens' BatchSegmentJob (Maybe BatchSegmentJobOutput)
batchSegmentJob_jobOutput = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchSegmentJob' {Maybe BatchSegmentJobOutput
jobOutput :: Maybe BatchSegmentJobOutput
$sel:jobOutput:BatchSegmentJob' :: BatchSegmentJob -> Maybe BatchSegmentJobOutput
jobOutput} -> Maybe BatchSegmentJobOutput
jobOutput) (\s :: BatchSegmentJob
s@BatchSegmentJob' {} Maybe BatchSegmentJobOutput
a -> BatchSegmentJob
s {$sel:jobOutput:BatchSegmentJob' :: Maybe BatchSegmentJobOutput
jobOutput = Maybe BatchSegmentJobOutput
a} :: BatchSegmentJob)

-- | The time at which the batch segment job last updated.
batchSegmentJob_lastUpdatedDateTime :: Lens.Lens' BatchSegmentJob (Prelude.Maybe Prelude.UTCTime)
batchSegmentJob_lastUpdatedDateTime :: Lens' BatchSegmentJob (Maybe UTCTime)
batchSegmentJob_lastUpdatedDateTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchSegmentJob' {Maybe POSIX
lastUpdatedDateTime :: Maybe POSIX
$sel:lastUpdatedDateTime:BatchSegmentJob' :: BatchSegmentJob -> Maybe POSIX
lastUpdatedDateTime} -> Maybe POSIX
lastUpdatedDateTime) (\s :: BatchSegmentJob
s@BatchSegmentJob' {} Maybe POSIX
a -> BatchSegmentJob
s {$sel:lastUpdatedDateTime:BatchSegmentJob' :: Maybe POSIX
lastUpdatedDateTime = Maybe POSIX
a} :: BatchSegmentJob) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall (a :: Format). Iso' (Time a) UTCTime
Data._Time

-- | The number of predicted users generated by the batch segment job for
-- each line of input data.
batchSegmentJob_numResults :: Lens.Lens' BatchSegmentJob (Prelude.Maybe Prelude.Int)
batchSegmentJob_numResults :: Lens' BatchSegmentJob (Maybe Int)
batchSegmentJob_numResults = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchSegmentJob' {Maybe Int
numResults :: Maybe Int
$sel:numResults:BatchSegmentJob' :: BatchSegmentJob -> Maybe Int
numResults} -> Maybe Int
numResults) (\s :: BatchSegmentJob
s@BatchSegmentJob' {} Maybe Int
a -> BatchSegmentJob
s {$sel:numResults:BatchSegmentJob' :: Maybe Int
numResults = Maybe Int
a} :: BatchSegmentJob)

-- | The ARN of the Amazon Identity and Access Management (IAM) role that
-- requested the batch segment job.
batchSegmentJob_roleArn :: Lens.Lens' BatchSegmentJob (Prelude.Maybe Prelude.Text)
batchSegmentJob_roleArn :: Lens' BatchSegmentJob (Maybe Text)
batchSegmentJob_roleArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchSegmentJob' {Maybe Text
roleArn :: Maybe Text
$sel:roleArn:BatchSegmentJob' :: BatchSegmentJob -> Maybe Text
roleArn} -> Maybe Text
roleArn) (\s :: BatchSegmentJob
s@BatchSegmentJob' {} Maybe Text
a -> BatchSegmentJob
s {$sel:roleArn:BatchSegmentJob' :: Maybe Text
roleArn = Maybe Text
a} :: BatchSegmentJob)

-- | The Amazon Resource Name (ARN) of the solution version used by the batch
-- segment job to generate batch segments.
batchSegmentJob_solutionVersionArn :: Lens.Lens' BatchSegmentJob (Prelude.Maybe Prelude.Text)
batchSegmentJob_solutionVersionArn :: Lens' BatchSegmentJob (Maybe Text)
batchSegmentJob_solutionVersionArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchSegmentJob' {Maybe Text
solutionVersionArn :: Maybe Text
$sel:solutionVersionArn:BatchSegmentJob' :: BatchSegmentJob -> Maybe Text
solutionVersionArn} -> Maybe Text
solutionVersionArn) (\s :: BatchSegmentJob
s@BatchSegmentJob' {} Maybe Text
a -> BatchSegmentJob
s {$sel:solutionVersionArn:BatchSegmentJob' :: Maybe Text
solutionVersionArn = Maybe Text
a} :: BatchSegmentJob)

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

instance Data.FromJSON BatchSegmentJob where
  parseJSON :: Value -> Parser BatchSegmentJob
parseJSON =
    forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
      String
"BatchSegmentJob"
      ( \Object
x ->
          Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe BatchSegmentJobInput
-> Maybe Text
-> Maybe BatchSegmentJobOutput
-> Maybe POSIX
-> Maybe Int
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> BatchSegmentJob
BatchSegmentJob'
            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
"batchSegmentJobArn")
            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
"creationDateTime")
            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
"filterArn")
            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
"jobInput")
            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
"jobName")
            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
"jobOutput")
            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
"lastUpdatedDateTime")
            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
"numResults")
            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
"roleArn")
            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
"solutionVersionArn")
            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")
      )

instance Prelude.Hashable BatchSegmentJob where
  hashWithSalt :: Int -> BatchSegmentJob -> Int
hashWithSalt Int
_salt BatchSegmentJob' {Maybe Int
Maybe Text
Maybe POSIX
Maybe BatchSegmentJobOutput
Maybe BatchSegmentJobInput
status :: Maybe Text
solutionVersionArn :: Maybe Text
roleArn :: Maybe Text
numResults :: Maybe Int
lastUpdatedDateTime :: Maybe POSIX
jobOutput :: Maybe BatchSegmentJobOutput
jobName :: Maybe Text
jobInput :: Maybe BatchSegmentJobInput
filterArn :: Maybe Text
failureReason :: Maybe Text
creationDateTime :: Maybe POSIX
batchSegmentJobArn :: Maybe Text
$sel:status:BatchSegmentJob' :: BatchSegmentJob -> Maybe Text
$sel:solutionVersionArn:BatchSegmentJob' :: BatchSegmentJob -> Maybe Text
$sel:roleArn:BatchSegmentJob' :: BatchSegmentJob -> Maybe Text
$sel:numResults:BatchSegmentJob' :: BatchSegmentJob -> Maybe Int
$sel:lastUpdatedDateTime:BatchSegmentJob' :: BatchSegmentJob -> Maybe POSIX
$sel:jobOutput:BatchSegmentJob' :: BatchSegmentJob -> Maybe BatchSegmentJobOutput
$sel:jobName:BatchSegmentJob' :: BatchSegmentJob -> Maybe Text
$sel:jobInput:BatchSegmentJob' :: BatchSegmentJob -> Maybe BatchSegmentJobInput
$sel:filterArn:BatchSegmentJob' :: BatchSegmentJob -> Maybe Text
$sel:failureReason:BatchSegmentJob' :: BatchSegmentJob -> Maybe Text
$sel:creationDateTime:BatchSegmentJob' :: BatchSegmentJob -> Maybe POSIX
$sel:batchSegmentJobArn:BatchSegmentJob' :: BatchSegmentJob -> Maybe Text
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
batchSegmentJobArn
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe POSIX
creationDateTime
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
failureReason
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
filterArn
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe BatchSegmentJobInput
jobInput
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
jobName
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe BatchSegmentJobOutput
jobOutput
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe POSIX
lastUpdatedDateTime
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Int
numResults
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
roleArn
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
solutionVersionArn
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
status

instance Prelude.NFData BatchSegmentJob where
  rnf :: BatchSegmentJob -> ()
rnf BatchSegmentJob' {Maybe Int
Maybe Text
Maybe POSIX
Maybe BatchSegmentJobOutput
Maybe BatchSegmentJobInput
status :: Maybe Text
solutionVersionArn :: Maybe Text
roleArn :: Maybe Text
numResults :: Maybe Int
lastUpdatedDateTime :: Maybe POSIX
jobOutput :: Maybe BatchSegmentJobOutput
jobName :: Maybe Text
jobInput :: Maybe BatchSegmentJobInput
filterArn :: Maybe Text
failureReason :: Maybe Text
creationDateTime :: Maybe POSIX
batchSegmentJobArn :: Maybe Text
$sel:status:BatchSegmentJob' :: BatchSegmentJob -> Maybe Text
$sel:solutionVersionArn:BatchSegmentJob' :: BatchSegmentJob -> Maybe Text
$sel:roleArn:BatchSegmentJob' :: BatchSegmentJob -> Maybe Text
$sel:numResults:BatchSegmentJob' :: BatchSegmentJob -> Maybe Int
$sel:lastUpdatedDateTime:BatchSegmentJob' :: BatchSegmentJob -> Maybe POSIX
$sel:jobOutput:BatchSegmentJob' :: BatchSegmentJob -> Maybe BatchSegmentJobOutput
$sel:jobName:BatchSegmentJob' :: BatchSegmentJob -> Maybe Text
$sel:jobInput:BatchSegmentJob' :: BatchSegmentJob -> Maybe BatchSegmentJobInput
$sel:filterArn:BatchSegmentJob' :: BatchSegmentJob -> Maybe Text
$sel:failureReason:BatchSegmentJob' :: BatchSegmentJob -> Maybe Text
$sel:creationDateTime:BatchSegmentJob' :: BatchSegmentJob -> Maybe POSIX
$sel:batchSegmentJobArn:BatchSegmentJob' :: BatchSegmentJob -> Maybe Text
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
batchSegmentJobArn
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
creationDateTime
      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
filterArn
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe BatchSegmentJobInput
jobInput
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
jobName
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe BatchSegmentJobOutput
jobOutput
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
lastUpdatedDateTime
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Int
numResults
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
roleArn
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
solutionVersionArn
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
status