{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.Translate.Types.TextTranslationJobProperties
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.Translate.Types.TextTranslationJobProperties where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import Amazonka.Translate.Types.InputDataConfig
import Amazonka.Translate.Types.JobDetails
import Amazonka.Translate.Types.JobStatus
import Amazonka.Translate.Types.OutputDataConfig

-- | Provides information about a translation job.
--
-- /See:/ 'newTextTranslationJobProperties' smart constructor.
data TextTranslationJobProperties = TextTranslationJobProperties'
  { -- | The ID of the translation job.
    TextTranslationJobProperties -> Maybe Text
jobId :: Prelude.Maybe Prelude.Text,
    -- | The language code of the language of the target text. The language must
    -- be a language supported by Amazon Translate.
    TextTranslationJobProperties -> Maybe (NonEmpty Text)
targetLanguageCodes :: Prelude.Maybe (Prelude.NonEmpty Prelude.Text),
    -- | The user-defined name of the translation job.
    TextTranslationJobProperties -> Maybe Text
jobName :: Prelude.Maybe Prelude.Text,
    -- | The time at which the translation job was submitted.
    TextTranslationJobProperties -> Maybe POSIX
submittedTime :: Prelude.Maybe Core.POSIX,
    -- | The input configuration properties that were specified when the job was
    -- requested.
    TextTranslationJobProperties -> Maybe InputDataConfig
inputDataConfig :: Prelude.Maybe InputDataConfig,
    -- | A list containing the names of the parallel data resources applied to
    -- the translation job.
    TextTranslationJobProperties -> Maybe [Text]
parallelDataNames :: Prelude.Maybe [Prelude.Text],
    -- | A list containing the names of the terminologies applied to a
    -- translation job. Only one terminology can be applied per
    -- StartTextTranslationJob request at this time.
    TextTranslationJobProperties -> Maybe [Text]
terminologyNames :: Prelude.Maybe [Prelude.Text],
    -- | The language code of the language of the source text. The language must
    -- be a language supported by Amazon Translate.
    TextTranslationJobProperties -> Maybe Text
sourceLanguageCode :: Prelude.Maybe Prelude.Text,
    -- | The time at which the translation job ended.
    TextTranslationJobProperties -> Maybe POSIX
endTime :: Prelude.Maybe Core.POSIX,
    -- | The output configuration properties that were specified when the job was
    -- requested.
    TextTranslationJobProperties -> Maybe OutputDataConfig
outputDataConfig :: Prelude.Maybe OutputDataConfig,
    -- | The number of documents successfully and unsuccessfully processed during
    -- the translation job.
    TextTranslationJobProperties -> Maybe JobDetails
jobDetails :: Prelude.Maybe JobDetails,
    -- | The Amazon Resource Name (ARN) of an AWS Identity Access and Management
    -- (IAM) role that granted Amazon Translate read access to the job\'s input
    -- data.
    TextTranslationJobProperties -> Maybe Text
dataAccessRoleArn :: Prelude.Maybe Prelude.Text,
    -- | The status of the translation job.
    TextTranslationJobProperties -> Maybe JobStatus
jobStatus :: Prelude.Maybe JobStatus,
    -- | An explanation of any errors that may have occured during the
    -- translation job.
    TextTranslationJobProperties -> Maybe Text
message :: Prelude.Maybe Prelude.Text
  }
  deriving (TextTranslationJobProperties
-> TextTranslationJobProperties -> Bool
(TextTranslationJobProperties
 -> TextTranslationJobProperties -> Bool)
-> (TextTranslationJobProperties
    -> TextTranslationJobProperties -> Bool)
-> Eq TextTranslationJobProperties
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: TextTranslationJobProperties
-> TextTranslationJobProperties -> Bool
$c/= :: TextTranslationJobProperties
-> TextTranslationJobProperties -> Bool
== :: TextTranslationJobProperties
-> TextTranslationJobProperties -> Bool
$c== :: TextTranslationJobProperties
-> TextTranslationJobProperties -> Bool
Prelude.Eq, ReadPrec [TextTranslationJobProperties]
ReadPrec TextTranslationJobProperties
Int -> ReadS TextTranslationJobProperties
ReadS [TextTranslationJobProperties]
(Int -> ReadS TextTranslationJobProperties)
-> ReadS [TextTranslationJobProperties]
-> ReadPrec TextTranslationJobProperties
-> ReadPrec [TextTranslationJobProperties]
-> Read TextTranslationJobProperties
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [TextTranslationJobProperties]
$creadListPrec :: ReadPrec [TextTranslationJobProperties]
readPrec :: ReadPrec TextTranslationJobProperties
$creadPrec :: ReadPrec TextTranslationJobProperties
readList :: ReadS [TextTranslationJobProperties]
$creadList :: ReadS [TextTranslationJobProperties]
readsPrec :: Int -> ReadS TextTranslationJobProperties
$creadsPrec :: Int -> ReadS TextTranslationJobProperties
Prelude.Read, Int -> TextTranslationJobProperties -> ShowS
[TextTranslationJobProperties] -> ShowS
TextTranslationJobProperties -> String
(Int -> TextTranslationJobProperties -> ShowS)
-> (TextTranslationJobProperties -> String)
-> ([TextTranslationJobProperties] -> ShowS)
-> Show TextTranslationJobProperties
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [TextTranslationJobProperties] -> ShowS
$cshowList :: [TextTranslationJobProperties] -> ShowS
show :: TextTranslationJobProperties -> String
$cshow :: TextTranslationJobProperties -> String
showsPrec :: Int -> TextTranslationJobProperties -> ShowS
$cshowsPrec :: Int -> TextTranslationJobProperties -> ShowS
Prelude.Show, (forall x.
 TextTranslationJobProperties -> Rep TextTranslationJobProperties x)
-> (forall x.
    Rep TextTranslationJobProperties x -> TextTranslationJobProperties)
-> Generic TextTranslationJobProperties
forall x.
Rep TextTranslationJobProperties x -> TextTranslationJobProperties
forall x.
TextTranslationJobProperties -> Rep TextTranslationJobProperties x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep TextTranslationJobProperties x -> TextTranslationJobProperties
$cfrom :: forall x.
TextTranslationJobProperties -> Rep TextTranslationJobProperties x
Prelude.Generic)

-- |
-- Create a value of 'TextTranslationJobProperties' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'jobId', 'textTranslationJobProperties_jobId' - The ID of the translation job.
--
-- 'targetLanguageCodes', 'textTranslationJobProperties_targetLanguageCodes' - The language code of the language of the target text. The language must
-- be a language supported by Amazon Translate.
--
-- 'jobName', 'textTranslationJobProperties_jobName' - The user-defined name of the translation job.
--
-- 'submittedTime', 'textTranslationJobProperties_submittedTime' - The time at which the translation job was submitted.
--
-- 'inputDataConfig', 'textTranslationJobProperties_inputDataConfig' - The input configuration properties that were specified when the job was
-- requested.
--
-- 'parallelDataNames', 'textTranslationJobProperties_parallelDataNames' - A list containing the names of the parallel data resources applied to
-- the translation job.
--
-- 'terminologyNames', 'textTranslationJobProperties_terminologyNames' - A list containing the names of the terminologies applied to a
-- translation job. Only one terminology can be applied per
-- StartTextTranslationJob request at this time.
--
-- 'sourceLanguageCode', 'textTranslationJobProperties_sourceLanguageCode' - The language code of the language of the source text. The language must
-- be a language supported by Amazon Translate.
--
-- 'endTime', 'textTranslationJobProperties_endTime' - The time at which the translation job ended.
--
-- 'outputDataConfig', 'textTranslationJobProperties_outputDataConfig' - The output configuration properties that were specified when the job was
-- requested.
--
-- 'jobDetails', 'textTranslationJobProperties_jobDetails' - The number of documents successfully and unsuccessfully processed during
-- the translation job.
--
-- 'dataAccessRoleArn', 'textTranslationJobProperties_dataAccessRoleArn' - The Amazon Resource Name (ARN) of an AWS Identity Access and Management
-- (IAM) role that granted Amazon Translate read access to the job\'s input
-- data.
--
-- 'jobStatus', 'textTranslationJobProperties_jobStatus' - The status of the translation job.
--
-- 'message', 'textTranslationJobProperties_message' - An explanation of any errors that may have occured during the
-- translation job.
newTextTranslationJobProperties ::
  TextTranslationJobProperties
newTextTranslationJobProperties :: TextTranslationJobProperties
newTextTranslationJobProperties =
  TextTranslationJobProperties' :: Maybe Text
-> Maybe (NonEmpty Text)
-> Maybe Text
-> Maybe POSIX
-> Maybe InputDataConfig
-> Maybe [Text]
-> Maybe [Text]
-> Maybe Text
-> Maybe POSIX
-> Maybe OutputDataConfig
-> Maybe JobDetails
-> Maybe Text
-> Maybe JobStatus
-> Maybe Text
-> TextTranslationJobProperties
TextTranslationJobProperties'
    { $sel:jobId:TextTranslationJobProperties' :: Maybe Text
jobId =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:targetLanguageCodes:TextTranslationJobProperties' :: Maybe (NonEmpty Text)
targetLanguageCodes = Maybe (NonEmpty Text)
forall a. Maybe a
Prelude.Nothing,
      $sel:jobName:TextTranslationJobProperties' :: Maybe Text
jobName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:submittedTime:TextTranslationJobProperties' :: Maybe POSIX
submittedTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:inputDataConfig:TextTranslationJobProperties' :: Maybe InputDataConfig
inputDataConfig = Maybe InputDataConfig
forall a. Maybe a
Prelude.Nothing,
      $sel:parallelDataNames:TextTranslationJobProperties' :: Maybe [Text]
parallelDataNames = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
      $sel:terminologyNames:TextTranslationJobProperties' :: Maybe [Text]
terminologyNames = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
      $sel:sourceLanguageCode:TextTranslationJobProperties' :: Maybe Text
sourceLanguageCode = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:endTime:TextTranslationJobProperties' :: Maybe POSIX
endTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:outputDataConfig:TextTranslationJobProperties' :: Maybe OutputDataConfig
outputDataConfig = Maybe OutputDataConfig
forall a. Maybe a
Prelude.Nothing,
      $sel:jobDetails:TextTranslationJobProperties' :: Maybe JobDetails
jobDetails = Maybe JobDetails
forall a. Maybe a
Prelude.Nothing,
      $sel:dataAccessRoleArn:TextTranslationJobProperties' :: Maybe Text
dataAccessRoleArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:jobStatus:TextTranslationJobProperties' :: Maybe JobStatus
jobStatus = Maybe JobStatus
forall a. Maybe a
Prelude.Nothing,
      $sel:message:TextTranslationJobProperties' :: Maybe Text
message = Maybe Text
forall a. Maybe a
Prelude.Nothing
    }

-- | The ID of the translation job.
textTranslationJobProperties_jobId :: Lens.Lens' TextTranslationJobProperties (Prelude.Maybe Prelude.Text)
textTranslationJobProperties_jobId :: (Maybe Text -> f (Maybe Text))
-> TextTranslationJobProperties -> f TextTranslationJobProperties
textTranslationJobProperties_jobId = (TextTranslationJobProperties -> Maybe Text)
-> (TextTranslationJobProperties
    -> Maybe Text -> TextTranslationJobProperties)
-> Lens
     TextTranslationJobProperties
     TextTranslationJobProperties
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TextTranslationJobProperties' {Maybe Text
jobId :: Maybe Text
$sel:jobId:TextTranslationJobProperties' :: TextTranslationJobProperties -> Maybe Text
jobId} -> Maybe Text
jobId) (\s :: TextTranslationJobProperties
s@TextTranslationJobProperties' {} Maybe Text
a -> TextTranslationJobProperties
s {$sel:jobId:TextTranslationJobProperties' :: Maybe Text
jobId = Maybe Text
a} :: TextTranslationJobProperties)

