{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.Comprehend.Types.DocumentReadMode
( DocumentReadMode
( ..,
DocumentReadMode_FORCE_DOCUMENT_READ_ACTION,
DocumentReadMode_SERVICE_DEFAULT
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype DocumentReadMode = DocumentReadMode'
{ DocumentReadMode -> Text
fromDocumentReadMode ::
Core.Text
}
deriving stock
( Int -> DocumentReadMode -> ShowS
[DocumentReadMode] -> ShowS
DocumentReadMode -> String
(Int -> DocumentReadMode -> ShowS)
-> (DocumentReadMode -> String)
-> ([DocumentReadMode] -> ShowS)
-> Show DocumentReadMode
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DocumentReadMode] -> ShowS
$cshowList :: [DocumentReadMode] -> ShowS
show :: DocumentReadMode -> String
$cshow :: DocumentReadMode -> String
showsPrec :: Int -> DocumentReadMode -> ShowS
$cshowsPrec :: Int -> DocumentReadMode -> ShowS
Prelude.Show,
ReadPrec [DocumentReadMode]
ReadPrec DocumentReadMode
Int -> ReadS DocumentReadMode
ReadS [DocumentReadMode]
(Int -> ReadS DocumentReadMode)
-> ReadS [DocumentReadMode]
-> ReadPrec DocumentReadMode
-> ReadPrec [DocumentReadMode]
-> Read DocumentReadMode
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DocumentReadMode]
$creadListPrec :: ReadPrec [DocumentReadMode]
readPrec :: ReadPrec DocumentReadMode
$creadPrec :: ReadPrec DocumentReadMode
readList :: ReadS [DocumentReadMode]
$creadList :: ReadS [DocumentReadMode]
readsPrec :: Int -> ReadS DocumentReadMode
$creadsPrec :: Int -> ReadS DocumentReadMode
Prelude.Read,
DocumentReadMode -> DocumentReadMode -> Bool
(DocumentReadMode -> DocumentReadMode -> Bool)
-> (DocumentReadMode -> DocumentReadMode -> Bool)
-> Eq DocumentReadMode
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DocumentReadMode -> DocumentReadMode -> Bool
$c/= :: DocumentReadMode -> DocumentReadMode -> Bool
== :: DocumentReadMode -> DocumentReadMode -> Bool
$c== :: DocumentReadMode -> DocumentReadMode -> Bool
Prelude.Eq,
Eq DocumentReadMode
Eq DocumentReadMode
-> (DocumentReadMode -> DocumentReadMode -> Ordering)
-> (DocumentReadMode -> DocumentReadMode -> Bool)
-> (DocumentReadMode -> DocumentReadMode -> Bool)
-> (DocumentReadMode -> DocumentReadMode -> Bool)
-> (DocumentReadMode -> DocumentReadMode -> Bool)
-> (DocumentReadMode -> DocumentReadMode -> DocumentReadMode)
-> (DocumentReadMode -> DocumentReadMode -> DocumentReadMode)
-> Ord DocumentReadMode
DocumentReadMode -> DocumentReadMode -> Bool
DocumentReadMode -> DocumentReadMode -> Ordering
DocumentReadMode -> DocumentReadMode -> DocumentReadMode
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 :: DocumentReadMode -> DocumentReadMode -> DocumentReadMode
$cmin :: DocumentReadMode -> DocumentReadMode -> DocumentReadMode
max :: DocumentReadMode -> DocumentReadMode -> DocumentReadMode
$cmax :: DocumentReadMode -> DocumentReadMode -> DocumentReadMode
>= :: DocumentReadMode -> DocumentReadMode -> Bool
$c>= :: DocumentReadMode -> DocumentReadMode -> Bool
> :: DocumentReadMode -> DocumentReadMode -> Bool
$c> :: DocumentReadMode -> DocumentReadMode -> Bool
<= :: DocumentReadMode -> DocumentReadMode -> Bool
$c<= :: DocumentReadMode -> DocumentReadMode -> Bool
< :: DocumentReadMode -> DocumentReadMode -> Bool
$c< :: DocumentReadMode -> DocumentReadMode -> Bool
compare :: DocumentReadMode -> DocumentReadMode -> Ordering
$ccompare :: DocumentReadMode -> DocumentReadMode -> Ordering
$cp1Ord :: Eq DocumentReadMode
Prelude.Ord,
(forall x. DocumentReadMode -> Rep DocumentReadMode x)
-> (forall x. Rep DocumentReadMode x -> DocumentReadMode)
-> Generic DocumentReadMode
forall x. Rep DocumentReadMode x -> DocumentReadMode
forall x. DocumentReadMode -> Rep DocumentReadMode x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DocumentReadMode x -> DocumentReadMode
$cfrom :: forall x. DocumentReadMode -> Rep DocumentReadMode x
Prelude.Generic
)
deriving newtype
( Int -> DocumentReadMode -> Int
DocumentReadMode -> Int
(Int -> DocumentReadMode -> Int)
-> (DocumentReadMode -> Int) -> Hashable DocumentReadMode
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: DocumentReadMode -> Int
$chash :: DocumentReadMode -> Int
hashWithSalt :: Int -> DocumentReadMode -> Int
$chashWithSalt :: Int -> DocumentReadMode -> Int
Prelude.Hashable,
DocumentReadMode -> ()
(DocumentReadMode -> ()) -> NFData DocumentReadMode
forall a. (a -> ()) -> NFData a
rnf :: DocumentReadMode -> ()
$crnf :: DocumentReadMode -> ()
Prelude.NFData,
Text -> Either String DocumentReadMode
(Text -> Either String DocumentReadMode)
-> FromText DocumentReadMode
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String DocumentReadMode
$cfromText :: Text -> Either String DocumentReadMode
Core.FromText,
DocumentReadMode -> Text
(DocumentReadMode -> Text) -> ToText DocumentReadMode
forall a. (a -> Text) -> ToText a
toText :: DocumentReadMode -> Text
$ctoText :: DocumentReadMode -> Text
Core.ToText,
DocumentReadMode -> ByteString
(DocumentReadMode -> ByteString) -> ToByteString DocumentReadMode
forall a. (a -> ByteString) -> ToByteString a
toBS :: DocumentReadMode -> ByteString
$ctoBS :: DocumentReadMode -> ByteString
Core.ToByteString,
DocumentReadMode -> ByteStringBuilder
(DocumentReadMode -> ByteStringBuilder) -> ToLog DocumentReadMode
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: DocumentReadMode -> ByteStringBuilder
$cbuild :: DocumentReadMode -> ByteStringBuilder
Core.ToLog,
HeaderName -> DocumentReadMode -> [Header]
(HeaderName -> DocumentReadMode -> [Header])
-> ToHeader DocumentReadMode
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> DocumentReadMode -> [Header]
$ctoHeader :: HeaderName -> DocumentReadMode -> [Header]
Core.ToHeader,
DocumentReadMode -> QueryString
(DocumentReadMode -> QueryString) -> ToQuery DocumentReadMode
forall a. (a -> QueryString) -> ToQuery a
toQuery :: DocumentReadMode -> QueryString
$ctoQuery :: DocumentReadMode -> QueryString
Core.ToQuery,
Value -> Parser [DocumentReadMode]
Value -> Parser DocumentReadMode
(Value -> Parser DocumentReadMode)
-> (Value -> Parser [DocumentReadMode])
-> FromJSON DocumentReadMode
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [DocumentReadMode]
$cparseJSONList :: Value -> Parser [DocumentReadMode]
parseJSON :: Value -> Parser DocumentReadMode
$cparseJSON :: Value -> Parser DocumentReadMode
Core.FromJSON,
FromJSONKeyFunction [DocumentReadMode]
FromJSONKeyFunction DocumentReadMode
FromJSONKeyFunction DocumentReadMode
-> FromJSONKeyFunction [DocumentReadMode]
-> FromJSONKey DocumentReadMode
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [DocumentReadMode]
$cfromJSONKeyList :: FromJSONKeyFunction [DocumentReadMode]
fromJSONKey :: FromJSONKeyFunction DocumentReadMode
$cfromJSONKey :: FromJSONKeyFunction DocumentReadMode
Core.FromJSONKey,
[DocumentReadMode] -> Encoding
[DocumentReadMode] -> Value
DocumentReadMode -> Encoding
DocumentReadMode -> Value
(DocumentReadMode -> Value)
-> (DocumentReadMode -> Encoding)
-> ([DocumentReadMode] -> Value)
-> ([DocumentReadMode] -> Encoding)
-> ToJSON DocumentReadMode
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [DocumentReadMode] -> Encoding
$ctoEncodingList :: [DocumentReadMode] -> Encoding
toJSONList :: [DocumentReadMode] -> Value
$ctoJSONList :: [DocumentReadMode] -> Value
toEncoding :: DocumentReadMode -> Encoding
$ctoEncoding :: DocumentReadMode -> Encoding
toJSON :: DocumentReadMode -> Value
$ctoJSON :: DocumentReadMode -> Value
Core.ToJSON,
ToJSONKeyFunction [DocumentReadMode]
ToJSONKeyFunction DocumentReadMode
ToJSONKeyFunction DocumentReadMode
-> ToJSONKeyFunction [DocumentReadMode]
-> ToJSONKey DocumentReadMode
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [DocumentReadMode]
$ctoJSONKeyList :: ToJSONKeyFunction [DocumentReadMode]
toJSONKey :: ToJSONKeyFunction DocumentReadMode
$ctoJSONKey :: ToJSONKeyFunction DocumentReadMode
Core.ToJSONKey,
[Node] -> Either String DocumentReadMode
([Node] -> Either String DocumentReadMode)
-> FromXML DocumentReadMode
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String DocumentReadMode
$cparseXML :: [Node] -> Either String DocumentReadMode
Core.FromXML,
DocumentReadMode -> XML
(DocumentReadMode -> XML) -> ToXML DocumentReadMode
forall a. (a -> XML) -> ToXML a
toXML :: DocumentReadMode -> XML
$ctoXML :: DocumentReadMode -> XML
Core.ToXML
)
pattern DocumentReadMode_FORCE_DOCUMENT_READ_ACTION :: DocumentReadMode
pattern $bDocumentReadMode_FORCE_DOCUMENT_READ_ACTION :: DocumentReadMode
$mDocumentReadMode_FORCE_DOCUMENT_READ_ACTION :: forall r. DocumentReadMode -> (Void# -> r) -> (Void# -> r) -> r
DocumentReadMode_FORCE_DOCUMENT_READ_ACTION = DocumentReadMode' "FORCE_DOCUMENT_READ_ACTION"
pattern DocumentReadMode_SERVICE_DEFAULT :: DocumentReadMode
pattern $bDocumentReadMode_SERVICE_DEFAULT :: DocumentReadMode
$mDocumentReadMode_SERVICE_DEFAULT :: forall r. DocumentReadMode -> (Void# -> r) -> (Void# -> r) -> r
DocumentReadMode_SERVICE_DEFAULT = DocumentReadMode' "SERVICE_DEFAULT"
{-# COMPLETE
DocumentReadMode_FORCE_DOCUMENT_READ_ACTION,
DocumentReadMode_SERVICE_DEFAULT,
DocumentReadMode'
#-}