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

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

-- | The properties of the custom terminology.
--
-- /See:/ 'newTerminologyProperties' smart constructor.
data TerminologyProperties = TerminologyProperties'
  { -- | The size of the file used when importing a custom terminology.
    TerminologyProperties -> Maybe Int
sizeBytes :: Prelude.Maybe Prelude.Int,
    -- | The time at which the custom terminology was last update, based on the
    -- timestamp.
    TerminologyProperties -> Maybe POSIX
lastUpdatedAt :: Prelude.Maybe Core.POSIX,
    -- | The Amazon Resource Name (ARN) of the custom terminology.
    TerminologyProperties -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
    -- | The language codes for the target languages available with the custom
    -- terminology file. All possible target languages are returned in array.
    TerminologyProperties -> Maybe [Text]
targetLanguageCodes :: Prelude.Maybe [Prelude.Text],
    -- | The time at which the custom terminology was created, based on the
    -- timestamp.
    TerminologyProperties -> Maybe POSIX
createdAt :: Prelude.Maybe Core.POSIX,
    -- | The name of the custom terminology.
    TerminologyProperties -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
    -- | The language code for the source text of the translation request for
    -- which the custom terminology is being used.
    TerminologyProperties -> Maybe Text
sourceLanguageCode :: Prelude.Maybe Prelude.Text,
    -- | The number of terms included in the custom terminology.
    TerminologyProperties -> Maybe Int
termCount :: Prelude.Maybe Prelude.Int,
    -- | The encryption key for the custom terminology.
    TerminologyProperties -> Maybe EncryptionKey
encryptionKey :: Prelude.Maybe EncryptionKey,
    -- | The description of the custom terminology properties.
    TerminologyProperties -> Maybe Text
description :: Prelude.Maybe Prelude.Text
  }
  deriving (TerminologyProperties -> TerminologyProperties -> Bool
(TerminologyProperties -> TerminologyProperties -> Bool)
-> (TerminologyProperties -> TerminologyProperties -> Bool)
-> Eq TerminologyProperties
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: TerminologyProperties -> TerminologyProperties -> Bool
$c/= :: TerminologyProperties -> TerminologyProperties -> Bool
== :: TerminologyProperties -> TerminologyProperties -> Bool
$c== :: TerminologyProperties -> TerminologyProperties -> Bool
Prelude.Eq, ReadPrec [TerminologyProperties]
ReadPrec TerminologyProperties
Int -> ReadS TerminologyProperties
ReadS [TerminologyProperties]
(Int -> ReadS TerminologyProperties)
-> ReadS [TerminologyProperties]
-> ReadPrec TerminologyProperties
-> ReadPrec [TerminologyProperties]
-> Read TerminologyProperties
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [TerminologyProperties]
$creadListPrec :: ReadPrec [TerminologyProperties]
readPrec :: ReadPrec TerminologyProperties
$creadPrec :: ReadPrec TerminologyProperties
readList :: ReadS [TerminologyProperties]
$creadList :: ReadS [TerminologyProperties]
readsPrec :: Int -> ReadS TerminologyProperties
$creadsPrec :: Int -> ReadS TerminologyProperties
Prelude.Read, Int -> TerminologyProperties -> ShowS
[TerminologyProperties] -> ShowS
TerminologyProperties -> String
(Int -> TerminologyProperties -> ShowS)
-> (TerminologyProperties -> String)
-> ([TerminologyProperties] -> ShowS)
-> Show TerminologyProperties
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [TerminologyProperties] -> ShowS
$cshowList :: [TerminologyProperties] -> ShowS
show :: TerminologyProperties -> String
$cshow :: TerminologyProperties -> String
showsPrec :: Int -> TerminologyProperties -> ShowS
$cshowsPrec :: Int -> TerminologyProperties -> ShowS
Prelude.Show, (forall x. TerminologyProperties -> Rep TerminologyProperties x)
-> (forall x. Rep TerminologyProperties x -> TerminologyProperties)
-> Generic TerminologyProperties
forall x. Rep TerminologyProperties x -> TerminologyProperties
forall x. TerminologyProperties -> Rep TerminologyProperties x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep TerminologyProperties x -> TerminologyProperties
$cfrom :: forall x. TerminologyProperties -> Rep TerminologyProperties x
Prelude.Generic)

