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