{-# 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.Comprehend.Types.DocumentClassificationJobProperties where
import Amazonka.Comprehend.Types.InputDataConfig
import Amazonka.Comprehend.Types.JobStatus
import Amazonka.Comprehend.Types.OutputDataConfig
import Amazonka.Comprehend.Types.VpcConfig
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data DocumentClassificationJobProperties = DocumentClassificationJobProperties'
{
DocumentClassificationJobProperties -> Maybe Text
jobId :: Prelude.Maybe Prelude.Text,
DocumentClassificationJobProperties -> Maybe Text
jobArn :: Prelude.Maybe Prelude.Text,
DocumentClassificationJobProperties -> Maybe Text
documentClassifierArn :: Prelude.Maybe Prelude.Text,
DocumentClassificationJobProperties -> Maybe Text
jobName :: Prelude.Maybe Prelude.Text,
DocumentClassificationJobProperties -> Maybe InputDataConfig
inputDataConfig :: Prelude.Maybe InputDataConfig,
DocumentClassificationJobProperties -> Maybe VpcConfig
vpcConfig :: Prelude.Maybe VpcConfig,
DocumentClassificationJobProperties -> Maybe Text
volumeKmsKeyId :: Prelude.Maybe Prelude.Text,
DocumentClassificationJobProperties -> Maybe POSIX
endTime :: Prelude.Maybe Core.POSIX,
DocumentClassificationJobProperties -> Maybe OutputDataConfig
outputDataConfig :: Prelude.Maybe OutputDataConfig,
DocumentClassificationJobProperties -> Maybe Text
dataAccessRoleArn :: Prelude.Maybe Prelude.Text,
DocumentClassificationJobProperties -> Maybe JobStatus
jobStatus :: Prelude.Maybe JobStatus,
DocumentClassificationJobProperties -> Maybe Text
message :: Prelude.Maybe Prelude.Text,
DocumentClassificationJobProperties -> Maybe POSIX
submitTime :: Prelude.Maybe Core.POSIX
}
deriving (DocumentClassificationJobProperties
-> DocumentClassificationJobProperties -> Bool
(DocumentClassificationJobProperties
-> DocumentClassificationJobProperties -> Bool)
-> (DocumentClassificationJobProperties
-> DocumentClassificationJobProperties -> Bool)
-> Eq DocumentClassificationJobProperties
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DocumentClassificationJobProperties
-> DocumentClassificationJobProperties -> Bool
$c/= :: DocumentClassificationJobProperties
-> DocumentClassificationJobProperties -> Bool
== :: DocumentClassificationJobProperties
-> DocumentClassificationJobProperties -> Bool
$c== :: DocumentClassificationJobProperties
-> DocumentClassificationJobProperties -> Bool
Prelude.Eq, ReadPrec [DocumentClassificationJobProperties]
ReadPrec DocumentClassificationJobProperties
Int -> ReadS DocumentClassificationJobProperties
ReadS [DocumentClassificationJobProperties]
(Int -> ReadS DocumentClassificationJobProperties)
-> ReadS [DocumentClassificationJobProperties]
-> ReadPrec DocumentClassificationJobProperties
-> ReadPrec [DocumentClassificationJobProperties]
-> Read DocumentClassificationJobProperties
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DocumentClassificationJobProperties]
$creadListPrec :: ReadPrec [DocumentClassificationJobProperties]
readPrec :: ReadPrec DocumentClassificationJobProperties
$creadPrec :: ReadPrec DocumentClassificationJobProperties
readList :: ReadS [DocumentClassificationJobProperties]
$creadList :: ReadS [DocumentClassificationJobProperties]
readsPrec :: Int -> ReadS DocumentClassificationJobProperties
$creadsPrec :: Int -> ReadS DocumentClassificationJobProperties
Prelude.Read, Int -> DocumentClassificationJobProperties -> ShowS
[DocumentClassificationJobProperties] -> ShowS
DocumentClassificationJobProperties -> String
(Int -> DocumentClassificationJobProperties -> ShowS)
-> (DocumentClassificationJobProperties -> String)
-> ([DocumentClassificationJobProperties] -> ShowS)
-> Show DocumentClassificationJobProperties
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DocumentClassificationJobProperties] -> ShowS
$cshowList :: [DocumentClassificationJobProperties] -> ShowS
show :: DocumentClassificationJobProperties -> String
$cshow :: DocumentClassificationJobProperties -> String
showsPrec :: Int -> DocumentClassificationJobProperties -> ShowS
$cshowsPrec :: Int -> DocumentClassificationJobProperties -> ShowS
Prelude.Show, (forall x.
DocumentClassificationJobProperties
-> Rep DocumentClassificationJobProperties x)
-> (forall x.
Rep DocumentClassificationJobProperties x
-> DocumentClassificationJobProperties)
-> Generic DocumentClassificationJobProperties
forall x.
Rep DocumentClassificationJobProperties x
-> DocumentClassificationJobProperties
forall x.
DocumentClassificationJobProperties
-> Rep DocumentClassificationJobProperties x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DocumentClassificationJobProperties x
-> DocumentClassificationJobProperties
$cfrom :: forall x.
DocumentClassificationJobProperties
-> Rep DocumentClassificationJobProperties x
Prelude.Generic)
newDocumentClassificationJobProperties ::
DocumentClassificationJobProperties
newDocumentClassificationJobProperties :: DocumentClassificationJobProperties
newDocumentClassificationJobProperties =
DocumentClassificationJobProperties' :: Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe InputDataConfig
-> Maybe VpcConfig
-> Maybe Text
-> Maybe POSIX
-> Maybe OutputDataConfig
-> Maybe Text
-> Maybe JobStatus
-> Maybe Text
-> Maybe POSIX
-> DocumentClassificationJobProperties
DocumentClassificationJobProperties'
{ $sel:jobId:DocumentClassificationJobProperties' :: Maybe Text
jobId =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:jobArn:DocumentClassificationJobProperties' :: Maybe Text
jobArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:documentClassifierArn:DocumentClassificationJobProperties' :: Maybe Text
documentClassifierArn =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:jobName:DocumentClassificationJobProperties' :: Maybe Text
jobName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:inputDataConfig:DocumentClassificationJobProperties' :: Maybe InputDataConfig
inputDataConfig = Maybe InputDataConfig
forall a. Maybe a
Prelude.Nothing,
$sel:vpcConfig:DocumentClassificationJobProperties' :: Maybe VpcConfig
vpcConfig = Maybe VpcConfig
forall a. Maybe a
Prelude.Nothing,
$sel:volumeKmsKeyId:DocumentClassificationJobProperties' :: Maybe Text
volumeKmsKeyId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:endTime:DocumentClassificationJobProperties' :: Maybe POSIX
endTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:outputDataConfig:DocumentClassificationJobProperties' :: Maybe OutputDataConfig
outputDataConfig = Maybe OutputDataConfig
forall a. Maybe a
Prelude.Nothing,
$sel:dataAccessRoleArn:DocumentClassificationJobProperties' :: Maybe Text
dataAccessRoleArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:jobStatus:DocumentClassificationJobProperties' :: Maybe JobStatus
jobStatus = Maybe JobStatus
forall a. Maybe a
Prelude.Nothing,
$sel:message:DocumentClassificationJobProperties' :: Maybe Text
message = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:submitTime:DocumentClassificationJobProperties' :: Maybe POSIX
submitTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing
}
documentClassificationJobProperties_jobId :: Lens.Lens' DocumentClassificationJobProperties (Prelude.Maybe Prelude.Text)
documentClassificationJobProperties_jobId :: (Maybe Text -> f (Maybe Text))
-> DocumentClassificationJobProperties
-> f DocumentClassificationJobProperties
documentClassificationJobProperties_jobId = (DocumentClassificationJobProperties -> Maybe Text)
-> (DocumentClassificationJobProperties
-> Maybe Text -> DocumentClassificationJobProperties)
-> Lens
DocumentClassificationJobProperties
DocumentClassificationJobProperties
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DocumentClassificationJobProperties' {Maybe Text
jobId :: Maybe Text
$sel:jobId:DocumentClassificationJobProperties' :: DocumentClassificationJobProperties -> Maybe Text
jobId} -> Maybe Text
jobId) (\s :: DocumentClassificationJobProperties
s@DocumentClassificationJobProperties' {} Maybe Text
a -> DocumentClassificationJobProperties
s {$sel:jobId:DocumentClassificationJobProperties' :: Maybe Text
jobId = Maybe Text
a} :: DocumentClassificationJobProperties)
documentClassificationJobProperties_jobArn :: Lens.Lens' DocumentClassificationJobProperties (Prelude.Maybe Prelude.Text)
documentClassificationJobProperties_jobArn :: (Maybe Text -> f (Maybe Text))
-> DocumentClassificationJobProperties
-> f DocumentClassificationJobProperties
documentClassificationJobProperties_jobArn = (DocumentClassificationJobProperties -> Maybe Text)
-> (DocumentClassificationJobProperties
-> Maybe Text -> DocumentClassificationJobProperties)
-> Lens
DocumentClassificationJobProperties
DocumentClassificationJobProperties
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DocumentClassificationJobProperties' {Maybe Text
jobArn :: Maybe Text
$sel:jobArn:DocumentClassificationJobProperties' :: DocumentClassificationJobProperties -> Maybe Text
jobArn} -> Maybe Text
jobArn) (\s :: DocumentClassificationJobProperties
s@DocumentClassificationJobProperties' {} Maybe Text
a -> DocumentClassificationJobProperties
s {$sel:jobArn:DocumentClassificationJobProperties' :: Maybe Text
jobArn = Maybe Text
a} :: DocumentClassificationJobProperties)
documentClassificationJobProperties_documentClassifierArn :: Lens.Lens' DocumentClassificationJobProperties (Prelude.Maybe Prelude.Text)
documentClassificationJobProperties_documentClassifierArn :: (Maybe Text -> f (Maybe Text))
-> DocumentClassificationJobProperties
-> f DocumentClassificationJobProperties
documentClassificationJobProperties_documentClassifierArn = (DocumentClassificationJobProperties -> Maybe Text)
-> (DocumentClassificationJobProperties
-> Maybe Text -> DocumentClassificationJobProperties)
-> Lens
DocumentClassificationJobProperties
DocumentClassificationJobProperties
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DocumentClassificationJobProperties' {Maybe Text
documentClassifierArn :: Maybe Text
$sel:documentClassifierArn:DocumentClassificationJobProperties' :: DocumentClassificationJobProperties -> Maybe Text
documentClassifierArn} -> Maybe Text
documentClassifierArn) (\s :: DocumentClassificationJobProperties
s@DocumentClassificationJobProperties' {} Maybe Text
a -> DocumentClassificationJobProperties
s {$sel:documentClassifierArn:DocumentClassificationJobProperties' :: Maybe Text
documentClassifierArn = Maybe Text
a} :: DocumentClassificationJobProperties)
documentClassificationJobProperties_jobName :: Lens.Lens' DocumentClassificationJobProperties (Prelude.Maybe Prelude.Text)
documentClassificationJobProperties_jobName :: (Maybe Text -> f (Maybe Text))
-> DocumentClassificationJobProperties
-> f DocumentClassificationJobProperties
documentClassificationJobProperties_jobName = (DocumentClassificationJobProperties -> Maybe Text)
-> (DocumentClassificationJobProperties
-> Maybe Text -> DocumentClassificationJobProperties)
-> Lens
DocumentClassificationJobProperties
DocumentClassificationJobProperties
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DocumentClassificationJobProperties' {Maybe Text
jobName :: Maybe Text
$sel:jobName:DocumentClassificationJobProperties' :: DocumentClassificationJobProperties -> Maybe Text
jobName} -> Maybe Text
jobName) (\s :: DocumentClassificationJobProperties
s@DocumentClassificationJobProperties' {} Maybe Text
a -> DocumentClassificationJobProperties
s {$sel:jobName:DocumentClassificationJobProperties' :: Maybe Text
jobName = Maybe Text
a} :: DocumentClassificationJobProperties)
documentClassificationJobProperties_inputDataConfig :: Lens.Lens' DocumentClassificationJobProperties (Prelude.Maybe InputDataConfig)
documentClassificationJobProperties_inputDataConfig :: (Maybe InputDataConfig -> f (Maybe InputDataConfig))
-> DocumentClassificationJobProperties
-> f DocumentClassificationJobProperties
documentClassificationJobProperties_inputDataConfig = (DocumentClassificationJobProperties -> Maybe InputDataConfig)
-> (DocumentClassificationJobProperties
-> Maybe InputDataConfig -> DocumentClassificationJobProperties)
-> Lens
DocumentClassificationJobProperties
DocumentClassificationJobProperties
(Maybe InputDataConfig)
(Maybe InputDataConfig)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DocumentClassificationJobProperties' {Maybe InputDataConfig
inputDataConfig :: Maybe InputDataConfig
$sel:inputDataConfig:DocumentClassificationJobProperties' :: DocumentClassificationJobProperties -> Maybe InputDataConfig
inputDataConfig} -> Maybe InputDataConfig
inputDataConfig) (\s :: DocumentClassificationJobProperties
s@DocumentClassificationJobProperties' {} Maybe InputDataConfig
a -> DocumentClassificationJobProperties
s {$sel:inputDataConfig:DocumentClassificationJobProperties' :: Maybe InputDataConfig
inputDataConfig = Maybe InputDataConfig
a} :: DocumentClassificationJobProperties)
documentClassificationJobProperties_vpcConfig :: Lens.Lens' DocumentClassificationJobProperties (Prelude.Maybe VpcConfig)
documentClassificationJobProperties_vpcConfig :: (Maybe VpcConfig -> f (Maybe VpcConfig))
-> DocumentClassificationJobProperties
-> f DocumentClassificationJobProperties
documentClassificationJobProperties_vpcConfig = (DocumentClassificationJobProperties -> Maybe VpcConfig)
-> (DocumentClassificationJobProperties
-> Maybe VpcConfig -> DocumentClassificationJobProperties)
-> Lens
DocumentClassificationJobProperties
DocumentClassificationJobProperties
(Maybe VpcConfig)
(Maybe VpcConfig)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DocumentClassificationJobProperties' {Maybe VpcConfig
vpcConfig :: Maybe VpcConfig
$sel:vpcConfig:DocumentClassificationJobProperties' :: DocumentClassificationJobProperties -> Maybe VpcConfig
vpcConfig} -> Maybe VpcConfig
vpcConfig) (\s :: DocumentClassificationJobProperties
s@DocumentClassificationJobProperties' {} Maybe VpcConfig
a -> DocumentClassificationJobProperties
s {$sel:vpcConfig:DocumentClassificationJobProperties' :: Maybe VpcConfig
vpcConfig = Maybe VpcConfig
a} :: DocumentClassificationJobProperties)
documentClassificationJobProperties_volumeKmsKeyId :: Lens.Lens' DocumentClassificationJobProperties (Prelude.Maybe Prelude.Text)
documentClassificationJobProperties_volumeKmsKeyId :: (Maybe Text -> f (Maybe Text))
-> DocumentClassificationJobProperties
-> f DocumentClassificationJobProperties
documentClassificationJobProperties_volumeKmsKeyId = (DocumentClassificationJobProperties -> Maybe Text)
-> (DocumentClassificationJobProperties
-> Maybe Text -> DocumentClassificationJobProperties)
-> Lens
DocumentClassificationJobProperties
DocumentClassificationJobProperties
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DocumentClassificationJobProperties' {Maybe Text
volumeKmsKeyId :: Maybe Text
$sel:volumeKmsKeyId:DocumentClassificationJobProperties' :: DocumentClassificationJobProperties -> Maybe Text
volumeKmsKeyId} -> Maybe Text
volumeKmsKeyId) (\s :: DocumentClassificationJobProperties
s@DocumentClassificationJobProperties' {} Maybe Text
a -> DocumentClassificationJobProperties
s {$sel:volumeKmsKeyId:DocumentClassificationJobProperties' :: Maybe Text
volumeKmsKeyId = Maybe Text
a} :: DocumentClassificationJobProperties)
documentClassificationJobProperties_endTime :: Lens.Lens' DocumentClassificationJobProperties (Prelude.Maybe Prelude.UTCTime)
documentClassificationJobProperties_endTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> DocumentClassificationJobProperties
-> f DocumentClassificationJobProperties
documentClassificationJobProperties_endTime = (DocumentClassificationJobProperties -> Maybe POSIX)
-> (DocumentClassificationJobProperties
-> Maybe POSIX -> DocumentClassificationJobProperties)
-> Lens
DocumentClassificationJobProperties
DocumentClassificationJobProperties
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DocumentClassificationJobProperties' {Maybe POSIX
endTime :: Maybe POSIX
$sel:endTime:DocumentClassificationJobProperties' :: DocumentClassificationJobProperties -> Maybe POSIX
endTime} -> Maybe POSIX
endTime) (\s :: DocumentClassificationJobProperties
s@DocumentClassificationJobProperties' {} Maybe POSIX
a -> DocumentClassificationJobProperties
s {$sel:endTime:DocumentClassificationJobProperties' :: Maybe POSIX
endTime = Maybe POSIX
a} :: DocumentClassificationJobProperties) ((Maybe POSIX -> f (Maybe POSIX))
-> DocumentClassificationJobProperties
-> f DocumentClassificationJobProperties)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> DocumentClassificationJobProperties
-> f DocumentClassificationJobProperties
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
documentClassificationJobProperties_outputDataConfig :: Lens.Lens' DocumentClassificationJobProperties (Prelude.Maybe OutputDataConfig)
documentClassificationJobProperties_outputDataConfig :: (Maybe OutputDataConfig -> f (Maybe OutputDataConfig))
-> DocumentClassificationJobProperties
-> f DocumentClassificationJobProperties
documentClassificationJobProperties_outputDataConfig = (DocumentClassificationJobProperties -> Maybe OutputDataConfig)
-> (DocumentClassificationJobProperties
-> Maybe OutputDataConfig -> DocumentClassificationJobProperties)
-> Lens
DocumentClassificationJobProperties
DocumentClassificationJobProperties
(Maybe OutputDataConfig)
(Maybe OutputDataConfig)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DocumentClassificationJobProperties' {Maybe OutputDataConfig
outputDataConfig :: Maybe OutputDataConfig
$sel:outputDataConfig:DocumentClassificationJobProperties' :: DocumentClassificationJobProperties -> Maybe OutputDataConfig
outputDataConfig} -> Maybe OutputDataConfig
outputDataConfig) (\s :: DocumentClassificationJobProperties
s@DocumentClassificationJobProperties' {} Maybe OutputDataConfig
a -> DocumentClassificationJobProperties
s {$sel:outputDataConfig:DocumentClassificationJobProperties' :: Maybe OutputDataConfig
outputDataConfig = Maybe OutputDataConfig
a} :: DocumentClassificationJobProperties)
documentClassificationJobProperties_dataAccessRoleArn :: Lens.Lens' DocumentClassificationJobProperties (Prelude.Maybe Prelude.Text)
documentClassificationJobProperties_dataAccessRoleArn :: (Maybe Text -> f (Maybe Text))
-> DocumentClassificationJobProperties
-> f DocumentClassificationJobProperties
documentClassificationJobProperties_dataAccessRoleArn = (DocumentClassificationJobProperties -> Maybe Text)
-> (DocumentClassificationJobProperties
-> Maybe Text -> DocumentClassificationJobProperties)
-> Lens
DocumentClassificationJobProperties
DocumentClassificationJobProperties
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DocumentClassificationJobProperties' {Maybe Text
dataAccessRoleArn :: Maybe Text
$sel:dataAccessRoleArn:DocumentClassificationJobProperties' :: DocumentClassificationJobProperties -> Maybe Text
dataAccessRoleArn} -> Maybe Text
dataAccessRoleArn) (\s :: DocumentClassificationJobProperties
s@DocumentClassificationJobProperties' {} Maybe Text
a -> DocumentClassificationJobProperties
s {$sel:dataAccessRoleArn:DocumentClassificationJobProperties' :: Maybe Text
dataAccessRoleArn = Maybe Text
a} :: DocumentClassificationJobProperties)
documentClassificationJobProperties_jobStatus :: Lens.Lens' DocumentClassificationJobProperties (Prelude.Maybe JobStatus)
documentClassificationJobProperties_jobStatus :: (Maybe JobStatus -> f (Maybe JobStatus))
-> DocumentClassificationJobProperties
-> f DocumentClassificationJobProperties
documentClassificationJobProperties_jobStatus = (DocumentClassificationJobProperties -> Maybe JobStatus)
-> (DocumentClassificationJobProperties
-> Maybe JobStatus -> DocumentClassificationJobProperties)
-> Lens
DocumentClassificationJobProperties
DocumentClassificationJobProperties
(Maybe JobStatus)
(Maybe JobStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DocumentClassificationJobProperties' {Maybe JobStatus
jobStatus :: Maybe JobStatus
$sel:jobStatus:DocumentClassificationJobProperties' :: DocumentClassificationJobProperties -> Maybe JobStatus
jobStatus} -> Maybe JobStatus
jobStatus) (\s :: DocumentClassificationJobProperties
s@DocumentClassificationJobProperties' {} Maybe JobStatus
a -> DocumentClassificationJobProperties
s {$sel:jobStatus:DocumentClassificationJobProperties' :: Maybe JobStatus
jobStatus = Maybe JobStatus
a} :: DocumentClassificationJobProperties)
documentClassificationJobProperties_message :: Lens.Lens' DocumentClassificationJobProperties (Prelude.Maybe Prelude.Text)
documentClassificationJobProperties_message :: (Maybe Text -> f (Maybe Text))
-> DocumentClassificationJobProperties
-> f DocumentClassificationJobProperties
documentClassificationJobProperties_message = (DocumentClassificationJobProperties -> Maybe Text)
-> (DocumentClassificationJobProperties
-> Maybe Text -> DocumentClassificationJobProperties)
-> Lens
DocumentClassificationJobProperties
DocumentClassificationJobProperties
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DocumentClassificationJobProperties' {Maybe Text
message :: Maybe Text
$sel:message:DocumentClassificationJobProperties' :: DocumentClassificationJobProperties -> Maybe Text
message} -> Maybe Text
message) (\s :: DocumentClassificationJobProperties
s@DocumentClassificationJobProperties' {} Maybe Text
a -> DocumentClassificationJobProperties
s {$sel:message:DocumentClassificationJobProperties' :: Maybe Text
message = Maybe Text
a} :: DocumentClassificationJobProperties)
documentClassificationJobProperties_submitTime :: Lens.Lens' DocumentClassificationJobProperties (Prelude.Maybe Prelude.UTCTime)
documentClassificationJobProperties_submitTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> DocumentClassificationJobProperties
-> f DocumentClassificationJobProperties
documentClassificationJobProperties_submitTime = (DocumentClassificationJobProperties -> Maybe POSIX)
-> (DocumentClassificationJobProperties
-> Maybe POSIX -> DocumentClassificationJobProperties)
-> Lens
DocumentClassificationJobProperties
DocumentClassificationJobProperties
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DocumentClassificationJobProperties' {Maybe POSIX
submitTime :: Maybe POSIX
$sel:submitTime:DocumentClassificationJobProperties' :: DocumentClassificationJobProperties -> Maybe POSIX
submitTime} -> Maybe POSIX
submitTime) (\s :: DocumentClassificationJobProperties
s@DocumentClassificationJobProperties' {} Maybe POSIX
a -> DocumentClassificationJobProperties
s {$sel:submitTime:DocumentClassificationJobProperties' :: Maybe POSIX
submitTime = Maybe POSIX
a} :: DocumentClassificationJobProperties) ((Maybe POSIX -> f (Maybe POSIX))
-> DocumentClassificationJobProperties
-> f DocumentClassificationJobProperties)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> DocumentClassificationJobProperties
-> f DocumentClassificationJobProperties
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
instance
Core.FromJSON
DocumentClassificationJobProperties
where
parseJSON :: Value -> Parser DocumentClassificationJobProperties
parseJSON =
String
-> (Object -> Parser DocumentClassificationJobProperties)
-> Value
-> Parser DocumentClassificationJobProperties
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"DocumentClassificationJobProperties"
( \Object
x ->
Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe InputDataConfig
-> Maybe VpcConfig
-> Maybe Text
-> Maybe POSIX
-> Maybe OutputDataConfig
-> Maybe Text
-> Maybe JobStatus
-> Maybe Text
-> Maybe POSIX
-> DocumentClassificationJobProperties
DocumentClassificationJobProperties'
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe InputDataConfig
-> Maybe VpcConfig
-> Maybe Text
-> Maybe POSIX
-> Maybe OutputDataConfig
-> Maybe Text
-> Maybe JobStatus
-> Maybe Text
-> Maybe POSIX
-> DocumentClassificationJobProperties)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe InputDataConfig
-> Maybe VpcConfig
-> Maybe Text
-> Maybe POSIX
-> Maybe OutputDataConfig
-> Maybe Text
-> Maybe JobStatus
-> Maybe Text
-> Maybe POSIX
-> DocumentClassificationJobProperties)
forall (f :: * -> *) a b. Functor 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 Text
-> Maybe Text
-> Maybe Text
-> Maybe InputDataConfig
-> Maybe VpcConfig
-> Maybe Text
-> Maybe POSIX
-> Maybe OutputDataConfig
-> Maybe Text
-> Maybe JobStatus
-> Maybe Text
-> Maybe POSIX
-> DocumentClassificationJobProperties)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe InputDataConfig
-> Maybe VpcConfig
-> Maybe Text
-> Maybe POSIX
-> Maybe OutputDataConfig
-> Maybe Text
-> Maybe JobStatus
-> Maybe Text
-> Maybe POSIX
-> DocumentClassificationJobProperties)
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
"JobArn")
Parser
(Maybe Text
-> Maybe Text
-> Maybe InputDataConfig
-> Maybe VpcConfig
-> Maybe Text
-> Maybe POSIX
-> Maybe OutputDataConfig
-> Maybe Text
-> Maybe JobStatus
-> Maybe Text
-> Maybe POSIX
-> DocumentClassificationJobProperties)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe InputDataConfig
-> Maybe VpcConfig
-> Maybe Text
-> Maybe POSIX
-> Maybe OutputDataConfig
-> Maybe Text
-> Maybe JobStatus
-> Maybe Text
-> Maybe POSIX
-> DocumentClassificationJobProperties)
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
"DocumentClassifierArn")
Parser
(Maybe Text
-> Maybe InputDataConfig
-> Maybe VpcConfig
-> Maybe Text
-> Maybe POSIX
-> Maybe OutputDataConfig
-> Maybe Text
-> Maybe JobStatus
-> Maybe Text
-> Maybe POSIX
-> DocumentClassificationJobProperties)
-> Parser (Maybe Text)
-> Parser
(Maybe InputDataConfig
-> Maybe VpcConfig
-> Maybe Text
-> Maybe POSIX
-> Maybe OutputDataConfig
-> Maybe Text
-> Maybe JobStatus
-> Maybe Text
-> Maybe POSIX
-> DocumentClassificationJobProperties)
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
"JobName")
Parser
(Maybe InputDataConfig
-> Maybe VpcConfig
-> Maybe Text
-> Maybe POSIX
-> Maybe OutputDataConfig
-> Maybe Text
-> Maybe JobStatus
-> Maybe Text
-> Maybe POSIX
-> DocumentClassificationJobProperties)
-> Parser (Maybe InputDataConfig)
-> Parser
(Maybe VpcConfig
-> Maybe Text
-> Maybe POSIX
-> Maybe OutputDataConfig
-> Maybe Text
-> Maybe JobStatus
-> Maybe Text
-> Maybe POSIX
-> DocumentClassificationJobProperties)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe InputDataConfig)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"InputDataConfig")
Parser
(Maybe VpcConfig
-> Maybe Text
-> Maybe POSIX
-> Maybe OutputDataConfig
-> Maybe Text
-> Maybe JobStatus
-> Maybe Text
-> Maybe POSIX
-> DocumentClassificationJobProperties)
-> Parser (Maybe VpcConfig)
-> Parser
(Maybe Text
-> Maybe POSIX
-> Maybe OutputDataConfig
-> Maybe Text
-> Maybe JobStatus
-> Maybe Text
-> Maybe POSIX
-> DocumentClassificationJobProperties)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe VpcConfig)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"VpcConfig")
Parser
(Maybe Text
-> Maybe POSIX
-> Maybe OutputDataConfig
-> Maybe Text
-> Maybe JobStatus
-> Maybe Text
-> Maybe POSIX
-> DocumentClassificationJobProperties)
-> Parser (Maybe Text)
-> Parser
(Maybe POSIX
-> Maybe OutputDataConfig
-> Maybe Text
-> Maybe JobStatus
-> Maybe Text
-> Maybe POSIX
-> DocumentClassificationJobProperties)
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
"VolumeKmsKeyId")
Parser
(Maybe POSIX
-> Maybe OutputDataConfig
-> Maybe Text
-> Maybe JobStatus
-> Maybe Text
-> Maybe POSIX
-> DocumentClassificationJobProperties)
-> Parser (Maybe POSIX)
-> Parser
(Maybe OutputDataConfig
-> Maybe Text
-> Maybe JobStatus
-> Maybe Text
-> Maybe POSIX
-> DocumentClassificationJobProperties)
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
"EndTime")
Parser
(Maybe OutputDataConfig
-> Maybe Text
-> Maybe JobStatus
-> Maybe Text
-> Maybe POSIX
-> DocumentClassificationJobProperties)
-> Parser (Maybe OutputDataConfig)
-> Parser
(Maybe Text
-> Maybe JobStatus
-> Maybe Text
-> Maybe POSIX
-> DocumentClassificationJobProperties)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe OutputDataConfig)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"OutputDataConfig")
Parser
(Maybe Text
-> Maybe JobStatus
-> Maybe Text
-> Maybe POSIX
-> DocumentClassificationJobProperties)
-> Parser (Maybe Text)
-> Parser
(Maybe JobStatus
-> Maybe Text
-> Maybe POSIX
-> DocumentClassificationJobProperties)
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
"DataAccessRoleArn")
Parser
(Maybe JobStatus
-> Maybe Text
-> Maybe POSIX
-> DocumentClassificationJobProperties)
-> Parser (Maybe JobStatus)
-> Parser
(Maybe Text -> Maybe POSIX -> DocumentClassificationJobProperties)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe JobStatus)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"JobStatus")
Parser
(Maybe Text -> Maybe POSIX -> DocumentClassificationJobProperties)
-> Parser (Maybe Text)
-> Parser (Maybe POSIX -> DocumentClassificationJobProperties)
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
"Message")
Parser (Maybe POSIX -> DocumentClassificationJobProperties)
-> Parser (Maybe POSIX)
-> Parser DocumentClassificationJobProperties
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
"SubmitTime")
)
instance
Prelude.Hashable
DocumentClassificationJobProperties
instance
Prelude.NFData
DocumentClassificationJobProperties