-- | The language code of the language of the target text. The language must
-- be a language supported by Amazon Translate.
textTranslationJobProperties_targetLanguageCodes :: Lens.Lens' TextTranslationJobProperties (Prelude.Maybe (Prelude.NonEmpty Prelude.Text))
textTranslationJobProperties_targetLanguageCodes :: (Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> TextTranslationJobProperties -> f TextTranslationJobProperties
textTranslationJobProperties_targetLanguageCodes = (TextTranslationJobProperties -> Maybe (NonEmpty Text))
-> (TextTranslationJobProperties
    -> Maybe (NonEmpty Text) -> TextTranslationJobProperties)
-> Lens
     TextTranslationJobProperties
     TextTranslationJobProperties
     (Maybe (NonEmpty Text))
     (Maybe (NonEmpty Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TextTranslationJobProperties' {Maybe (NonEmpty Text)
targetLanguageCodes :: Maybe (NonEmpty Text)
$sel:targetLanguageCodes:TextTranslationJobProperties' :: TextTranslationJobProperties -> Maybe (NonEmpty Text)
targetLanguageCodes} -> Maybe (NonEmpty Text)
targetLanguageCodes) (\s :: TextTranslationJobProperties
s@TextTranslationJobProperties' {} Maybe (NonEmpty Text)
a -> TextTranslationJobProperties
s {$sel:targetLanguageCodes:TextTranslationJobProperties' :: Maybe (NonEmpty Text)
targetLanguageCodes = Maybe (NonEmpty Text)
a} :: TextTranslationJobProperties) ((Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
 -> TextTranslationJobProperties -> f TextTranslationJobProperties)
-> ((Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
    -> Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> (Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> TextTranslationJobProperties
-> f TextTranslationJobProperties
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  (NonEmpty Text) (NonEmpty Text) (NonEmpty Text) (NonEmpty Text)
-> Iso
     (Maybe (NonEmpty Text))
     (Maybe (NonEmpty Text))
     (Maybe (NonEmpty Text))
     (Maybe (NonEmpty Text))
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
  (NonEmpty Text) (NonEmpty Text) (NonEmpty Text) (NonEmpty Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The user-defined name of the translation job.
textTranslationJobProperties_jobName :: Lens.Lens' TextTranslationJobProperties (Prelude.Maybe Prelude.Text)
textTranslationJobProperties_jobName :: (Maybe Text -> f (Maybe Text))
-> TextTranslationJobProperties -> f TextTranslationJobProperties
textTranslationJobProperties_jobName = (TextTranslationJobProperties -> Maybe Text)
-> (TextTranslationJobProperties
    -> Maybe Text -> TextTranslationJobProperties)
-> Lens
     TextTranslationJobProperties
     TextTranslationJobProperties
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TextTranslationJobProperties' {Maybe Text
jobName :: Maybe Text
$sel:jobName:TextTranslationJobProperties' :: TextTranslationJobProperties -> Maybe Text
jobName} -> Maybe Text
jobName) (\s :: TextTranslationJobProperties
s@TextTranslationJobProperties' {} Maybe Text
a -> TextTranslationJobProperties
s {$sel:jobName:TextTranslationJobProperties' :: Maybe Text
jobName = Maybe Text
a} :: TextTranslationJobProperties)

-- | The time at which the translation job was submitted.
textTranslationJobProperties_submittedTime :: Lens.Lens' TextTranslationJobProperties (Prelude.Maybe Prelude.UTCTime)
textTranslationJobProperties_submittedTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> TextTranslationJobProperties -> f TextTranslationJobProperties
textTranslationJobProperties_submittedTime = (TextTranslationJobProperties -> Maybe POSIX)
-> (TextTranslationJobProperties
    -> Maybe POSIX -> TextTranslationJobProperties)
-> Lens
     TextTranslationJobProperties
     TextTranslationJobProperties
     (Maybe POSIX)
     (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TextTranslationJobProperties' {Maybe POSIX
submittedTime :: Maybe POSIX
$sel:submittedTime:TextTranslationJobProperties' :: TextTranslationJobProperties -> Maybe POSIX
submittedTime} -> Maybe POSIX
submittedTime) (\s :: TextTranslationJobProperties
s@TextTranslationJobProperties' {} Maybe POSIX
a -> TextTranslationJobProperties
s {$sel:submittedTime:TextTranslationJobProperties' :: Maybe POSIX
submittedTime = Maybe POSIX
a} :: TextTranslationJobProperties) ((Maybe POSIX -> f (Maybe POSIX))
 -> TextTranslationJobProperties -> f TextTranslationJobProperties)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> TextTranslationJobProperties
-> f TextTranslationJobProperties
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

-- | The input configuration properties that were specified when the job was
-- requested.
textTranslationJobProperties_inputDataConfig :: Lens.Lens' TextTranslationJobProperties (Prelude.Maybe InputDataConfig)
textTranslationJobProperties_inputDataConfig :: (Maybe InputDataConfig -> f (Maybe InputDataConfig))
-> TextTranslationJobProperties -> f TextTranslationJobProperties
textTranslationJobProperties_inputDataConfig = (TextTranslationJobProperties -> Maybe InputDataConfig)
-> (TextTranslationJobProperties
    -> Maybe InputDataConfig -> TextTranslationJobProperties)
-> Lens
     TextTranslationJobProperties
     TextTranslationJobProperties
     (Maybe InputDataConfig)
     (Maybe InputDataConfig)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TextTranslationJobProperties' {Maybe InputDataConfig
inputDataConfig :: Maybe InputDataConfig
$sel:inputDataConfig:TextTranslationJobProperties' :: TextTranslationJobProperties -> Maybe InputDataConfig
inputDataConfig} -> Maybe InputDataConfig
inputDataConfig) (\s :: TextTranslationJobProperties
s@TextTranslationJobProperties' {} Maybe InputDataConfig
a -> TextTranslationJobProperties
s {$sel:inputDataConfig:TextTranslationJobProperties' :: Maybe InputDataConfig
inputDataConfig = Maybe InputDataConfig
a} :: TextTranslationJobProperties)

-- | A list containing the names of the parallel data resources applied to
-- the translation job.
textTranslationJobProperties_parallelDataNames :: Lens.Lens' TextTranslationJobProperties (Prelude.Maybe [Prelude.Text])
textTranslationJobProperties_parallelDataNames :: (Maybe [Text] -> f (Maybe [Text]))
-> TextTranslationJobProperties -> f TextTranslationJobProperties
textTranslationJobProperties_parallelDataNames = (TextTranslationJobProperties -> Maybe [Text])
-> (TextTranslationJobProperties
    -> Maybe [Text] -> TextTranslationJobProperties)
-> Lens
     TextTranslationJobProperties
     TextTranslationJobProperties
     (Maybe [Text])
     (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TextTranslationJobProperties' {Maybe [Text]
parallelDataNames :: Maybe [Text]
$sel:parallelDataNames:TextTranslationJobProperties' :: TextTranslationJobProperties -> Maybe [Text]
parallelDataNames} -> Maybe [Text]
parallelDataNames) (\s :: TextTranslationJobProperties
s@TextTranslationJobProperties' {} Maybe [Text]
a -> TextTranslationJobProperties
s {$sel:parallelDataNames:TextTranslationJobProperties' :: Maybe [Text]
parallelDataNames = Maybe [Text]
a} :: TextTranslationJobProperties) ((Maybe [Text] -> f (Maybe [Text]))
 -> TextTranslationJobProperties -> f TextTranslationJobProperties)
