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

import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
import Amazonka.VoiceId.Types.FailureDetails
import Amazonka.VoiceId.Types.FraudsterRegistrationJobStatus
import Amazonka.VoiceId.Types.InputDataConfig
import Amazonka.VoiceId.Types.JobProgress
import Amazonka.VoiceId.Types.OutputDataConfig
import Amazonka.VoiceId.Types.RegistrationConfig

-- | Contains all the information about a fraudster registration job.
--
-- /See:/ 'newFraudsterRegistrationJob' smart constructor.
data FraudsterRegistrationJob = FraudsterRegistrationJob'
  { -- | A timestamp showing the creation time of the fraudster registration job.
    FraudsterRegistrationJob -> Maybe POSIX
createdAt :: Prelude.Maybe Data.POSIX,
    -- | The IAM role Amazon Resource Name (ARN) that grants Voice ID permissions
    -- to access customer\'s buckets to read the input manifest file and write
    -- the job output file.
    FraudsterRegistrationJob -> Maybe Text
dataAccessRoleArn :: Prelude.Maybe Prelude.Text,
    -- | The identifier of the domain containing the fraudster registration job.
    FraudsterRegistrationJob -> Maybe Text
domainId :: Prelude.Maybe Prelude.Text,
    -- | A timestamp showing when the fraudster registration job ended.
    FraudsterRegistrationJob -> Maybe POSIX
endedAt :: Prelude.Maybe Data.POSIX,
    -- | 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.
    FraudsterRegistrationJob -> Maybe FailureDetails
failureDetails :: Prelude.Maybe FailureDetails,
    -- | The input data config containing an S3 URI for the input manifest file
    -- that contains the list of fraudster registration job requests.
    FraudsterRegistrationJob -> Maybe InputDataConfig
inputDataConfig :: Prelude.Maybe InputDataConfig,
    -- | The service-generated identifier for the fraudster registration job.
    FraudsterRegistrationJob -> Maybe Text
jobId :: Prelude.Maybe Prelude.Text,
    -- | The client-provided name for the fraudster registration job.
    FraudsterRegistrationJob -> Maybe (Sensitive Text)
jobName :: Prelude.Maybe (Data.Sensitive Prelude.Text),
    -- | Shows the completed percentage of registration requests listed in the
    -- input file.
    FraudsterRegistrationJob -> Maybe JobProgress
jobProgress :: Prelude.Maybe JobProgress,
    -- | The current status of the fraudster registration job.
    FraudsterRegistrationJob -> Maybe FraudsterRegistrationJobStatus
jobStatus :: Prelude.Maybe FraudsterRegistrationJobStatus,
    -- | The output data config containing the S3 location where you want Voice
    -- ID to write your job output file; you must also include a KMS key ID in
    -- order to encrypt the file.
    FraudsterRegistrationJob -> Maybe OutputDataConfig
outputDataConfig :: Prelude.Maybe OutputDataConfig,
    -- | The registration config containing details such as the action to take
    -- when a duplicate fraudster is detected, and the similarity threshold to
    -- use for detecting a duplicate fraudster.
    FraudsterRegistrationJob -> Maybe RegistrationConfig
registrationConfig :: Prelude.Maybe RegistrationConfig
  }
  deriving (FraudsterRegistrationJob -> FraudsterRegistrationJob -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: FraudsterRegistrationJob -> FraudsterRegistrationJob -> Bool
$c/= :: FraudsterRegistrationJob -> FraudsterRegistrationJob -> Bool
== :: FraudsterRegistrationJob -> FraudsterRegistrationJob -> Bool
$c== :: FraudsterRegistrationJob -> FraudsterRegistrationJob -> Bool
Prelude.Eq, Int -> FraudsterRegistrationJob -> ShowS
[FraudsterRegistrationJob] -> ShowS
FraudsterRegistrationJob -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [FraudsterRegistrationJob] -> ShowS
$cshowList :: [FraudsterRegistrationJob] -> ShowS
show :: FraudsterRegistrationJob -> String
$cshow :: FraudsterRegistrationJob -> String
showsPrec :: Int -> FraudsterRegistrationJob -> ShowS
$cshowsPrec :: Int -> FraudsterRegistrationJob -> ShowS
Prelude.Show, forall x.
Rep FraudsterRegistrationJob x -> FraudsterRegistrationJob
forall x.
FraudsterRegistrationJob -> Rep FraudsterRegistrationJob x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep FraudsterRegistrationJob x -> FraudsterRegistrationJob
$cfrom :: forall x.
FraudsterRegistrationJob -> Rep FraudsterRegistrationJob x
Prelude.Generic)