-- |
-- Create a value of 'TerminologyProperties' 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:
--
-- 'sizeBytes', 'terminologyProperties_sizeBytes' - The size of the file used when importing a custom terminology.
--
-- 'lastUpdatedAt', 'terminologyProperties_lastUpdatedAt' - The time at which the custom terminology was last update, based on the
-- timestamp.
--
-- 'arn', 'terminologyProperties_arn' - The Amazon Resource Name (ARN) of the custom terminology.
--
-- 'targetLanguageCodes', 'terminologyProperties_targetLanguageCodes' - The language codes for the target languages available with the custom
-- terminology file. All possible target languages are returned in array.
--
-- 'createdAt', 'terminologyProperties_createdAt' - The time at which the custom terminology was created, based on the
-- timestamp.
--
-- 'name', 'terminologyProperties_name' - The name of the custom terminology.
--
-- 'sourceLanguageCode', 'terminologyProperties_sourceLanguageCode' - The language code for the source text of the translation request for
-- which the custom terminology is being used.
--
-- 'termCount', 'terminologyProperties_termCount' - The number of terms included in the custom terminology.
--
-- 'encryptionKey', 'terminologyProperties_encryptionKey' - The encryption key for the custom terminology.
--
-- 'description', 'terminologyProperties_description' - The description of the custom terminology properties.
newTerminologyProperties ::
  TerminologyProperties
newTerminologyProperties :: TerminologyProperties
newTerminologyProperties =
  TerminologyProperties' :: Maybe Int
-> Maybe POSIX
-> Maybe Text
-> Maybe [Text]
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe EncryptionKey
-> Maybe Text
-> TerminologyProperties
TerminologyProperties'
    { $sel:sizeBytes:TerminologyProperties' :: Maybe Int
sizeBytes = Maybe Int
forall a. Maybe a
Prelude.Nothing,
      $sel:lastUpdatedAt:TerminologyProperties' :: Maybe POSIX
lastUpdatedAt = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:arn:TerminologyProperties' :: Maybe Text
arn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:targetLanguageCodes:TerminologyProperties' :: Maybe [Text]
targetLanguageCodes = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
      $sel:createdAt:TerminologyProperties' :: Maybe POSIX
createdAt = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:name:TerminologyProperties' :: Maybe Text
name = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:sourceLanguageCode:TerminologyProperties' :: Maybe Text
sourceLanguageCode = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:termCount:TerminologyProperties' :: Maybe Int
termCount = Maybe Int
forall a. Maybe a
Prelude.Nothing,
      $sel:encryptionKey:TerminologyProperties' :: Maybe EncryptionKey
encryptionKey = Maybe EncryptionKey
forall a. Maybe a
Prelude.Nothing,
      $sel:description:TerminologyProperties' :: Maybe Text
description = Maybe Text
forall a. Maybe a
Prelude.Nothing
    }

-- | The size of the file used when importing a custom terminology.
terminologyProperties_sizeBytes :: Lens.Lens' TerminologyProperties (Prelude.Maybe Prelude.Int)
terminologyProperties_sizeBytes :: (Maybe Int -> f (Maybe Int))
-> TerminologyProperties -> f TerminologyProperties
terminologyProperties_sizeBytes = (TerminologyProperties -> Maybe Int)
-> (TerminologyProperties -> Maybe Int -> TerminologyProperties)
-> Lens
     TerminologyProperties TerminologyProperties (Maybe Int) (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TerminologyProperties' {Maybe Int
sizeBytes :: Maybe Int
$sel:sizeBytes:TerminologyProperties' :: TerminologyProperties -> Maybe Int
sizeBytes} -> Maybe Int
sizeBytes) (\s :: TerminologyProperties
s@TerminologyProperties' {} Maybe Int
a -> TerminologyProperties
s {$sel:sizeBytes:TerminologyProperties' :: Maybe Int
sizeBytes = Maybe Int
a} :: TerminologyProperties)

-- | The time at which the custom terminology was last update, based on the
-- timestamp.
terminologyProperties_lastUpdatedAt :: Lens.Lens' TerminologyProperties (Prelude.Maybe Prelude.UTCTime)
terminologyProperties_lastUpdatedAt :: (Maybe UTCTime -> f (Maybe UTCTime))
-> TerminologyProperties -> f TerminologyProperties
terminologyProperties_lastUpdatedAt = (TerminologyProperties -> Maybe POSIX)
-> (TerminologyProperties -> Maybe POSIX -> TerminologyProperties)
-> Lens
     TerminologyProperties
     TerminologyProperties
     (Maybe POSIX)
     (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TerminologyProperties' {Maybe POSIX
lastUpdatedAt :: Maybe POSIX
$sel:lastUpdatedAt:TerminologyProperties' :: TerminologyProperties -> Maybe POSIX
lastUpdatedAt} -> Maybe POSIX
lastUpdatedAt) (\s :: TerminologyProperties
s@TerminologyProperties' {} Maybe POSIX
a -> TerminologyProperties
s {$sel:lastUpdatedAt:TerminologyProperties' :: Maybe POSIX
lastUpdatedAt = Maybe POSIX
a} :: TerminologyProperties) ((Maybe POSIX -> f (Maybe POSIX))
 -> TerminologyProperties -> f TerminologyProperties)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> TerminologyProperties
