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