{-# 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.ParallelDataProperties
-- 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.ParallelDataProperties where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import Amazonka.Translate.Types.EncryptionKey
import Amazonka.Translate.Types.ParallelDataConfig
import Amazonka.Translate.Types.ParallelDataStatus

-- | The properties of a parallel data resource.
--
-- /See:/ 'newParallelDataProperties' smart constructor.
data ParallelDataProperties = ParallelDataProperties'
  { -- | The status of the parallel data resource. When the parallel data is
    -- ready for you to use, the status is @ACTIVE@.
    ParallelDataProperties -> Maybe ParallelDataStatus
status :: Prelude.Maybe ParallelDataStatus,
    -- | The time at which the parallel data resource was last updated.
    ParallelDataProperties -> Maybe POSIX
lastUpdatedAt :: Prelude.Maybe Core.POSIX,
    -- | The number of records successfully imported from the parallel data input
    -- file.
    ParallelDataProperties -> Maybe Integer
importedRecordCount :: Prelude.Maybe Prelude.Integer,
    -- | The Amazon Resource Name (ARN) of the parallel data resource.
    ParallelDataProperties -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
    -- | The language codes for the target languages available in the parallel
    -- data file. All possible target languages are returned as an array.
    ParallelDataProperties -> Maybe [Text]
targetLanguageCodes :: Prelude.Maybe [Prelude.Text],
    -- | The time at which the parallel data resource was created.
    ParallelDataProperties -> Maybe POSIX
createdAt :: Prelude.Maybe Core.POSIX,
    -- | The number of records unsuccessfully imported from the parallel data
    -- input file.
    ParallelDataProperties -> Maybe Integer
failedRecordCount :: Prelude.Maybe Prelude.Integer,
    -- | The number of UTF-8 characters that Amazon Translate imported from the
    -- parallel data input file. This number includes only the characters in
    -- your translation examples. It does not include characters that are used
    -- to format your file. For example, if you provided a Translation Memory
    -- Exchange (.tmx) file, this number does not include the tags.
    ParallelDataProperties -> Maybe Integer
importedDataSize :: Prelude.Maybe Prelude.Integer,
    -- | The custom name assigned to the parallel data resource.
    ParallelDataProperties -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
    -- | The source language of the translations in the parallel data file.
    ParallelDataProperties -> Maybe Text
sourceLanguageCode :: Prelude.Maybe Prelude.Text,
    -- | The time that the most recent update was attempted.
    ParallelDataProperties -> Maybe POSIX
latestUpdateAttemptAt :: Prelude.Maybe Core.POSIX,
    ParallelDataProperties -> Maybe EncryptionKey
encryptionKey :: Prelude.Maybe EncryptionKey,
    -- | The status of the most recent update attempt for the parallel data
    -- resource.
    ParallelDataProperties -> Maybe ParallelDataStatus
latestUpdateAttemptStatus :: Prelude.Maybe ParallelDataStatus,
    -- | Additional information from Amazon Translate about the parallel data
    -- resource.
    ParallelDataProperties -> Maybe Text
message :: Prelude.Maybe Prelude.Text,
    -- | The description assigned to the parallel data resource.
    ParallelDataProperties -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
    -- | The number of items in the input file that Amazon Translate skipped when
    -- you created or updated the parallel data resource. For example, Amazon
    -- Translate skips empty records, empty target texts, and empty lines.
    ParallelDataProperties -> Maybe Integer
skippedRecordCount :: Prelude.Maybe Prelude.Integer,
    -- | Specifies the format and S3 location of the parallel data input file.
    ParallelDataProperties -> Maybe ParallelDataConfig
parallelDataConfig :: Prelude.Maybe ParallelDataConfig
  }
  deriving (ParallelDataProperties -> ParallelDataProperties -> Bool
(ParallelDataProperties -> ParallelDataProperties -> Bool)
-> (ParallelDataProperties -> ParallelDataProperties -> Bool)
-> Eq ParallelDataProperties
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ParallelDataProperties -> ParallelDataProperties -> Bool
$c/= :: ParallelDataProperties -> ParallelDataProperties -> Bool
== :: ParallelDataProperties -> ParallelDataProperties -> Bool
$c== :: ParallelDataProperties -> ParallelDataProperties -> Bool
Prelude.Eq, ReadPrec [ParallelDataProperties]
ReadPrec ParallelDataProperties
Int -> ReadS ParallelDataProperties
ReadS [ParallelDataProperties]
(Int -> ReadS ParallelDataProperties)
-> ReadS [ParallelDataProperties]
-> ReadPrec ParallelDataProperties
-> ReadPrec [ParallelDataProperties]
-> Read ParallelDataProperties
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ParallelDataProperties]
$creadListPrec :: ReadPrec [ParallelDataProperties]
readPrec :: ReadPrec ParallelDataProperties
$creadPrec :: ReadPrec ParallelDataProperties
readList :: ReadS [ParallelDataProperties]
$creadList :: ReadS [ParallelDataProperties]
readsPrec :: Int -> ReadS ParallelDataProperties
$creadsPrec :: Int -> ReadS ParallelDataProperties
Prelude.Read, Int -> ParallelDataProperties -> ShowS
[ParallelDataProperties] -> ShowS
ParallelDataProperties -> String
(Int -> ParallelDataProperties -> ShowS)
-> (ParallelDataProperties -> String)
-> ([ParallelDataProperties] -> ShowS)
-> Show ParallelDataProperties
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ParallelDataProperties] -> ShowS
$cshowList :: [ParallelDataProperties] -> ShowS
show :: ParallelDataProperties -> String
$cshow :: ParallelDataProperties -> String
showsPrec :: Int -> ParallelDataProperties -> ShowS
$cshowsPrec :: Int -> ParallelDataProperties -> ShowS
Prelude.Show, (forall x. ParallelDataProperties -> Rep ParallelDataProperties x)
-> (forall x.
    Rep ParallelDataProperties x -> ParallelDataProperties)