-> ((Maybe [Text] -> f (Maybe [Text]))
    -> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> TextTranslationJobProperties
-> f TextTranslationJobProperties
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [Text])
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 [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | A list containing the names of the terminologies applied to a
-- translation job. Only one terminology can be applied per
-- StartTextTranslationJob request at this time.
textTranslationJobProperties_terminologyNames :: Lens.Lens' TextTranslationJobProperties (Prelude.Maybe [Prelude.Text])
textTranslationJobProperties_terminologyNames :: (Maybe [Text] -> f (Maybe [Text]))
-> TextTranslationJobProperties -> f TextTranslationJobProperties
textTranslationJobProperties_terminologyNames = (TextTranslationJobProperties -> Maybe [Text])
-> (TextTranslationJobProperties
    -> Maybe [Text] -> TextTranslationJobProperties)
-> Lens
     TextTranslationJobProperties
     TextTranslationJobProperties
     (Maybe [Text])
     (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TextTranslationJobProperties' {Maybe [Text]
terminologyNames :: Maybe [Text]
$sel:terminologyNames:TextTranslationJobProperties' :: TextTranslationJobProperties -> Maybe [Text]
terminologyNames} -> Maybe [Text]
terminologyNames) (\s :: TextTranslationJobProperties
s@TextTranslationJobProperties' {} Maybe [Text]
a -> TextTranslationJobProperties
s {$sel:terminologyNames:TextTranslationJobProperties' :: Maybe [Text]
terminologyNames = Maybe [Text]
a} :: TextTranslationJobProperties) ((Maybe [Text] -> f (Maybe [Text]))
 -> TextTranslationJobProperties -> f TextTranslationJobProperties)
