{-# 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.VoiceId.Types.FraudsterRegistrationJobSummary
-- 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.VoiceId.Types.FraudsterRegistrationJobSummary where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import Amazonka.VoiceId.Types.FailureDetails
import Amazonka.VoiceId.Types.FraudsterRegistrationJobStatus
import Amazonka.VoiceId.Types.JobProgress

-- | Contains a summary of information about a fraudster registration job.
--
-- /See:/ 'newFraudsterRegistrationJobSummary' smart constructor.
data FraudsterRegistrationJobSummary = FraudsterRegistrationJobSummary'
  { -- | Contains details that are populated when an entire batch job fails. In
    -- cases of individual registration job failures, the batch job as a whole
    -- doesn\'t fail; it is completed with a @JobStatus@ of
    -- @COMPLETED_WITH_ERRORS@. You can use the job output file to identify the
    -- individual registration requests that failed.
    FraudsterRegistrationJobSummary -> Maybe FailureDetails
failureDetails :: Prelude.Maybe FailureDetails,
    -- | The service-generated identifier for the fraudster registration job.
    FraudsterRegistrationJobSummary -> Maybe Text
jobId :: Prelude.Maybe Prelude.Text,
    -- | A timestamp showing when the fraudster registration job is created.
    FraudsterRegistrationJobSummary -> Maybe POSIX
createdAt :: Prelude.Maybe Core.POSIX,
    -- | The client-provied name for the fraudster registration job.
    FraudsterRegistrationJobSummary -> Maybe (Sensitive Text)
jobName :: Prelude.Maybe (Core.Sensitive Prelude.Text),
    -- | A timestamp showing when the fraudster registration job ended.
    FraudsterRegistrationJobSummary -> Maybe POSIX
endedAt :: Prelude.Maybe Core.POSIX,
    -- | Shows the completed percentage of registration requests listed in the
    -- input file.
    FraudsterRegistrationJobSummary -> Maybe JobProgress
jobProgress :: Prelude.Maybe JobProgress,
    -- | The identifier of the domain containing the fraudster registration job.
    FraudsterRegistrationJobSummary -> Maybe Text
domainId :: Prelude.Maybe Prelude.Text,
    -- | The current status of the fraudster registration job.
    FraudsterRegistrationJobSummary
-> Maybe FraudsterRegistrationJobStatus
jobStatus :: Prelude.Maybe FraudsterRegistrationJobStatus
  }
  deriving (FraudsterRegistrationJobSummary
-> FraudsterRegistrationJobSummary -> Bool
(FraudsterRegistrationJobSummary
 -> FraudsterRegistrationJobSummary -> Bool)
-> (FraudsterRegistrationJobSummary
    -> FraudsterRegistrationJobSummary -> Bool)
-> Eq FraudsterRegistrationJobSummary
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: FraudsterRegistrationJobSummary
-> FraudsterRegistrationJobSummary -> Bool
$c/= :: FraudsterRegistrationJobSummary
-> FraudsterRegistrationJobSummary -> Bool
== :: FraudsterRegistrationJobSummary
-> FraudsterRegistrationJobSummary -> Bool
$c== :: FraudsterRegistrationJobSummary
-> FraudsterRegistrationJobSummary -> Bool
Prelude.Eq, Int -> FraudsterRegistrationJobSummary -> ShowS
[FraudsterRegistrationJobSummary] -> ShowS
FraudsterRegistrationJobSummary -> String
(Int -> FraudsterRegistrationJobSummary -> ShowS)
-> (FraudsterRegistrationJobSummary -> String)
-> ([FraudsterRegistrationJobSummary] -> ShowS)
-> Show FraudsterRegistrationJobSummary
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [FraudsterRegistrationJobSummary] -> ShowS
$cshowList :: [FraudsterRegistrationJobSummary] -> ShowS
show :: FraudsterRegistrationJobSummary -> String
$cshow :: FraudsterRegistrationJobSummary -> String
showsPrec :: Int -> FraudsterRegistrationJobSummary -> ShowS
$cshowsPrec :: Int -> FraudsterRegistrationJobSummary -> ShowS
Prelude.Show, (forall x.
 FraudsterRegistrationJobSummary
 -> Rep FraudsterRegistrationJobSummary x)
-> (forall x.
    Rep FraudsterRegistrationJobSummary x
    -> FraudsterRegistrationJobSummary)
-> Generic FraudsterRegistrationJobSummary
forall x.
Rep FraudsterRegistrationJobSummary x
-> FraudsterRegistrationJobSummary
forall x.
FraudsterRegistrationJobSummary
-> Rep FraudsterRegistrationJobSummary x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep FraudsterRegistrationJobSummary x
-> FraudsterRegistrationJobSummary
$cfrom :: forall x.
FraudsterRegistrationJobSummary
-> Rep FraudsterRegistrationJobSummary x
Prelude.Generic)

-- |
-- Create a value of 'FraudsterRegistrationJobSummary' 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:
--
-- 'failureDetails', 'fraudsterRegistrationJobSummary_failureDetails' - Contains details that are populated when an entire batch job fails. In
-- cases of individual registration job failures, the batch job as a whole
-- doesn\'t fail; it is completed with a @JobStatus@ of
-- @COMPLETED_WITH_ERRORS@. You can use the job output file to identify the
-- individual registration requests that failed.
--
-- 'jobId', 'fraudsterRegistrationJobSummary_jobId' - The service-generated identifier for the fraudster registration job.
--
-- 'createdAt', 'fraudsterRegistrationJobSummary_createdAt' - A timestamp showing when the fraudster registration job is created.
--
-- 'jobName', 'fraudsterRegistrationJobSummary_jobName' - The client-provied name for the fraudster registration job.
--
-- 'endedAt', 'fraudsterRegistrationJobSummary_endedAt' - A timestamp showing when the fraudster registration job ended.
--
-- 'jobProgress', 'fraudsterRegistrationJobSummary_jobProgress' - Shows the completed percentage of registration requests listed in the
-- input file.
--
-- 'domainId', 'fraudsterRegistrationJobSummary_domainId' - The identifier of the domain containing the fraudster registration job.
--
-- 'jobStatus', 'fraudsterRegistrationJobSummary_jobStatus' - The current status of the fraudster registration job.
newFraudsterRegistrationJobSummary ::
  FraudsterRegistrationJobSummary
newFraudsterRegistrationJobSummary :: FraudsterRegistrationJobSummary
newFraudsterRegistrationJobSummary =
  FraudsterRegistrationJobSummary' :: Maybe FailureDetails
-> Maybe Text
-> Maybe POSIX
-> Maybe (Sensitive Text)
-> Maybe POSIX
-> Maybe JobProgress
-> Maybe Text
-> Maybe FraudsterRegistrationJobStatus
-> FraudsterRegistrationJobSummary
FraudsterRegistrationJobSummary'
    { $sel:failureDetails:FraudsterRegistrationJobSummary' :: Maybe FailureDetails
failureDetails =
        Maybe FailureDetails
forall a. Maybe a
Prelude.Nothing,
      $sel:jobId:FraudsterRegistrationJobSummary' :: Maybe Text
jobId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:createdAt:FraudsterRegistrationJobSummary' :: Maybe POSIX
createdAt = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:jobName:FraudsterRegistrationJobSummary' :: Maybe (Sensitive Text)
jobName = Maybe (Sensitive Text)
forall a. Maybe a
Prelude.Nothing,
      $sel:endedAt:FraudsterRegistrationJobSummary' :: Maybe POSIX
endedAt = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:jobProgress:FraudsterRegistrationJobSummary' :: Maybe JobProgress
jobProgress = Maybe JobProgress
forall a. Maybe a
Prelude.Nothing,
      $sel:domainId:FraudsterRegistrationJobSummary' :: Maybe Text
domainId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:jobStatus:FraudsterRegistrationJobSummary' :: Maybe FraudsterRegistrationJobStatus
jobStatus = Maybe FraudsterRegistrationJobStatus
forall a. Maybe a
Prelude.Nothing
    }

-- | Contains details that are populated when an entire batch job fails. In
-- cases of individual registration job failures, the batch job as a whole
-- doesn\'t fail; it is completed with a @JobStatus@ of
-- @COMPLETED_WITH_ERRORS@. You can use the job output file to identify the
-- individual registration requests that failed.
fraudsterRegistrationJobSummary_failureDetails :: Lens.Lens' FraudsterRegistrationJobSummary (Prelude.Maybe FailureDetails)
fraudsterRegistrationJobSummary_failureDetails :: (Maybe FailureDetails -> f (Maybe FailureDetails))
-> FraudsterRegistrationJobSummary
-> f FraudsterRegistrationJobSummary
fraudsterRegistrationJobSummary_failureDetails = (FraudsterRegistrationJobSummary -> Maybe FailureDetails)
-> (FraudsterRegistrationJobSummary
    -> Maybe FailureDetails -> FraudsterRegistrationJobSummary)
-> Lens
     FraudsterRegistrationJobSummary
     FraudsterRegistrationJobSummary
     (Maybe FailureDetails)
     (Maybe FailureDetails)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\FraudsterRegistrationJobSummary' {Maybe FailureDetails
failureDetails :: Maybe FailureDetails
$sel:failureDetails:FraudsterRegistrationJobSummary' :: FraudsterRegistrationJobSummary -> Maybe FailureDetails
failureDetails} -> Maybe FailureDetails
failureDetails) (\s :: FraudsterRegistrationJobSummary
s@FraudsterRegistrationJobSummary' {} Maybe FailureDetails
a -> FraudsterRegistrationJobSummary
s {$sel:failureDetails:FraudsterRegistrationJobSummary' :: Maybe FailureDetails
failureDetails = Maybe FailureDetails
a} :: FraudsterRegistrationJobSummary)

