{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.MechanicalTurk.Types.NotificationTransport
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.MechanicalTurk.Types.NotificationTransport
  ( NotificationTransport
      ( ..,
        NotificationTransport_Email,
        NotificationTransport_SNS,
        NotificationTransport_SQS
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude

newtype NotificationTransport = NotificationTransport'
  { NotificationTransport -> Text
fromNotificationTransport ::
      Data.Text
  }
  deriving stock
    ( Int -> NotificationTransport -> ShowS
[NotificationTransport] -> ShowS
NotificationTransport -> String
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]
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
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
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
Prelude.Ord,
      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
    ( Eq NotificationTransport
Int -> NotificationTransport -> Int
NotificationTransport -> Int
forall a. Eq 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 -> ()
forall a. (a -> ()) -> NFData a
rnf :: NotificationTransport -> ()
$crnf :: NotificationTransport -> ()
Prelude.NFData,
      Text -> Either String NotificationTransport
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String NotificationTransport
$cfromText :: Text -> Either String NotificationTransport
Data.FromText,
      NotificationTransport -> Text
forall a. (a -> Text) -> ToText a
toText :: NotificationTransport -> Text
$ctoText :: NotificationTransport -> Text
Data.ToText,
      NotificationTransport -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: NotificationTransport -> ByteString
$ctoBS :: NotificationTransport -> ByteString
Data.ToByteString,
      NotificationTransport -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: NotificationTransport -> ByteStringBuilder
$cbuild :: NotificationTransport -> ByteStringBuilder
Data.ToLog,
      HeaderName -> NotificationTransport -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> NotificationTransport -> [Header]
$ctoHeader :: HeaderName -> NotificationTransport -> [Header]
Data.ToHeader,
      NotificationTransport -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: NotificationTransport -> QueryString
$ctoQuery :: NotificationTransport -> QueryString
Data.ToQuery,
      Value -> Parser [NotificationTransport]
Value -> Parser 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
Data.FromJSON,
      FromJSONKeyFunction [NotificationTransport]
FromJSONKeyFunction NotificationTransport
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [NotificationTransport]
$cfromJSONKeyList :: FromJSONKeyFunction [NotificationTransport]
fromJSONKey :: FromJSONKeyFunction NotificationTransport
$cfromJSONKey :: FromJSONKeyFunction NotificationTransport
Data.FromJSONKey,
      [NotificationTransport] -> Encoding
[NotificationTransport] -> Value
NotificationTransport -> Encoding
NotificationTransport -> Value
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
Data.ToJSON,
      ToJSONKeyFunction [NotificationTransport]
ToJSONKeyFunction NotificationTransport
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [NotificationTransport]
$ctoJSONKeyList :: ToJSONKeyFunction [NotificationTransport]
toJSONKey :: ToJSONKeyFunction NotificationTransport
$ctoJSONKey :: ToJSONKeyFunction NotificationTransport
Data.ToJSONKey,
      [Node] -> Either String NotificationTransport
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String NotificationTransport
$cparseXML :: [Node] -> Either String NotificationTransport
Data.FromXML,
      NotificationTransport -> XML
forall a. (a -> XML) -> ToXML a
toXML :: NotificationTransport -> XML
$ctoXML :: NotificationTransport -> XML
Data.ToXML
    )

pattern NotificationTransport_Email :: NotificationTransport
pattern $bNotificationTransport_Email :: NotificationTransport
$mNotificationTransport_Email :: forall {r}.
NotificationTransport -> ((# #) -> r) -> ((# #) -> r) -> r
NotificationTransport_Email = NotificationTransport' "Email"

pattern NotificationTransport_SNS :: NotificationTransport
pattern $bNotificationTransport_SNS :: NotificationTransport
$mNotificationTransport_SNS :: forall {r}.
NotificationTransport -> ((# #) -> r) -> ((# #) -> r) -> r
NotificationTransport_SNS = NotificationTransport' "SNS"

pattern NotificationTransport_SQS :: NotificationTransport
pattern $bNotificationTransport_SQS :: NotificationTransport
$mNotificationTransport_SQS :: forall {r}.
NotificationTransport -> ((# #) -> r) -> ((# #) -> r) -> r
NotificationTransport_SQS = NotificationTransport' "SQS"

{-# COMPLETE
  NotificationTransport_Email,
  NotificationTransport_SNS,
  NotificationTransport_SQS,
  NotificationTransport'
  #-}