-> Generic ParallelDataProperties
forall x. Rep ParallelDataProperties x -> ParallelDataProperties
forall x. ParallelDataProperties -> Rep ParallelDataProperties x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ParallelDataProperties x -> ParallelDataProperties
$cfrom :: forall x. ParallelDataProperties -> Rep ParallelDataProperties x
Prelude.Generic)

-- |
-- Create a value of 'ParallelDataProperties' 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:
--
-- 'status', 'parallelDataProperties_status' - The status of the parallel data resource. When the parallel data is
-- ready for you to use, the status is @ACTIVE@.
--
-- 'lastUpdatedAt', 'parallelDataProperties_lastUpdatedAt' - The time at which the parallel data resource was last updated.
--
-- 'importedRecordCount', 'parallelDataProperties_importedRecordCount' - The number of records successfully imported from the parallel data input
-- file.
--
-- 'arn', 'parallelDataProperties_arn' - The Amazon Resource Name (ARN) of the parallel data resource.
--
-- 'targetLanguageCodes', 'parallelDataProperties_targetLanguageCodes' - The language codes for the target languages available in the parallel
-- data file. All possible target languages are returned as an array.
--
-- 'createdAt', 'parallelDataProperties_createdAt' - The time at which the parallel data resource was created.
--
-- 'failedRecordCount', 'parallelDataProperties_failedRecordCount' - The number of records unsuccessfully imported from the parallel data
-- input file.
--
-- 'importedDataSize', 'parallelDataProperties_importedDataSize' - The number of UTF-8 characters that Amazon Translate imported from the
-- parallel data input file. This number includes only the characters in
-- your translation examples. It does not include characters that are used
-- to format your file. For example, if you provided a Translation Memory
-- Exchange (.tmx) file, this number does not include the tags.
--
-- 'name', 'parallelDataProperties_name' - The custom name assigned to the parallel data resource.
--
-- 'sourceLanguageCode', 'parallelDataProperties_sourceLanguageCode' - The source language of the translations in the parallel data file.
--
-- 'latestUpdateAttemptAt', 'parallelDataProperties_latestUpdateAttemptAt' - The time that the most recent update was attempted.
--
-- 'encryptionKey', 'parallelDataProperties_encryptionKey' - Undocumented member.
--
-- 'latestUpdateAttemptStatus', 'parallelDataProperties_latestUpdateAttemptStatus' - The status of the most recent update attempt for the parallel data
-- resource.
--
-- 'message', 'parallelDataProperties_message' - Additional information from Amazon Translate about the parallel data
-- resource.
--
-- 'description', 'parallelDataProperties_description' - The description assigned to the parallel data resource.
--
-- 'skippedRecordCount', 'parallelDataProperties_skippedRecordCount' - The number of items in the input file that Amazon Translate skipped when
-- you created or updated the parallel data resource. For example, Amazon
-- Translate skips empty records, empty target texts, and empty lines.
--
-- 'parallelDataConfig', 'parallelDataProperties_parallelDataConfig' - Specifies the format and S3 location of the parallel data input file.
newParallelDataProperties ::
  ParallelDataProperties
newParallelDataProperties :: ParallelDataProperties
newParallelDataProperties =
  ParallelDataProperties' :: Maybe ParallelDataStatus
-> Maybe POSIX
-> Maybe Integer
-> Maybe Text
-> Maybe [Text]
-> Maybe POSIX
-> Maybe Integer
-> Maybe Integer
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe EncryptionKey
-> Maybe ParallelDataStatus
-> Maybe Text
-> Maybe Text
-> Maybe Integer
-> Maybe ParallelDataConfig
-> ParallelDataProperties
ParallelDataProperties'
    { $sel:status:ParallelDataProperties' :: Maybe ParallelDataStatus
status = Maybe ParallelDataStatus
forall a. Maybe a
Prelude.Nothing,
      $sel:lastUpdatedAt:ParallelDataProperties' :: Maybe POSIX
lastUpdatedAt = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:importedRecordCount:ParallelDataProperties' :: Maybe Integer
importedRecordCount = Maybe Integer
forall a. Maybe a
Prelude.Nothing,
      $sel:arn:ParallelDataProperties' :: Maybe Text
arn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:targetLanguageCodes:ParallelDataProperties' :: Maybe [Text]
targetLanguageCodes = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
      $sel:createdAt:ParallelDataProperties' :: Maybe POSIX
createdAt = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:failedRecordCount:ParallelDataProperties' :: Maybe Integer
failedRecordCount = Maybe Integer
forall a. Maybe a
Prelude.Nothing,
      $sel:importedDataSize:ParallelDataProperties' :: Maybe Integer
importedDataSize = Maybe Integer
forall a. Maybe a
Prelude.Nothing,
      $sel:name:ParallelDataProperties' :: Maybe Text
name = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:sourceLanguageCode:ParallelDataProperties' :: Maybe Text
sourceLanguageCode = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:latestUpdateAttemptAt:ParallelDataProperties' :: Maybe POSIX
latestUpdateAttemptAt = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:encryptionKey:ParallelDataProperties' :: Maybe EncryptionKey
encryptionKey = Maybe EncryptionKey
forall a. Maybe a
Prelude.Nothing,
      $sel:latestUpdateAttemptStatus:ParallelDataProperties' :: Maybe ParallelDataStatus
latestUpdateAttemptStatus = Maybe ParallelDataStatus
forall a. Maybe a
Prelude.Nothing,
      $sel:message:ParallelDataProperties' :: Maybe Text
message = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:description:ParallelDataProperties' :: Maybe Text
description = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:skippedRecordCount:ParallelDataProperties' :: Maybe Integer
skippedRecordCount = Maybe Integer
forall a. Maybe a
Prelude.Nothing,
      $sel:parallelDataConfig:ParallelDataProperties' :: Maybe ParallelDataConfig
parallelDataConfig = Maybe ParallelDataConfig
forall a. Maybe a
Prelude.Nothing
    }