-- | The service-generated identifier for the fraudster registration job.
fraudsterRegistrationJobSummary_jobId :: Lens.Lens' FraudsterRegistrationJobSummary (Prelude.Maybe Prelude.Text)
fraudsterRegistrationJobSummary_jobId :: (Maybe Text -> f (Maybe Text))
-> FraudsterRegistrationJobSummary
-> f FraudsterRegistrationJobSummary
fraudsterRegistrationJobSummary_jobId = (FraudsterRegistrationJobSummary -> Maybe Text)
-> (FraudsterRegistrationJobSummary
    -> Maybe Text -> FraudsterRegistrationJobSummary)
-> Lens
     FraudsterRegistrationJobSummary
     FraudsterRegistrationJobSummary
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\FraudsterRegistrationJobSummary' {Maybe Text
jobId :: Maybe Text
$sel:jobId:FraudsterRegistrationJobSummary' :: FraudsterRegistrationJobSummary -> Maybe Text
jobId} -> Maybe Text
jobId) (\s :: FraudsterRegistrationJobSummary
s@FraudsterRegistrationJobSummary' {} Maybe Text
a -> FraudsterRegistrationJobSummary
s {$sel:jobId:FraudsterRegistrationJobSummary' :: Maybe Text
jobId = Maybe Text
a} :: FraudsterRegistrationJobSummary)