-- |
-- Create a value of 'FraudsterRegistrationJob' 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:
--
-- 'createdAt', 'fraudsterRegistrationJob_createdAt' - A timestamp showing the creation time of the fraudster registration job.
--
-- 'dataAccessRoleArn', 'fraudsterRegistrationJob_dataAccessRoleArn' - The IAM role Amazon Resource Name (ARN) that grants Voice ID permissions
-- to access customer\'s buckets to read the input manifest file and write
-- the job output file.
--
-- 'domainId', 'fraudsterRegistrationJob_domainId' - The identifier of the domain containing the fraudster registration job.
--
-- 'endedAt', 'fraudsterRegistrationJob_endedAt' - A timestamp showing when the fraudster registration job ended.
--
-- 'failureDetails', 'fraudsterRegistrationJob_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.
--
-- 'inputDataConfig', 'fraudsterRegistrationJob_inputDataConfig' - The input data config containing an S3 URI for the input manifest file
-- that contains the list of fraudster registration job requests.
--
-- 'jobId', 'fraudsterRegistrationJob_jobId' - The service-generated identifier for the fraudster registration job.
--
-- 'jobName', 'fraudsterRegistrationJob_jobName' - The client-provided name for the fraudster registration job.
--
-- 'jobProgress', 'fraudsterRegistrationJob_jobProgress' - Shows the completed percentage of registration requests listed in the
-- input file.
--
-- 'jobStatus', 'fraudsterRegistrationJob_jobStatus' - The current status of the fraudster registration job.
--
-- 'outputDataConfig', 'fraudsterRegistrationJob_outputDataConfig' - The output data config containing the S3 location where you want Voice
-- ID to write your job output file; you must also include a KMS key ID in
-- order to encrypt the file.
--
-- 'registrationConfig', 'fraudsterRegistrationJob_registrationConfig' - The registration config containing details such as the action to take
-- when a duplicate fraudster is detected, and the similarity threshold to
-- use for detecting a duplicate fraudster.
newFraudsterRegistrationJob ::
  FraudsterRegistrationJob
newFraudsterRegistrationJob :: FraudsterRegistrationJob
newFraudsterRegistrationJob =
  FraudsterRegistrationJob'
    { $sel:createdAt:FraudsterRegistrationJob' :: Maybe POSIX
createdAt =
        forall a. Maybe a
Prelude.Nothing,
      $sel:dataAccessRoleArn:FraudsterRegistrationJob' :: Maybe Text
dataAccessRoleArn = forall a. Maybe a
Prelude.Nothing,
      $sel:domainId:FraudsterRegistrationJob' :: Maybe Text
domainId = forall a. Maybe a
Prelude.Nothing,
      $sel:endedAt:FraudsterRegistrationJob' :: Maybe POSIX
endedAt = forall a. Maybe a
Prelude.Nothing,
      $sel:failureDetails:FraudsterRegistrationJob' :: Maybe FailureDetails
failureDetails = forall a. Maybe a
Prelude.Nothing,
      $sel:inputDataConfig:FraudsterRegistrationJob' :: Maybe InputDataConfig
inputDataConfig = forall a. Maybe a
Prelude.Nothing,
      $sel:jobId:FraudsterRegistrationJob' :: Maybe Text
jobId = forall a. Maybe a
Prelude.Nothing,
      $sel:jobName:FraudsterRegistrationJob' :: Maybe (Sensitive Text)
jobName = forall a. Maybe a
Prelude.Nothing,
      $sel:jobProgress:FraudsterRegistrationJob' :: Maybe JobProgress
jobProgress = forall a. Maybe a
Prelude.Nothing,
      $sel:jobStatus:FraudsterRegistrationJob' :: Maybe FraudsterRegistrationJobStatus
jobStatus = forall a. Maybe a
Prelude.Nothing,
      $sel:outputDataConfig:FraudsterRegistrationJob' :: Maybe OutputDataConfig
outputDataConfig = forall a. Maybe a
Prelude.Nothing,
      $sel:registrationConfig:FraudsterRegistrationJob' :: Maybe RegistrationConfig
registrationConfig = forall a. Maybe a
Prelude.Nothing
    }

