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

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

newtype AugmentedManifestsDocumentTypeFormat = AugmentedManifestsDocumentTypeFormat'
  { AugmentedManifestsDocumentTypeFormat -> Text
fromAugmentedManifestsDocumentTypeFormat ::
      Core.Text
  }
  deriving stock
    ( Int -> AugmentedManifestsDocumentTypeFormat -> ShowS
[AugmentedManifestsDocumentTypeFormat] -> ShowS
AugmentedManifestsDocumentTypeFormat -> String
(Int -> AugmentedManifestsDocumentTypeFormat -> ShowS)
-> (AugmentedManifestsDocumentTypeFormat -> String)
-> ([AugmentedManifestsDocumentTypeFormat] -> ShowS)
-> Show AugmentedManifestsDocumentTypeFormat
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]
(Int -> ReadS AugmentedManifestsDocumentTypeFormat)
-> ReadS [AugmentedManifestsDocumentTypeFormat]
-> ReadPrec AugmentedManifestsDocumentTypeFormat
-> ReadPrec [AugmentedManifestsDocumentTypeFormat]
-> Read 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
(AugmentedManifestsDocumentTypeFormat
 -> AugmentedManifestsDocumentTypeFormat -> Bool)
-> (AugmentedManifestsDocumentTypeFormat
    -> AugmentedManifestsDocumentTypeFormat -> Bool)
-> Eq AugmentedManifestsDocumentTypeFormat
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
Eq AugmentedManifestsDocumentTypeFormat
-> (AugmentedManifestsDocumentTypeFormat
    -> AugmentedManifestsDocumentTypeFormat -> Ordering)
-> (AugmentedManifestsDocumentTypeFormat
    -> AugmentedManifestsDocumentTypeFormat -> Bool)
-> (AugmentedManifestsDocumentTypeFormat
    -> AugmentedManifestsDocumentTypeFormat -> Bool)
-> (AugmentedManifestsDocumentTypeFormat
    -> AugmentedManifestsDocumentTypeFormat -> Bool)
-> (AugmentedManifestsDocumentTypeFormat
    -> AugmentedManifestsDocumentTypeFormat -> Bool)
-> (AugmentedManifestsDocumentTypeFormat
    -> AugmentedManifestsDocumentTypeFormat
    -> AugmentedManifestsDocumentTypeFormat)
-> (AugmentedManifestsDocumentTypeFormat
    -> AugmentedManifestsDocumentTypeFormat
    -> AugmentedManifestsDocumentTypeFormat)
-> Ord 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
$cp1Ord :: Eq AugmentedManifestsDocumentTypeFormat
Prelude.Ord,
      (forall x.
 AugmentedManifestsDocumentTypeFormat
 -> Rep AugmentedManifestsDocumentTypeFormat x)
-> (forall x.
    Rep AugmentedManifestsDocumentTypeFormat x
    -> AugmentedManifestsDocumentTypeFormat)
