{-# 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.CustomerProfiles.Types.IdentityResolutionJob where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import Amazonka.CustomerProfiles.Types.ExportingLocation
import Amazonka.CustomerProfiles.Types.IdentityResolutionJobStatus
import Amazonka.CustomerProfiles.Types.JobStats
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
data IdentityResolutionJob = IdentityResolutionJob'
{
IdentityResolutionJob -> Maybe Text
domainName :: Prelude.Maybe Prelude.Text,
IdentityResolutionJob -> Maybe ExportingLocation
exportingLocation :: Prelude.Maybe ExportingLocation,
IdentityResolutionJob -> Maybe POSIX
jobEndTime :: Prelude.Maybe Data.POSIX,
IdentityResolutionJob -> Maybe Text
jobId :: Prelude.Maybe Prelude.Text,
IdentityResolutionJob -> Maybe POSIX
jobStartTime :: Prelude.Maybe Data.POSIX,
IdentityResolutionJob -> Maybe JobStats
jobStats :: Prelude.Maybe JobStats,
IdentityResolutionJob -> Maybe Text
message :: Prelude.Maybe Prelude.Text,
IdentityResolutionJob -> Maybe IdentityResolutionJobStatus
status :: Prelude.Maybe IdentityResolutionJobStatus
}
deriving (IdentityResolutionJob -> IdentityResolutionJob -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: IdentityResolutionJob -> IdentityResolutionJob -> Bool
$c/= :: IdentityResolutionJob -> IdentityResolutionJob -> Bool
== :: IdentityResolutionJob -> IdentityResolutionJob -> Bool
$c== :: IdentityResolutionJob -> IdentityResolutionJob -> Bool
Prelude.Eq, ReadPrec [IdentityResolutionJob]
ReadPrec IdentityResolutionJob
Int -> ReadS IdentityResolutionJob
ReadS [IdentityResolutionJob]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [IdentityResolutionJob]
$creadListPrec :: ReadPrec [IdentityResolutionJob]
readPrec :: ReadPrec IdentityResolutionJob
$creadPrec :: ReadPrec IdentityResolutionJob
readList :: ReadS [IdentityResolutionJob]
$creadList :: ReadS [IdentityResolutionJob]
readsPrec :: Int -> ReadS IdentityResolutionJob
$creadsPrec :: Int -> ReadS IdentityResolutionJob
Prelude.Read, Int -> IdentityResolutionJob -> ShowS
[IdentityResolutionJob] -> ShowS
IdentityResolutionJob -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [IdentityResolutionJob] -> ShowS
$cshowList :: [IdentityResolutionJob] -> ShowS
show :: IdentityResolutionJob -> String
$cshow :: IdentityResolutionJob -> String
showsPrec :: Int -> IdentityResolutionJob -> ShowS
$cshowsPrec :: Int -> IdentityResolutionJob -> ShowS
Prelude.Show, forall x. Rep IdentityResolutionJob x -> IdentityResolutionJob
forall x. IdentityResolutionJob -> Rep IdentityResolutionJob x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep IdentityResolutionJob x -> IdentityResolutionJob
$cfrom :: forall x. IdentityResolutionJob -> Rep IdentityResolutionJob x
Prelude.Generic)
newIdentityResolutionJob ::
IdentityResolutionJob
newIdentityResolutionJob :: IdentityResolutionJob
newIdentityResolutionJob =
IdentityResolutionJob'
{ $sel:domainName:IdentityResolutionJob' :: Maybe Text
domainName =
forall a. Maybe a
Prelude.Nothing,
$sel:exportingLocation:IdentityResolutionJob' :: Maybe ExportingLocation
exportingLocation = forall a. Maybe a
Prelude.Nothing,
$sel:jobEndTime:IdentityResolutionJob' :: Maybe POSIX
jobEndTime = forall a. Maybe a
Prelude.Nothing,
$sel:jobId:IdentityResolutionJob' :: Maybe Text
jobId = forall a. Maybe a
Prelude.Nothing,
$sel:jobStartTime:IdentityResolutionJob' :: Maybe POSIX
jobStartTime = forall a. Maybe a
Prelude.Nothing,
$sel:jobStats:IdentityResolutionJob' :: Maybe JobStats
jobStats = forall a. Maybe a
Prelude.Nothing,
$sel:message:IdentityResolutionJob' :: Maybe Text
message = forall a. Maybe a
Prelude.Nothing,
$sel:status:IdentityResolutionJob' :: Maybe IdentityResolutionJobStatus
status = forall a. Maybe a
Prelude.Nothing
}
identityResolutionJob_domainName :: Lens.Lens' IdentityResolutionJob (Prelude.Maybe Prelude.Text)
identityResolutionJob_domainName :: Lens' IdentityResolutionJob (Maybe Text)
identityResolutionJob_domainName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\IdentityResolutionJob' {Maybe Text
domainName :: Maybe Text
$sel:domainName:IdentityResolutionJob' :: IdentityResolutionJob -> Maybe Text
domainName} -> Maybe Text
domainName) (\s :: IdentityResolutionJob
s@IdentityResolutionJob' {} Maybe Text
a -> IdentityResolutionJob
s {$sel:domainName:IdentityResolutionJob' :: Maybe Text
domainName = Maybe Text
a} :: IdentityResolutionJob)
identityResolutionJob_exportingLocation :: Lens.Lens' IdentityResolutionJob (Prelude.Maybe ExportingLocation)
identityResolutionJob_exportingLocation :: Lens' IdentityResolutionJob (Maybe ExportingLocation)
identityResolutionJob_exportingLocation = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\IdentityResolutionJob' {Maybe ExportingLocation
exportingLocation :: Maybe ExportingLocation
$sel:exportingLocation:IdentityResolutionJob' :: IdentityResolutionJob -> Maybe ExportingLocation
exportingLocation} -> Maybe ExportingLocation
exportingLocation) (\s :: IdentityResolutionJob
s@IdentityResolutionJob' {} Maybe ExportingLocation
a -> IdentityResolutionJob
s {$sel:exportingLocation:IdentityResolutionJob' :: Maybe ExportingLocation
exportingLocation = Maybe ExportingLocation
a} :: IdentityResolutionJob)
identityResolutionJob_jobEndTime :: Lens.Lens' IdentityResolutionJob (Prelude.Maybe Prelude.UTCTime)
identityResolutionJob_jobEndTime :: Lens' IdentityResolutionJob (Maybe UTCTime)
identityResolutionJob_jobEndTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\IdentityResolutionJob' {Maybe POSIX
jobEndTime :: Maybe POSIX
$sel:jobEndTime:IdentityResolutionJob' :: IdentityResolutionJob -> Maybe POSIX
jobEndTime} -> Maybe POSIX
jobEndTime) (\s :: IdentityResolutionJob
s@IdentityResolutionJob' {} Maybe POSIX
a -> IdentityResolutionJob
s {$sel:jobEndTime:IdentityResolutionJob' :: Maybe POSIX
jobEndTime = Maybe POSIX
a} :: IdentityResolutionJob) 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
identityResolutionJob_jobId :: Lens.Lens' IdentityResolutionJob (Prelude.Maybe Prelude.Text)
identityResolutionJob_jobId :: Lens' IdentityResolutionJob (Maybe Text)
identityResolutionJob_jobId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\IdentityResolutionJob' {Maybe Text
jobId :: Maybe Text
$sel:jobId:IdentityResolutionJob' :: IdentityResolutionJob -> Maybe Text
jobId} -> Maybe Text
jobId) (\s :: IdentityResolutionJob
s@IdentityResolutionJob' {} Maybe Text
a -> IdentityResolutionJob
s {$sel:jobId:IdentityResolutionJob' :: Maybe Text
jobId = Maybe Text
a} :: IdentityResolutionJob)
identityResolutionJob_jobStartTime :: Lens.Lens' IdentityResolutionJob (Prelude.Maybe Prelude.UTCTime)
identityResolutionJob_jobStartTime :: Lens' IdentityResolutionJob (Maybe UTCTime)
identityResolutionJob_jobStartTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\IdentityResolutionJob' {Maybe POSIX
jobStartTime :: Maybe POSIX
$sel:jobStartTime:IdentityResolutionJob' :: IdentityResolutionJob -> Maybe POSIX
jobStartTime} -> Maybe POSIX
jobStartTime) (\s :: IdentityResolutionJob
s@IdentityResolutionJob' {} Maybe POSIX
a -> IdentityResolutionJob
s {$sel:jobStartTime:IdentityResolutionJob' :: Maybe POSIX
jobStartTime = Maybe POSIX
a} :: IdentityResolutionJob) 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
identityResolutionJob_jobStats :: Lens.Lens' IdentityResolutionJob (Prelude.Maybe JobStats)
identityResolutionJob_jobStats :: Lens' IdentityResolutionJob (Maybe JobStats)
identityResolutionJob_jobStats = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\IdentityResolutionJob' {Maybe JobStats
jobStats :: Maybe JobStats
$sel:jobStats:IdentityResolutionJob' :: IdentityResolutionJob -> Maybe JobStats
jobStats} -> Maybe JobStats
jobStats) (\s :: IdentityResolutionJob
s@IdentityResolutionJob' {} Maybe JobStats
a -> IdentityResolutionJob
s {$sel:jobStats:IdentityResolutionJob' :: Maybe JobStats
jobStats = Maybe JobStats
a} :: IdentityResolutionJob)
identityResolutionJob_message :: Lens.Lens' IdentityResolutionJob (Prelude.Maybe Prelude.Text)
identityResolutionJob_message :: Lens' IdentityResolutionJob (Maybe Text)
identityResolutionJob_message = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\IdentityResolutionJob' {Maybe Text
message :: Maybe Text
$sel:message:IdentityResolutionJob' :: IdentityResolutionJob -> Maybe Text
message} -> Maybe Text
message) (\s :: IdentityResolutionJob
s@IdentityResolutionJob' {} Maybe Text
a -> IdentityResolutionJob
s {$sel:message:IdentityResolutionJob' :: Maybe Text
message = Maybe Text
a} :: IdentityResolutionJob)
identityResolutionJob_status :: Lens.Lens' IdentityResolutionJob (Prelude.Maybe IdentityResolutionJobStatus)
identityResolutionJob_status :: Lens' IdentityResolutionJob (Maybe IdentityResolutionJobStatus)
identityResolutionJob_status = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\IdentityResolutionJob' {Maybe IdentityResolutionJobStatus
status :: Maybe IdentityResolutionJobStatus
$sel:status:IdentityResolutionJob' :: IdentityResolutionJob -> Maybe IdentityResolutionJobStatus
status} -> Maybe IdentityResolutionJobStatus
status) (\s :: IdentityResolutionJob
s@IdentityResolutionJob' {} Maybe IdentityResolutionJobStatus
a -> IdentityResolutionJob
s {$sel:status:IdentityResolutionJob' :: Maybe IdentityResolutionJobStatus
status = Maybe IdentityResolutionJobStatus
a} :: IdentityResolutionJob)
instance Data.FromJSON IdentityResolutionJob where
parseJSON :: Value -> Parser IdentityResolutionJob
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"IdentityResolutionJob"
( \Object
x ->
Maybe Text
-> Maybe ExportingLocation
-> Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe JobStats
-> Maybe Text
-> Maybe IdentityResolutionJobStatus
-> IdentityResolutionJob
IdentityResolutionJob'
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
"DomainName")
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
"ExportingLocation")
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
"JobEndTime")
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
"JobStartTime")
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
"JobStats")
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
"Message")
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 IdentityResolutionJob where
hashWithSalt :: Int -> IdentityResolutionJob -> Int
hashWithSalt Int
_salt IdentityResolutionJob' {Maybe Text
Maybe POSIX
Maybe IdentityResolutionJobStatus
Maybe JobStats
Maybe ExportingLocation
status :: Maybe IdentityResolutionJobStatus
message :: Maybe Text
jobStats :: Maybe JobStats
jobStartTime :: Maybe POSIX
jobId :: Maybe Text
jobEndTime :: Maybe POSIX
exportingLocation :: Maybe ExportingLocation
domainName :: Maybe Text
$sel:status:IdentityResolutionJob' :: IdentityResolutionJob -> Maybe IdentityResolutionJobStatus
$sel:message:IdentityResolutionJob' :: IdentityResolutionJob -> Maybe Text
$sel:jobStats:IdentityResolutionJob' :: IdentityResolutionJob -> Maybe JobStats
$sel:jobStartTime:IdentityResolutionJob' :: IdentityResolutionJob -> Maybe POSIX
$sel:jobId:IdentityResolutionJob' :: IdentityResolutionJob -> Maybe Text
$sel:jobEndTime:IdentityResolutionJob' :: IdentityResolutionJob -> Maybe POSIX
$sel:exportingLocation:IdentityResolutionJob' :: IdentityResolutionJob -> Maybe ExportingLocation
$sel:domainName:IdentityResolutionJob' :: IdentityResolutionJob -> Maybe Text
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
domainName
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ExportingLocation
exportingLocation
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe POSIX
jobEndTime
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
jobId
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe POSIX
jobStartTime
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe JobStats
jobStats
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
message
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe IdentityResolutionJobStatus
status
instance Prelude.NFData IdentityResolutionJob where
rnf :: IdentityResolutionJob -> ()
rnf IdentityResolutionJob' {Maybe Text
Maybe POSIX
Maybe IdentityResolutionJobStatus
Maybe JobStats
Maybe ExportingLocation
status :: Maybe IdentityResolutionJobStatus
message :: Maybe Text
jobStats :: Maybe JobStats
jobStartTime :: Maybe POSIX
jobId :: Maybe Text
jobEndTime :: Maybe POSIX
exportingLocation :: Maybe ExportingLocation
domainName :: Maybe Text
$sel:status:IdentityResolutionJob' :: IdentityResolutionJob -> Maybe IdentityResolutionJobStatus
$sel:message:IdentityResolutionJob' :: IdentityResolutionJob -> Maybe Text
$sel:jobStats:IdentityResolutionJob' :: IdentityResolutionJob -> Maybe JobStats
$sel:jobStartTime:IdentityResolutionJob' :: IdentityResolutionJob -> Maybe POSIX
$sel:jobId:IdentityResolutionJob' :: IdentityResolutionJob -> Maybe Text
$sel:jobEndTime:IdentityResolutionJob' :: IdentityResolutionJob -> Maybe POSIX
$sel:exportingLocation:IdentityResolutionJob' :: IdentityResolutionJob -> Maybe ExportingLocation
$sel:domainName:IdentityResolutionJob' :: IdentityResolutionJob -> Maybe Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
domainName
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe ExportingLocation
exportingLocation
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
jobEndTime
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 POSIX
jobStartTime
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe JobStats
jobStats
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
message
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe IdentityResolutionJobStatus
status