-- | A timestamp showing when the fraudster registration job is created.
fraudsterRegistrationJobSummary_createdAt :: Lens.Lens' FraudsterRegistrationJobSummary (Prelude.Maybe Prelude.UTCTime)
fraudsterRegistrationJobSummary_createdAt :: (Maybe UTCTime -> f (Maybe UTCTime))
-> FraudsterRegistrationJobSummary
-> f FraudsterRegistrationJobSummary
fraudsterRegistrationJobSummary_createdAt = (FraudsterRegistrationJobSummary -> Maybe POSIX)
-> (FraudsterRegistrationJobSummary
    -> Maybe POSIX -> FraudsterRegistrationJobSummary)
-> Lens
     FraudsterRegistrationJobSummary
     FraudsterRegistrationJobSummary
     (Maybe POSIX)
     (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\FraudsterRegistrationJobSummary' {Maybe POSIX
createdAt :: Maybe POSIX
$sel:createdAt:FraudsterRegistrationJobSummary' :: FraudsterRegistrationJobSummary -> Maybe POSIX
createdAt} -> Maybe POSIX
createdAt) (\s :: FraudsterRegistrationJobSummary
s@FraudsterRegistrationJobSummary' {} Maybe POSIX
a -> FraudsterRegistrationJobSummary
s {$sel:createdAt:FraudsterRegistrationJobSummary' :: Maybe POSIX
createdAt = Maybe POSIX
a} :: FraudsterRegistrationJobSummary) ((Maybe POSIX -> f (Maybe POSIX))
 -> FraudsterRegistrationJobSummary
 -> f FraudsterRegistrationJobSummary)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> FraudsterRegistrationJobSummary
