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