{-# 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.NotificationContentType
-- 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.NotificationContentType
  ( NotificationContentType
      ( ..,
        NotificationContentType_PLAIN_TEXT
      ),
  )
where

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

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

pattern NotificationContentType_PLAIN_TEXT :: NotificationContentType
pattern $bNotificationContentType_PLAIN_TEXT :: NotificationContentType
$mNotificationContentType_PLAIN_TEXT :: forall {r}.
NotificationContentType -> ((# #) -> r) -> ((# #) -> r) -> r
NotificationContentType_PLAIN_TEXT = NotificationContentType' "PLAIN_TEXT"

{-# COMPLETE
  NotificationContentType_PLAIN_TEXT,
  NotificationContentType'
  #-}