-> f FraudsterRegistrationJobSummary
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 client-provied name for the fraudster registration job.
fraudsterRegistrationJobSummary_jobName :: Lens.Lens' FraudsterRegistrationJobSummary (Prelude.Maybe Prelude.Text)
fraudsterRegistrationJobSummary_jobName :: (Maybe Text -> f (Maybe Text))
-> FraudsterRegistrationJobSummary
-> f FraudsterRegistrationJobSummary
fraudsterRegistrationJobSummary_jobName = (FraudsterRegistrationJobSummary -> Maybe (Sensitive Text))
-> (FraudsterRegistrationJobSummary
    -> Maybe (Sensitive Text) -> FraudsterRegistrationJobSummary)
-> Lens
     FraudsterRegistrationJobSummary
     FraudsterRegistrationJobSummary
     (Maybe (Sensitive Text))
     (Maybe (Sensitive Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\FraudsterRegistrationJobSummary' {Maybe (Sensitive Text)
jobName :: Maybe (Sensitive Text)
$sel:jobName:FraudsterRegistrationJobSummary' :: FraudsterRegistrationJobSummary -> Maybe (Sensitive Text)
jobName} -> Maybe (Sensitive Text)
jobName) (\s :: FraudsterRegistrationJobSummary
s@FraudsterRegistrationJobSummary' {} Maybe (Sensitive Text)
a -> FraudsterRegistrationJobSummary
s {$sel:jobName:FraudsterRegistrationJobSummary' :: Maybe (Sensitive Text)
jobName = Maybe (Sensitive Text)
a} :: FraudsterRegistrationJobSummary) ((Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
 -> FraudsterRegistrationJobSummary
 -> f FraudsterRegistrationJobSummary)
-> ((Maybe Text -> f (Maybe Text))
    -> Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> (Maybe Text -> f (Maybe Text))
-> FraudsterRegistrationJobSummary
-> f FraudsterRegistrationJobSummary
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso (Sensitive Text) (Sensitive Text) Text Text
-> Iso
     (Maybe (Sensitive Text))
     (Maybe (Sensitive Text))
     (Maybe Text)
     (Maybe Text)
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 (Sensitive Text) (Sensitive Text) Text Text
forall a. Iso' (Sensitive a) a
Core._Sensitive

-- | A timestamp showing when the fraudster registration job ended.
fraudsterRegistrationJobSummary_endedAt :: Lens.Lens' FraudsterRegistrationJobSummary (Prelude.Maybe Prelude.UTCTime)
fraudsterRegistrationJobSummary_endedAt :: (Maybe UTCTime -> f (Maybe UTCTime))
-> FraudsterRegistrationJobSummary
-> f FraudsterRegistrationJobSummary
fraudsterRegistrationJobSummary_endedAt = (FraudsterRegistrationJobSummary -> Maybe POSIX)
-> (FraudsterRegistrationJobSummary
    -> Maybe POSIX -> FraudsterRegistrationJobSummary)
-> Lens
     FraudsterRegistrationJobSummary
     FraudsterRegistrationJobSummary
     (Maybe POSIX)
     (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\FraudsterRegistrationJobSummary' {Maybe POSIX
endedAt :: Maybe POSIX
$sel:endedAt:FraudsterRegistrationJobSummary' :: FraudsterRegistrationJobSummary -> Maybe POSIX
endedAt} -> Maybe POSIX
endedAt) (\s :: FraudsterRegistrationJobSummary
s@FraudsterRegistrationJobSummary' {} Maybe POSIX
a -> FraudsterRegistrationJobSummary
s {$sel:endedAt:FraudsterRegistrationJobSummary' :: Maybe POSIX
endedAt = Maybe POSIX
a} :: FraudsterRegistrationJobSummary) ((Maybe POSIX -> f (Maybe POSIX))
 -> FraudsterRegistrationJobSummary
 -> f FraudsterRegistrationJobSummary)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> FraudsterRegistrationJobSummary
-> f FraudsterRegistrationJobSummary
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

-- | Shows the completed percentage of registration requests listed in the
-- input file.
fraudsterRegistrationJobSummary_jobProgress :: Lens.Lens' FraudsterRegistrationJobSummary (Prelude.Maybe JobProgress)
fraudsterRegistrationJobSummary_jobProgress :: (Maybe JobProgress -> f (Maybe JobProgress))
-> FraudsterRegistrationJobSummary
-> f FraudsterRegistrationJobSummary
fraudsterRegistrationJobSummary_jobProgress = (FraudsterRegistrationJobSummary -> Maybe JobProgress)
-> (FraudsterRegistrationJobSummary
    -> Maybe JobProgress -> FraudsterRegistrationJobSummary)
-> Lens
     FraudsterRegistrationJobSummary
     FraudsterRegistrationJobSummary
     (Maybe JobProgress)
     (Maybe JobProgress)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\FraudsterRegistrationJobSummary' {Maybe JobProgress
jobProgress :: Maybe JobProgress
$sel:jobProgress:FraudsterRegistrationJobSummary' :: FraudsterRegistrationJobSummary -> Maybe JobProgress
jobProgress} -> Maybe JobProgress
jobProgress) (\s :: FraudsterRegistrationJobSummary
s@FraudsterRegistrationJobSummary' {} Maybe JobProgress
a -> FraudsterRegistrationJobSummary
s {$sel:jobProgress:FraudsterRegistrationJobSummary' :: Maybe JobProgress
jobProgress = Maybe JobProgress
a} :: FraudsterRegistrationJobSummary)