-- | The status of the parallel data resource. When the parallel data is
-- ready for you to use, the status is @ACTIVE@.
parallelDataProperties_status :: Lens.Lens' ParallelDataProperties (Prelude.Maybe ParallelDataStatus)
parallelDataProperties_status :: (Maybe ParallelDataStatus -> f (Maybe ParallelDataStatus))
-> ParallelDataProperties -> f ParallelDataProperties
parallelDataProperties_status = (ParallelDataProperties -> Maybe ParallelDataStatus)
-> (ParallelDataProperties
    -> Maybe ParallelDataStatus -> ParallelDataProperties)
-> Lens
     ParallelDataProperties
     ParallelDataProperties
     (Maybe ParallelDataStatus)
     (Maybe ParallelDataStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ParallelDataProperties' {Maybe ParallelDataStatus
status :: Maybe ParallelDataStatus
$sel:status:ParallelDataProperties' :: ParallelDataProperties -> Maybe ParallelDataStatus
status} -> Maybe ParallelDataStatus
status) (\s :: ParallelDataProperties
s@ParallelDataProperties' {} Maybe ParallelDataStatus
a -> ParallelDataProperties
s {$sel:status:ParallelDataProperties' :: Maybe ParallelDataStatus
status = Maybe ParallelDataStatus
a} :: ParallelDataProperties)

-- | The time at which the parallel data resource was last updated.
parallelDataProperties_lastUpdatedAt :: Lens.Lens' ParallelDataProperties (Prelude.Maybe Prelude.UTCTime)
parallelDataProperties_lastUpdatedAt :: (Maybe UTCTime -> f (Maybe UTCTime))
-> ParallelDataProperties -> f ParallelDataProperties
parallelDataProperties_lastUpdatedAt = (ParallelDataProperties -> Maybe POSIX)
-> (ParallelDataProperties
    -> Maybe POSIX -> ParallelDataProperties)
-> Lens
     ParallelDataProperties
     ParallelDataProperties
     (Maybe POSIX)
     (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ParallelDataProperties' {Maybe POSIX
lastUpdatedAt :: Maybe POSIX
$sel:lastUpdatedAt:ParallelDataProperties' :: ParallelDataProperties -> Maybe POSIX
lastUpdatedAt} -> Maybe POSIX
lastUpdatedAt) (\s :: ParallelDataProperties
s@ParallelDataProperties' {} Maybe POSIX
a -> ParallelDataProperties
s {$sel:lastUpdatedAt:ParallelDataProperties' :: Maybe POSIX
lastUpdatedAt = Maybe POSIX
a} :: ParallelDataProperties) ((Maybe POSIX -> f (Maybe POSIX))
 -> ParallelDataProperties -> f ParallelDataProperties)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> ParallelDataProperties
-> f ParallelDataProperties
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 number of records successfully imported from the parallel data input
-- file.
parallelDataProperties_importedRecordCount :: Lens.Lens' ParallelDataProperties (Prelude.Maybe Prelude.Integer)
parallelDataProperties_importedRecordCount :: (Maybe Integer -> f (Maybe Integer))
-> ParallelDataProperties -> f ParallelDataProperties
parallelDataProperties_importedRecordCount = (ParallelDataProperties -> Maybe Integer)
-> (ParallelDataProperties
    -> Maybe Integer -> ParallelDataProperties)
-> Lens
     ParallelDataProperties
     ParallelDataProperties
     (Maybe Integer)
     (Maybe Integer)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ParallelDataProperties' {Maybe Integer
importedRecordCount :: Maybe Integer
$sel:importedRecordCount:ParallelDataProperties' :: ParallelDataProperties -> Maybe Integer
importedRecordCount} -> Maybe Integer
importedRecordCount) (\s :: ParallelDataProperties
s@ParallelDataProperties' {} Maybe Integer
a -> ParallelDataProperties
s {$sel:importedRecordCount:ParallelDataProperties' :: Maybe Integer
importedRecordCount = Maybe Integer
a} :: ParallelDataProperties)

-- | The Amazon Resource Name (ARN) of the parallel data resource.
parallelDataProperties_arn :: Lens.Lens' ParallelDataProperties (Prelude.Maybe Prelude.Text)
parallelDataProperties_arn :: (Maybe Text -> f (Maybe Text))
-> ParallelDataProperties -> f ParallelDataProperties
parallelDataProperties_arn = (ParallelDataProperties -> Maybe Text)
-> (ParallelDataProperties -> Maybe Text -> ParallelDataProperties)
-> Lens
     ParallelDataProperties
     ParallelDataProperties
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ParallelDataProperties' {Maybe Text
arn :: Maybe Text
$sel:arn:ParallelDataProperties' :: ParallelDataProperties -> Maybe Text
arn} -> Maybe Text
arn) (\s :: ParallelDataProperties
s@ParallelDataProperties' {} Maybe Text
a -> ParallelDataProperties
s {$sel:arn:ParallelDataProperties' :: Maybe Text
arn = Maybe Text
a} :: ParallelDataProperties)

