{-# 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.Op
( Op
( ..,
Op_Add,
Op_Copy,
Op_Move,
Op_Remove,
Op_Replace,
Op_Test
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype Op = Op' {Op -> Text
fromOp :: Core.Text}
deriving stock
( Int -> Op -> ShowS
[Op] -> ShowS
Op -> String
(Int -> Op -> ShowS)
-> (Op -> String) -> ([Op] -> ShowS) -> Show Op
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [Op] -> ShowS
$cshowList :: [Op] -> ShowS
show :: Op -> String
$cshow :: Op -> String
showsPrec :: Int -> Op -> ShowS
$cshowsPrec :: Int -> Op -> ShowS
Prelude.Show,
ReadPrec [Op]
ReadPrec Op
Int -> ReadS Op
ReadS [Op]
(Int -> ReadS Op)
-> ReadS [Op] -> ReadPrec Op -> ReadPrec [Op] -> Read Op
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [Op]
$creadListPrec :: ReadPrec [Op]
readPrec :: ReadPrec Op
$creadPrec :: ReadPrec Op
readList :: ReadS [Op]
$creadList :: ReadS [Op]
readsPrec :: Int -> ReadS Op
$creadsPrec :: Int -> ReadS Op
Prelude.Read,
Op -> Op -> Bool
(Op -> Op -> Bool) -> (Op -> Op -> Bool) -> Eq Op
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: Op -> Op -> Bool
$c/= :: Op -> Op -> Bool
== :: Op -> Op -> Bool
$c== :: Op -> Op -> Bool
Prelude.Eq,
Eq Op
Eq Op
-> (Op -> Op -> Ordering)
-> (Op -> Op -> Bool)
-> (Op -> Op -> Bool)
-> (Op -> Op -> Bool)
-> (Op -> Op -> Bool)
-> (Op -> Op -> Op)
-> (Op -> Op -> Op)
-> Ord Op
Op -> Op -> Bool
Op -> Op -> Ordering
Op -> Op -> Op
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 :: Op -> Op -> Op
$cmin :: Op -> Op -> Op
max :: Op -> Op -> Op
$cmax :: Op -> Op -> Op
>= :: Op -> Op -> Bool
$c>= :: Op -> Op -> Bool
> :: Op -> Op -> Bool
$c> :: Op -> Op -> Bool
<= :: Op -> Op -> Bool
$c<= :: Op -> Op -> Bool
< :: Op -> Op -> Bool
$c< :: Op -> Op -> Bool
compare :: Op -> Op -> Ordering
$ccompare :: Op -> Op -> Ordering
$cp1Ord :: Eq Op
Prelude.Ord,
(forall x. Op -> Rep Op x)
-> (forall x. Rep Op x -> Op) -> Generic Op
forall x. Rep Op x -> Op
forall x. Op -> Rep Op x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep Op x -> Op
$cfrom :: forall x. Op -> Rep Op x
Prelude.Generic
)
deriving newtype
( Int -> Op -> Int
Op -> Int
(Int -> Op -> Int) -> (Op -> Int) -> Hashable Op
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: Op -> Int
$chash :: Op -> Int
hashWithSalt :: Int -> Op -> Int
$chashWithSalt :: Int -> Op -> Int
Prelude.Hashable,
Op -> ()
(Op -> ()) -> NFData Op
forall a. (a -> ()) -> NFData a
rnf :: Op -> ()
$crnf :: Op -> ()
Prelude.NFData,
Text -> Either String Op
(Text -> Either String Op) -> FromText Op
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String Op
$cfromText :: Text -> Either String Op
Core.FromText,
Op -> Text
(Op -> Text) -> ToText Op
forall a. (a -> Text) -> ToText a
toText :: Op -> Text
$ctoText :: Op -> Text
Core.ToText,
Op -> ByteString
(Op -> ByteString) -> ToByteString Op
forall a. (a -> ByteString) -> ToByteString a
toBS :: Op -> ByteString
$ctoBS :: Op -> ByteString
Core.ToByteString,
Op -> ByteStringBuilder
(Op -> ByteStringBuilder) -> ToLog Op
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: Op -> ByteStringBuilder
$cbuild :: Op -> ByteStringBuilder
Core.ToLog,
HeaderName -> Op -> [Header]
(HeaderName -> Op -> [Header]) -> ToHeader Op
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> Op -> [Header]
$ctoHeader :: HeaderName -> Op -> [Header]
Core.ToHeader,
Op -> QueryString
(Op -> QueryString) -> ToQuery Op
forall a. (a -> QueryString) -> ToQuery a
toQuery :: Op -> QueryString
$ctoQuery :: Op -> QueryString
Core.ToQuery,
Value -> Parser [Op]
Value -> Parser Op
(Value -> Parser Op) -> (Value -> Parser [Op]) -> FromJSON Op
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [Op]
$cparseJSONList :: Value -> Parser [Op]
parseJSON :: Value -> Parser Op
$cparseJSON :: Value -> Parser Op
Core.FromJSON,
FromJSONKeyFunction [Op]
FromJSONKeyFunction Op
FromJSONKeyFunction Op
-> FromJSONKeyFunction [Op] -> FromJSONKey Op
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [Op]
$cfromJSONKeyList :: FromJSONKeyFunction [Op]
fromJSONKey :: FromJSONKeyFunction Op
$cfromJSONKey :: FromJSONKeyFunction Op
Core.FromJSONKey,
[Op] -> Encoding
[Op] -> Value
Op -> Encoding
Op -> Value
(Op -> Value)
-> (Op -> Encoding)
-> ([Op] -> Value)
-> ([Op] -> Encoding)
-> ToJSON Op
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [Op] -> Encoding
$ctoEncodingList :: [Op] -> Encoding
toJSONList :: [Op] -> Value
$ctoJSONList :: [Op] -> Value
toEncoding :: Op -> Encoding
$ctoEncoding :: Op -> Encoding
toJSON :: Op -> Value
$ctoJSON :: Op -> Value
Core.ToJSON,
ToJSONKeyFunction [Op]
ToJSONKeyFunction Op
ToJSONKeyFunction Op -> ToJSONKeyFunction [Op] -> ToJSONKey Op
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [Op]
$ctoJSONKeyList :: ToJSONKeyFunction [Op]
toJSONKey :: ToJSONKeyFunction Op
$ctoJSONKey :: ToJSONKeyFunction Op
Core.ToJSONKey,
[Node] -> Either String Op
([Node] -> Either String Op) -> FromXML Op
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String Op
$cparseXML :: [Node] -> Either String Op
Core.FromXML,
Op -> XML
(Op -> XML) -> ToXML Op
forall a. (a -> XML) -> ToXML a
toXML :: Op -> XML
$ctoXML :: Op -> XML
Core.ToXML
)
pattern Op_Add :: Op
pattern $bOp_Add :: Op
$mOp_Add :: forall r. Op -> (Void# -> r) -> (Void# -> r) -> r
Op_Add = Op' "add"
pattern Op_Copy :: Op
pattern $bOp_Copy :: Op
$mOp_Copy :: forall r. Op -> (Void# -> r) -> (Void# -> r) -> r
Op_Copy = Op' "copy"
pattern Op_Move :: Op
pattern $bOp_Move :: Op
$mOp_Move :: forall r. Op -> (Void# -> r) -> (Void# -> r) -> r
Op_Move = Op' "move"
pattern Op_Remove :: Op
pattern $bOp_Remove :: Op
$mOp_Remove :: forall r. Op -> (Void# -> r) -> (Void# -> r) -> r
Op_Remove = Op' "remove"
pattern Op_Replace :: Op
pattern $bOp_Replace :: Op
$mOp_Replace :: forall r. Op -> (Void# -> r) -> (Void# -> r) -> r
Op_Replace = Op' "replace"
pattern Op_Test :: Op
pattern $bOp_Test :: Op
$mOp_Test :: forall r. Op -> (Void# -> r) -> (Void# -> r) -> r
Op_Test = Op' "test"
{-# COMPLETE
Op_Add,
Op_Copy,
Op_Move,
Op_Remove,
Op_Replace,
Op_Test,
Op'
#-}