{-# 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.DocumentType
-- 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.DocumentType
  ( DocumentType
      ( ..,
        DocumentType_IMAGE,
        DocumentType_MS_WORD,
        DocumentType_NATIVE_PDF,
        DocumentType_PLAIN_TEXT,
        DocumentType_SCANNED_PDF,
        DocumentType_TEXTRACT_ANALYZE_DOCUMENT_JSON,
        DocumentType_TEXTRACT_DETECT_DOCUMENT_TEXT_JSON
      ),
  )
where

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

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

pattern DocumentType_IMAGE :: DocumentType
pattern $bDocumentType_IMAGE :: DocumentType
$mDocumentType_IMAGE :: forall {r}. DocumentType -> ((# #) -> r) -> ((# #) -> r) -> r
DocumentType_IMAGE = DocumentType' "IMAGE"

pattern DocumentType_MS_WORD :: DocumentType
pattern $bDocumentType_MS_WORD :: DocumentType
$mDocumentType_MS_WORD :: forall {r}. DocumentType -> ((# #) -> r) -> ((# #) -> r) -> r
DocumentType_MS_WORD = DocumentType' "MS_WORD"

pattern DocumentType_NATIVE_PDF :: DocumentType
pattern $bDocumentType_NATIVE_PDF :: DocumentType
$mDocumentType_NATIVE_PDF :: forall {r}. DocumentType -> ((# #) -> r) -> ((# #) -> r) -> r
DocumentType_NATIVE_PDF = DocumentType' "NATIVE_PDF"

pattern DocumentType_PLAIN_TEXT :: DocumentType
pattern $bDocumentType_PLAIN_TEXT :: DocumentType
$mDocumentType_PLAIN_TEXT :: forall {r}. DocumentType -> ((# #) -> r) -> ((# #) -> r) -> r
DocumentType_PLAIN_TEXT = DocumentType' "PLAIN_TEXT"

pattern DocumentType_SCANNED_PDF :: DocumentType
pattern $bDocumentType_SCANNED_PDF :: DocumentType
$mDocumentType_SCANNED_PDF :: forall {r}. DocumentType -> ((# #) -> r) -> ((# #) -> r) -> r
DocumentType_SCANNED_PDF = DocumentType' "SCANNED_PDF"

pattern DocumentType_TEXTRACT_ANALYZE_DOCUMENT_JSON :: DocumentType
pattern $bDocumentType_TEXTRACT_ANALYZE_DOCUMENT_JSON :: DocumentType
$mDocumentType_TEXTRACT_ANALYZE_DOCUMENT_JSON :: forall {r}. DocumentType -> ((# #) -> r) -> ((# #) -> r) -> r
DocumentType_TEXTRACT_ANALYZE_DOCUMENT_JSON = DocumentType' "TEXTRACT_ANALYZE_DOCUMENT_JSON"

pattern DocumentType_TEXTRACT_DETECT_DOCUMENT_TEXT_JSON :: DocumentType
pattern $bDocumentType_TEXTRACT_DETECT_DOCUMENT_TEXT_JSON :: DocumentType
$mDocumentType_TEXTRACT_DETECT_DOCUMENT_TEXT_JSON :: forall {r}. DocumentType -> ((# #) -> r) -> ((# #) -> r) -> r
DocumentType_TEXTRACT_DETECT_DOCUMENT_TEXT_JSON = DocumentType' "TEXTRACT_DETECT_DOCUMENT_TEXT_JSON"

{-# COMPLETE
  DocumentType_IMAGE,
  DocumentType_MS_WORD,
  DocumentType_NATIVE_PDF,
  DocumentType_PLAIN_TEXT,
  DocumentType_SCANNED_PDF,
  DocumentType_TEXTRACT_ANALYZE_DOCUMENT_JSON,
  DocumentType_TEXTRACT_DETECT_DOCUMENT_TEXT_JSON,
  DocumentType'
  #-}