-- | A timestamp showing the creation time of the fraudster registration job.
fraudsterRegistrationJob_createdAt :: Lens.Lens' FraudsterRegistrationJob (Prelude.Maybe Prelude.UTCTime)
fraudsterRegistrationJob_createdAt :: Lens' FraudsterRegistrationJob (Maybe UTCTime)
fraudsterRegistrationJob_createdAt = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\FraudsterRegistrationJob' {Maybe POSIX
createdAt :: Maybe POSIX
$sel:createdAt:FraudsterRegistrationJob' :: FraudsterRegistrationJob -> Maybe POSIX
createdAt} -> Maybe POSIX
createdAt) (\s :: FraudsterRegistrationJob
s@FraudsterRegistrationJob' {} Maybe POSIX
a -> FraudsterRegistrationJob
s {$sel:createdAt:FraudsterRegistrationJob' :: Maybe POSIX
createdAt = Maybe POSIX
a} :: FraudsterRegistrationJob) 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 IAM role Amazon Resource Name (ARN) that grants Voice ID permissions
-- to access customer\'s buckets to read the input manifest file and write
-- the job output file.
fraudsterRegistrationJob_dataAccessRoleArn :: Lens.Lens' FraudsterRegistrationJob (Prelude.Maybe Prelude.Text)
fraudsterRegistrationJob_dataAccessRoleArn :: Lens' FraudsterRegistrationJob (Maybe Text)
fraudsterRegistrationJob_dataAccessRoleArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\FraudsterRegistrationJob' {Maybe Text
dataAccessRoleArn :: Maybe Text
$sel:dataAccessRoleArn:FraudsterRegistrationJob' :: FraudsterRegistrationJob -> Maybe Text
dataAccessRoleArn} -> Maybe Text
dataAccessRoleArn) (\s :: FraudsterRegistrationJob
s@FraudsterRegistrationJob' {} Maybe Text
a -> FraudsterRegistrationJob
s {$sel:dataAccessRoleArn:FraudsterRegistrationJob' :: Maybe Text
dataAccessRoleArn = Maybe Text
a} :: FraudsterRegistrationJob)

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

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

-- | 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.
fraudsterRegistrationJob_failureDetails :: Lens.Lens' FraudsterRegistrationJob (Prelude.Maybe FailureDetails)
fraudsterRegistrationJob_failureDetails :: Lens' FraudsterRegistrationJob (Maybe FailureDetails)
fraudsterRegistrationJob_failureDetails = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\FraudsterRegistrationJob' {Maybe FailureDetails
failureDetails :: Maybe FailureDetails
$sel:failureDetails:FraudsterRegistrationJob' :: FraudsterRegistrationJob -> Maybe FailureDetails
failureDetails} -> Maybe FailureDetails
failureDetails) (\s :: FraudsterRegistrationJob
s@FraudsterRegistrationJob' {} Maybe FailureDetails
a -> FraudsterRegistrationJob
s {$sel:failureDetails:FraudsterRegistrationJob' :: Maybe FailureDetails
failureDetails = Maybe FailureDetails
a} :: FraudsterRegistrationJob)