-> Generic AugmentedManifestsDocumentTypeFormat
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
    ( Int -> AugmentedManifestsDocumentTypeFormat -> Int
AugmentedManifestsDocumentTypeFormat -> Int
(Int -> AugmentedManifestsDocumentTypeFormat -> Int)
-> (AugmentedManifestsDocumentTypeFormat -> Int)
-> Hashable AugmentedManifestsDocumentTypeFormat
forall 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 -> ()
(AugmentedManifestsDocumentTypeFormat -> ())
-> NFData AugmentedManifestsDocumentTypeFormat
forall a. (a -> ()) -> NFData a
rnf :: AugmentedManifestsDocumentTypeFormat -> ()
$crnf :: AugmentedManifestsDocumentTypeFormat -> ()
Prelude.NFData,
      Text -> Either String AugmentedManifestsDocumentTypeFormat
(Text -> Either String AugmentedManifestsDocumentTypeFormat)
-> FromText AugmentedManifestsDocumentTypeFormat
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String AugmentedManifestsDocumentTypeFormat
$cfromText :: Text -> Either String AugmentedManifestsDocumentTypeFormat
Core.FromText,
      AugmentedManifestsDocumentTypeFormat -> Text
(AugmentedManifestsDocumentTypeFormat -> Text)
-> ToText AugmentedManifestsDocumentTypeFormat
forall a. (a -> Text) -> ToText a
toText :: AugmentedManifestsDocumentTypeFormat -> Text
$ctoText :: AugmentedManifestsDocumentTypeFormat -> Text
Core.ToText,
      AugmentedManifestsDocumentTypeFormat -> ByteString
(AugmentedManifestsDocumentTypeFormat -> ByteString)
-> ToByteString AugmentedManifestsDocumentTypeFormat
forall a. (a -> ByteString) -> ToByteString a
toBS :: AugmentedManifestsDocumentTypeFormat -> ByteString
$ctoBS :: AugmentedManifestsDocumentTypeFormat -> ByteString
Core.ToByteString,
      AugmentedManifestsDocumentTypeFormat -> ByteStringBuilder
(AugmentedManifestsDocumentTypeFormat -> ByteStringBuilder)
-> ToLog AugmentedManifestsDocumentTypeFormat
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: AugmentedManifestsDocumentTypeFormat -> ByteStringBuilder
$cbuild :: AugmentedManifestsDocumentTypeFormat -> ByteStringBuilder
Core.ToLog,
      HeaderName -> AugmentedManifestsDocumentTypeFormat -> [Header]
(HeaderName -> AugmentedManifestsDocumentTypeFormat -> [Header])
-> ToHeader AugmentedManifestsDocumentTypeFormat
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> AugmentedManifestsDocumentTypeFormat -> [Header]
$ctoHeader :: HeaderName -> AugmentedManifestsDocumentTypeFormat -> [Header]
Core.ToHeader,
      AugmentedManifestsDocumentTypeFormat -> QueryString
(AugmentedManifestsDocumentTypeFormat -> QueryString)
-> ToQuery AugmentedManifestsDocumentTypeFormat
forall a. (a -> QueryString) -> ToQuery a
toQuery :: AugmentedManifestsDocumentTypeFormat -> QueryString
$ctoQuery :: AugmentedManifestsDocumentTypeFormat -> QueryString
Core.ToQuery,
      Value -> Parser [AugmentedManifestsDocumentTypeFormat]
Value -> Parser AugmentedManifestsDocumentTypeFormat
(Value -> Parser AugmentedManifestsDocumentTypeFormat)
-> (Value -> Parser [AugmentedManifestsDocumentTypeFormat])
-> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [AugmentedManifestsDocumentTypeFormat]
FromJSONKeyFunction AugmentedManifestsDocumentTypeFormat
FromJSONKeyFunction AugmentedManifestsDocumentTypeFormat
-> FromJSONKeyFunction [AugmentedManifestsDocumentTypeFormat]
-> FromJSONKey AugmentedManifestsDocumentTypeFormat
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [AugmentedManifestsDocumentTypeFormat]
$cfromJSONKeyList :: FromJSONKeyFunction [AugmentedManifestsDocumentTypeFormat]
fromJSONKey :: FromJSONKeyFunction AugmentedManifestsDocumentTypeFormat
$cfromJSONKey :: FromJSONKeyFunction AugmentedManifestsDocumentTypeFormat
Core.FromJSONKey,
      [AugmentedManifestsDocumentTypeFormat] -> Encoding
[AugmentedManifestsDocumentTypeFormat] -> Value
AugmentedManifestsDocumentTypeFormat -> Encoding
AugmentedManifestsDocumentTypeFormat -> Value
(AugmentedManifestsDocumentTypeFormat -> Value)
-> (AugmentedManifestsDocumentTypeFormat -> Encoding)
-> ([AugmentedManifestsDocumentTypeFormat] -> Value)
-> ([AugmentedManifestsDocumentTypeFormat] -> Encoding)
-> ToJSON AugmentedManifestsDocumentTypeFormat
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
Core.ToJSON,
      ToJSONKeyFunction [AugmentedManifestsDocumentTypeFormat]
ToJSONKeyFunction AugmentedManifestsDocumentTypeFormat
ToJSONKeyFunction AugmentedManifestsDocumentTypeFormat
-> ToJSONKeyFunction [AugmentedManifestsDocumentTypeFormat]
-> ToJSONKey AugmentedManifestsDocumentTypeFormat
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [AugmentedManifestsDocumentTypeFormat]
$ctoJSONKeyList :: ToJSONKeyFunction [AugmentedManifestsDocumentTypeFormat]
toJSONKey :: ToJSONKeyFunction AugmentedManifestsDocumentTypeFormat
$ctoJSONKey :: ToJSONKeyFunction AugmentedManifestsDocumentTypeFormat
Core.ToJSONKey,
      [Node] -> Either String AugmentedManifestsDocumentTypeFormat
([Node] -> Either String AugmentedManifestsDocumentTypeFormat)
-> FromXML AugmentedManifestsDocumentTypeFormat
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String AugmentedManifestsDocumentTypeFormat
$cparseXML :: [Node] -> Either String AugmentedManifestsDocumentTypeFormat
Core.FromXML,
      AugmentedManifestsDocumentTypeFormat -> XML
(AugmentedManifestsDocumentTypeFormat -> XML)
-> ToXML AugmentedManifestsDocumentTypeFormat
forall a. (a -> XML) -> ToXML a
toXML :: AugmentedManifestsDocumentTypeFormat -> XML
$ctoXML :: AugmentedManifestsDocumentTypeFormat -> XML
Core.ToXML
    )

pattern AugmentedManifestsDocumentTypeFormat_PLAIN_TEXT_DOCUMENT :: AugmentedManifestsDocumentTypeFormat
pattern $bAugmentedManifestsDocumentTypeFormat_PLAIN_TEXT_DOCUMENT :: AugmentedManifestsDocumentTypeFormat
$mAugmentedManifestsDocumentTypeFormat_PLAIN_TEXT_DOCUMENT :: forall r.
AugmentedManifestsDocumentTypeFormat
-> (Void# -> r) -> (Void# -> 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
-> (Void# -> r) -> (Void# -> r) -> r
AugmentedManifestsDocumentTypeFormat_SEMI_STRUCTURED_DOCUMENT = AugmentedManifestsDocumentTypeFormat' "SEMI_STRUCTURED_DOCUMENT"

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