-> f TerminologyProperties
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 Amazon Resource Name (ARN) of the custom terminology.
terminologyProperties_arn :: Lens.Lens' TerminologyProperties (Prelude.Maybe Prelude.Text)
terminologyProperties_arn :: (Maybe Text -> f (Maybe Text))
-> TerminologyProperties -> f TerminologyProperties
terminologyProperties_arn = (TerminologyProperties -> Maybe Text)
-> (TerminologyProperties -> Maybe Text -> TerminologyProperties)
-> Lens
     TerminologyProperties
     TerminologyProperties
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TerminologyProperties' {Maybe Text
arn :: Maybe Text
$sel:arn:TerminologyProperties' :: TerminologyProperties -> Maybe Text
arn} -> Maybe Text
arn) (\s :: TerminologyProperties
s@TerminologyProperties' {} Maybe Text
a -> TerminologyProperties
s {$sel:arn:TerminologyProperties' :: Maybe Text
arn = Maybe Text
a} :: TerminologyProperties)

-- | The language codes for the target languages available with the custom
-- terminology file. All possible target languages are returned in array.
terminologyProperties_targetLanguageCodes :: Lens.Lens' TerminologyProperties (Prelude.Maybe [Prelude.Text])
terminologyProperties_targetLanguageCodes :: (Maybe [Text] -> f (Maybe [Text]))
-> TerminologyProperties -> f TerminologyProperties
terminologyProperties_targetLanguageCodes = (TerminologyProperties -> Maybe [Text])
-> (TerminologyProperties -> Maybe [Text] -> TerminologyProperties)
-> Lens
     TerminologyProperties
     TerminologyProperties
     (Maybe [Text])
     (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TerminologyProperties' {Maybe [Text]
targetLanguageCodes :: Maybe [Text]
$sel:targetLanguageCodes:TerminologyProperties' :: TerminologyProperties -> Maybe [Text]
targetLanguageCodes} -> Maybe [Text]
targetLanguageCodes) (\s :: TerminologyProperties
s@TerminologyProperties' {} Maybe [Text]
a -> TerminologyProperties
s {$sel:targetLanguageCodes:TerminologyProperties' :: Maybe [Text]
targetLanguageCodes = Maybe [Text]
a} :: TerminologyProperties) ((Maybe [Text] -> f (Maybe [Text]))
 -> TerminologyProperties -> f TerminologyProperties)
-> ((Maybe [Text] -> f (Maybe [Text]))
    -> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> TerminologyProperties
-> f TerminologyProperties
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 custom terminology was created, based on the
-- timestamp.
terminologyProperties_createdAt :: Lens.Lens' TerminologyProperties (Prelude.Maybe Prelude.UTCTime)
terminologyProperties_createdAt :: (Maybe UTCTime -> f (Maybe UTCTime))
-> TerminologyProperties -> f TerminologyProperties
terminologyProperties_createdAt = (TerminologyProperties -> Maybe POSIX)
-> (TerminologyProperties -> Maybe POSIX -> TerminologyProperties)
-> Lens
     TerminologyProperties
     TerminologyProperties
     (Maybe POSIX)
     (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TerminologyProperties' {Maybe POSIX
createdAt :: Maybe POSIX
$sel:createdAt:TerminologyProperties' :: TerminologyProperties -> Maybe POSIX
createdAt} -> Maybe POSIX
createdAt) (\s :: TerminologyProperties
s@TerminologyProperties' {} Maybe POSIX
a -> TerminologyProperties
s {$sel:createdAt:TerminologyProperties' :: Maybe POSIX
createdAt = Maybe POSIX
a} :: TerminologyProperties) ((Maybe POSIX -> f (Maybe POSIX))
 -> TerminologyProperties -> f TerminologyProperties)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> TerminologyProperties