-- | The language codes for the target languages available in the parallel
-- data file. All possible target languages are returned as an array.
parallelDataProperties_targetLanguageCodes :: Lens.Lens' ParallelDataProperties (Prelude.Maybe [Prelude.Text])
parallelDataProperties_targetLanguageCodes :: (Maybe [Text] -> f (Maybe [Text]))
-> ParallelDataProperties -> f ParallelDataProperties
parallelDataProperties_targetLanguageCodes = (ParallelDataProperties -> Maybe [Text])
-> (ParallelDataProperties
    -> Maybe [Text] -> ParallelDataProperties)
-> Lens
     ParallelDataProperties
     ParallelDataProperties
     (Maybe [Text])
     (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ParallelDataProperties' {Maybe [Text]
targetLanguageCodes :: Maybe [Text]
$sel:targetLanguageCodes:ParallelDataProperties' :: ParallelDataProperties -> Maybe [Text]
targetLanguageCodes} -> Maybe [Text]
targetLanguageCodes) (\s :: ParallelDataProperties
s@ParallelDataProperties' {} Maybe [Text]
a -> ParallelDataProperties
s {$sel:targetLanguageCodes:ParallelDataProperties' :: Maybe [Text]
targetLanguageCodes = Maybe [Text]
a} :: ParallelDataProperties) ((Maybe [Text] -> f (Maybe [Text]))
 -> ParallelDataProperties -> f ParallelDataProperties)
-> ((Maybe [Text] -> f (Maybe [Text]))
    -> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> ParallelDataProperties
-> f ParallelDataProperties
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 time at which the parallel data resource was created.
parallelDataProperties_createdAt :: Lens.Lens' ParallelDataProperties (Prelude.Maybe Prelude.UTCTime)
parallelDataProperties_createdAt :: (Maybe UTCTime -> f (Maybe UTCTime))
-> ParallelDataProperties -> f ParallelDataProperties
parallelDataProperties_createdAt = (ParallelDataProperties -> Maybe POSIX)
-> (ParallelDataProperties
    -> Maybe POSIX -> ParallelDataProperties)
-> Lens
     ParallelDataProperties
     ParallelDataProperties
     (Maybe POSIX)
     (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ParallelDataProperties' {Maybe POSIX
createdAt :: Maybe POSIX
$sel:createdAt:ParallelDataProperties' :: ParallelDataProperties -> Maybe POSIX
createdAt} -> Maybe POSIX
createdAt) (\s :: ParallelDataProperties
s@ParallelDataProperties' {} Maybe POSIX
a -> ParallelDataProperties
s {$sel:createdAt:ParallelDataProperties' :: Maybe POSIX
createdAt = Maybe POSIX
a} :: ParallelDataProperties) ((Maybe POSIX -> f (Maybe POSIX))
 -> ParallelDataProperties -> f ParallelDataProperties)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> ParallelDataProperties
-> f ParallelDataProperties
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 number of records unsuccessfully imported from the parallel data
-- input file.
parallelDataProperties_failedRecordCount :: Lens.Lens' ParallelDataProperties (Prelude.Maybe Prelude.Integer)
parallelDataProperties_failedRecordCount :: (Maybe Integer -> f (Maybe Integer))
-> ParallelDataProperties -> f ParallelDataProperties
parallelDataProperties_failedRecordCount = (ParallelDataProperties -> Maybe Integer)
-> (ParallelDataProperties
    -> Maybe Integer -> ParallelDataProperties)
-> Lens
     ParallelDataProperties
     ParallelDataProperties
     (Maybe Integer)
     (Maybe Integer)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ParallelDataProperties' {Maybe Integer
failedRecordCount :: Maybe Integer
$sel:failedRecordCount:ParallelDataProperties' :: ParallelDataProperties -> Maybe Integer
failedRecordCount} -> Maybe Integer
failedRecordCount) (\s :: ParallelDataProperties
s@ParallelDataProperties' {} Maybe Integer
a -> ParallelDataProperties
s {$sel:failedRecordCount:ParallelDataProperties' :: Maybe Integer
failedRecordCount = Maybe Integer
a} :: ParallelDataProperties)

-- | The number of UTF-8 characters that Amazon Translate imported from the
-- parallel data input file. This number includes only the characters in
-- your translation examples. It does not include characters that are used
-- to format your file. For example, if you provided a Translation Memory
-- Exchange (.tmx) file, this number does not include the tags.
parallelDataProperties_importedDataSize :: Lens.Lens' ParallelDataProperties (Prelude.Maybe Prelude.Integer)
parallelDataProperties_importedDataSize :: (Maybe Integer -> f (Maybe Integer))
-> ParallelDataProperties -> f ParallelDataProperties
parallelDataProperties_importedDataSize = (ParallelDataProperties -> Maybe Integer)
-> (ParallelDataProperties
    -> Maybe Integer -> ParallelDataProperties)
-> Lens
     ParallelDataProperties
     ParallelDataProperties
     (Maybe Integer)
     (Maybe Integer)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ParallelDataProperties' {Maybe Integer
importedDataSize :: Maybe Integer
$sel:importedDataSize:ParallelDataProperties' :: ParallelDataProperties -> Maybe Integer
importedDataSize} -> Maybe Integer
importedDataSize) (\s :: ParallelDataProperties
s@ParallelDataProperties' {} Maybe Integer
a -> ParallelDataProperties
s {$sel:importedDataSize:ParallelDataProperties' :: Maybe Integer
importedDataSize = Maybe Integer
a} :: ParallelDataProperties)

