{-# 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.ChimeSDKIdentity.Types.AllowMessages
-- 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.ChimeSDKIdentity.Types.AllowMessages
  ( AllowMessages
      ( ..,
        AllowMessages_ALL,
        AllowMessages_NONE
      ),
  )
where

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

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

pattern AllowMessages_ALL :: AllowMessages
pattern $bAllowMessages_ALL :: AllowMessages
$mAllowMessages_ALL :: forall {r}. AllowMessages -> ((# #) -> r) -> ((# #) -> r) -> r
AllowMessages_ALL = AllowMessages' "ALL"

pattern AllowMessages_NONE :: AllowMessages
pattern $bAllowMessages_NONE :: AllowMessages
$mAllowMessages_NONE :: forall {r}. AllowMessages -> ((# #) -> r) -> ((# #) -> r) -> r
AllowMessages_NONE = AllowMessages' "NONE"

{-# COMPLETE
  AllowMessages_ALL,
  AllowMessages_NONE,
  AllowMessages'
  #-}