-> ((Maybe [Text] -> f (Maybe [Text]))
    -> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> TextTranslationJobProperties
-> f TextTranslationJobProperties
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [Text])
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 [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The language code of the language of the source text. The language must
-- be a language supported by Amazon Translate.
textTranslationJobProperties_sourceLanguageCode :: Lens.Lens' TextTranslationJobProperties (Prelude.Maybe Prelude.Text)
textTranslationJobProperties_sourceLanguageCode :: (Maybe Text -> f (Maybe Text))
-> TextTranslationJobProperties -> f TextTranslationJobProperties
textTranslationJobProperties_sourceLanguageCode = (TextTranslationJobProperties -> Maybe Text)
-> (TextTranslationJobProperties
    -> Maybe Text -> TextTranslationJobProperties)
-> Lens
     TextTranslationJobProperties
     TextTranslationJobProperties
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TextTranslationJobProperties' {Maybe Text
sourceLanguageCode :: Maybe Text
$sel:sourceLanguageCode:TextTranslationJobProperties' :: TextTranslationJobProperties -> Maybe Text
sourceLanguageCode} -> Maybe Text
sourceLanguageCode) (\s :: TextTranslationJobProperties
s@TextTranslationJobProperties' {} Maybe Text
a -> TextTranslationJobProperties
s {$sel:sourceLanguageCode:TextTranslationJobProperties' :: Maybe Text
sourceLanguageCode = Maybe Text
a} :: TextTranslationJobProperties)