-- | The input data config containing an S3 URI for the input manifest file
-- that contains the list of fraudster registration job requests.
fraudsterRegistrationJob_inputDataConfig :: Lens.Lens' FraudsterRegistrationJob (Prelude.Maybe InputDataConfig)
fraudsterRegistrationJob_inputDataConfig :: Lens' FraudsterRegistrationJob (Maybe InputDataConfig)
fraudsterRegistrationJob_inputDataConfig = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\FraudsterRegistrationJob' {Maybe InputDataConfig
inputDataConfig :: Maybe InputDataConfig
$sel:inputDataConfig:FraudsterRegistrationJob' :: FraudsterRegistrationJob -> Maybe InputDataConfig
inputDataConfig} -> Maybe InputDataConfig
inputDataConfig) (\s :: FraudsterRegistrationJob
s@FraudsterRegistrationJob' {} Maybe InputDataConfig
a -> FraudsterRegistrationJob
s {$sel:inputDataConfig:FraudsterRegistrationJob' :: Maybe InputDataConfig
inputDataConfig = Maybe InputDataConfig
a} :: FraudsterRegistrationJob)

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

-- | The client-provided name for the fraudster registration job.
fraudsterRegistrationJob_jobName :: Lens.Lens' FraudsterRegistrationJob (Prelude.Maybe Prelude.Text)
fraudsterRegistrationJob_jobName :: Lens' FraudsterRegistrationJob (Maybe Text)
fraudsterRegistrationJob_jobName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\FraudsterRegistrationJob' {Maybe (Sensitive Text)
jobName :: Maybe (Sensitive Text)
$sel:jobName:FraudsterRegistrationJob' :: FraudsterRegistrationJob -> Maybe (Sensitive Text)
jobName} -> Maybe (Sensitive Text)
jobName) (\s :: FraudsterRegistrationJob
s@FraudsterRegistrationJob' {} Maybe (Sensitive Text)
a -> FraudsterRegistrationJob
s {$sel:jobName:FraudsterRegistrationJob' :: Maybe (Sensitive Text)
jobName = Maybe (Sensitive Text)
a} :: FraudsterRegistrationJob) 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. Iso' (Sensitive a) a
Data._Sensitive

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

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

-- | The output data config containing the S3 location where you want Voice
-- ID to write your job output file; you must also include a KMS key ID in
-- order to encrypt the file.
fraudsterRegistrationJob_outputDataConfig :: Lens.Lens' FraudsterRegistrationJob (Prelude.Maybe OutputDataConfig)
fraudsterRegistrationJob_outputDataConfig :: Lens' FraudsterRegistrationJob (Maybe OutputDataConfig)
fraudsterRegistrationJob_outputDataConfig = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\FraudsterRegistrationJob' {Maybe OutputDataConfig
outputDataConfig :: Maybe OutputDataConfig
$sel:outputDataConfig:FraudsterRegistrationJob' :: FraudsterRegistrationJob -> Maybe OutputDataConfig
outputDataConfig} -> Maybe OutputDataConfig
outputDataConfig) (\s :: FraudsterRegistrationJob
s@FraudsterRegistrationJob' {} Maybe OutputDataConfig
a -> FraudsterRegistrationJob
s {$sel:outputDataConfig:FraudsterRegistrationJob' :: Maybe OutputDataConfig
outputDataConfig = Maybe OutputDataConfig
a} :: FraudsterRegistrationJob)

