{-# 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 #-}
module Amazonka.VoiceId.Types.FraudsterRegistrationJobSummary 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.JobProgress
data FraudsterRegistrationJobSummary = FraudsterRegistrationJobSummary'
{
FraudsterRegistrationJobSummary -> Maybe POSIX
createdAt :: Prelude.Maybe Data.POSIX,
FraudsterRegistrationJobSummary -> Maybe Text
domainId :: Prelude.Maybe Prelude.Text,
FraudsterRegistrationJobSummary -> Maybe POSIX
endedAt :: Prelude.Maybe Data.POSIX,
FraudsterRegistrationJobSummary -> Maybe FailureDetails
failureDetails :: Prelude.Maybe FailureDetails,
FraudsterRegistrationJobSummary -> Maybe Text
jobId :: Prelude.Maybe Prelude.Text,
FraudsterRegistrationJobSummary -> Maybe (Sensitive Text)
jobName :: Prelude.Maybe (Data.Sensitive Prelude.Text),
FraudsterRegistrationJobSummary -> Maybe JobProgress
jobProgress :: Prelude.Maybe JobProgress,
FraudsterRegistrationJobSummary
-> Maybe FraudsterRegistrationJobStatus
jobStatus :: Prelude.Maybe FraudsterRegistrationJobStatus
}
deriving (FraudsterRegistrationJobSummary
-> FraudsterRegistrationJobSummary -> Bool
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
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.
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)
newFraudsterRegistrationJobSummary ::
FraudsterRegistrationJobSummary
newFraudsterRegistrationJobSummary :: FraudsterRegistrationJobSummary
newFraudsterRegistrationJobSummary =
FraudsterRegistrationJobSummary'
{ $sel:createdAt:FraudsterRegistrationJobSummary' :: Maybe POSIX
createdAt =
forall a. Maybe a
Prelude.Nothing,
$sel:domainId:FraudsterRegistrationJobSummary' :: Maybe Text
domainId = forall a. Maybe a
Prelude.Nothing,
$sel:endedAt:FraudsterRegistrationJobSummary' :: Maybe POSIX
endedAt = forall a. Maybe a
Prelude.Nothing,
$sel:failureDetails:FraudsterRegistrationJobSummary' :: Maybe FailureDetails
failureDetails = forall a. Maybe a
Prelude.Nothing,
$sel:jobId:FraudsterRegistrationJobSummary' :: Maybe Text
jobId = forall a. Maybe a
Prelude.Nothing,
$sel:jobName:FraudsterRegistrationJobSummary' :: Maybe (Sensitive Text)
jobName = forall a. Maybe a
Prelude.Nothing,
$sel:jobProgress:FraudsterRegistrationJobSummary' :: Maybe JobProgress
jobProgress = forall a. Maybe a
Prelude.Nothing,
$sel:jobStatus:FraudsterRegistrationJobSummary' :: Maybe FraudsterRegistrationJobStatus
jobStatus = forall a. Maybe a
Prelude.Nothing
}
fraudsterRegistrationJobSummary_createdAt :: Lens.Lens' FraudsterRegistrationJobSummary (Prelude.Maybe Prelude.UTCTime)
fraudsterRegistrationJobSummary_createdAt :: Lens' FraudsterRegistrationJobSummary (Maybe UTCTime)
fraudsterRegistrationJobSummary_createdAt = 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) 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
fraudsterRegistrationJobSummary_domainId :: Lens.Lens' FraudsterRegistrationJobSummary (Prelude.Maybe Prelude.Text)
fraudsterRegistrationJobSummary_domainId :: Lens' FraudsterRegistrationJobSummary (Maybe Text)
fraudsterRegistrationJobSummary_domainId = 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)
fraudsterRegistrationJobSummary_endedAt :: Lens.Lens' FraudsterRegistrationJobSummary (Prelude.Maybe Prelude.UTCTime)
fraudsterRegistrationJobSummary_endedAt :: Lens' FraudsterRegistrationJobSummary (Maybe UTCTime)
fraudsterRegistrationJobSummary_endedAt = 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) 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
fraudsterRegistrationJobSummary_failureDetails :: Lens.Lens' FraudsterRegistrationJobSummary (Prelude.Maybe FailureDetails)
fraudsterRegistrationJobSummary_failureDetails :: Lens' FraudsterRegistrationJobSummary (Maybe FailureDetails)
fraudsterRegistrationJobSummary_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)
fraudsterRegistrationJobSummary_jobId :: Lens.Lens' FraudsterRegistrationJobSummary (Prelude.Maybe Prelude.Text)
fraudsterRegistrationJobSummary_jobId :: Lens' FraudsterRegistrationJobSummary (Maybe Text)
fraudsterRegistrationJobSummary_jobId = 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)
fraudsterRegistrationJobSummary_jobName :: Lens.Lens' FraudsterRegistrationJobSummary (Prelude.Maybe Prelude.Text)
fraudsterRegistrationJobSummary_jobName :: Lens' FraudsterRegistrationJobSummary (Maybe Text)
fraudsterRegistrationJobSummary_jobName = 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) 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
fraudsterRegistrationJobSummary_jobProgress :: Lens.Lens' FraudsterRegistrationJobSummary (Prelude.Maybe JobProgress)
fraudsterRegistrationJobSummary_jobProgress :: Lens' FraudsterRegistrationJobSummary (Maybe JobProgress)
fraudsterRegistrationJobSummary_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)
fraudsterRegistrationJobSummary_jobStatus :: Lens.Lens' FraudsterRegistrationJobSummary (Prelude.Maybe FraudsterRegistrationJobStatus)
fraudsterRegistrationJobSummary_jobStatus :: Lens'
FraudsterRegistrationJobSummary
(Maybe FraudsterRegistrationJobStatus)
fraudsterRegistrationJobSummary_jobStatus = 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
Data.FromJSON
FraudsterRegistrationJobSummary
where
parseJSON :: Value -> Parser FraudsterRegistrationJobSummary
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"FraudsterRegistrationJobSummary"
( \Object
x ->
Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe FailureDetails
-> Maybe Text
-> Maybe (Sensitive Text)
-> Maybe JobProgress
-> Maybe FraudsterRegistrationJobStatus
-> FraudsterRegistrationJobSummary
FraudsterRegistrationJobSummary'
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
"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
"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")
)
instance
Prelude.Hashable
FraudsterRegistrationJobSummary
where
hashWithSalt :: Int -> FraudsterRegistrationJobSummary -> Int
hashWithSalt
Int
_salt
FraudsterRegistrationJobSummary' {Maybe Text
Maybe (Sensitive Text)
Maybe POSIX
Maybe FailureDetails
Maybe FraudsterRegistrationJobStatus
Maybe JobProgress
jobStatus :: Maybe FraudsterRegistrationJobStatus
jobProgress :: Maybe JobProgress
jobName :: Maybe (Sensitive Text)
jobId :: Maybe Text
failureDetails :: Maybe FailureDetails
endedAt :: Maybe POSIX
domainId :: Maybe Text
createdAt :: Maybe POSIX
$sel:jobStatus:FraudsterRegistrationJobSummary' :: FraudsterRegistrationJobSummary
-> Maybe FraudsterRegistrationJobStatus
$sel:jobProgress:FraudsterRegistrationJobSummary' :: FraudsterRegistrationJobSummary -> Maybe JobProgress
$sel:jobName:FraudsterRegistrationJobSummary' :: FraudsterRegistrationJobSummary -> Maybe (Sensitive Text)
$sel:jobId:FraudsterRegistrationJobSummary' :: FraudsterRegistrationJobSummary -> Maybe Text
$sel:failureDetails:FraudsterRegistrationJobSummary' :: FraudsterRegistrationJobSummary -> Maybe FailureDetails
$sel:endedAt:FraudsterRegistrationJobSummary' :: FraudsterRegistrationJobSummary -> Maybe POSIX
$sel:domainId:FraudsterRegistrationJobSummary' :: FraudsterRegistrationJobSummary -> Maybe Text
$sel:createdAt:FraudsterRegistrationJobSummary' :: FraudsterRegistrationJobSummary -> 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
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 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
instance
Prelude.NFData
FraudsterRegistrationJobSummary
where
rnf :: FraudsterRegistrationJobSummary -> ()
rnf FraudsterRegistrationJobSummary' {Maybe Text
Maybe (Sensitive Text)
Maybe POSIX
Maybe FailureDetails
Maybe FraudsterRegistrationJobStatus
Maybe JobProgress
jobStatus :: Maybe FraudsterRegistrationJobStatus
jobProgress :: Maybe JobProgress
jobName :: Maybe (Sensitive Text)
jobId :: Maybe Text
failureDetails :: Maybe FailureDetails
endedAt :: Maybe POSIX
domainId :: Maybe Text
createdAt :: Maybe POSIX
$sel:jobStatus:FraudsterRegistrationJobSummary' :: FraudsterRegistrationJobSummary
-> Maybe FraudsterRegistrationJobStatus
$sel:jobProgress:FraudsterRegistrationJobSummary' :: FraudsterRegistrationJobSummary -> Maybe JobProgress
$sel:jobName:FraudsterRegistrationJobSummary' :: FraudsterRegistrationJobSummary -> Maybe (Sensitive Text)
$sel:jobId:FraudsterRegistrationJobSummary' :: FraudsterRegistrationJobSummary -> Maybe Text
$sel:failureDetails:FraudsterRegistrationJobSummary' :: FraudsterRegistrationJobSummary -> Maybe FailureDetails
$sel:endedAt:FraudsterRegistrationJobSummary' :: FraudsterRegistrationJobSummary -> Maybe POSIX
$sel:domainId:FraudsterRegistrationJobSummary' :: FraudsterRegistrationJobSummary -> Maybe Text
$sel:createdAt:FraudsterRegistrationJobSummary' :: FraudsterRegistrationJobSummary -> 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
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 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