{-# 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.EncodingTypeValue
( EncodingTypeValue
( ..,
EncodingTypeValue_Plain,
EncodingTypeValue_Plain_dictionary,
EncodingTypeValue_Rle_dictionary
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype EncodingTypeValue = EncodingTypeValue'
{ EncodingTypeValue -> Text
fromEncodingTypeValue ::
Core.Text
}
deriving stock
( Int -> EncodingTypeValue -> ShowS
[EncodingTypeValue] -> ShowS
EncodingTypeValue -> String
(Int -> EncodingTypeValue -> ShowS)
-> (EncodingTypeValue -> String)
-> ([EncodingTypeValue] -> ShowS)
-> Show EncodingTypeValue
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [EncodingTypeValue] -> ShowS
$cshowList :: [EncodingTypeValue] -> ShowS
show :: EncodingTypeValue -> String
$cshow :: EncodingTypeValue -> String
showsPrec :: Int -> EncodingTypeValue -> ShowS
$cshowsPrec :: Int -> EncodingTypeValue -> ShowS
Prelude.Show,
ReadPrec [EncodingTypeValue]
ReadPrec EncodingTypeValue
Int -> ReadS EncodingTypeValue
ReadS [EncodingTypeValue]
(Int -> ReadS EncodingTypeValue)
-> ReadS [EncodingTypeValue]
-> ReadPrec EncodingTypeValue
-> ReadPrec [EncodingTypeValue]
-> Read EncodingTypeValue
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [EncodingTypeValue]
$creadListPrec :: ReadPrec [EncodingTypeValue]
readPrec :: ReadPrec EncodingTypeValue
$creadPrec :: ReadPrec EncodingTypeValue
readList :: ReadS [EncodingTypeValue]
$creadList :: ReadS [EncodingTypeValue]
readsPrec :: Int -> ReadS EncodingTypeValue
$creadsPrec :: Int -> ReadS EncodingTypeValue
Prelude.Read,
EncodingTypeValue -> EncodingTypeValue -> Bool
(EncodingTypeValue -> EncodingTypeValue -> Bool)
-> (EncodingTypeValue -> EncodingTypeValue -> Bool)
-> Eq EncodingTypeValue
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: EncodingTypeValue -> EncodingTypeValue -> Bool
$c/= :: EncodingTypeValue -> EncodingTypeValue -> Bool
== :: EncodingTypeValue -> EncodingTypeValue -> Bool
$c== :: EncodingTypeValue -> EncodingTypeValue -> Bool
Prelude.Eq,
Eq EncodingTypeValue
Eq EncodingTypeValue
-> (EncodingTypeValue -> EncodingTypeValue -> Ordering)
-> (EncodingTypeValue -> EncodingTypeValue -> Bool)
-> (EncodingTypeValue -> EncodingTypeValue -> Bool)
-> (EncodingTypeValue -> EncodingTypeValue -> Bool)
-> (EncodingTypeValue -> EncodingTypeValue -> Bool)
-> (EncodingTypeValue -> EncodingTypeValue -> EncodingTypeValue)
-> (EncodingTypeValue -> EncodingTypeValue -> EncodingTypeValue)
-> Ord EncodingTypeValue
EncodingTypeValue -> EncodingTypeValue -> Bool
EncodingTypeValue -> EncodingTypeValue -> Ordering
EncodingTypeValue -> EncodingTypeValue -> EncodingTypeValue
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 :: EncodingTypeValue -> EncodingTypeValue -> EncodingTypeValue
$cmin :: EncodingTypeValue -> EncodingTypeValue -> EncodingTypeValue
max :: EncodingTypeValue -> EncodingTypeValue -> EncodingTypeValue
$cmax :: EncodingTypeValue -> EncodingTypeValue -> EncodingTypeValue
>= :: EncodingTypeValue -> EncodingTypeValue -> Bool
$c>= :: EncodingTypeValue -> EncodingTypeValue -> Bool
> :: EncodingTypeValue -> EncodingTypeValue -> Bool
$c> :: EncodingTypeValue -> EncodingTypeValue -> Bool
<= :: EncodingTypeValue -> EncodingTypeValue -> Bool
$c<= :: EncodingTypeValue -> EncodingTypeValue -> Bool
< :: EncodingTypeValue -> EncodingTypeValue -> Bool
$c< :: EncodingTypeValue -> EncodingTypeValue -> Bool
compare :: EncodingTypeValue -> EncodingTypeValue -> Ordering
$ccompare :: EncodingTypeValue -> EncodingTypeValue -> Ordering
$cp1Ord :: Eq EncodingTypeValue
Prelude.Ord,
(forall x. EncodingTypeValue -> Rep EncodingTypeValue x)
-> (forall x. Rep EncodingTypeValue x -> EncodingTypeValue)
-> Generic EncodingTypeValue
forall x. Rep EncodingTypeValue x -> EncodingTypeValue
forall x. EncodingTypeValue -> Rep EncodingTypeValue x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep EncodingTypeValue x -> EncodingTypeValue
$cfrom :: forall x. EncodingTypeValue -> Rep EncodingTypeValue x
Prelude.Generic
)
deriving newtype
( Int -> EncodingTypeValue -> Int
EncodingTypeValue -> Int
(Int -> EncodingTypeValue -> Int)
-> (EncodingTypeValue -> Int) -> Hashable EncodingTypeValue
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: EncodingTypeValue -> Int
$chash :: EncodingTypeValue -> Int
hashWithSalt :: Int -> EncodingTypeValue -> Int
$chashWithSalt :: Int -> EncodingTypeValue -> Int
Prelude.Hashable,
EncodingTypeValue -> ()
(EncodingTypeValue -> ()) -> NFData EncodingTypeValue
forall a. (a -> ()) -> NFData a
rnf :: EncodingTypeValue -> ()
$crnf :: EncodingTypeValue -> ()
Prelude.NFData,
Text -> Either String EncodingTypeValue
(Text -> Either String EncodingTypeValue)
-> FromText EncodingTypeValue
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String EncodingTypeValue
$cfromText :: Text -> Either String EncodingTypeValue
Core.FromText,
EncodingTypeValue -> Text
(EncodingTypeValue -> Text) -> ToText EncodingTypeValue
forall a. (a -> Text) -> ToText a
toText :: EncodingTypeValue -> Text
$ctoText :: EncodingTypeValue -> Text
Core.ToText,
EncodingTypeValue -> ByteString
(EncodingTypeValue -> ByteString) -> ToByteString EncodingTypeValue
forall a. (a -> ByteString) -> ToByteString a
toBS :: EncodingTypeValue -> ByteString
$ctoBS :: EncodingTypeValue -> ByteString
Core.ToByteString,
EncodingTypeValue -> ByteStringBuilder
(EncodingTypeValue -> ByteStringBuilder) -> ToLog EncodingTypeValue
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: EncodingTypeValue -> ByteStringBuilder
$cbuild :: EncodingTypeValue -> ByteStringBuilder
Core.ToLog,
HeaderName -> EncodingTypeValue -> [Header]
(HeaderName -> EncodingTypeValue -> [Header])
-> ToHeader EncodingTypeValue
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> EncodingTypeValue -> [Header]
$ctoHeader :: HeaderName -> EncodingTypeValue -> [Header]
Core.ToHeader,
EncodingTypeValue -> QueryString
(EncodingTypeValue -> QueryString) -> ToQuery EncodingTypeValue
forall a. (a -> QueryString) -> ToQuery a
toQuery :: EncodingTypeValue -> QueryString
$ctoQuery :: EncodingTypeValue -> QueryString
Core.ToQuery,
Value -> Parser [EncodingTypeValue]
Value -> Parser EncodingTypeValue
(Value -> Parser EncodingTypeValue)
-> (Value -> Parser [EncodingTypeValue])
-> FromJSON EncodingTypeValue
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [EncodingTypeValue]
$cparseJSONList :: Value -> Parser [EncodingTypeValue]
parseJSON :: Value -> Parser EncodingTypeValue
$cparseJSON :: Value -> Parser EncodingTypeValue
Core.FromJSON,
FromJSONKeyFunction [EncodingTypeValue]
FromJSONKeyFunction EncodingTypeValue
FromJSONKeyFunction EncodingTypeValue
-> FromJSONKeyFunction [EncodingTypeValue]
-> FromJSONKey EncodingTypeValue
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [EncodingTypeValue]
$cfromJSONKeyList :: FromJSONKeyFunction [EncodingTypeValue]
fromJSONKey :: FromJSONKeyFunction EncodingTypeValue
$cfromJSONKey :: FromJSONKeyFunction EncodingTypeValue
Core.FromJSONKey,
[EncodingTypeValue] -> Encoding
[EncodingTypeValue] -> Value
EncodingTypeValue -> Encoding
EncodingTypeValue -> Value
(EncodingTypeValue -> Value)
-> (EncodingTypeValue -> Encoding)
-> ([EncodingTypeValue] -> Value)
-> ([EncodingTypeValue] -> Encoding)
-> ToJSON EncodingTypeValue
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [EncodingTypeValue] -> Encoding
$ctoEncodingList :: [EncodingTypeValue] -> Encoding
toJSONList :: [EncodingTypeValue] -> Value
$ctoJSONList :: [EncodingTypeValue] -> Value
toEncoding :: EncodingTypeValue -> Encoding
$ctoEncoding :: EncodingTypeValue -> Encoding
toJSON :: EncodingTypeValue -> Value
$ctoJSON :: EncodingTypeValue -> Value
Core.ToJSON,
ToJSONKeyFunction [EncodingTypeValue]
ToJSONKeyFunction EncodingTypeValue
ToJSONKeyFunction EncodingTypeValue
-> ToJSONKeyFunction [EncodingTypeValue]
-> ToJSONKey EncodingTypeValue
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [EncodingTypeValue]
$ctoJSONKeyList :: ToJSONKeyFunction [EncodingTypeValue]
toJSONKey :: ToJSONKeyFunction EncodingTypeValue
$ctoJSONKey :: ToJSONKeyFunction EncodingTypeValue
Core.ToJSONKey,
[Node] -> Either String EncodingTypeValue
([Node] -> Either String EncodingTypeValue)
-> FromXML EncodingTypeValue
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String EncodingTypeValue
$cparseXML :: [Node] -> Either String EncodingTypeValue
Core.FromXML,
EncodingTypeValue -> XML
(EncodingTypeValue -> XML) -> ToXML EncodingTypeValue
forall a. (a -> XML) -> ToXML a
toXML :: EncodingTypeValue -> XML
$ctoXML :: EncodingTypeValue -> XML
Core.ToXML
)
pattern EncodingTypeValue_Plain :: EncodingTypeValue
pattern $bEncodingTypeValue_Plain :: EncodingTypeValue
$mEncodingTypeValue_Plain :: forall r. EncodingTypeValue -> (Void# -> r) -> (Void# -> r) -> r
EncodingTypeValue_Plain = EncodingTypeValue' "plain"
pattern EncodingTypeValue_Plain_dictionary :: EncodingTypeValue
pattern $bEncodingTypeValue_Plain_dictionary :: EncodingTypeValue
$mEncodingTypeValue_Plain_dictionary :: forall r. EncodingTypeValue -> (Void# -> r) -> (Void# -> r) -> r
EncodingTypeValue_Plain_dictionary = EncodingTypeValue' "plain-dictionary"
pattern EncodingTypeValue_Rle_dictionary :: EncodingTypeValue
pattern $bEncodingTypeValue_Rle_dictionary :: EncodingTypeValue
$mEncodingTypeValue_Rle_dictionary :: forall r. EncodingTypeValue -> (Void# -> r) -> (Void# -> r) -> r
EncodingTypeValue_Rle_dictionary = EncodingTypeValue' "rle-dictionary"
{-# COMPLETE
EncodingTypeValue_Plain,
EncodingTypeValue_Plain_dictionary,
EncodingTypeValue_Rle_dictionary,
EncodingTypeValue'
#-}