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