-> f TerminologyProperties
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 name of the custom terminology.
terminologyProperties_name :: Lens.Lens' TerminologyProperties (Prelude.Maybe Prelude.Text)
terminologyProperties_name :: (Maybe Text -> f (Maybe Text))
-> TerminologyProperties -> f TerminologyProperties
terminologyProperties_name = (TerminologyProperties -> Maybe Text)
-> (TerminologyProperties -> Maybe Text -> TerminologyProperties)
-> Lens
     TerminologyProperties
     TerminologyProperties
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TerminologyProperties' {Maybe Text
name :: Maybe Text
$sel:name:TerminologyProperties' :: TerminologyProperties -> Maybe Text
name} -> Maybe Text
name) (\s :: TerminologyProperties
s@TerminologyProperties' {} Maybe Text
a -> TerminologyProperties
s {$sel:name:TerminologyProperties' :: Maybe Text
name = Maybe Text
a} :: TerminologyProperties)

-- | The language code for the source text of the translation request for
-- which the custom terminology is being used.
terminologyProperties_sourceLanguageCode :: Lens.Lens' TerminologyProperties (Prelude.Maybe Prelude.Text)
terminologyProperties_sourceLanguageCode :: (Maybe Text -> f (Maybe Text))
-> TerminologyProperties -> f TerminologyProperties
terminologyProperties_sourceLanguageCode = (TerminologyProperties -> Maybe Text)
-> (TerminologyProperties -> Maybe Text -> TerminologyProperties)
-> Lens
     TerminologyProperties
     TerminologyProperties
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TerminologyProperties' {Maybe Text
sourceLanguageCode :: Maybe Text
$sel:sourceLanguageCode:TerminologyProperties' :: TerminologyProperties -> Maybe Text
sourceLanguageCode} -> Maybe Text
sourceLanguageCode) (\s :: TerminologyProperties
s@TerminologyProperties' {} Maybe Text
a -> TerminologyProperties
s {$sel:sourceLanguageCode:TerminologyProperties' :: Maybe Text
sourceLanguageCode = Maybe Text
a} :: TerminologyProperties)

-- | The number of terms included in the custom terminology.
terminologyProperties_termCount :: Lens.Lens' TerminologyProperties (Prelude.Maybe Prelude.Int)
terminologyProperties_termCount :: (Maybe Int -> f (Maybe Int))
-> TerminologyProperties -> f TerminologyProperties
terminologyProperties_termCount = (TerminologyProperties -> Maybe Int)
-> (TerminologyProperties -> Maybe Int -> TerminologyProperties)
-> Lens
     TerminologyProperties TerminologyProperties (Maybe Int) (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TerminologyProperties' {Maybe Int
termCount :: Maybe Int
$sel:termCount:TerminologyProperties' :: TerminologyProperties -> Maybe Int
termCount} -> Maybe Int
termCount) (\s :: TerminologyProperties
s@TerminologyProperties' {} Maybe Int
a -> TerminologyProperties
s {$sel:termCount:TerminologyProperties' :: Maybe Int
termCount = Maybe Int
a} :: TerminologyProperties)

-- | The encryption key for the custom terminology.
terminologyProperties_encryptionKey :: Lens.Lens' TerminologyProperties (Prelude.Maybe EncryptionKey)
terminologyProperties_encryptionKey :: (Maybe EncryptionKey -> f (Maybe EncryptionKey))
-> TerminologyProperties -> f TerminologyProperties
terminologyProperties_encryptionKey = (TerminologyProperties -> Maybe EncryptionKey)
-> (TerminologyProperties
    -> Maybe EncryptionKey -> TerminologyProperties)
-> Lens
     TerminologyProperties
     TerminologyProperties
     (Maybe EncryptionKey)
     (Maybe EncryptionKey)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TerminologyProperties' {Maybe EncryptionKey
encryptionKey :: Maybe EncryptionKey
$sel:encryptionKey:TerminologyProperties' :: TerminologyProperties -> Maybe EncryptionKey
encryptionKey} -> Maybe EncryptionKey
encryptionKey) (\s :: TerminologyProperties
s@TerminologyProperties' {} Maybe EncryptionKey
a -> TerminologyProperties
s {$sel:encryptionKey:TerminologyProperties' :: Maybe EncryptionKey
encryptionKey = Maybe EncryptionKey
a} :: TerminologyProperties)