-- | The time at which the translation job ended.
textTranslationJobProperties_endTime :: Lens.Lens' TextTranslationJobProperties (Prelude.Maybe Prelude.UTCTime)
textTranslationJobProperties_endTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> TextTranslationJobProperties -> f TextTranslationJobProperties
textTranslationJobProperties_endTime = (TextTranslationJobProperties -> Maybe POSIX)
-> (TextTranslationJobProperties
    -> Maybe POSIX -> TextTranslationJobProperties)
-> Lens
     TextTranslationJobProperties
     TextTranslationJobProperties
     (Maybe POSIX)
     (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TextTranslationJobProperties' {Maybe POSIX
endTime :: Maybe POSIX
$sel:endTime:TextTranslationJobProperties' :: TextTranslationJobProperties -> Maybe POSIX
endTime} -> Maybe POSIX
endTime) (\s :: TextTranslationJobProperties
s@TextTranslationJobProperties' {} Maybe POSIX
a -> TextTranslationJobProperties
s {$sel:endTime:TextTranslationJobProperties' :: Maybe POSIX
endTime = Maybe POSIX
a} :: TextTranslationJobProperties) ((Maybe POSIX -> f (Maybe POSIX))
 -> TextTranslationJobProperties -> f TextTranslationJobProperties)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> TextTranslationJobProperties
-> f TextTranslationJobProperties
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

