{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.DMS.Types.MessageFormatValue
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.DMS.Types.MessageFormatValue
  ( MessageFormatValue
      ( ..,
        MessageFormatValue_Json,
        MessageFormatValue_Json_unformatted
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude

newtype MessageFormatValue = MessageFormatValue'
  { MessageFormatValue -> Text
fromMessageFormatValue ::
      Data.Text
  }
  deriving stock
    ( Int -> MessageFormatValue -> ShowS
[MessageFormatValue] -> ShowS
MessageFormatValue -> String
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]
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
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
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
Prelude.Ord,
      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
    ( Eq MessageFormatValue
Int -> MessageFormatValue -> Int
MessageFormatValue -> Int
forall a. Eq 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 -> ()
forall a. (a -> ()) -> NFData a
rnf :: MessageFormatValue -> ()
$crnf :: MessageFormatValue -> ()
Prelude.NFData,
      Text -> Either String MessageFormatValue
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String MessageFormatValue
$cfromText :: Text -> Either String MessageFormatValue
Data.FromText,
      MessageFormatValue -> Text
forall a. (a -> Text) -> ToText a
toText :: MessageFormatValue -> Text
$ctoText :: MessageFormatValue -> Text
Data.ToText,
      MessageFormatValue -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: MessageFormatValue -> ByteString
$ctoBS :: MessageFormatValue -> ByteString
Data.ToByteString,
      MessageFormatValue -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: MessageFormatValue -> ByteStringBuilder
$cbuild :: MessageFormatValue -> ByteStringBuilder
Data.ToLog,
      HeaderName -> MessageFormatValue -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> MessageFormatValue -> [Header]
$ctoHeader :: HeaderName -> MessageFormatValue -> [Header]
Data.ToHeader,
      MessageFormatValue -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: MessageFormatValue -> QueryString
$ctoQuery :: MessageFormatValue -> QueryString
Data.ToQuery,
      Value -> Parser [MessageFormatValue]
Value -> Parser 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
Data.FromJSON,
      FromJSONKeyFunction [MessageFormatValue]
FromJSONKeyFunction MessageFormatValue
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [MessageFormatValue]
$cfromJSONKeyList :: FromJSONKeyFunction [MessageFormatValue]
fromJSONKey :: FromJSONKeyFunction MessageFormatValue
$cfromJSONKey :: FromJSONKeyFunction MessageFormatValue
Data.FromJSONKey,
      [MessageFormatValue] -> Encoding
[MessageFormatValue] -> Value
MessageFormatValue -> Encoding
MessageFormatValue -> Value
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
Data.ToJSON,
      ToJSONKeyFunction [MessageFormatValue]
ToJSONKeyFunction MessageFormatValue
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [MessageFormatValue]
$ctoJSONKeyList :: ToJSONKeyFunction [MessageFormatValue]
toJSONKey :: ToJSONKeyFunction MessageFormatValue
$ctoJSONKey :: ToJSONKeyFunction MessageFormatValue
Data.ToJSONKey,
      [Node] -> Either String MessageFormatValue
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String MessageFormatValue
$cparseXML :: [Node] -> Either String MessageFormatValue
Data.FromXML,
      MessageFormatValue -> XML
forall a. (a -> XML) -> ToXML a
toXML :: MessageFormatValue -> XML
$ctoXML :: MessageFormatValue -> XML
Data.ToXML
    )

pattern MessageFormatValue_Json :: MessageFormatValue
pattern $bMessageFormatValue_Json :: MessageFormatValue
$mMessageFormatValue_Json :: forall {r}. MessageFormatValue -> ((# #) -> r) -> ((# #) -> r) -> r
MessageFormatValue_Json = MessageFormatValue' "json"

pattern MessageFormatValue_Json_unformatted :: MessageFormatValue
pattern $bMessageFormatValue_Json_unformatted :: MessageFormatValue
$mMessageFormatValue_Json_unformatted :: forall {r}. MessageFormatValue -> ((# #) -> r) -> ((# #) -> r) -> r
MessageFormatValue_Json_unformatted = MessageFormatValue' "json-unformatted"

{-# COMPLETE
  MessageFormatValue_Json,
  MessageFormatValue_Json_unformatted,
  MessageFormatValue'
  #-}