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