-- | The custom name assigned to the parallel data resource.
parallelDataProperties_name :: Lens.Lens' ParallelDataProperties (Prelude.Maybe Prelude.Text)
parallelDataProperties_name :: (Maybe Text -> f (Maybe Text))
-> ParallelDataProperties -> f ParallelDataProperties
parallelDataProperties_name = (ParallelDataProperties -> Maybe Text)
-> (ParallelDataProperties -> Maybe Text -> ParallelDataProperties)
-> Lens
     ParallelDataProperties
     ParallelDataProperties
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ParallelDataProperties' {Maybe Text
name :: Maybe Text
$sel:name:ParallelDataProperties' :: ParallelDataProperties -> Maybe Text
name} -> Maybe Text
name) (\s :: ParallelDataProperties
s@ParallelDataProperties' {} Maybe Text
a -> ParallelDataProperties
s {$sel:name:ParallelDataProperties' :: Maybe Text
name = Maybe Text
a} :: ParallelDataProperties)

-- | The source language of the translations in the parallel data file.
parallelDataProperties_sourceLanguageCode :: Lens.Lens' ParallelDataProperties (Prelude.Maybe Prelude.Text)
parallelDataProperties_sourceLanguageCode :: (Maybe Text -> f (Maybe Text))
-> ParallelDataProperties -> f ParallelDataProperties
parallelDataProperties_sourceLanguageCode = (ParallelDataProperties -> Maybe Text)
-> (ParallelDataProperties -> Maybe Text -> ParallelDataProperties)
-> Lens
     ParallelDataProperties
     ParallelDataProperties
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ParallelDataProperties' {Maybe Text
sourceLanguageCode :: Maybe Text
$sel:sourceLanguageCode:ParallelDataProperties' :: ParallelDataProperties -> Maybe Text
sourceLanguageCode} -> Maybe Text
sourceLanguageCode) (\s :: ParallelDataProperties
s@ParallelDataProperties' {} Maybe Text
a -> ParallelDataProperties
s {$sel:sourceLanguageCode:ParallelDataProperties' :: Maybe Text
sourceLanguageCode = Maybe Text
a} :: ParallelDataProperties)

-- | The time that the most recent update was attempted.
parallelDataProperties_latestUpdateAttemptAt :: Lens.Lens' ParallelDataProperties (Prelude.Maybe Prelude.UTCTime)
parallelDataProperties_latestUpdateAttemptAt :: (Maybe UTCTime -> f (Maybe UTCTime))
-> ParallelDataProperties -> f ParallelDataProperties
parallelDataProperties_latestUpdateAttemptAt = (ParallelDataProperties -> Maybe POSIX)
-> (ParallelDataProperties
    -> Maybe POSIX -> ParallelDataProperties)
-> Lens
     ParallelDataProperties
     ParallelDataProperties
     (Maybe POSIX)
     (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ParallelDataProperties' {Maybe POSIX
latestUpdateAttemptAt :: Maybe POSIX
$sel:latestUpdateAttemptAt:ParallelDataProperties' :: ParallelDataProperties -> Maybe POSIX
latestUpdateAttemptAt} -> Maybe POSIX
latestUpdateAttemptAt) (\s :: ParallelDataProperties
s@ParallelDataProperties' {} Maybe POSIX
a -> ParallelDataProperties
s {$sel:latestUpdateAttemptAt:ParallelDataProperties' :: Maybe POSIX
latestUpdateAttemptAt = Maybe POSIX
a} :: ParallelDataProperties) ((Maybe POSIX -> f (Maybe POSIX))
 -> ParallelDataProperties -> f ParallelDataProperties)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> ParallelDataProperties
-> f ParallelDataProperties
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

-- | Undocumented member.
parallelDataProperties_encryptionKey :: Lens.Lens' ParallelDataProperties (Prelude.Maybe EncryptionKey)
parallelDataProperties_encryptionKey :: (Maybe EncryptionKey -> f (Maybe EncryptionKey))
-> ParallelDataProperties -> f ParallelDataProperties
parallelDataProperties_encryptionKey = (ParallelDataProperties -> Maybe EncryptionKey)
-> (ParallelDataProperties
    -> Maybe EncryptionKey -> ParallelDataProperties)
-> Lens
     ParallelDataProperties
     ParallelDataProperties
     (Maybe EncryptionKey)
     (Maybe EncryptionKey)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ParallelDataProperties' {Maybe EncryptionKey
encryptionKey :: Maybe EncryptionKey
$sel:encryptionKey:ParallelDataProperties' :: ParallelDataProperties -> Maybe EncryptionKey
encryptionKey} -> Maybe EncryptionKey
encryptionKey) (\s :: ParallelDataProperties
s@ParallelDataProperties' {} Maybe EncryptionKey
a -> ParallelDataProperties
s {$sel:encryptionKey:ParallelDataProperties' :: Maybe EncryptionKey
encryptionKey = Maybe EncryptionKey
a} :: ParallelDataProperties)

-- | The status of the most recent update attempt for the parallel data
-- resource.
parallelDataProperties_latestUpdateAttemptStatus :: Lens.Lens' ParallelDataProperties (Prelude.Maybe ParallelDataStatus)
parallelDataProperties_latestUpdateAttemptStatus :: (Maybe ParallelDataStatus -> f (Maybe ParallelDataStatus))
-> ParallelDataProperties -> f ParallelDataProperties
parallelDataProperties_latestUpdateAttemptStatus = (ParallelDataProperties -> Maybe ParallelDataStatus)
-> (ParallelDataProperties
    -> Maybe ParallelDataStatus -> ParallelDataProperties)
