{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
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.Prelude as Prelude
newtype DocumentationPartType = DocumentationPartType'
{ DocumentationPartType -> Text
fromDocumentationPartType ::
Core.Text
}
deriving stock
( Int -> DocumentationPartType -> ShowS
[DocumentationPartType] -> ShowS
DocumentationPartType -> String
(Int -> DocumentationPartType -> ShowS)
-> (DocumentationPartType -> String)
-> ([DocumentationPartType] -> ShowS)
-> Show DocumentationPartType
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]
(Int -> ReadS DocumentationPartType)
-> ReadS [DocumentationPartType]
-> ReadPrec DocumentationPartType
-> ReadPrec [DocumentationPartType]
-> Read 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
(DocumentationPartType -> DocumentationPartType -> Bool)
-> (DocumentationPartType -> DocumentationPartType -> Bool)
-> Eq DocumentationPartType
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
Eq DocumentationPartType
-> (DocumentationPartType -> DocumentationPartType -> Ordering)
-> (DocumentationPartType -> DocumentationPartType -> Bool)
-> (DocumentationPartType -> DocumentationPartType -> Bool)
-> (DocumentationPartType -> DocumentationPartType -> Bool)
-> (DocumentationPartType -> DocumentationPartType -> Bool)
-> (DocumentationPartType
-> DocumentationPartType -> DocumentationPartType)
-> (DocumentationPartType
-> DocumentationPartType -> DocumentationPartType)
-> Ord 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
$cp1Ord :: Eq DocumentationPartType
Prelude.Ord,
(forall x. DocumentationPartType -> Rep DocumentationPartType x)
-> (forall x. Rep DocumentationPartType x -> DocumentationPartType)
-> Generic DocumentationPartType
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
( Int -> DocumentationPartType -> Int
DocumentationPartType -> Int
(Int -> DocumentationPartType -> Int)
-> (DocumentationPartType -> Int) -> Hashable DocumentationPartType
forall 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 -> ()
(DocumentationPartType -> ()) -> NFData DocumentationPartType
forall a. (a -> ()) -> NFData a
rnf :: DocumentationPartType -> ()
$crnf :: DocumentationPartType -> ()
Prelude.NFData,
Text -> Either String DocumentationPartType
(Text -> Either String DocumentationPartType)
-> FromText DocumentationPartType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String DocumentationPartType
$cfromText :: Text -> Either String DocumentationPartType
Core.FromText,
DocumentationPartType -> Text
(DocumentationPartType -> Text) -> ToText DocumentationPartType
forall a. (a -> Text) -> ToText a
toText :: DocumentationPartType -> Text
$ctoText :: DocumentationPartType -> Text
Core.ToText,
DocumentationPartType -> ByteString
(DocumentationPartType -> ByteString)
-> ToByteString DocumentationPartType
forall a. (a -> ByteString) -> ToByteString a
toBS :: DocumentationPartType -> ByteString
$ctoBS :: DocumentationPartType -> ByteString
Core.ToByteString,
DocumentationPartType -> ByteStringBuilder
(DocumentationPartType -> ByteStringBuilder)
-> ToLog DocumentationPartType
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: DocumentationPartType -> ByteStringBuilder
$cbuild :: DocumentationPartType -> ByteStringBuilder
Core.ToLog,
HeaderName -> DocumentationPartType -> [Header]
(HeaderName -> DocumentationPartType -> [Header])
-> ToHeader DocumentationPartType
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> DocumentationPartType -> [Header]
$ctoHeader :: HeaderName -> DocumentationPartType -> [Header]
Core.ToHeader,
DocumentationPartType -> QueryString
(DocumentationPartType -> QueryString)
-> ToQuery DocumentationPartType
forall a. (a -> QueryString) -> ToQuery a
toQuery :: DocumentationPartType -> QueryString
$ctoQuery :: DocumentationPartType -> QueryString
Core.ToQuery,
Value -> Parser [DocumentationPartType]
Value -> Parser DocumentationPartType
(Value -> Parser DocumentationPartType)
-> (Value -> Parser [DocumentationPartType])
-> FromJSON 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
Core.FromJSON,
FromJSONKeyFunction [DocumentationPartType]
FromJSONKeyFunction DocumentationPartType
FromJSONKeyFunction DocumentationPartType
-> FromJSONKeyFunction [DocumentationPartType]
-> FromJSONKey DocumentationPartType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [DocumentationPartType]
$cfromJSONKeyList :: FromJSONKeyFunction [DocumentationPartType]
fromJSONKey :: FromJSONKeyFunction DocumentationPartType
$cfromJSONKey :: FromJSONKeyFunction DocumentationPartType
Core.FromJSONKey,
[DocumentationPartType] -> Encoding
[DocumentationPartType] -> Value
DocumentationPartType -> Encoding
DocumentationPartType -> Value
(DocumentationPartType -> Value)
-> (DocumentationPartType -> Encoding)
-> ([DocumentationPartType] -> Value)
-> ([DocumentationPartType] -> Encoding)
-> ToJSON DocumentationPartType
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
Core.ToJSON,
ToJSONKeyFunction [DocumentationPartType]
ToJSONKeyFunction DocumentationPartType
ToJSONKeyFunction DocumentationPartType
-> ToJSONKeyFunction [DocumentationPartType]
-> ToJSONKey DocumentationPartType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [DocumentationPartType]
$ctoJSONKeyList :: ToJSONKeyFunction [DocumentationPartType]
toJSONKey :: ToJSONKeyFunction DocumentationPartType
$ctoJSONKey :: ToJSONKeyFunction DocumentationPartType
Core.ToJSONKey,
[Node] -> Either String DocumentationPartType
([Node] -> Either String DocumentationPartType)
-> FromXML DocumentationPartType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String DocumentationPartType
$cparseXML :: [Node] -> Either String DocumentationPartType
Core.FromXML,
DocumentationPartType -> XML
(DocumentationPartType -> XML) -> ToXML DocumentationPartType
forall a. (a -> XML) -> ToXML a
toXML :: DocumentationPartType -> XML
$ctoXML :: DocumentationPartType -> XML
Core.ToXML
)
pattern DocumentationPartType_API :: DocumentationPartType
pattern $bDocumentationPartType_API :: DocumentationPartType
$mDocumentationPartType_API :: forall r.
DocumentationPartType -> (Void# -> r) -> (Void# -> r) -> r
DocumentationPartType_API = DocumentationPartType' "API"
pattern DocumentationPartType_AUTHORIZER :: DocumentationPartType
pattern $bDocumentationPartType_AUTHORIZER :: DocumentationPartType
$mDocumentationPartType_AUTHORIZER :: forall r.
DocumentationPartType -> (Void# -> r) -> (Void# -> r) -> r
DocumentationPartType_AUTHORIZER = DocumentationPartType' "AUTHORIZER"
pattern DocumentationPartType_METHOD :: DocumentationPartType
pattern $bDocumentationPartType_METHOD :: DocumentationPartType
$mDocumentationPartType_METHOD :: forall r.
DocumentationPartType -> (Void# -> r) -> (Void# -> r) -> r
DocumentationPartType_METHOD = DocumentationPartType' "METHOD"
pattern DocumentationPartType_MODEL :: DocumentationPartType
pattern $bDocumentationPartType_MODEL :: DocumentationPartType
$mDocumentationPartType_MODEL :: forall r.
DocumentationPartType -> (Void# -> r) -> (Void# -> r) -> r
DocumentationPartType_MODEL = DocumentationPartType' "MODEL"
pattern DocumentationPartType_PATH_PARAMETER :: DocumentationPartType
pattern $bDocumentationPartType_PATH_PARAMETER :: DocumentationPartType
$mDocumentationPartType_PATH_PARAMETER :: forall r.
DocumentationPartType -> (Void# -> r) -> (Void# -> r) -> r
DocumentationPartType_PATH_PARAMETER = DocumentationPartType' "PATH_PARAMETER"
pattern DocumentationPartType_QUERY_PARAMETER :: DocumentationPartType
pattern $bDocumentationPartType_QUERY_PARAMETER :: DocumentationPartType
$mDocumentationPartType_QUERY_PARAMETER :: forall r.
DocumentationPartType -> (Void# -> r) -> (Void# -> r) -> r
DocumentationPartType_QUERY_PARAMETER = DocumentationPartType' "QUERY_PARAMETER"
pattern DocumentationPartType_REQUEST_BODY :: DocumentationPartType
pattern $bDocumentationPartType_REQUEST_BODY :: DocumentationPartType
$mDocumentationPartType_REQUEST_BODY :: forall r.
DocumentationPartType -> (Void# -> r) -> (Void# -> r) -> r
DocumentationPartType_REQUEST_BODY = DocumentationPartType' "REQUEST_BODY"
pattern DocumentationPartType_REQUEST_HEADER :: DocumentationPartType
pattern = DocumentationPartType' "REQUEST_HEADER"
pattern DocumentationPartType_RESOURCE :: DocumentationPartType
pattern $bDocumentationPartType_RESOURCE :: DocumentationPartType
$mDocumentationPartType_RESOURCE :: forall r.
DocumentationPartType -> (Void# -> r) -> (Void# -> r) -> r
DocumentationPartType_RESOURCE = DocumentationPartType' "RESOURCE"
pattern DocumentationPartType_RESPONSE :: DocumentationPartType
pattern $bDocumentationPartType_RESPONSE :: DocumentationPartType
$mDocumentationPartType_RESPONSE :: forall r.
DocumentationPartType -> (Void# -> r) -> (Void# -> r) -> r
DocumentationPartType_RESPONSE = DocumentationPartType' "RESPONSE"
pattern DocumentationPartType_RESPONSE_BODY :: DocumentationPartType
pattern $bDocumentationPartType_RESPONSE_BODY :: DocumentationPartType
$mDocumentationPartType_RESPONSE_BODY :: forall r.
DocumentationPartType -> (Void# -> r) -> (Void# -> r) -> r
DocumentationPartType_RESPONSE_BODY = DocumentationPartType' "RESPONSE_BODY"
pattern DocumentationPartType_RESPONSE_HEADER :: DocumentationPartType
pattern = 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'
#-}