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