-> Lens
     ParallelDataProperties
     ParallelDataProperties
     (Maybe ParallelDataStatus)
     (Maybe ParallelDataStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ParallelDataProperties' {Maybe ParallelDataStatus
latestUpdateAttemptStatus :: Maybe ParallelDataStatus
$sel:latestUpdateAttemptStatus:ParallelDataProperties' :: ParallelDataProperties -> Maybe ParallelDataStatus
latestUpdateAttemptStatus} -> Maybe ParallelDataStatus
latestUpdateAttemptStatus) (\s :: ParallelDataProperties
s@ParallelDataProperties' {} Maybe ParallelDataStatus
a -> ParallelDataProperties
s {$sel:latestUpdateAttemptStatus:ParallelDataProperties' :: Maybe ParallelDataStatus
latestUpdateAttemptStatus = Maybe ParallelDataStatus
a} :: ParallelDataProperties)

-- | Additional information from Amazon Translate about the parallel data
-- resource.
parallelDataProperties_message :: Lens.Lens' ParallelDataProperties (Prelude.Maybe Prelude.Text)
parallelDataProperties_message :: (Maybe Text -> f (Maybe Text))
-> ParallelDataProperties -> f ParallelDataProperties
parallelDataProperties_message = (ParallelDataProperties -> Maybe Text)
-> (ParallelDataProperties -> Maybe Text -> ParallelDataProperties)
-> Lens
     ParallelDataProperties
     ParallelDataProperties
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ParallelDataProperties' {Maybe Text
message :: Maybe Text
$sel:message:ParallelDataProperties' :: ParallelDataProperties -> Maybe Text
message} -> Maybe Text
message) (\s :: ParallelDataProperties
s@ParallelDataProperties' {} Maybe Text
a -> ParallelDataProperties
s {$sel:message:ParallelDataProperties' :: Maybe Text
message = Maybe Text
a} :: ParallelDataProperties)

-- | The description assigned to the parallel data resource.
parallelDataProperties_description :: Lens.Lens' ParallelDataProperties (Prelude.Maybe Prelude.Text)
parallelDataProperties_description :: (Maybe Text -> f (Maybe Text))
-> ParallelDataProperties -> f ParallelDataProperties
parallelDataProperties_description = (ParallelDataProperties -> Maybe Text)
-> (ParallelDataProperties -> Maybe Text -> ParallelDataProperties)
-> Lens
     ParallelDataProperties
     ParallelDataProperties
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ParallelDataProperties' {Maybe Text
description :: Maybe Text
$sel:description:ParallelDataProperties' :: ParallelDataProperties -> Maybe Text
description} -> Maybe Text
description) (\s :: ParallelDataProperties
s@ParallelDataProperties' {} Maybe Text
a -> ParallelDataProperties
s {$sel:description:ParallelDataProperties' :: Maybe Text
description = Maybe Text
a} :: ParallelDataProperties)

-- | The number of items in the input file that Amazon Translate skipped when
-- you created or updated the parallel data resource. For example, Amazon
-- Translate skips empty records, empty target texts, and empty lines.
parallelDataProperties_skippedRecordCount :: Lens.Lens' ParallelDataProperties (Prelude.Maybe Prelude.Integer)
parallelDataProperties_skippedRecordCount :: (Maybe Integer -> f (Maybe Integer))
-> ParallelDataProperties -> f ParallelDataProperties
parallelDataProperties_skippedRecordCount = (ParallelDataProperties -> Maybe Integer)
-> (ParallelDataProperties
    -> Maybe Integer -> ParallelDataProperties)
-> Lens
     ParallelDataProperties
     ParallelDataProperties
     (Maybe Integer)
     (Maybe Integer)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ParallelDataProperties' {Maybe Integer
skippedRecordCount :: Maybe Integer
$sel:skippedRecordCount:ParallelDataProperties' :: ParallelDataProperties -> Maybe Integer
skippedRecordCount} -> Maybe Integer
skippedRecordCount) (\s :: ParallelDataProperties
s@ParallelDataProperties' {} Maybe Integer
a -> ParallelDataProperties
s {$sel:skippedRecordCount:ParallelDataProperties' :: Maybe Integer
skippedRecordCount = Maybe Integer
a} :: ParallelDataProperties)

-- | Specifies the format and S3 location of the parallel data input file.
parallelDataProperties_parallelDataConfig :: Lens.Lens' ParallelDataProperties (Prelude.Maybe ParallelDataConfig)
parallelDataProperties_parallelDataConfig :: (Maybe ParallelDataConfig -> f (Maybe ParallelDataConfig))
-> ParallelDataProperties -> f ParallelDataProperties
parallelDataProperties_parallelDataConfig = (ParallelDataProperties -> Maybe ParallelDataConfig)
-> (ParallelDataProperties
    -> Maybe ParallelDataConfig -> ParallelDataProperties)
-> Lens
     ParallelDataProperties
     ParallelDataProperties
     (Maybe ParallelDataConfig)
     (Maybe ParallelDataConfig)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ParallelDataProperties' {Maybe ParallelDataConfig
parallelDataConfig :: Maybe ParallelDataConfig
$sel:parallelDataConfig:ParallelDataProperties' :: ParallelDataProperties -> Maybe ParallelDataConfig
parallelDataConfig} -> Maybe ParallelDataConfig
parallelDataConfig) (\s :: ParallelDataProperties
s@ParallelDataProperties' {} Maybe ParallelDataConfig
a -> ParallelDataProperties
s {$sel:parallelDataConfig:ParallelDataProperties' :: Maybe ParallelDataConfig
parallelDataConfig = Maybe ParallelDataConfig
a} :: ParallelDataProperties)

