{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.Comprehend.Types.EntityRecognizerEntityList where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
data EntityRecognizerEntityList = EntityRecognizerEntityList'
{
EntityRecognizerEntityList -> Text
s3Uri :: Prelude.Text
}
deriving (EntityRecognizerEntityList -> EntityRecognizerEntityList -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: EntityRecognizerEntityList -> EntityRecognizerEntityList -> Bool
$c/= :: EntityRecognizerEntityList -> EntityRecognizerEntityList -> Bool
== :: EntityRecognizerEntityList -> EntityRecognizerEntityList -> Bool
$c== :: EntityRecognizerEntityList -> EntityRecognizerEntityList -> Bool
Prelude.Eq, ReadPrec [EntityRecognizerEntityList]
ReadPrec EntityRecognizerEntityList
Int -> ReadS EntityRecognizerEntityList
ReadS [EntityRecognizerEntityList]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [EntityRecognizerEntityList]
$creadListPrec :: ReadPrec [EntityRecognizerEntityList]
readPrec :: ReadPrec EntityRecognizerEntityList
$creadPrec :: ReadPrec EntityRecognizerEntityList
readList :: ReadS [EntityRecognizerEntityList]
$creadList :: ReadS [EntityRecognizerEntityList]
readsPrec :: Int -> ReadS EntityRecognizerEntityList
$creadsPrec :: Int -> ReadS EntityRecognizerEntityList
Prelude.Read, Int -> EntityRecognizerEntityList -> ShowS
[EntityRecognizerEntityList] -> ShowS
EntityRecognizerEntityList -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [EntityRecognizerEntityList] -> ShowS
$cshowList :: [EntityRecognizerEntityList] -> ShowS
show :: EntityRecognizerEntityList -> String
$cshow :: EntityRecognizerEntityList -> String
showsPrec :: Int -> EntityRecognizerEntityList -> ShowS
$cshowsPrec :: Int -> EntityRecognizerEntityList -> ShowS
Prelude.Show, forall x.
Rep EntityRecognizerEntityList x -> EntityRecognizerEntityList
forall x.
EntityRecognizerEntityList -> Rep EntityRecognizerEntityList x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep EntityRecognizerEntityList x -> EntityRecognizerEntityList
$cfrom :: forall x.
EntityRecognizerEntityList -> Rep EntityRecognizerEntityList x
Prelude.Generic)
newEntityRecognizerEntityList ::
Prelude.Text ->
EntityRecognizerEntityList
newEntityRecognizerEntityList :: Text -> EntityRecognizerEntityList
newEntityRecognizerEntityList Text
pS3Uri_ =
EntityRecognizerEntityList' {$sel:s3Uri:EntityRecognizerEntityList' :: Text
s3Uri = Text
pS3Uri_}
entityRecognizerEntityList_s3Uri :: Lens.Lens' EntityRecognizerEntityList Prelude.Text
entityRecognizerEntityList_s3Uri :: Lens' EntityRecognizerEntityList Text
entityRecognizerEntityList_s3Uri = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EntityRecognizerEntityList' {Text
s3Uri :: Text
$sel:s3Uri:EntityRecognizerEntityList' :: EntityRecognizerEntityList -> Text
s3Uri} -> Text
s3Uri) (\s :: EntityRecognizerEntityList
s@EntityRecognizerEntityList' {} Text
a -> EntityRecognizerEntityList
s {$sel:s3Uri:EntityRecognizerEntityList' :: Text
s3Uri = Text
a} :: EntityRecognizerEntityList)
instance Data.FromJSON EntityRecognizerEntityList where
parseJSON :: Value -> Parser EntityRecognizerEntityList
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"EntityRecognizerEntityList"
( \Object
x ->
Text -> EntityRecognizerEntityList
EntityRecognizerEntityList'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"S3Uri")
)
instance Prelude.Hashable EntityRecognizerEntityList where
hashWithSalt :: Int -> EntityRecognizerEntityList -> Int
hashWithSalt Int
_salt EntityRecognizerEntityList' {Text
s3Uri :: Text
$sel:s3Uri:EntityRecognizerEntityList' :: EntityRecognizerEntityList -> Text
..} =
Int
_salt forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
s3Uri
instance Prelude.NFData EntityRecognizerEntityList where
rnf :: EntityRecognizerEntityList -> ()
rnf EntityRecognizerEntityList' {Text
s3Uri :: Text
$sel:s3Uri:EntityRecognizerEntityList' :: EntityRecognizerEntityList -> Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Text
s3Uri
instance Data.ToJSON EntityRecognizerEntityList where
toJSON :: EntityRecognizerEntityList -> Value
toJSON EntityRecognizerEntityList' {Text
s3Uri :: Text
$sel:s3Uri:EntityRecognizerEntityList' :: EntityRecognizerEntityList -> Text
..} =
[Pair] -> Value
Data.object
( forall a. [Maybe a] -> [a]
Prelude.catMaybes
[forall a. a -> Maybe a
Prelude.Just (Key
"S3Uri" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
s3Uri)]
)