{-# 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.ChimeSDKMessaging.Types.AllowNotifications
-- 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.ChimeSDKMessaging.Types.AllowNotifications
  ( AllowNotifications
      ( ..,
        AllowNotifications_ALL,
        AllowNotifications_FILTERED,
        AllowNotifications_NONE
      ),
  )
where

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

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

pattern AllowNotifications_ALL :: AllowNotifications
pattern $bAllowNotifications_ALL :: AllowNotifications
$mAllowNotifications_ALL :: forall {r}. AllowNotifications -> ((# #) -> r) -> ((# #) -> r) -> r
AllowNotifications_ALL = AllowNotifications' "ALL"

pattern AllowNotifications_FILTERED :: AllowNotifications
pattern $bAllowNotifications_FILTERED :: AllowNotifications
$mAllowNotifications_FILTERED :: forall {r}. AllowNotifications -> ((# #) -> r) -> ((# #) -> r) -> r
AllowNotifications_FILTERED = AllowNotifications' "FILTERED"

pattern AllowNotifications_NONE :: AllowNotifications
pattern $bAllowNotifications_NONE :: AllowNotifications
$mAllowNotifications_NONE :: forall {r}. AllowNotifications -> ((# #) -> r) -> ((# #) -> r) -> r
AllowNotifications_NONE = AllowNotifications' "NONE"

{-# COMPLETE
  AllowNotifications_ALL,
  AllowNotifications_FILTERED,
  AllowNotifications_NONE,
  AllowNotifications'
  #-}