-- | The output configuration properties that were specified when the job was
-- requested.
textTranslationJobProperties_outputDataConfig :: Lens.Lens' TextTranslationJobProperties (Prelude.Maybe OutputDataConfig)
textTranslationJobProperties_outputDataConfig :: (Maybe OutputDataConfig -> f (Maybe OutputDataConfig))
-> TextTranslationJobProperties -> f TextTranslationJobProperties
textTranslationJobProperties_outputDataConfig = (TextTranslationJobProperties -> Maybe OutputDataConfig)
-> (TextTranslationJobProperties
    -> Maybe OutputDataConfig -> TextTranslationJobProperties)
-> Lens
     TextTranslationJobProperties
     TextTranslationJobProperties
     (Maybe OutputDataConfig)
     (Maybe OutputDataConfig)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TextTranslationJobProperties' {Maybe OutputDataConfig
outputDataConfig :: Maybe OutputDataConfig
$sel:outputDataConfig:TextTranslationJobProperties' :: TextTranslationJobProperties -> Maybe OutputDataConfig
outputDataConfig} -> Maybe OutputDataConfig
outputDataConfig) (\s :: TextTranslationJobProperties
s@TextTranslationJobProperties' {} Maybe OutputDataConfig
a -> TextTranslationJobProperties
s {$sel:outputDataConfig:TextTranslationJobProperties' :: Maybe OutputDataConfig
outputDataConfig = Maybe OutputDataConfig
a} :: TextTranslationJobProperties)

-- | The number of documents successfully and unsuccessfully processed during
-- the translation job.
textTranslationJobProperties_jobDetails :: Lens.Lens' TextTranslationJobProperties (Prelude.Maybe JobDetails)
textTranslationJobProperties_jobDetails :: (Maybe JobDetails -> f (Maybe JobDetails))
-> TextTranslationJobProperties -> f TextTranslationJobProperties
textTranslationJobProperties_jobDetails = (TextTranslationJobProperties -> Maybe JobDetails)
-> (TextTranslationJobProperties
    -> Maybe JobDetails -> TextTranslationJobProperties)
-> Lens
     TextTranslationJobProperties
     TextTranslationJobProperties
     (Maybe JobDetails)
     (Maybe JobDetails)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TextTranslationJobProperties' {Maybe JobDetails
jobDetails :: Maybe JobDetails
$sel:jobDetails:TextTranslationJobProperties' :: TextTranslationJobProperties -> Maybe JobDetails
jobDetails} -> Maybe JobDetails
jobDetails) (\s :: TextTranslationJobProperties
s@TextTranslationJobProperties' {} Maybe JobDetails
a -> TextTranslationJobProperties
s {$sel:jobDetails:TextTranslationJobProperties' :: Maybe JobDetails
jobDetails = Maybe JobDetails
a} :: TextTranslationJobProperties)

-- | The Amazon Resource Name (ARN) of an AWS Identity Access and Management
-- (IAM) role that granted Amazon Translate read access to the job\'s input
-- data.
textTranslationJobProperties_dataAccessRoleArn :: Lens.Lens' TextTranslationJobProperties (Prelude.Maybe Prelude.Text)
textTranslationJobProperties_dataAccessRoleArn :: (Maybe Text -> f (Maybe Text))
-> TextTranslationJobProperties -> f TextTranslationJobProperties
textTranslationJobProperties_dataAccessRoleArn = (TextTranslationJobProperties -> Maybe Text)
-> (TextTranslationJobProperties
    -> Maybe Text -> TextTranslationJobProperties)
-> Lens
     TextTranslationJobProperties
     TextTranslationJobProperties
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TextTranslationJobProperties' {Maybe Text
dataAccessRoleArn :: Maybe Text
$sel:dataAccessRoleArn:TextTranslationJobProperties' :: TextTranslationJobProperties -> Maybe Text
dataAccessRoleArn} -> Maybe Text
dataAccessRoleArn) (\s :: TextTranslationJobProperties
s@TextTranslationJobProperties' {} Maybe Text
a -> TextTranslationJobProperties
s {$sel:dataAccessRoleArn:TextTranslationJobProperties' :: Maybe Text
dataAccessRoleArn = Maybe Text
a} :: TextTranslationJobProperties)

-- | The status of the translation job.
textTranslationJobProperties_jobStatus :: Lens.Lens' TextTranslationJobProperties (Prelude.Maybe JobStatus)
textTranslationJobProperties_jobStatus :: (Maybe JobStatus -> f (Maybe JobStatus))
-> TextTranslationJobProperties -> f TextTranslationJobProperties
textTranslationJobProperties_jobStatus = (TextTranslationJobProperties -> Maybe JobStatus)
-> (TextTranslationJobProperties
    -> Maybe JobStatus -> TextTranslationJobProperties)
-> Lens
     TextTranslationJobProperties
     TextTranslationJobProperties
     (Maybe JobStatus)
     (Maybe JobStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TextTranslationJobProperties' {Maybe JobStatus
jobStatus :: Maybe JobStatus
$sel:jobStatus:TextTranslationJobProperties' :: TextTranslationJobProperties -> Maybe JobStatus
jobStatus} -> Maybe JobStatus
jobStatus) (\s :: TextTranslationJobProperties
s@TextTranslationJobProperties' {} Maybe JobStatus
a -> TextTranslationJobProperties
s {$sel:jobStatus:TextTranslationJobProperties' :: Maybe JobStatus
jobStatus = Maybe JobStatus
a} :: TextTranslationJobProperties)

