{-# 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.Connect.Types.NotificationDeliveryType
-- 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.Connect.Types.NotificationDeliveryType
  ( NotificationDeliveryType
      ( ..,
        NotificationDeliveryType_EMAIL
      ),
  )
where

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

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

pattern NotificationDeliveryType_EMAIL :: NotificationDeliveryType
pattern $bNotificationDeliveryType_EMAIL :: NotificationDeliveryType
$mNotificationDeliveryType_EMAIL :: forall {r}.
NotificationDeliveryType -> ((# #) -> r) -> ((# #) -> r) -> r
NotificationDeliveryType_EMAIL = NotificationDeliveryType' "EMAIL"

{-# COMPLETE
  NotificationDeliveryType_EMAIL,
  NotificationDeliveryType'
  #-}