-- | The registration config containing details such as the action to take
-- when a duplicate fraudster is detected, and the similarity threshold to
-- use for detecting a duplicate fraudster.
fraudsterRegistrationJob_registrationConfig :: Lens.Lens' FraudsterRegistrationJob (Prelude.Maybe RegistrationConfig)
fraudsterRegistrationJob_registrationConfig :: Lens' FraudsterRegistrationJob (Maybe RegistrationConfig)
fraudsterRegistrationJob_registrationConfig = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\FraudsterRegistrationJob' {Maybe RegistrationConfig
registrationConfig :: Maybe RegistrationConfig
$sel:registrationConfig:FraudsterRegistrationJob' :: FraudsterRegistrationJob -> Maybe RegistrationConfig
registrationConfig} -> Maybe RegistrationConfig
registrationConfig) (\s :: FraudsterRegistrationJob
s@FraudsterRegistrationJob' {} Maybe RegistrationConfig
a -> FraudsterRegistrationJob
s {$sel:registrationConfig:FraudsterRegistrationJob' :: Maybe RegistrationConfig
registrationConfig = Maybe RegistrationConfig
a} :: FraudsterRegistrationJob)

instance Data.FromJSON FraudsterRegistrationJob where
  parseJSON :: Value -> Parser FraudsterRegistrationJob
parseJSON =
    forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
      String
"FraudsterRegistrationJob"
      ( \Object
x ->
          Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe FailureDetails
-> Maybe InputDataConfig
-> Maybe Text
-> Maybe (Sensitive Text)
-> Maybe JobProgress
-> Maybe FraudsterRegistrationJobStatus
-> Maybe OutputDataConfig
-> Maybe RegistrationConfig
-> FraudsterRegistrationJob
FraudsterRegistrationJob'
            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
"CreatedAt")
            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
"DataAccessRoleArn")
            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
"DomainId")
            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
"EndedAt")
            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
"FailureDetails")
            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
"InputDataConfig")
            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
"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
"JobProgress")
            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
"JobStatus")
            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
"OutputDataConfig")
            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
"RegistrationConfig")
      )

instance Prelude.Hashable FraudsterRegistrationJob where
  hashWithSalt :: Int -> FraudsterRegistrationJob -> Int
hashWithSalt Int
_salt FraudsterRegistrationJob' {Maybe Text
Maybe (Sensitive Text)
Maybe POSIX
Maybe FailureDetails
Maybe FraudsterRegistrationJobStatus
Maybe InputDataConfig
Maybe JobProgress
Maybe OutputDataConfig
Maybe RegistrationConfig
registrationConfig :: Maybe RegistrationConfig
outputDataConfig :: Maybe OutputDataConfig
jobStatus :: Maybe FraudsterRegistrationJobStatus
jobProgress :: Maybe JobProgress
jobName :: Maybe (Sensitive Text)
jobId :: Maybe Text
inputDataConfig :: Maybe InputDataConfig
failureDetails :: Maybe FailureDetails
endedAt :: Maybe POSIX
domainId :: Maybe Text
dataAccessRoleArn :: Maybe Text
createdAt :: Maybe POSIX
$sel:registrationConfig:FraudsterRegistrationJob' :: FraudsterRegistrationJob -> Maybe RegistrationConfig
$sel:outputDataConfig:FraudsterRegistrationJob' :: FraudsterRegistrationJob -> Maybe OutputDataConfig
$sel:jobStatus:FraudsterRegistrationJob' :: FraudsterRegistrationJob -> Maybe FraudsterRegistrationJobStatus
$sel:jobProgress:FraudsterRegistrationJob' :: FraudsterRegistrationJob -> Maybe JobProgress
$sel:jobName:FraudsterRegistrationJob' :: FraudsterRegistrationJob -> Maybe (Sensitive Text)
$sel:jobId:FraudsterRegistrationJob' :: FraudsterRegistrationJob -> Maybe Text
$sel:inputDataConfig:FraudsterRegistrationJob' :: FraudsterRegistrationJob -> Maybe InputDataConfig
$sel:failureDetails:FraudsterRegistrationJob' :: FraudsterRegistrationJob -> Maybe FailureDetails
$sel:endedAt:FraudsterRegistrationJob' :: FraudsterRegistrationJob -> Maybe POSIX
$sel:domainId:FraudsterRegistrationJob' :: FraudsterRegistrationJob -> Maybe Text
$sel:dataAccessRoleArn:FraudsterRegistrationJob' :: FraudsterRegistrationJob -> Maybe Text
$sel:createdAt:FraudsterRegistrationJob' :: FraudsterRegistrationJob -> Maybe POSIX
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe POSIX
createdAt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
dataAccessRoleArn
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
domainId
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe POSIX
endedAt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe FailureDetails
failureDetails
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe InputDataConfig
inputDataConfig
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
jobId
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (Sensitive Text)
jobName
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe JobProgress
jobProgress
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe FraudsterRegistrationJobStatus
jobStatus
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe OutputDataConfig
outputDataConfig
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe RegistrationConfig
registrationConfig