instance Core.FromJSON ParallelDataProperties where
  parseJSON :: Value -> Parser ParallelDataProperties
parseJSON =
    String
-> (Object -> Parser ParallelDataProperties)
-> Value
-> Parser ParallelDataProperties
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
      String
"ParallelDataProperties"
      ( \Object
x ->
          Maybe ParallelDataStatus
-> Maybe POSIX
-> Maybe Integer
-> Maybe Text
-> Maybe [Text]
-> Maybe POSIX
-> Maybe Integer
-> Maybe Integer
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe EncryptionKey
-> Maybe ParallelDataStatus
-> Maybe Text
-> Maybe Text
-> Maybe Integer
-> Maybe ParallelDataConfig
-> ParallelDataProperties
ParallelDataProperties'
            (Maybe ParallelDataStatus
 -> Maybe POSIX
 -> Maybe Integer
 -> Maybe Text
 -> Maybe [Text]
 -> Maybe POSIX
 -> Maybe Integer
 -> Maybe Integer
 -> Maybe Text
 -> Maybe Text
 -> Maybe POSIX
 -> Maybe EncryptionKey
 -> Maybe ParallelDataStatus
 -> Maybe Text
 -> Maybe Text
 -> Maybe Integer
 -> Maybe ParallelDataConfig
 -> ParallelDataProperties)
-> Parser (Maybe ParallelDataStatus)
-> Parser
     (Maybe POSIX
      -> Maybe Integer
      -> Maybe Text
      -> Maybe [Text]
      -> Maybe POSIX
      -> Maybe Integer
      -> Maybe Integer
      -> Maybe Text
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe EncryptionKey
      -> Maybe ParallelDataStatus
      -> Maybe Text
      -> Maybe Text
      -> Maybe Integer
      -> Maybe ParallelDataConfig
      -> ParallelDataProperties)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe ParallelDataStatus)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Status")
            Parser
  (Maybe POSIX
   -> Maybe Integer
   -> Maybe Text
   -> Maybe [Text]
   -> Maybe POSIX
   -> Maybe Integer
   -> Maybe Integer
   -> Maybe Text
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe EncryptionKey
   -> Maybe ParallelDataStatus
   -> Maybe Text
   -> Maybe Text
   -> Maybe Integer
   -> Maybe ParallelDataConfig
   -> ParallelDataProperties)
-> Parser (Maybe POSIX)
-> Parser
     (Maybe Integer
      -> Maybe Text
      -> Maybe [Text]
      -> Maybe POSIX
      -> Maybe Integer
      -> Maybe Integer
      -> Maybe Text
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe EncryptionKey
      -> Maybe ParallelDataStatus
      -> Maybe Text
      -> Maybe Text
      -> Maybe Integer
      -> Maybe ParallelDataConfig
      -> ParallelDataProperties)
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
"LastUpdatedAt")
            Parser
  (Maybe Integer
   -> Maybe Text
   -> Maybe [Text]
   -> Maybe POSIX
   -> Maybe Integer
   -> Maybe Integer
   -> Maybe Text
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe EncryptionKey
   -> Maybe ParallelDataStatus
   -> Maybe Text
   -> Maybe Text
   -> Maybe Integer
   -> Maybe ParallelDataConfig
   -> ParallelDataProperties)
-> Parser (Maybe Integer)
-> Parser
     (Maybe Text
      -> Maybe [Text]
      -> Maybe POSIX
      -> Maybe Integer
      -> Maybe Integer
      -> Maybe Text
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe EncryptionKey
      -> Maybe ParallelDataStatus
      -> Maybe Text
      -> Maybe Text
      -> Maybe Integer
      -> Maybe ParallelDataConfig
      -> ParallelDataProperties)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Integer)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ImportedRecordCount")
            Parser
  (Maybe Text
   -> Maybe [Text]
   -> Maybe POSIX
   -> Maybe Integer
   -> Maybe Integer
   -> Maybe Text
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe EncryptionKey
   -> Maybe ParallelDataStatus
   -> Maybe Text
   -> Maybe Text
   -> Maybe Integer
   -> Maybe ParallelDataConfig
   -> ParallelDataProperties)
-> Parser (Maybe Text)
-> Parser
     (Maybe [Text]
      -> Maybe POSIX
      -> Maybe Integer
      -> Maybe Integer
      -> Maybe Text
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe EncryptionKey
      -> Maybe ParallelDataStatus
      -> Maybe Text
      -> Maybe Text
      -> Maybe Integer
      -> Maybe ParallelDataConfig
      -> ParallelDataProperties)
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
"Arn")
            Parser
  (Maybe [Text]
   -> Maybe POSIX
   -> Maybe Integer
   -> Maybe Integer
   -> Maybe Text
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe EncryptionKey
   -> Maybe ParallelDataStatus
   -> Maybe Text
   -> Maybe Text
   -> Maybe Integer
   -> Maybe ParallelDataConfig
   -> ParallelDataProperties)
-> Parser (Maybe [Text])
-> Parser
     (Maybe POSIX
      -> Maybe Integer
      -> Maybe Integer
      -> Maybe Text
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe EncryptionKey
      -> Maybe ParallelDataStatus
      -> Maybe Text
      -> Maybe Text
      -> Maybe Integer
      -> Maybe ParallelDataConfig
      -> ParallelDataProperties)
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
"TargetLanguageCodes"
                            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 POSIX
   -> Maybe Integer
   -> Maybe Integer
   -> Maybe Text
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe EncryptionKey
   -> Maybe ParallelDataStatus
   -> Maybe Text
   -> Maybe Text
   -> Maybe Integer
   -> Maybe ParallelDataConfig
   -> ParallelDataProperties)
