{-# 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.DominantLanguageDetectionJobProperties 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 DominantLanguageDetectionJobProperties = DominantLanguageDetectionJobProperties'
{
DominantLanguageDetectionJobProperties -> Maybe Text
jobId :: Prelude.Maybe Prelude.Text,
DominantLanguageDetectionJobProperties -> Maybe Text
jobArn :: Prelude.Maybe Prelude.Text,
DominantLanguageDetectionJobProperties -> Maybe Text
jobName :: Prelude.Maybe Prelude.Text,
DominantLanguageDetectionJobProperties -> Maybe InputDataConfig
inputDataConfig :: Prelude.Maybe InputDataConfig,
DominantLanguageDetectionJobProperties -> Maybe VpcConfig
vpcConfig :: Prelude.Maybe VpcConfig,
DominantLanguageDetectionJobProperties -> Maybe Text
volumeKmsKeyId :: Prelude.Maybe Prelude.Text,
DominantLanguageDetectionJobProperties -> Maybe POSIX
endTime :: Prelude.Maybe Core.POSIX,
DominantLanguageDetectionJobProperties -> Maybe OutputDataConfig
outputDataConfig :: Prelude.Maybe OutputDataConfig,
DominantLanguageDetectionJobProperties -> Maybe Text
dataAccessRoleArn :: Prelude.Maybe Prelude.Text,
DominantLanguageDetectionJobProperties -> Maybe JobStatus
jobStatus :: Prelude.Maybe JobStatus,
DominantLanguageDetectionJobProperties -> Maybe Text
message :: Prelude.Maybe Prelude.Text,
DominantLanguageDetectionJobProperties -> Maybe POSIX
submitTime :: Prelude.Maybe Core.POSIX
}
deriving (DominantLanguageDetectionJobProperties
-> DominantLanguageDetectionJobProperties -> Bool
(DominantLanguageDetectionJobProperties
-> DominantLanguageDetectionJobProperties -> Bool)
-> (DominantLanguageDetectionJobProperties
-> DominantLanguageDetectionJobProperties -> Bool)
-> Eq DominantLanguageDetectionJobProperties
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DominantLanguageDetectionJobProperties
-> DominantLanguageDetectionJobProperties -> Bool
$c/= :: DominantLanguageDetectionJobProperties
-> DominantLanguageDetectionJobProperties -> Bool
== :: DominantLanguageDetectionJobProperties
-> DominantLanguageDetectionJobProperties -> Bool
$c== :: DominantLanguageDetectionJobProperties
-> DominantLanguageDetectionJobProperties -> Bool
Prelude.Eq, ReadPrec [DominantLanguageDetectionJobProperties]
ReadPrec DominantLanguageDetectionJobProperties
Int -> ReadS DominantLanguageDetectionJobProperties
ReadS [DominantLanguageDetectionJobProperties]
(Int -> ReadS DominantLanguageDetectionJobProperties)
-> ReadS [DominantLanguageDetectionJobProperties]
-> ReadPrec DominantLanguageDetectionJobProperties
-> ReadPrec [DominantLanguageDetectionJobProperties]
-> Read DominantLanguageDetectionJobProperties
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DominantLanguageDetectionJobProperties]
$creadListPrec :: ReadPrec [DominantLanguageDetectionJobProperties]
readPrec :: ReadPrec DominantLanguageDetectionJobProperties
$creadPrec :: ReadPrec DominantLanguageDetectionJobProperties
readList :: ReadS [DominantLanguageDetectionJobProperties]
$creadList :: ReadS [DominantLanguageDetectionJobProperties]
readsPrec :: Int -> ReadS DominantLanguageDetectionJobProperties
$creadsPrec :: Int -> ReadS DominantLanguageDetectionJobProperties
Prelude.Read, Int -> DominantLanguageDetectionJobProperties -> ShowS
[DominantLanguageDetectionJobProperties] -> ShowS
DominantLanguageDetectionJobProperties -> String
(Int -> DominantLanguageDetectionJobProperties -> ShowS)
-> (DominantLanguageDetectionJobProperties -> String)
-> ([DominantLanguageDetectionJobProperties] -> ShowS)
-> Show DominantLanguageDetectionJobProperties
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DominantLanguageDetectionJobProperties] -> ShowS
$cshowList :: [DominantLanguageDetectionJobProperties] -> ShowS
show :: DominantLanguageDetectionJobProperties -> String
$cshow :: DominantLanguageDetectionJobProperties -> String
showsPrec :: Int -> DominantLanguageDetectionJobProperties -> ShowS
$cshowsPrec :: Int -> DominantLanguageDetectionJobProperties -> ShowS
Prelude.Show, (forall x.
DominantLanguageDetectionJobProperties
-> Rep DominantLanguageDetectionJobProperties x)
-> (forall x.
Rep DominantLanguageDetectionJobProperties x
-> DominantLanguageDetectionJobProperties)
-> Generic DominantLanguageDetectionJobProperties
forall x.
Rep DominantLanguageDetectionJobProperties x
-> DominantLanguageDetectionJobProperties
forall x.
DominantLanguageDetectionJobProperties
-> Rep DominantLanguageDetectionJobProperties x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DominantLanguageDetectionJobProperties x
-> DominantLanguageDetectionJobProperties
$cfrom :: forall x.
DominantLanguageDetectionJobProperties
-> Rep DominantLanguageDetectionJobProperties x
Prelude.Generic)
newDominantLanguageDetectionJobProperties ::
DominantLanguageDetectionJobProperties
newDominantLanguageDetectionJobProperties :: DominantLanguageDetectionJobProperties
newDominantLanguageDetectionJobProperties =
DominantLanguageDetectionJobProperties' :: Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe InputDataConfig
-> Maybe VpcConfig
-> Maybe Text
-> Maybe POSIX
-> Maybe OutputDataConfig
-> Maybe Text
-> Maybe JobStatus
-> Maybe Text
-> Maybe POSIX
-> DominantLanguageDetectionJobProperties
DominantLanguageDetectionJobProperties'
{ $sel:jobId:DominantLanguageDetectionJobProperties' :: Maybe Text
jobId =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:jobArn:DominantLanguageDetectionJobProperties' :: Maybe Text
jobArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:jobName:DominantLanguageDetectionJobProperties' :: Maybe Text
jobName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:inputDataConfig:DominantLanguageDetectionJobProperties' :: Maybe InputDataConfig
inputDataConfig = Maybe InputDataConfig
forall a. Maybe a
Prelude.Nothing,
$sel:vpcConfig:DominantLanguageDetectionJobProperties' :: Maybe VpcConfig
vpcConfig = Maybe VpcConfig
forall a. Maybe a
Prelude.Nothing,
$sel:volumeKmsKeyId:DominantLanguageDetectionJobProperties' :: Maybe Text
volumeKmsKeyId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:endTime:DominantLanguageDetectionJobProperties' :: Maybe POSIX
endTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:outputDataConfig:DominantLanguageDetectionJobProperties' :: Maybe OutputDataConfig
outputDataConfig = Maybe OutputDataConfig
forall a. Maybe a
Prelude.Nothing,
$sel:dataAccessRoleArn:DominantLanguageDetectionJobProperties' :: Maybe Text
dataAccessRoleArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:jobStatus:DominantLanguageDetectionJobProperties' :: Maybe JobStatus
jobStatus = Maybe JobStatus
forall a. Maybe a
Prelude.Nothing,
$sel:message:DominantLanguageDetectionJobProperties' :: Maybe Text
message = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:submitTime:DominantLanguageDetectionJobProperties' :: Maybe POSIX
submitTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing
}
dominantLanguageDetectionJobProperties_jobId :: Lens.Lens' DominantLanguageDetectionJobProperties (Prelude.Maybe Prelude.Text)
dominantLanguageDetectionJobProperties_jobId :: (Maybe Text -> f (Maybe Text))
-> DominantLanguageDetectionJobProperties
-> f DominantLanguageDetectionJobProperties
dominantLanguageDetectionJobProperties_jobId = (DominantLanguageDetectionJobProperties -> Maybe Text)
-> (DominantLanguageDetectionJobProperties
-> Maybe Text -> DominantLanguageDetectionJobProperties)
-> Lens
DominantLanguageDetectionJobProperties
DominantLanguageDetectionJobProperties
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DominantLanguageDetectionJobProperties' {Maybe Text
jobId :: Maybe Text
$sel:jobId:DominantLanguageDetectionJobProperties' :: DominantLanguageDetectionJobProperties -> Maybe Text
jobId} -> Maybe Text
jobId) (\s :: DominantLanguageDetectionJobProperties
s@DominantLanguageDetectionJobProperties' {} Maybe Text
a -> DominantLanguageDetectionJobProperties
s {$sel:jobId:DominantLanguageDetectionJobProperties' :: Maybe Text
jobId = Maybe Text
a} :: DominantLanguageDetectionJobProperties)
dominantLanguageDetectionJobProperties_jobArn :: Lens.Lens' DominantLanguageDetectionJobProperties (Prelude.Maybe Prelude.Text)
dominantLanguageDetectionJobProperties_jobArn :: (Maybe Text -> f (Maybe Text))
-> DominantLanguageDetectionJobProperties
-> f DominantLanguageDetectionJobProperties
dominantLanguageDetectionJobProperties_jobArn = (DominantLanguageDetectionJobProperties -> Maybe Text)
-> (DominantLanguageDetectionJobProperties
-> Maybe Text -> DominantLanguageDetectionJobProperties)
-> Lens
DominantLanguageDetectionJobProperties
DominantLanguageDetectionJobProperties
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DominantLanguageDetectionJobProperties' {Maybe Text
jobArn :: Maybe Text
$sel:jobArn:DominantLanguageDetectionJobProperties' :: DominantLanguageDetectionJobProperties -> Maybe Text
jobArn} -> Maybe Text
jobArn) (\s :: DominantLanguageDetectionJobProperties
s@DominantLanguageDetectionJobProperties' {} Maybe Text
a -> DominantLanguageDetectionJobProperties
s {$sel:jobArn:DominantLanguageDetectionJobProperties' :: Maybe Text
jobArn = Maybe Text
a} :: DominantLanguageDetectionJobProperties)
dominantLanguageDetectionJobProperties_jobName :: Lens.Lens' DominantLanguageDetectionJobProperties (Prelude.Maybe Prelude.Text)
dominantLanguageDetectionJobProperties_jobName :: (Maybe Text -> f (Maybe Text))
-> DominantLanguageDetectionJobProperties
-> f DominantLanguageDetectionJobProperties
dominantLanguageDetectionJobProperties_jobName = (DominantLanguageDetectionJobProperties -> Maybe Text)
-> (DominantLanguageDetectionJobProperties
-> Maybe Text -> DominantLanguageDetectionJobProperties)
-> Lens
DominantLanguageDetectionJobProperties
DominantLanguageDetectionJobProperties
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DominantLanguageDetectionJobProperties' {Maybe Text
jobName :: Maybe Text
$sel:jobName:DominantLanguageDetectionJobProperties' :: DominantLanguageDetectionJobProperties -> Maybe Text
jobName} -> Maybe Text
jobName) (\s :: DominantLanguageDetectionJobProperties
s@DominantLanguageDetectionJobProperties' {} Maybe Text
a -> DominantLanguageDetectionJobProperties
s {$sel:jobName:DominantLanguageDetectionJobProperties' :: Maybe Text
jobName = Maybe Text
a} :: DominantLanguageDetectionJobProperties)
dominantLanguageDetectionJobProperties_inputDataConfig :: Lens.Lens' DominantLanguageDetectionJobProperties (Prelude.Maybe InputDataConfig)
dominantLanguageDetectionJobProperties_inputDataConfig :: (Maybe InputDataConfig -> f (Maybe InputDataConfig))
-> DominantLanguageDetectionJobProperties
-> f DominantLanguageDetectionJobProperties
dominantLanguageDetectionJobProperties_inputDataConfig = (DominantLanguageDetectionJobProperties -> Maybe InputDataConfig)
-> (DominantLanguageDetectionJobProperties
-> Maybe InputDataConfig -> DominantLanguageDetectionJobProperties)
-> Lens
DominantLanguageDetectionJobProperties
DominantLanguageDetectionJobProperties
(Maybe InputDataConfig)
(Maybe InputDataConfig)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DominantLanguageDetectionJobProperties' {Maybe InputDataConfig
inputDataConfig :: Maybe InputDataConfig
$sel:inputDataConfig:DominantLanguageDetectionJobProperties' :: DominantLanguageDetectionJobProperties -> Maybe InputDataConfig
inputDataConfig} -> Maybe InputDataConfig
inputDataConfig) (\s :: DominantLanguageDetectionJobProperties
s@DominantLanguageDetectionJobProperties' {} Maybe InputDataConfig
a -> DominantLanguageDetectionJobProperties
s {$sel:inputDataConfig:DominantLanguageDetectionJobProperties' :: Maybe InputDataConfig
inputDataConfig = Maybe InputDataConfig
a} :: DominantLanguageDetectionJobProperties)
dominantLanguageDetectionJobProperties_vpcConfig :: Lens.Lens' DominantLanguageDetectionJobProperties (Prelude.Maybe VpcConfig)
dominantLanguageDetectionJobProperties_vpcConfig :: (Maybe VpcConfig -> f (Maybe VpcConfig))
-> DominantLanguageDetectionJobProperties
-> f DominantLanguageDetectionJobProperties
dominantLanguageDetectionJobProperties_vpcConfig = (DominantLanguageDetectionJobProperties -> Maybe VpcConfig)
-> (DominantLanguageDetectionJobProperties
-> Maybe VpcConfig -> DominantLanguageDetectionJobProperties)
-> Lens
DominantLanguageDetectionJobProperties
DominantLanguageDetectionJobProperties
(Maybe VpcConfig)
(Maybe VpcConfig)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DominantLanguageDetectionJobProperties' {Maybe VpcConfig
vpcConfig :: Maybe VpcConfig
$sel:vpcConfig:DominantLanguageDetectionJobProperties' :: DominantLanguageDetectionJobProperties -> Maybe VpcConfig
vpcConfig} -> Maybe VpcConfig
vpcConfig) (\s :: DominantLanguageDetectionJobProperties
s@DominantLanguageDetectionJobProperties' {} Maybe VpcConfig
a -> DominantLanguageDetectionJobProperties
s {$sel:vpcConfig:DominantLanguageDetectionJobProperties' :: Maybe VpcConfig
vpcConfig = Maybe VpcConfig
a} :: DominantLanguageDetectionJobProperties)
dominantLanguageDetectionJobProperties_volumeKmsKeyId :: Lens.Lens' DominantLanguageDetectionJobProperties (Prelude.Maybe Prelude.Text)
dominantLanguageDetectionJobProperties_volumeKmsKeyId :: (Maybe Text -> f (Maybe Text))
-> DominantLanguageDetectionJobProperties
-> f DominantLanguageDetectionJobProperties
dominantLanguageDetectionJobProperties_volumeKmsKeyId = (DominantLanguageDetectionJobProperties -> Maybe Text)
-> (DominantLanguageDetectionJobProperties
-> Maybe Text -> DominantLanguageDetectionJobProperties)
-> Lens
DominantLanguageDetectionJobProperties
DominantLanguageDetectionJobProperties
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DominantLanguageDetectionJobProperties' {Maybe Text
volumeKmsKeyId :: Maybe Text
$sel:volumeKmsKeyId:DominantLanguageDetectionJobProperties' :: DominantLanguageDetectionJobProperties -> Maybe Text
volumeKmsKeyId} -> Maybe Text
volumeKmsKeyId) (\s :: DominantLanguageDetectionJobProperties
s@DominantLanguageDetectionJobProperties' {} Maybe Text
a -> DominantLanguageDetectionJobProperties
s {$sel:volumeKmsKeyId:DominantLanguageDetectionJobProperties' :: Maybe Text
volumeKmsKeyId = Maybe Text
a} :: DominantLanguageDetectionJobProperties)
dominantLanguageDetectionJobProperties_endTime :: Lens.Lens' DominantLanguageDetectionJobProperties (Prelude.Maybe Prelude.UTCTime)
dominantLanguageDetectionJobProperties_endTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> DominantLanguageDetectionJobProperties
-> f DominantLanguageDetectionJobProperties
dominantLanguageDetectionJobProperties_endTime = (DominantLanguageDetectionJobProperties -> Maybe POSIX)
-> (DominantLanguageDetectionJobProperties
-> Maybe POSIX -> DominantLanguageDetectionJobProperties)
-> Lens
DominantLanguageDetectionJobProperties
DominantLanguageDetectionJobProperties
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DominantLanguageDetectionJobProperties' {Maybe POSIX
endTime :: Maybe POSIX
$sel:endTime:DominantLanguageDetectionJobProperties' :: DominantLanguageDetectionJobProperties -> Maybe POSIX
endTime} -> Maybe POSIX
endTime) (\s :: DominantLanguageDetectionJobProperties
s@DominantLanguageDetectionJobProperties' {} Maybe POSIX
a -> DominantLanguageDetectionJobProperties
s {$sel:endTime:DominantLanguageDetectionJobProperties' :: Maybe POSIX
endTime = Maybe POSIX
a} :: DominantLanguageDetectionJobProperties) ((Maybe POSIX -> f (Maybe POSIX))
-> DominantLanguageDetectionJobProperties
-> f DominantLanguageDetectionJobProperties)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> DominantLanguageDetectionJobProperties
-> f DominantLanguageDetectionJobProperties
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
dominantLanguageDetectionJobProperties_outputDataConfig :: Lens.Lens' DominantLanguageDetectionJobProperties (Prelude.Maybe OutputDataConfig)
dominantLanguageDetectionJobProperties_outputDataConfig :: (Maybe OutputDataConfig -> f (Maybe OutputDataConfig))
-> DominantLanguageDetectionJobProperties
-> f DominantLanguageDetectionJobProperties
dominantLanguageDetectionJobProperties_outputDataConfig = (DominantLanguageDetectionJobProperties -> Maybe OutputDataConfig)
-> (DominantLanguageDetectionJobProperties
-> Maybe OutputDataConfig
-> DominantLanguageDetectionJobProperties)
-> Lens
DominantLanguageDetectionJobProperties
DominantLanguageDetectionJobProperties
(Maybe OutputDataConfig)
(Maybe OutputDataConfig)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DominantLanguageDetectionJobProperties' {Maybe OutputDataConfig
outputDataConfig :: Maybe OutputDataConfig
$sel:outputDataConfig:DominantLanguageDetectionJobProperties' :: DominantLanguageDetectionJobProperties -> Maybe OutputDataConfig
outputDataConfig} -> Maybe OutputDataConfig
outputDataConfig) (\s :: DominantLanguageDetectionJobProperties
s@DominantLanguageDetectionJobProperties' {} Maybe OutputDataConfig
a -> DominantLanguageDetectionJobProperties
s {$sel:outputDataConfig:DominantLanguageDetectionJobProperties' :: Maybe OutputDataConfig
outputDataConfig = Maybe OutputDataConfig
a} :: DominantLanguageDetectionJobProperties)
dominantLanguageDetectionJobProperties_dataAccessRoleArn :: Lens.Lens' DominantLanguageDetectionJobProperties (Prelude.Maybe Prelude.Text)
dominantLanguageDetectionJobProperties_dataAccessRoleArn :: (Maybe Text -> f (Maybe Text))
-> DominantLanguageDetectionJobProperties
-> f DominantLanguageDetectionJobProperties
dominantLanguageDetectionJobProperties_dataAccessRoleArn = (DominantLanguageDetectionJobProperties -> Maybe Text)
-> (DominantLanguageDetectionJobProperties
-> Maybe Text -> DominantLanguageDetectionJobProperties)
-> Lens
DominantLanguageDetectionJobProperties
DominantLanguageDetectionJobProperties
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DominantLanguageDetectionJobProperties' {Maybe Text
dataAccessRoleArn :: Maybe Text
$sel:dataAccessRoleArn:DominantLanguageDetectionJobProperties' :: DominantLanguageDetectionJobProperties -> Maybe Text
dataAccessRoleArn} -> Maybe Text
dataAccessRoleArn) (\s :: DominantLanguageDetectionJobProperties
s@DominantLanguageDetectionJobProperties' {} Maybe Text
a -> DominantLanguageDetectionJobProperties
s {$sel:dataAccessRoleArn:DominantLanguageDetectionJobProperties' :: Maybe Text
dataAccessRoleArn = Maybe Text
a} :: DominantLanguageDetectionJobProperties)
dominantLanguageDetectionJobProperties_jobStatus :: Lens.Lens' DominantLanguageDetectionJobProperties (Prelude.Maybe JobStatus)
dominantLanguageDetectionJobProperties_jobStatus :: (Maybe JobStatus -> f (Maybe JobStatus))
-> DominantLanguageDetectionJobProperties
-> f DominantLanguageDetectionJobProperties
dominantLanguageDetectionJobProperties_jobStatus = (DominantLanguageDetectionJobProperties -> Maybe JobStatus)
-> (DominantLanguageDetectionJobProperties
-> Maybe JobStatus -> DominantLanguageDetectionJobProperties)
-> Lens
DominantLanguageDetectionJobProperties
DominantLanguageDetectionJobProperties
(Maybe JobStatus)
(Maybe JobStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DominantLanguageDetectionJobProperties' {Maybe JobStatus
jobStatus :: Maybe JobStatus
$sel:jobStatus:DominantLanguageDetectionJobProperties' :: DominantLanguageDetectionJobProperties -> Maybe JobStatus
jobStatus} -> Maybe JobStatus
jobStatus) (\s :: DominantLanguageDetectionJobProperties
s@DominantLanguageDetectionJobProperties' {} Maybe JobStatus
a -> DominantLanguageDetectionJobProperties
s {$sel:jobStatus:DominantLanguageDetectionJobProperties' :: Maybe JobStatus
jobStatus = Maybe JobStatus
a} :: DominantLanguageDetectionJobProperties)
dominantLanguageDetectionJobProperties_message :: Lens.Lens' DominantLanguageDetectionJobProperties (Prelude.Maybe Prelude.Text)
dominantLanguageDetectionJobProperties_message :: (Maybe Text -> f (Maybe Text))
-> DominantLanguageDetectionJobProperties
-> f DominantLanguageDetectionJobProperties
dominantLanguageDetectionJobProperties_message = (DominantLanguageDetectionJobProperties -> Maybe Text)
-> (DominantLanguageDetectionJobProperties
-> Maybe Text -> DominantLanguageDetectionJobProperties)
-> Lens
DominantLanguageDetectionJobProperties
DominantLanguageDetectionJobProperties
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DominantLanguageDetectionJobProperties' {Maybe Text
message :: Maybe Text
$sel:message:DominantLanguageDetectionJobProperties' :: DominantLanguageDetectionJobProperties -> Maybe Text
message} -> Maybe Text
message) (\s :: DominantLanguageDetectionJobProperties
s@DominantLanguageDetectionJobProperties' {} Maybe Text
a -> DominantLanguageDetectionJobProperties
s {$sel:message:DominantLanguageDetectionJobProperties' :: Maybe Text
message = Maybe Text
a} :: DominantLanguageDetectionJobProperties)
dominantLanguageDetectionJobProperties_submitTime :: Lens.Lens' DominantLanguageDetectionJobProperties (Prelude.Maybe Prelude.UTCTime)
dominantLanguageDetectionJobProperties_submitTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> DominantLanguageDetectionJobProperties
-> f DominantLanguageDetectionJobProperties
dominantLanguageDetectionJobProperties_submitTime = (DominantLanguageDetectionJobProperties -> Maybe POSIX)
-> (DominantLanguageDetectionJobProperties
-> Maybe POSIX -> DominantLanguageDetectionJobProperties)
-> Lens
DominantLanguageDetectionJobProperties
DominantLanguageDetectionJobProperties
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DominantLanguageDetectionJobProperties' {Maybe POSIX
submitTime :: Maybe POSIX
$sel:submitTime:DominantLanguageDetectionJobProperties' :: DominantLanguageDetectionJobProperties -> Maybe POSIX
submitTime} -> Maybe POSIX
submitTime) (\s :: DominantLanguageDetectionJobProperties
s@DominantLanguageDetectionJobProperties' {} Maybe POSIX
a -> DominantLanguageDetectionJobProperties
s {$sel:submitTime:DominantLanguageDetectionJobProperties' :: Maybe POSIX
submitTime = Maybe POSIX
a} :: DominantLanguageDetectionJobProperties) ((Maybe POSIX -> f (Maybe POSIX))
-> DominantLanguageDetectionJobProperties
-> f DominantLanguageDetectionJobProperties)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> DominantLanguageDetectionJobProperties
-> f DominantLanguageDetectionJobProperties
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
DominantLanguageDetectionJobProperties
where
parseJSON :: Value -> Parser DominantLanguageDetectionJobProperties
parseJSON =
String
-> (Object -> Parser DominantLanguageDetectionJobProperties)
-> Value
-> Parser DominantLanguageDetectionJobProperties
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"DominantLanguageDetectionJobProperties"
( \Object
x ->
Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe InputDataConfig
-> Maybe VpcConfig
-> Maybe Text
-> Maybe POSIX
-> Maybe OutputDataConfig
-> Maybe Text
-> Maybe JobStatus
-> Maybe Text
-> Maybe POSIX
-> DominantLanguageDetectionJobProperties
DominantLanguageDetectionJobProperties'
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe InputDataConfig
-> Maybe VpcConfig
-> Maybe Text
-> Maybe POSIX
-> Maybe OutputDataConfig
-> Maybe Text
-> Maybe JobStatus
-> Maybe Text
-> Maybe POSIX
-> DominantLanguageDetectionJobProperties)
-> 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
-> DominantLanguageDetectionJobProperties)
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 InputDataConfig
-> Maybe VpcConfig
-> Maybe Text
-> Maybe POSIX
-> Maybe OutputDataConfig
-> Maybe Text
-> Maybe JobStatus
-> Maybe Text
-> Maybe POSIX
-> DominantLanguageDetectionJobProperties)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe InputDataConfig
-> Maybe VpcConfig
-> Maybe Text
-> Maybe POSIX
-> Maybe OutputDataConfig
-> Maybe Text
-> Maybe JobStatus
-> Maybe Text
-> Maybe POSIX
-> DominantLanguageDetectionJobProperties)
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 InputDataConfig
-> Maybe VpcConfig
-> Maybe Text
-> Maybe POSIX
-> Maybe OutputDataConfig
-> Maybe Text
-> Maybe JobStatus
-> Maybe Text
-> Maybe POSIX
-> DominantLanguageDetectionJobProperties)
-> Parser (Maybe Text)
-> Parser
(Maybe InputDataConfig
-> Maybe VpcConfig
-> Maybe Text
-> Maybe POSIX
-> Maybe OutputDataConfig
-> Maybe Text
-> Maybe JobStatus
-> Maybe Text
-> Maybe POSIX
-> DominantLanguageDetectionJobProperties)
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
-> DominantLanguageDetectionJobProperties)
-> Parser (Maybe InputDataConfig)
-> Parser
(Maybe VpcConfig
-> Maybe Text
-> Maybe POSIX
-> Maybe OutputDataConfig
-> Maybe Text
-> Maybe JobStatus
-> Maybe Text
-> Maybe POSIX
-> DominantLanguageDetectionJobProperties)
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
-> DominantLanguageDetectionJobProperties)
-> Parser (Maybe VpcConfig)
-> Parser
(Maybe Text
-> Maybe POSIX
-> Maybe OutputDataConfig
-> Maybe Text
-> Maybe JobStatus
-> Maybe Text
-> Maybe POSIX
-> DominantLanguageDetectionJobProperties)
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
-> DominantLanguageDetectionJobProperties)
-> Parser (Maybe Text)
-> Parser
(Maybe POSIX
-> Maybe OutputDataConfig
-> Maybe Text
-> Maybe JobStatus
-> Maybe Text
-> Maybe POSIX
-> DominantLanguageDetectionJobProperties)
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
-> DominantLanguageDetectionJobProperties)
-> Parser (Maybe POSIX)
-> Parser
(Maybe OutputDataConfig
-> Maybe Text
-> Maybe JobStatus
-> Maybe Text
-> Maybe POSIX
-> DominantLanguageDetectionJobProperties)
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
-> DominantLanguageDetectionJobProperties)
-> Parser (Maybe OutputDataConfig)
-> Parser
(Maybe Text
-> Maybe JobStatus
-> Maybe Text
-> Maybe POSIX
-> DominantLanguageDetectionJobProperties)
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
-> DominantLanguageDetectionJobProperties)
-> Parser (Maybe Text)
-> Parser
(Maybe JobStatus
-> Maybe Text
-> Maybe POSIX
-> DominantLanguageDetectionJobProperties)
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
-> DominantLanguageDetectionJobProperties)
-> Parser (Maybe JobStatus)
-> Parser
(Maybe Text
-> Maybe POSIX -> DominantLanguageDetectionJobProperties)
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 -> DominantLanguageDetectionJobProperties)
-> Parser (Maybe Text)
-> Parser (Maybe POSIX -> DominantLanguageDetectionJobProperties)
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 -> DominantLanguageDetectionJobProperties)
-> Parser (Maybe POSIX)
-> Parser DominantLanguageDetectionJobProperties
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
DominantLanguageDetectionJobProperties
instance
Prelude.NFData
DominantLanguageDetectionJobProperties