-- | The identifier of the domain containing the fraudster registration job.
fraudsterRegistrationJobSummary_domainId :: Lens.Lens' FraudsterRegistrationJobSummary (Prelude.Maybe Prelude.Text)
fraudsterRegistrationJobSummary_domainId :: (Maybe Text -> f (Maybe Text))
-> FraudsterRegistrationJobSummary
-> f FraudsterRegistrationJobSummary
fraudsterRegistrationJobSummary_domainId = (FraudsterRegistrationJobSummary -> Maybe Text)
-> (FraudsterRegistrationJobSummary
    -> Maybe Text -> FraudsterRegistrationJobSummary)
-> Lens
     FraudsterRegistrationJobSummary
     FraudsterRegistrationJobSummary
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\FraudsterRegistrationJobSummary' {Maybe Text
domainId :: Maybe Text
$sel:domainId:FraudsterRegistrationJobSummary' :: FraudsterRegistrationJobSummary -> Maybe Text
domainId} -> Maybe Text
domainId) (\s :: FraudsterRegistrationJobSummary
s@FraudsterRegistrationJobSummary' {} Maybe Text
a -> FraudsterRegistrationJobSummary
s {$sel:domainId:FraudsterRegistrationJobSummary' :: Maybe Text
domainId = Maybe Text
a} :: FraudsterRegistrationJobSummary)

-- | The current status of the fraudster registration job.
fraudsterRegistrationJobSummary_jobStatus :: Lens.Lens' FraudsterRegistrationJobSummary (Prelude.Maybe FraudsterRegistrationJobStatus)
fraudsterRegistrationJobSummary_jobStatus :: (Maybe FraudsterRegistrationJobStatus
 -> f (Maybe FraudsterRegistrationJobStatus))
-> FraudsterRegistrationJobSummary
-> f FraudsterRegistrationJobSummary
fraudsterRegistrationJobSummary_jobStatus = (FraudsterRegistrationJobSummary
 -> Maybe FraudsterRegistrationJobStatus)
-> (FraudsterRegistrationJobSummary
    -> Maybe FraudsterRegistrationJobStatus
    -> FraudsterRegistrationJobSummary)
-> Lens
     FraudsterRegistrationJobSummary
     FraudsterRegistrationJobSummary
     (Maybe FraudsterRegistrationJobStatus)
     (Maybe FraudsterRegistrationJobStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\FraudsterRegistrationJobSummary' {Maybe FraudsterRegistrationJobStatus
jobStatus :: Maybe FraudsterRegistrationJobStatus
$sel:jobStatus:FraudsterRegistrationJobSummary' :: FraudsterRegistrationJobSummary
-> Maybe FraudsterRegistrationJobStatus
jobStatus} -> Maybe FraudsterRegistrationJobStatus
jobStatus) (\s :: FraudsterRegistrationJobSummary
s@FraudsterRegistrationJobSummary' {} Maybe FraudsterRegistrationJobStatus
a -> FraudsterRegistrationJobSummary
s {$sel:jobStatus:FraudsterRegistrationJobSummary' :: Maybe FraudsterRegistrationJobStatus
jobStatus = Maybe FraudsterRegistrationJobStatus
a} :: FraudsterRegistrationJobSummary)

instance
  Core.FromJSON
    FraudsterRegistrationJobSummary
  where
  parseJSON :: Value -> Parser FraudsterRegistrationJobSummary
parseJSON =
    String
-> (Object -> Parser FraudsterRegistrationJobSummary)
-> Value
-> Parser FraudsterRegistrationJobSummary
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
      String
