{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}

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

-- |
-- Module      : Amazonka.Comprehend.Types.EntityRecognizerDataFormat
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.Comprehend.Types.EntityRecognizerDataFormat
  ( EntityRecognizerDataFormat
      ( ..,
        EntityRecognizerDataFormat_AUGMENTED_MANIFEST,
        EntityRecognizerDataFormat_COMPREHEND_CSV
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude

newtype EntityRecognizerDataFormat = EntityRecognizerDataFormat'
  { EntityRecognizerDataFormat -> Text
fromEntityRecognizerDataFormat ::
      Data.Text
  }
  deriving stock
    ( Int -> EntityRecognizerDataFormat -> ShowS
[EntityRecognizerDataFormat] -> ShowS
EntityRecognizerDataFormat -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [EntityRecognizerDataFormat] -> ShowS
$cshowList :: [EntityRecognizerDataFormat] -> ShowS
show :: EntityRecognizerDataFormat -> String
$cshow :: EntityRecognizerDataFormat -> String
showsPrec :: Int -> EntityRecognizerDataFormat -> ShowS
$cshowsPrec :: Int -> EntityRecognizerDataFormat -> ShowS
Prelude.Show,
      ReadPrec [EntityRecognizerDataFormat]
ReadPrec EntityRecognizerDataFormat
Int -> ReadS EntityRecognizerDataFormat
ReadS [EntityRecognizerDataFormat]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [EntityRecognizerDataFormat]
$creadListPrec :: ReadPrec [EntityRecognizerDataFormat]
readPrec :: ReadPrec EntityRecognizerDataFormat
$creadPrec :: ReadPrec EntityRecognizerDataFormat
readList :: ReadS [EntityRecognizerDataFormat]
$creadList :: ReadS [EntityRecognizerDataFormat]
readsPrec :: Int -> ReadS EntityRecognizerDataFormat
$creadsPrec :: Int -> ReadS EntityRecognizerDataFormat
Prelude.Read,
      EntityRecognizerDataFormat -> EntityRecognizerDataFormat -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: EntityRecognizerDataFormat -> EntityRecognizerDataFormat -> Bool
$c/= :: EntityRecognizerDataFormat -> EntityRecognizerDataFormat -> Bool
== :: EntityRecognizerDataFormat -> EntityRecognizerDataFormat -> Bool
$c== :: EntityRecognizerDataFormat -> EntityRecognizerDataFormat -> Bool
Prelude.Eq,
      Eq EntityRecognizerDataFormat
EntityRecognizerDataFormat -> EntityRecognizerDataFormat -> Bool
EntityRecognizerDataFormat
-> EntityRecognizerDataFormat -> Ordering
EntityRecognizerDataFormat
-> EntityRecognizerDataFormat -> EntityRecognizerDataFormat
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: EntityRecognizerDataFormat
-> EntityRecognizerDataFormat -> EntityRecognizerDataFormat
$cmin :: EntityRecognizerDataFormat
-> EntityRecognizerDataFormat -> EntityRecognizerDataFormat
max :: EntityRecognizerDataFormat
-> EntityRecognizerDataFormat -> EntityRecognizerDataFormat
$cmax :: EntityRecognizerDataFormat
-> EntityRecognizerDataFormat -> EntityRecognizerDataFormat
>= :: EntityRecognizerDataFormat -> EntityRecognizerDataFormat -> Bool
$c>= :: EntityRecognizerDataFormat -> EntityRecognizerDataFormat -> Bool
> :: EntityRecognizerDataFormat -> EntityRecognizerDataFormat -> Bool
$c> :: EntityRecognizerDataFormat -> EntityRecognizerDataFormat -> Bool
<= :: EntityRecognizerDataFormat -> EntityRecognizerDataFormat -> Bool
$c<= :: EntityRecognizerDataFormat -> EntityRecognizerDataFormat -> Bool
< :: EntityRecognizerDataFormat -> EntityRecognizerDataFormat -> Bool
$c< :: EntityRecognizerDataFormat -> EntityRecognizerDataFormat -> Bool
compare :: EntityRecognizerDataFormat
-> EntityRecognizerDataFormat -> Ordering
$ccompare :: EntityRecognizerDataFormat
-> EntityRecognizerDataFormat -> Ordering
Prelude.Ord,
      forall x.
Rep EntityRecognizerDataFormat x -> EntityRecognizerDataFormat
forall x.
EntityRecognizerDataFormat -> Rep EntityRecognizerDataFormat x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep EntityRecognizerDataFormat x -> EntityRecognizerDataFormat
$cfrom :: forall x.
EntityRecognizerDataFormat -> Rep EntityRecognizerDataFormat x
Prelude.Generic
    )
  deriving newtype
    ( Eq EntityRecognizerDataFormat
Int -> EntityRecognizerDataFormat -> Int
EntityRecognizerDataFormat -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: EntityRecognizerDataFormat -> Int
$chash :: EntityRecognizerDataFormat -> Int
hashWithSalt :: Int -> EntityRecognizerDataFormat -> Int
$chashWithSalt :: Int -> EntityRecognizerDataFormat -> Int
Prelude.Hashable,
      EntityRecognizerDataFormat -> ()
forall a. (a -> ()) -> NFData a
rnf :: EntityRecognizerDataFormat -> ()
$crnf :: EntityRecognizerDataFormat -> ()
Prelude.NFData,
      Text -> Either String EntityRecognizerDataFormat
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String EntityRecognizerDataFormat
$cfromText :: Text -> Either String EntityRecognizerDataFormat
Data.FromText,
      EntityRecognizerDataFormat -> Text
forall a. (a -> Text) -> ToText a
toText :: EntityRecognizerDataFormat -> Text
$ctoText :: EntityRecognizerDataFormat -> Text
Data.ToText,
      EntityRecognizerDataFormat -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: EntityRecognizerDataFormat -> ByteString
$ctoBS :: EntityRecognizerDataFormat -> ByteString
Data.ToByteString,
      EntityRecognizerDataFormat -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: EntityRecognizerDataFormat -> ByteStringBuilder
$cbuild :: EntityRecognizerDataFormat -> ByteStringBuilder
Data.ToLog,
      HeaderName -> EntityRecognizerDataFormat -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> EntityRecognizerDataFormat -> [Header]
$ctoHeader :: HeaderName -> EntityRecognizerDataFormat -> [Header]
Data.ToHeader,
      EntityRecognizerDataFormat -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: EntityRecognizerDataFormat -> QueryString
$ctoQuery :: EntityRecognizerDataFormat -> QueryString
Data.ToQuery,
      Value -> Parser [EntityRecognizerDataFormat]
Value -> Parser EntityRecognizerDataFormat
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [EntityRecognizerDataFormat]
$cparseJSONList :: Value -> Parser [EntityRecognizerDataFormat]
parseJSON :: Value -> Parser EntityRecognizerDataFormat
$cparseJSON :: Value -> Parser EntityRecognizerDataFormat
Data.FromJSON,
      FromJSONKeyFunction [EntityRecognizerDataFormat]
FromJSONKeyFunction EntityRecognizerDataFormat
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [EntityRecognizerDataFormat]
$cfromJSONKeyList :: FromJSONKeyFunction [EntityRecognizerDataFormat]
fromJSONKey :: FromJSONKeyFunction EntityRecognizerDataFormat
$cfromJSONKey :: FromJSONKeyFunction EntityRecognizerDataFormat
Data.FromJSONKey,
      [EntityRecognizerDataFormat] -> Encoding
[EntityRecognizerDataFormat] -> Value
EntityRecognizerDataFormat -> Encoding
EntityRecognizerDataFormat -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [EntityRecognizerDataFormat] -> Encoding
$ctoEncodingList :: [EntityRecognizerDataFormat] -> Encoding
toJSONList :: [EntityRecognizerDataFormat] -> Value
$ctoJSONList :: [EntityRecognizerDataFormat] -> Value
toEncoding :: EntityRecognizerDataFormat -> Encoding
$ctoEncoding :: EntityRecognizerDataFormat -> Encoding
toJSON :: EntityRecognizerDataFormat -> Value
$ctoJSON :: EntityRecognizerDataFormat -> Value
Data.ToJSON,
      ToJSONKeyFunction [EntityRecognizerDataFormat]
ToJSONKeyFunction EntityRecognizerDataFormat
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [EntityRecognizerDataFormat]
$ctoJSONKeyList :: ToJSONKeyFunction [EntityRecognizerDataFormat]
toJSONKey :: ToJSONKeyFunction EntityRecognizerDataFormat
$ctoJSONKey :: ToJSONKeyFunction EntityRecognizerDataFormat
Data.ToJSONKey,
      [Node] -> Either String EntityRecognizerDataFormat
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String EntityRecognizerDataFormat
$cparseXML :: [Node] -> Either String EntityRecognizerDataFormat
Data.FromXML,
      EntityRecognizerDataFormat -> XML
forall a. (a -> XML) -> ToXML a
toXML :: EntityRecognizerDataFormat -> XML
$ctoXML :: EntityRecognizerDataFormat -> XML
Data.ToXML
    )

pattern EntityRecognizerDataFormat_AUGMENTED_MANIFEST :: EntityRecognizerDataFormat
pattern $bEntityRecognizerDataFormat_AUGMENTED_MANIFEST :: EntityRecognizerDataFormat
$mEntityRecognizerDataFormat_AUGMENTED_MANIFEST :: forall {r}.
EntityRecognizerDataFormat -> ((# #) -> r) -> ((# #) -> r) -> r
EntityRecognizerDataFormat_AUGMENTED_MANIFEST = EntityRecognizerDataFormat' "AUGMENTED_MANIFEST"

pattern EntityRecognizerDataFormat_COMPREHEND_CSV :: EntityRecognizerDataFormat
pattern $bEntityRecognizerDataFormat_COMPREHEND_CSV :: EntityRecognizerDataFormat
$mEntityRecognizerDataFormat_COMPREHEND_CSV :: forall {r}.
EntityRecognizerDataFormat -> ((# #) -> r) -> ((# #) -> r) -> r
EntityRecognizerDataFormat_COMPREHEND_CSV = EntityRecognizerDataFormat' "COMPREHEND_CSV"

{-# COMPLETE
  EntityRecognizerDataFormat_AUGMENTED_MANIFEST,
  EntityRecognizerDataFormat_COMPREHEND_CSV,
  EntityRecognizerDataFormat'
  #-}