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