"FraudsterRegistrationJobSummary"
      ( \Object
x ->
          Maybe FailureDetails
-> Maybe Text
-> Maybe POSIX
-> Maybe (Sensitive Text)
-> Maybe POSIX
-> Maybe JobProgress
-> Maybe Text
-> Maybe FraudsterRegistrationJobStatus
-> FraudsterRegistrationJobSummary
FraudsterRegistrationJobSummary'
            (Maybe FailureDetails
 -> Maybe Text
 -> Maybe POSIX
 -> Maybe (Sensitive Text)
 -> Maybe POSIX
 -> Maybe JobProgress
 -> Maybe Text
 -> Maybe FraudsterRegistrationJobStatus
 -> FraudsterRegistrationJobSummary)
-> Parser (Maybe FailureDetails)
-> Parser
     (Maybe Text
      -> Maybe POSIX
      -> Maybe (Sensitive Text)
      -> Maybe POSIX
      -> Maybe JobProgress
      -> Maybe Text
      -> Maybe FraudsterRegistrationJobStatus
      -> FraudsterRegistrationJobSummary)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe FailureDetails)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"FailureDetails")
            Parser
  (Maybe Text
   -> Maybe POSIX
   -> Maybe (Sensitive Text)
   -> Maybe POSIX
   -> Maybe JobProgress
   -> Maybe Text
   -> Maybe FraudsterRegistrationJobStatus
   -> FraudsterRegistrationJobSummary)
-> Parser (Maybe Text)
-> Parser
     (Maybe POSIX
      -> Maybe (Sensitive Text)
      -> Maybe POSIX
      -> Maybe JobProgress
      -> Maybe Text
      -> Maybe FraudsterRegistrationJobStatus
      -> FraudsterRegistrationJobSummary)
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
"JobId")
            Parser
  (Maybe POSIX
   -> Maybe (Sensitive Text)
   -> Maybe POSIX
   -> Maybe JobProgress
   -> Maybe Text
   -> Maybe FraudsterRegistrationJobStatus
   -> FraudsterRegistrationJobSummary)
-> Parser (Maybe POSIX)
-> Parser
     (Maybe (Sensitive Text)
      -> Maybe POSIX
      -> Maybe JobProgress
      -> Maybe Text
      -> Maybe FraudsterRegistrationJobStatus
      -> FraudsterRegistrationJobSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"CreatedAt")
            Parser
  (Maybe (Sensitive Text)
   -> Maybe POSIX
   -> Maybe JobProgress
   -> Maybe Text
   -> Maybe FraudsterRegistrationJobStatus
   -> FraudsterRegistrationJobSummary)
-> Parser (Maybe (Sensitive Text))
-> Parser
     (Maybe POSIX
      -> Maybe JobProgress
      -> Maybe Text
      -> Maybe FraudsterRegistrationJobStatus
      -> FraudsterRegistrationJobSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe (Sensitive Text))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"JobName")
            Parser
  (Maybe POSIX
   -> Maybe JobProgress
   -> Maybe Text
   -> Maybe FraudsterRegistrationJobStatus
   -> FraudsterRegistrationJobSummary)
-> Parser (Maybe POSIX)
-> Parser
     (Maybe JobProgress
      -> Maybe Text
      -> Maybe FraudsterRegistrationJobStatus
      -> FraudsterRegistrationJobSummary)
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
"EndedAt")
            Parser
  (Maybe JobProgress
   -> Maybe Text
   -> Maybe FraudsterRegistrationJobStatus
   -> FraudsterRegistrationJobSummary)
-> Parser (Maybe JobProgress)
-> Parser
     (Maybe Text
      -> Maybe FraudsterRegistrationJobStatus
      -> FraudsterRegistrationJobSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe JobProgress)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"JobProgress")
            Parser
  (Maybe Text
   -> Maybe FraudsterRegistrationJobStatus
   -> FraudsterRegistrationJobSummary)
-> Parser (Maybe Text)
-> Parser
     (Maybe FraudsterRegistrationJobStatus
      -> FraudsterRegistrationJobSummary)
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
"DomainId")
            Parser
  (Maybe FraudsterRegistrationJobStatus
   -> FraudsterRegistrationJobSummary)
-> Parser (Maybe FraudsterRegistrationJobStatus)
-> Parser FraudsterRegistrationJobSummary
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe FraudsterRegistrationJobStatus)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"JobStatus")
      )

instance
  Prelude.Hashable
    FraudsterRegistrationJobSummary

instance
  Prelude.NFData
    FraudsterRegistrationJobSummary