{-# 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.AugmentedManifestsDocumentTypeFormat
-- 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.AugmentedManifestsDocumentTypeFormat
  ( AugmentedManifestsDocumentTypeFormat
      ( ..,
        AugmentedManifestsDocumentTypeFormat_PLAIN_TEXT_DOCUMENT,
        AugmentedManifestsDocumentTypeFormat_SEMI_STRUCTURED_DOCUMENT
      ),
  )
where

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

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

pattern AugmentedManifestsDocumentTypeFormat_PLAIN_TEXT_DOCUMENT :: AugmentedManifestsDocumentTypeFormat
pattern $bAugmentedManifestsDocumentTypeFormat_PLAIN_TEXT_DOCUMENT :: AugmentedManifestsDocumentTypeFormat
$mAugmentedManifestsDocumentTypeFormat_PLAIN_TEXT_DOCUMENT :: forall {r}.
AugmentedManifestsDocumentTypeFormat
-> ((# #) -> r) -> ((# #) -> r) -> r
AugmentedManifestsDocumentTypeFormat_PLAIN_TEXT_DOCUMENT = AugmentedManifestsDocumentTypeFormat' "PLAIN_TEXT_DOCUMENT"

pattern AugmentedManifestsDocumentTypeFormat_SEMI_STRUCTURED_DOCUMENT :: AugmentedManifestsDocumentTypeFormat
pattern $bAugmentedManifestsDocumentTypeFormat_SEMI_STRUCTURED_DOCUMENT :: AugmentedManifestsDocumentTypeFormat
$mAugmentedManifestsDocumentTypeFormat_SEMI_STRUCTURED_DOCUMENT :: forall {r}.
AugmentedManifestsDocumentTypeFormat
-> ((# #) -> r) -> ((# #) -> r) -> r
AugmentedManifestsDocumentTypeFormat_SEMI_STRUCTURED_DOCUMENT = AugmentedManifestsDocumentTypeFormat' "SEMI_STRUCTURED_DOCUMENT"

{-# COMPLETE
  AugmentedManifestsDocumentTypeFormat_PLAIN_TEXT_DOCUMENT,
  AugmentedManifestsDocumentTypeFormat_SEMI_STRUCTURED_DOCUMENT,
  AugmentedManifestsDocumentTypeFormat'
  #-}