instance Prelude.NFData FraudsterRegistrationJob where
  rnf :: FraudsterRegistrationJob -> ()
rnf FraudsterRegistrationJob' {Maybe Text
Maybe (Sensitive Text)
Maybe POSIX
Maybe FailureDetails
Maybe FraudsterRegistrationJobStatus
Maybe InputDataConfig
Maybe JobProgress
Maybe OutputDataConfig
Maybe RegistrationConfig
registrationConfig :: Maybe RegistrationConfig
outputDataConfig :: Maybe OutputDataConfig
jobStatus :: Maybe FraudsterRegistrationJobStatus
jobProgress :: Maybe JobProgress
jobName :: Maybe (Sensitive Text)
jobId :: Maybe Text
inputDataConfig :: Maybe InputDataConfig
failureDetails :: Maybe FailureDetails
endedAt :: Maybe POSIX
domainId :: Maybe Text
dataAccessRoleArn :: Maybe Text
createdAt :: Maybe POSIX
$sel:registrationConfig:FraudsterRegistrationJob' :: FraudsterRegistrationJob -> Maybe RegistrationConfig
$sel:outputDataConfig:FraudsterRegistrationJob' :: FraudsterRegistrationJob -> Maybe OutputDataConfig
$sel:jobStatus:FraudsterRegistrationJob' :: FraudsterRegistrationJob -> Maybe FraudsterRegistrationJobStatus
$sel:jobProgress:FraudsterRegistrationJob' :: FraudsterRegistrationJob -> Maybe JobProgress
$sel:jobName:FraudsterRegistrationJob' :: FraudsterRegistrationJob -> Maybe (Sensitive Text)
$sel:jobId:FraudsterRegistrationJob' :: FraudsterRegistrationJob -> Maybe Text
$sel:inputDataConfig:FraudsterRegistrationJob' :: FraudsterRegistrationJob -> Maybe InputDataConfig
$sel:failureDetails:FraudsterRegistrationJob' :: FraudsterRegistrationJob -> Maybe FailureDetails
$sel:endedAt:FraudsterRegistrationJob' :: FraudsterRegistrationJob -> Maybe POSIX
$sel:domainId:FraudsterRegistrationJob' :: FraudsterRegistrationJob -> Maybe Text
$sel:dataAccessRoleArn:FraudsterRegistrationJob' :: FraudsterRegistrationJob -> Maybe Text
$sel:createdAt:FraudsterRegistrationJob' :: FraudsterRegistrationJob -> Maybe POSIX
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
createdAt
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
dataAccessRoleArn
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
domainId
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
endedAt
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe FailureDetails
failureDetails
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe InputDataConfig
inputDataConfig
      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 (Sensitive Text)
jobName
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe JobProgress
jobProgress
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe FraudsterRegistrationJobStatus
jobStatus
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe OutputDataConfig
outputDataConfig
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe RegistrationConfig
registrationConfig