-- | An explanation of any errors that may have occured during the
-- translation job.
textTranslationJobProperties_message :: Lens.Lens' TextTranslationJobProperties (Prelude.Maybe Prelude.Text)
textTranslationJobProperties_message :: (Maybe Text -> f (Maybe Text))
-> TextTranslationJobProperties -> f TextTranslationJobProperties
textTranslationJobProperties_message = (TextTranslationJobProperties -> Maybe Text)
-> (TextTranslationJobProperties
    -> Maybe Text -> TextTranslationJobProperties)
-> Lens
     TextTranslationJobProperties
     TextTranslationJobProperties
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TextTranslationJobProperties' {Maybe Text
message :: Maybe Text
$sel:message:TextTranslationJobProperties' :: TextTranslationJobProperties -> Maybe Text
message} -> Maybe Text
message) (\s :: TextTranslationJobProperties
s@TextTranslationJobProperties' {} Maybe Text
a -> TextTranslationJobProperties
s {$sel:message:TextTranslationJobProperties' :: Maybe Text
message = Maybe Text
a} :: TextTranslationJobProperties)

instance Core.FromJSON TextTranslationJobProperties where
  parseJSON :: Value -> Parser TextTranslationJobProperties
parseJSON =
    String
-> (Object -> Parser TextTranslationJobProperties)
-> Value
-> Parser TextTranslationJobProperties
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
      String
"TextTranslationJobProperties"
      ( \Object
x ->
          Maybe Text
-> Maybe (NonEmpty Text)
-> Maybe Text
-> Maybe POSIX
-> Maybe InputDataConfig
-> Maybe [Text]
-> Maybe [Text]
-> Maybe Text
-> Maybe POSIX
-> Maybe OutputDataConfig
-> Maybe JobDetails
-> Maybe Text
-> Maybe JobStatus
-> Maybe Text
-> TextTranslationJobProperties
TextTranslationJobProperties'
            (Maybe Text
 -> Maybe (NonEmpty Text)
 -> Maybe Text
 -> Maybe POSIX
 -> Maybe InputDataConfig
 -> Maybe [Text]
 -> Maybe [Text]
 -> Maybe Text
 -> Maybe POSIX
 -> Maybe OutputDataConfig
 -> Maybe JobDetails
 -> Maybe Text
 -> Maybe JobStatus
 -> Maybe Text
 -> TextTranslationJobProperties)
-> Parser (Maybe Text)
-> Parser
     (Maybe (NonEmpty Text)
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe InputDataConfig
      -> Maybe [Text]
      -> Maybe [Text]
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe OutputDataConfig
      -> Maybe JobDetails
      -> Maybe Text
      -> Maybe JobStatus
      -> Maybe Text
      -> TextTranslationJobProperties)
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 (NonEmpty Text)
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe InputDataConfig
   -> Maybe [Text]
   -> Maybe [Text]
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe OutputDataConfig
   -> Maybe JobDetails
   -> Maybe Text
   -> Maybe JobStatus
   -> Maybe Text
   -> TextTranslationJobProperties)
-> Parser (Maybe (NonEmpty Text))
-> Parser
     (Maybe Text
      -> Maybe POSIX
      -> Maybe InputDataConfig
      -> Maybe [Text]
      -> Maybe [Text]
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe OutputDataConfig
      -> Maybe JobDetails
      -> Maybe Text
      -> Maybe JobStatus
      -> Maybe Text
      -> TextTranslationJobProperties)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe (NonEmpty Text))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"TargetLanguageCodes")
            Parser
  (Maybe Text
   -> Maybe POSIX
   -> Maybe InputDataConfig
   -> Maybe [Text]
   -> Maybe [Text]
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe OutputDataConfig
   -> Maybe JobDetails
   -> Maybe Text
   -> Maybe JobStatus
   -> Maybe Text
   -> TextTranslationJobProperties)
-> Parser (Maybe Text)
-> Parser
     (Maybe POSIX
      -> Maybe InputDataConfig
      -> Maybe [Text]
      -> Maybe [Text]
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe OutputDataConfig
      -> Maybe JobDetails
      -> Maybe Text
      -> Maybe JobStatus
      -> Maybe Text
      -> TextTranslationJobProperties)
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 POSIX
   -> Maybe InputDataConfig
   -> Maybe [Text]
   -> Maybe [Text]
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe OutputDataConfig
   -> Maybe JobDetails
   -> Maybe Text
   -> Maybe JobStatus
   -> Maybe Text
   -> TextTranslationJobProperties)
