{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.SecurityLake.Types.HttpsMethod
( HttpsMethod
( ..,
HttpsMethod_POST,
HttpsMethod_PUT
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
newtype HttpsMethod = HttpsMethod'
{ HttpsMethod -> Text
fromHttpsMethod ::
Data.Text
}
deriving stock
( Int -> HttpsMethod -> ShowS
[HttpsMethod] -> ShowS
HttpsMethod -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [HttpsMethod] -> ShowS
$cshowList :: [HttpsMethod] -> ShowS
show :: HttpsMethod -> String
$cshow :: HttpsMethod -> String
showsPrec :: Int -> HttpsMethod -> ShowS
$cshowsPrec :: Int -> HttpsMethod -> ShowS
Prelude.Show,
ReadPrec [HttpsMethod]
ReadPrec HttpsMethod
Int -> ReadS HttpsMethod
ReadS [HttpsMethod]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [HttpsMethod]
$creadListPrec :: ReadPrec [HttpsMethod]
readPrec :: ReadPrec HttpsMethod
$creadPrec :: ReadPrec HttpsMethod
readList :: ReadS [HttpsMethod]
$creadList :: ReadS [HttpsMethod]
readsPrec :: Int -> ReadS HttpsMethod
$creadsPrec :: Int -> ReadS HttpsMethod
Prelude.Read,
HttpsMethod -> HttpsMethod -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: HttpsMethod -> HttpsMethod -> Bool
$c/= :: HttpsMethod -> HttpsMethod -> Bool
== :: HttpsMethod -> HttpsMethod -> Bool
$c== :: HttpsMethod -> HttpsMethod -> Bool
Prelude.Eq,
Eq HttpsMethod
HttpsMethod -> HttpsMethod -> Bool
HttpsMethod -> HttpsMethod -> Ordering
HttpsMethod -> HttpsMethod -> HttpsMethod
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 :: HttpsMethod -> HttpsMethod -> HttpsMethod
$cmin :: HttpsMethod -> HttpsMethod -> HttpsMethod
max :: HttpsMethod -> HttpsMethod -> HttpsMethod
$cmax :: HttpsMethod -> HttpsMethod -> HttpsMethod
>= :: HttpsMethod -> HttpsMethod -> Bool
$c>= :: HttpsMethod -> HttpsMethod -> Bool
> :: HttpsMethod -> HttpsMethod -> Bool
$c> :: HttpsMethod -> HttpsMethod -> Bool
<= :: HttpsMethod -> HttpsMethod -> Bool
$c<= :: HttpsMethod -> HttpsMethod -> Bool
< :: HttpsMethod -> HttpsMethod -> Bool
$c< :: HttpsMethod -> HttpsMethod -> Bool
compare :: HttpsMethod -> HttpsMethod -> Ordering
$ccompare :: HttpsMethod -> HttpsMethod -> Ordering
Prelude.Ord,
forall x. Rep HttpsMethod x -> HttpsMethod
forall x. HttpsMethod -> Rep HttpsMethod x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep HttpsMethod x -> HttpsMethod
$cfrom :: forall x. HttpsMethod -> Rep HttpsMethod x
Prelude.Generic
)
deriving newtype
( Eq HttpsMethod
Int -> HttpsMethod -> Int
HttpsMethod -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: HttpsMethod -> Int
$chash :: HttpsMethod -> Int
hashWithSalt :: Int -> HttpsMethod -> Int
$chashWithSalt :: Int -> HttpsMethod -> Int
Prelude.Hashable,
HttpsMethod -> ()
forall a. (a -> ()) -> NFData a
rnf :: HttpsMethod -> ()
$crnf :: HttpsMethod -> ()
Prelude.NFData,
Text -> Either String HttpsMethod
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String HttpsMethod
$cfromText :: Text -> Either String HttpsMethod
Data.FromText,
HttpsMethod -> Text
forall a. (a -> Text) -> ToText a
toText :: HttpsMethod -> Text
$ctoText :: HttpsMethod -> Text
Data.ToText,
HttpsMethod -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: HttpsMethod -> ByteString
$ctoBS :: HttpsMethod -> ByteString
Data.ToByteString,
HttpsMethod -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: HttpsMethod -> ByteStringBuilder
$cbuild :: HttpsMethod -> ByteStringBuilder
Data.ToLog,
HeaderName -> HttpsMethod -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> HttpsMethod -> [Header]
$ctoHeader :: HeaderName -> HttpsMethod -> [Header]
Data.ToHeader,
HttpsMethod -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: HttpsMethod -> QueryString
$ctoQuery :: HttpsMethod -> QueryString
Data.ToQuery,
Value -> Parser [HttpsMethod]
Value -> Parser HttpsMethod
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [HttpsMethod]
$cparseJSONList :: Value -> Parser [HttpsMethod]
parseJSON :: Value -> Parser HttpsMethod
$cparseJSON :: Value -> Parser HttpsMethod
Data.FromJSON,
FromJSONKeyFunction [HttpsMethod]
FromJSONKeyFunction HttpsMethod
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [HttpsMethod]
$cfromJSONKeyList :: FromJSONKeyFunction [HttpsMethod]
fromJSONKey :: FromJSONKeyFunction HttpsMethod
$cfromJSONKey :: FromJSONKeyFunction HttpsMethod
Data.FromJSONKey,
[HttpsMethod] -> Encoding
[HttpsMethod] -> Value
HttpsMethod -> Encoding
HttpsMethod -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [HttpsMethod] -> Encoding
$ctoEncodingList :: [HttpsMethod] -> Encoding
toJSONList :: [HttpsMethod] -> Value
$ctoJSONList :: [HttpsMethod] -> Value
toEncoding :: HttpsMethod -> Encoding
$ctoEncoding :: HttpsMethod -> Encoding
toJSON :: HttpsMethod -> Value
$ctoJSON :: HttpsMethod -> Value
Data.ToJSON,
ToJSONKeyFunction [HttpsMethod]
ToJSONKeyFunction HttpsMethod
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [HttpsMethod]
$ctoJSONKeyList :: ToJSONKeyFunction [HttpsMethod]
toJSONKey :: ToJSONKeyFunction HttpsMethod
$ctoJSONKey :: ToJSONKeyFunction HttpsMethod
Data.ToJSONKey,
[Node] -> Either String HttpsMethod
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String HttpsMethod
$cparseXML :: [Node] -> Either String HttpsMethod
Data.FromXML,
HttpsMethod -> XML
forall a. (a -> XML) -> ToXML a
toXML :: HttpsMethod -> XML
$ctoXML :: HttpsMethod -> XML
Data.ToXML
)
pattern HttpsMethod_POST :: HttpsMethod
pattern $bHttpsMethod_POST :: HttpsMethod
$mHttpsMethod_POST :: forall {r}. HttpsMethod -> ((# #) -> r) -> ((# #) -> r) -> r
HttpsMethod_POST = HttpsMethod' "POST"
pattern HttpsMethod_PUT :: HttpsMethod
pattern $bHttpsMethod_PUT :: HttpsMethod
$mHttpsMethod_PUT :: forall {r}. HttpsMethod -> ((# #) -> r) -> ((# #) -> r) -> r
HttpsMethod_PUT = HttpsMethod' "PUT"
{-# COMPLETE
HttpsMethod_POST,
HttpsMethod_PUT,
HttpsMethod'
#-}