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