-> Parser (Maybe POSIX)
-> Parser
     (Maybe Integer
      -> Maybe Integer
      -> Maybe Text
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe EncryptionKey
      -> Maybe ParallelDataStatus
      -> Maybe Text
      -> Maybe Text
      -> Maybe Integer
      -> Maybe ParallelDataConfig
      -> ParallelDataProperties)
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
"CreatedAt")
            Parser
  (Maybe Integer
   -> Maybe Integer
   -> Maybe Text
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe EncryptionKey
   -> Maybe ParallelDataStatus
   -> Maybe Text
   -> Maybe Text
   -> Maybe Integer
   -> Maybe ParallelDataConfig
   -> ParallelDataProperties)
-> Parser (Maybe Integer)
-> Parser
     (Maybe Integer
      -> Maybe Text
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe EncryptionKey
      -> Maybe ParallelDataStatus
      -> Maybe Text
      -> Maybe Text
      -> Maybe Integer
      -> Maybe ParallelDataConfig
      -> ParallelDataProperties)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Integer)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"FailedRecordCount")
            Parser
  (Maybe Integer
   -> Maybe Text
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe EncryptionKey
   -> Maybe ParallelDataStatus
   -> Maybe Text
   -> Maybe Text
   -> Maybe Integer
   -> Maybe ParallelDataConfig
   -> ParallelDataProperties)
-> Parser (Maybe Integer)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe EncryptionKey
      -> Maybe ParallelDataStatus
      -> Maybe Text
      -> Maybe Text
      -> Maybe Integer
      -> Maybe ParallelDataConfig
      -> ParallelDataProperties)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Integer)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ImportedDataSize")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe EncryptionKey
   -> Maybe ParallelDataStatus
   -> Maybe Text
   -> Maybe Text
   -> Maybe Integer
   -> Maybe ParallelDataConfig
   -> ParallelDataProperties)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe POSIX
      -> Maybe EncryptionKey
      -> Maybe ParallelDataStatus
      -> Maybe Text
      -> Maybe Text
      -> Maybe Integer
      -> Maybe ParallelDataConfig
      -> ParallelDataProperties)
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
"Name")
            Parser
  (Maybe Text
   -> Maybe POSIX
   -> Maybe EncryptionKey
   -> Maybe ParallelDataStatus
   -> Maybe Text
   -> Maybe Text
   -> Maybe Integer
   -> Maybe ParallelDataConfig
   -> ParallelDataProperties)
-> Parser (Maybe Text)
-> Parser
     (Maybe POSIX
      -> Maybe EncryptionKey
      -> Maybe ParallelDataStatus
      -> Maybe Text
      -> Maybe Text
      -> Maybe Integer
      -> Maybe ParallelDataConfig
      -> ParallelDataProperties)
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 EncryptionKey
   -> Maybe ParallelDataStatus
   -> Maybe Text
   -> Maybe Text
   -> Maybe Integer
   -> Maybe ParallelDataConfig
   -> ParallelDataProperties)
-> Parser (Maybe POSIX)
-> Parser
     (Maybe EncryptionKey
      -> Maybe ParallelDataStatus
      -> Maybe Text
      -> Maybe Text
      -> Maybe Integer
      -> Maybe ParallelDataConfig
      -> ParallelDataProperties)
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
"LatestUpdateAttemptAt")
            Parser
  (Maybe EncryptionKey
   -> Maybe ParallelDataStatus
   -> Maybe Text
   -> Maybe Text
   -> Maybe Integer
   -> Maybe ParallelDataConfig
   -> ParallelDataProperties)
-> Parser (Maybe EncryptionKey)
-> Parser
     (Maybe ParallelDataStatus
      -> Maybe Text
      -> Maybe Text
      -> Maybe Integer
      -> Maybe ParallelDataConfig
      -> ParallelDataProperties)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe EncryptionKey)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"EncryptionKey")
            Parser
  (Maybe ParallelDataStatus
   -> Maybe Text
   -> Maybe Text
   -> Maybe Integer
   -> Maybe ParallelDataConfig
   -> ParallelDataProperties)
-> Parser (Maybe ParallelDataStatus)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe Integer
      -> Maybe ParallelDataConfig
      -> ParallelDataProperties)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe ParallelDataStatus)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"LatestUpdateAttemptStatus")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe Integer
   -> Maybe ParallelDataConfig
   -> ParallelDataProperties)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Integer
      -> Maybe ParallelDataConfig
      -> ParallelDataProperties)
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 Text
   -> Maybe Integer
   -> Maybe ParallelDataConfig
   -> ParallelDataProperties)
-> Parser (Maybe Text)
-> Parser
     (Maybe Integer
      -> Maybe ParallelDataConfig -> ParallelDataProperties)
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
"Description")
            Parser
  (Maybe Integer
   -> Maybe ParallelDataConfig -> ParallelDataProperties)
-> Parser (Maybe Integer)
-> Parser (Maybe ParallelDataConfig -> ParallelDataProperties)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Integer)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"SkippedRecordCount")
            Parser (Maybe ParallelDataConfig -> ParallelDataProperties)
-> Parser (Maybe ParallelDataConfig)
-> Parser ParallelDataProperties
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe ParallelDataConfig)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ParallelDataConfig")
      )

instance Prelude.Hashable ParallelDataProperties

instance Prelude.NFData ParallelDataProperties