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