-> Parser (Maybe POSIX)
-> Parser
     (Maybe InputDataConfig
      -> Maybe [Text]
      -> Maybe [Text]
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe OutputDataConfig
      -> Maybe JobDetails
      -> Maybe Text
      -> Maybe JobStatus
      -> Maybe Text
      -> TextTranslationJobProperties)
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
"SubmittedTime")
            Parser
  (Maybe InputDataConfig
   -> Maybe [Text]
   -> Maybe [Text]
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe OutputDataConfig
   -> Maybe JobDetails
   -> Maybe Text
   -> Maybe JobStatus
   -> Maybe Text
   -> TextTranslationJobProperties)
-> Parser (Maybe InputDataConfig)
-> Parser
     (Maybe [Text]
      -> Maybe [Text]
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe OutputDataConfig
      -> Maybe JobDetails
      -> Maybe Text
      -> Maybe JobStatus
      -> Maybe Text
      -> TextTranslationJobProperties)
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 [Text]
   -> Maybe [Text]
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe OutputDataConfig
   -> Maybe JobDetails
   -> Maybe Text
   -> Maybe JobStatus
   -> Maybe Text
   -> TextTranslationJobProperties)
-> Parser (Maybe [Text])
-> Parser
     (Maybe [Text]
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe OutputDataConfig
      -> Maybe JobDetails
      -> Maybe Text
      -> Maybe JobStatus
      -> Maybe Text
      -> TextTranslationJobProperties)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object -> Text -> Parser (Maybe (Maybe [Text]))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ParallelDataNames"
                            Parser (Maybe (Maybe [Text]))
-> Maybe [Text] -> Parser (Maybe [Text])
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe [Text]
forall a. Monoid a => a
Prelude.mempty
                        )
            Parser
  (Maybe [Text]
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe OutputDataConfig
   -> Maybe JobDetails
   -> Maybe Text
   -> Maybe JobStatus
   -> Maybe Text
   -> TextTranslationJobProperties)
-> Parser (Maybe [Text])
-> Parser
     (Maybe Text
      -> Maybe POSIX
      -> Maybe OutputDataConfig
      -> Maybe JobDetails
      -> Maybe Text
      -> Maybe JobStatus
      -> Maybe Text
      -> TextTranslationJobProperties)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object -> Text -> Parser (Maybe (Maybe [Text]))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"TerminologyNames"
                            Parser (Maybe (Maybe [Text]))
-> Maybe [Text] -> Parser (Maybe [Text])
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe [Text]
forall a. Monoid a => a
Prelude.mempty
                        )
            Parser
  (Maybe Text
   -> Maybe POSIX
   -> Maybe OutputDataConfig
   -> Maybe JobDetails
   -> Maybe Text
   -> Maybe JobStatus
   -> Maybe Text
   -> TextTranslationJobProperties)
-> Parser (Maybe Text)
-> Parser
     (Maybe POSIX
      -> Maybe OutputDataConfig
      -> Maybe JobDetails
      -> Maybe Text
      -> Maybe JobStatus
      -> Maybe Text
      -> TextTranslationJobProperties)
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
"SourceLanguageCode")
            Parser
  (Maybe POSIX
   -> Maybe OutputDataConfig
   -> Maybe JobDetails
   -> Maybe Text
   -> Maybe JobStatus
   -> Maybe Text
   -> TextTranslationJobProperties)
-> Parser (Maybe POSIX)
-> Parser
     (Maybe OutputDataConfig
      -> Maybe JobDetails
      -> Maybe Text
      -> Maybe JobStatus
      -> Maybe Text
      -> TextTranslationJobProperties)
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 JobDetails
   -> Maybe Text
   -> Maybe JobStatus
   -> Maybe Text
   -> TextTranslationJobProperties)
-> Parser (Maybe OutputDataConfig)
-> Parser
     (Maybe JobDetails
      -> Maybe Text
      -> Maybe JobStatus
      -> Maybe Text
      -> TextTranslationJobProperties)
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 JobDetails
   -> Maybe Text
   -> Maybe JobStatus
   -> Maybe Text
   -> TextTranslationJobProperties)
-> Parser (Maybe JobDetails)
-> Parser
     (Maybe Text
      -> Maybe JobStatus -> Maybe Text -> TextTranslationJobProperties)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe JobDetails)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"JobDetails")
            Parser
  (Maybe Text
   -> Maybe JobStatus -> Maybe Text -> TextTranslationJobProperties)
-> Parser (Maybe Text)
-> Parser
     (Maybe JobStatus -> Maybe Text -> TextTranslationJobProperties)
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 -> TextTranslationJobProperties)
-> Parser (Maybe JobStatus)
-> Parser (Maybe Text -> TextTranslationJobProperties)
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 -> TextTranslationJobProperties)
-> Parser (Maybe Text) -> Parser TextTranslationJobProperties
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")
      )

instance
  Prelude.Hashable
    TextTranslationJobProperties

instance Prelude.NFData TextTranslationJobProperties