-- | The description of the custom terminology properties.
terminologyProperties_description :: Lens.Lens' TerminologyProperties (Prelude.Maybe Prelude.Text)
terminologyProperties_description :: (Maybe Text -> f (Maybe Text))
-> TerminologyProperties -> f TerminologyProperties
terminologyProperties_description = (TerminologyProperties -> Maybe Text)
-> (TerminologyProperties -> Maybe Text -> TerminologyProperties)
-> Lens
     TerminologyProperties
     TerminologyProperties
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TerminologyProperties' {Maybe Text
description :: Maybe Text
$sel:description:TerminologyProperties' :: TerminologyProperties -> Maybe Text
description} -> Maybe Text
description) (\s :: TerminologyProperties
s@TerminologyProperties' {} Maybe Text
a -> TerminologyProperties
s {$sel:description:TerminologyProperties' :: Maybe Text
description = Maybe Text
a} :: TerminologyProperties)

instance Core.FromJSON TerminologyProperties where
  parseJSON :: Value -> Parser TerminologyProperties
parseJSON =
    String
-> (Object -> Parser TerminologyProperties)
-> Value
-> Parser TerminologyProperties
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
      String
"TerminologyProperties"
      ( \Object
x ->
          Maybe Int
-> Maybe POSIX
-> Maybe Text
-> Maybe [Text]
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe EncryptionKey
-> Maybe Text
-> TerminologyProperties
TerminologyProperties'
            (Maybe Int
 -> Maybe POSIX
 -> Maybe Text
 -> Maybe [Text]
 -> Maybe POSIX
 -> Maybe Text
 -> Maybe Text
 -> Maybe Int
 -> Maybe EncryptionKey
 -> Maybe Text
 -> TerminologyProperties)
-> Parser (Maybe Int)
-> Parser
     (Maybe POSIX
      -> Maybe Text
      -> Maybe [Text]
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe Text
      -> Maybe Int
      -> Maybe EncryptionKey
      -> Maybe Text
      -> TerminologyProperties)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe Int)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"SizeBytes")
            Parser
  (Maybe POSIX
   -> Maybe Text
   -> Maybe [Text]
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe Text
   -> Maybe Int
   -> Maybe EncryptionKey
   -> Maybe Text
   -> TerminologyProperties)
-> Parser (Maybe POSIX)
-> Parser
     (Maybe Text
      -> Maybe [Text]
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe Text
      -> Maybe Int
      -> Maybe EncryptionKey
      -> Maybe Text
      -> TerminologyProperties)
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 Text
   -> Maybe [Text]
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe Text
   -> Maybe Int
   -> Maybe EncryptionKey
   -> Maybe Text
   -> TerminologyProperties)
-> Parser (Maybe Text)
-> Parser
     (Maybe [Text]
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe Text
      -> Maybe Int
      -> Maybe EncryptionKey
      -> Maybe Text
      -> TerminologyProperties)
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 Text
   -> Maybe Text
   -> Maybe Int
   -> Maybe EncryptionKey
   -> Maybe Text
   -> TerminologyProperties)
-> Parser (Maybe [Text])
-> Parser
     (Maybe POSIX
      -> Maybe Text
      -> Maybe Text
      -> Maybe Int
      -> Maybe EncryptionKey
      -> Maybe Text
      -> TerminologyProperties)
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 Text
   -> Maybe Text
   -> Maybe Int
   -> Maybe EncryptionKey
   -> Maybe Text
   -> TerminologyProperties)
-> Parser (Maybe POSIX)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe Int
      -> Maybe EncryptionKey
      -> Maybe Text
      -> TerminologyProperties)
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 Text
   -> Maybe Text
   -> Maybe Int
   -> Maybe EncryptionKey
   -> Maybe Text
   -> TerminologyProperties)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Int
      -> Maybe EncryptionKey
      -> Maybe Text
      -> TerminologyProperties)
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 Int
   -> Maybe EncryptionKey
   -> Maybe Text
   -> TerminologyProperties)
-> Parser (Maybe Text)
-> Parser
     (Maybe Int
      -> Maybe EncryptionKey -> Maybe Text -> TerminologyProperties)
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 Int
   -> Maybe EncryptionKey -> Maybe Text -> TerminologyProperties)
-> Parser (Maybe Int)
-> Parser
     (Maybe EncryptionKey -> Maybe Text -> TerminologyProperties)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Int)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"TermCount")
            Parser (Maybe EncryptionKey -> Maybe Text -> TerminologyProperties)
-> Parser (Maybe EncryptionKey)
-> Parser (Maybe Text -> TerminologyProperties)
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 Text -> TerminologyProperties)
-> Parser (Maybe Text) -> Parser TerminologyProperties
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")
      )

instance Prelude.Hashable TerminologyProperties

instance Prelude.NFData TerminologyProperties