{-# 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.DocumentReadAction
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.Comprehend.Types.DocumentReadAction
  ( DocumentReadAction
      ( ..,
        DocumentReadAction_TEXTRACT_ANALYZE_DOCUMENT,
        DocumentReadAction_TEXTRACT_DETECT_DOCUMENT_TEXT
      ),
  )
where

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

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

pattern DocumentReadAction_TEXTRACT_ANALYZE_DOCUMENT :: DocumentReadAction
pattern $bDocumentReadAction_TEXTRACT_ANALYZE_DOCUMENT :: DocumentReadAction
$mDocumentReadAction_TEXTRACT_ANALYZE_DOCUMENT :: forall r. DocumentReadAction -> (Void# -> r) -> (Void# -> r) -> r
DocumentReadAction_TEXTRACT_ANALYZE_DOCUMENT = DocumentReadAction' "TEXTRACT_ANALYZE_DOCUMENT"

pattern DocumentReadAction_TEXTRACT_DETECT_DOCUMENT_TEXT :: DocumentReadAction
pattern $bDocumentReadAction_TEXTRACT_DETECT_DOCUMENT_TEXT :: DocumentReadAction
$mDocumentReadAction_TEXTRACT_DETECT_DOCUMENT_TEXT :: forall r. DocumentReadAction -> (Void# -> r) -> (Void# -> r) -> r
DocumentReadAction_TEXTRACT_DETECT_DOCUMENT_TEXT = DocumentReadAction' "TEXTRACT_DETECT_DOCUMENT_TEXT"

{-# COMPLETE
  DocumentReadAction_TEXTRACT_ANALYZE_DOCUMENT,
  DocumentReadAction_TEXTRACT_DETECT_DOCUMENT_TEXT,
  DocumentReadAction'
  #-}