{-# 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.APIGateway.Types.DocumentationPartType
-- 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.APIGateway.Types.DocumentationPartType
  ( DocumentationPartType
      ( ..,
        DocumentationPartType_API,
        DocumentationPartType_AUTHORIZER,
        DocumentationPartType_METHOD,
        DocumentationPartType_MODEL,
        DocumentationPartType_PATH_PARAMETER,
        DocumentationPartType_QUERY_PARAMETER,
        DocumentationPartType_REQUEST_BODY,
        DocumentationPartType_REQUEST_HEADER,
        DocumentationPartType_RESOURCE,
        DocumentationPartType_RESPONSE,
        DocumentationPartType_RESPONSE_BODY,
        DocumentationPartType_RESPONSE_HEADER
      ),
  )
where

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

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

pattern DocumentationPartType_API :: DocumentationPartType
pattern $bDocumentationPartType_API :: DocumentationPartType
$mDocumentationPartType_API :: forall {r}.
DocumentationPartType -> ((# #) -> r) -> ((# #) -> r) -> r
DocumentationPartType_API = DocumentationPartType' "API"

pattern DocumentationPartType_AUTHORIZER :: DocumentationPartType
pattern $bDocumentationPartType_AUTHORIZER :: DocumentationPartType
$mDocumentationPartType_AUTHORIZER :: forall {r}.
DocumentationPartType -> ((# #) -> r) -> ((# #) -> r) -> r
DocumentationPartType_AUTHORIZER = DocumentationPartType' "AUTHORIZER"

pattern DocumentationPartType_METHOD :: DocumentationPartType
pattern $bDocumentationPartType_METHOD :: DocumentationPartType
$mDocumentationPartType_METHOD :: forall {r}.
DocumentationPartType -> ((# #) -> r) -> ((# #) -> r) -> r
DocumentationPartType_METHOD = DocumentationPartType' "METHOD"

pattern DocumentationPartType_MODEL :: DocumentationPartType
pattern $bDocumentationPartType_MODEL :: DocumentationPartType
$mDocumentationPartType_MODEL :: forall {r}.
DocumentationPartType -> ((# #) -> r) -> ((# #) -> r) -> r
DocumentationPartType_MODEL = DocumentationPartType' "MODEL"

pattern DocumentationPartType_PATH_PARAMETER :: DocumentationPartType
pattern $bDocumentationPartType_PATH_PARAMETER :: DocumentationPartType
$mDocumentationPartType_PATH_PARAMETER :: forall {r}.
DocumentationPartType -> ((# #) -> r) -> ((# #) -> r) -> r
DocumentationPartType_PATH_PARAMETER = DocumentationPartType' "PATH_PARAMETER"

pattern DocumentationPartType_QUERY_PARAMETER :: DocumentationPartType
pattern $bDocumentationPartType_QUERY_PARAMETER :: DocumentationPartType
$mDocumentationPartType_QUERY_PARAMETER :: forall {r}.
DocumentationPartType -> ((# #) -> r) -> ((# #) -> r) -> r
DocumentationPartType_QUERY_PARAMETER = DocumentationPartType' "QUERY_PARAMETER"

pattern DocumentationPartType_REQUEST_BODY :: DocumentationPartType
pattern $bDocumentationPartType_REQUEST_BODY :: DocumentationPartType
$mDocumentationPartType_REQUEST_BODY :: forall {r}.
DocumentationPartType -> ((# #) -> r) -> ((# #) -> r) -> r
DocumentationPartType_REQUEST_BODY = DocumentationPartType' "REQUEST_BODY"

pattern DocumentationPartType_REQUEST_HEADER :: DocumentationPartType
pattern $bDocumentationPartType_REQUEST_HEADER :: DocumentationPartType
$mDocumentationPartType_REQUEST_HEADER :: forall {r}.
DocumentationPartType -> ((# #) -> r) -> ((# #) -> r) -> r
DocumentationPartType_REQUEST_HEADER = DocumentationPartType' "REQUEST_HEADER"

pattern DocumentationPartType_RESOURCE :: DocumentationPartType
pattern $bDocumentationPartType_RESOURCE :: DocumentationPartType
$mDocumentationPartType_RESOURCE :: forall {r}.
DocumentationPartType -> ((# #) -> r) -> ((# #) -> r) -> r
DocumentationPartType_RESOURCE = DocumentationPartType' "RESOURCE"

pattern DocumentationPartType_RESPONSE :: DocumentationPartType
pattern $bDocumentationPartType_RESPONSE :: DocumentationPartType
$mDocumentationPartType_RESPONSE :: forall {r}.
DocumentationPartType -> ((# #) -> r) -> ((# #) -> r) -> r
DocumentationPartType_RESPONSE = DocumentationPartType' "RESPONSE"

pattern DocumentationPartType_RESPONSE_BODY :: DocumentationPartType
pattern $bDocumentationPartType_RESPONSE_BODY :: DocumentationPartType
$mDocumentationPartType_RESPONSE_BODY :: forall {r}.
DocumentationPartType -> ((# #) -> r) -> ((# #) -> r) -> r
DocumentationPartType_RESPONSE_BODY = DocumentationPartType' "RESPONSE_BODY"

pattern DocumentationPartType_RESPONSE_HEADER :: DocumentationPartType
pattern $bDocumentationPartType_RESPONSE_HEADER :: DocumentationPartType
$mDocumentationPartType_RESPONSE_HEADER :: forall {r}.
DocumentationPartType -> ((# #) -> r) -> ((# #) -> r) -> r
DocumentationPartType_RESPONSE_HEADER = DocumentationPartType' "RESPONSE_HEADER"

{-# COMPLETE
  DocumentationPartType_API,
  DocumentationPartType_AUTHORIZER,
  DocumentationPartType_METHOD,
  DocumentationPartType_MODEL,
  DocumentationPartType_PATH_PARAMETER,
  DocumentationPartType_QUERY_PARAMETER,
  DocumentationPartType_REQUEST_BODY,
  DocumentationPartType_REQUEST_HEADER,
  DocumentationPartType_RESOURCE,
  DocumentationPartType_RESPONSE,
  DocumentationPartType_RESPONSE_BODY,
  DocumentationPartType_RESPONSE_HEADER,
  DocumentationPartType'
  #-}