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