{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.Chime.Types.MemberType
( MemberType
( ..,
MemberType_Bot,
MemberType_User,
MemberType_Webhook
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype MemberType = MemberType'
{ MemberType -> Text
fromMemberType ::
Core.Text
}
deriving stock
( Int -> MemberType -> ShowS
[MemberType] -> ShowS
MemberType -> String
(Int -> MemberType -> ShowS)
-> (MemberType -> String)
-> ([MemberType] -> ShowS)
-> Show MemberType
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [MemberType] -> ShowS
$cshowList :: [MemberType] -> ShowS
show :: MemberType -> String
$cshow :: MemberType -> String
showsPrec :: Int -> MemberType -> ShowS
$cshowsPrec :: Int -> MemberType -> ShowS
Prelude.Show,
ReadPrec [MemberType]
ReadPrec MemberType
Int -> ReadS MemberType
ReadS [MemberType]
(Int -> ReadS MemberType)
-> ReadS [MemberType]
-> ReadPrec MemberType
-> ReadPrec [MemberType]
-> Read MemberType
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [MemberType]
$creadListPrec :: ReadPrec [MemberType]
readPrec :: ReadPrec MemberType
$creadPrec :: ReadPrec MemberType
readList :: ReadS [MemberType]
$creadList :: ReadS [MemberType]
readsPrec :: Int -> ReadS MemberType
$creadsPrec :: Int -> ReadS MemberType
Prelude.Read,
MemberType -> MemberType -> Bool
(MemberType -> MemberType -> Bool)
-> (MemberType -> MemberType -> Bool) -> Eq MemberType
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: MemberType -> MemberType -> Bool
$c/= :: MemberType -> MemberType -> Bool
== :: MemberType -> MemberType -> Bool
$c== :: MemberType -> MemberType -> Bool
Prelude.Eq,
Eq MemberType
Eq MemberType
-> (MemberType -> MemberType -> Ordering)
-> (MemberType -> MemberType -> Bool)
-> (MemberType -> MemberType -> Bool)
-> (MemberType -> MemberType -> Bool)
-> (MemberType -> MemberType -> Bool)
-> (MemberType -> MemberType -> MemberType)
-> (MemberType -> MemberType -> MemberType)
-> Ord MemberType
MemberType -> MemberType -> Bool
MemberType -> MemberType -> Ordering
MemberType -> MemberType -> MemberType
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 :: MemberType -> MemberType -> MemberType
$cmin :: MemberType -> MemberType -> MemberType
max :: MemberType -> MemberType -> MemberType
$cmax :: MemberType -> MemberType -> MemberType
>= :: MemberType -> MemberType -> Bool
$c>= :: MemberType -> MemberType -> Bool
> :: MemberType -> MemberType -> Bool
$c> :: MemberType -> MemberType -> Bool
<= :: MemberType -> MemberType -> Bool
$c<= :: MemberType -> MemberType -> Bool
< :: MemberType -> MemberType -> Bool
$c< :: MemberType -> MemberType -> Bool
compare :: MemberType -> MemberType -> Ordering
$ccompare :: MemberType -> MemberType -> Ordering
$cp1Ord :: Eq MemberType
Prelude.Ord,
(forall x. MemberType -> Rep MemberType x)
-> (forall x. Rep MemberType x -> MemberType) -> Generic MemberType
forall x. Rep MemberType x -> MemberType
forall x. MemberType -> Rep MemberType x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep MemberType x -> MemberType
$cfrom :: forall x. MemberType -> Rep MemberType x
Prelude.Generic
)
deriving newtype
( Int -> MemberType -> Int
MemberType -> Int
(Int -> MemberType -> Int)
-> (MemberType -> Int) -> Hashable MemberType
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: MemberType -> Int
$chash :: MemberType -> Int
hashWithSalt :: Int -> MemberType -> Int
$chashWithSalt :: Int -> MemberType -> Int
Prelude.Hashable,
MemberType -> ()
(MemberType -> ()) -> NFData MemberType
forall a. (a -> ()) -> NFData a
rnf :: MemberType -> ()
$crnf :: MemberType -> ()
Prelude.NFData,
Text -> Either String MemberType
(Text -> Either String MemberType) -> FromText MemberType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String MemberType
$cfromText :: Text -> Either String MemberType
Core.FromText,
MemberType -> Text
(MemberType -> Text) -> ToText MemberType
forall a. (a -> Text) -> ToText a
toText :: MemberType -> Text
$ctoText :: MemberType -> Text
Core.ToText,
MemberType -> ByteString
(MemberType -> ByteString) -> ToByteString MemberType
forall a. (a -> ByteString) -> ToByteString a
toBS :: MemberType -> ByteString
$ctoBS :: MemberType -> ByteString
Core.ToByteString,
MemberType -> ByteStringBuilder
(MemberType -> ByteStringBuilder) -> ToLog MemberType
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: MemberType -> ByteStringBuilder
$cbuild :: MemberType -> ByteStringBuilder
Core.ToLog,
HeaderName -> MemberType -> [Header]
(HeaderName -> MemberType -> [Header]) -> ToHeader MemberType
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> MemberType -> [Header]
$ctoHeader :: HeaderName -> MemberType -> [Header]
Core.ToHeader,
MemberType -> QueryString
(MemberType -> QueryString) -> ToQuery MemberType
forall a. (a -> QueryString) -> ToQuery a
toQuery :: MemberType -> QueryString
$ctoQuery :: MemberType -> QueryString
Core.ToQuery,
Value -> Parser [MemberType]
Value -> Parser MemberType
(Value -> Parser MemberType)
-> (Value -> Parser [MemberType]) -> FromJSON MemberType
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [MemberType]
$cparseJSONList :: Value -> Parser [MemberType]
parseJSON :: Value -> Parser MemberType
$cparseJSON :: Value -> Parser MemberType
Core.FromJSON,
FromJSONKeyFunction [MemberType]
FromJSONKeyFunction MemberType
FromJSONKeyFunction MemberType
-> FromJSONKeyFunction [MemberType] -> FromJSONKey MemberType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [MemberType]
$cfromJSONKeyList :: FromJSONKeyFunction [MemberType]
fromJSONKey :: FromJSONKeyFunction MemberType
$cfromJSONKey :: FromJSONKeyFunction MemberType
Core.FromJSONKey,
[MemberType] -> Encoding
[MemberType] -> Value
MemberType -> Encoding
MemberType -> Value
(MemberType -> Value)
-> (MemberType -> Encoding)
-> ([MemberType] -> Value)
-> ([MemberType] -> Encoding)
-> ToJSON MemberType
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [MemberType] -> Encoding
$ctoEncodingList :: [MemberType] -> Encoding
toJSONList :: [MemberType] -> Value
$ctoJSONList :: [MemberType] -> Value
toEncoding :: MemberType -> Encoding
$ctoEncoding :: MemberType -> Encoding
toJSON :: MemberType -> Value
$ctoJSON :: MemberType -> Value
Core.ToJSON,
ToJSONKeyFunction [MemberType]
ToJSONKeyFunction MemberType
ToJSONKeyFunction MemberType
-> ToJSONKeyFunction [MemberType] -> ToJSONKey MemberType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [MemberType]
$ctoJSONKeyList :: ToJSONKeyFunction [MemberType]
toJSONKey :: ToJSONKeyFunction MemberType
$ctoJSONKey :: ToJSONKeyFunction MemberType
Core.ToJSONKey,
[Node] -> Either String MemberType
([Node] -> Either String MemberType) -> FromXML MemberType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String MemberType
$cparseXML :: [Node] -> Either String MemberType
Core.FromXML,
MemberType -> XML
(MemberType -> XML) -> ToXML MemberType
forall a. (a -> XML) -> ToXML a
toXML :: MemberType -> XML
$ctoXML :: MemberType -> XML
Core.ToXML
)
pattern MemberType_Bot :: MemberType
pattern $bMemberType_Bot :: MemberType
$mMemberType_Bot :: forall r. MemberType -> (Void# -> r) -> (Void# -> r) -> r
MemberType_Bot = MemberType' "Bot"
pattern MemberType_User :: MemberType
pattern $bMemberType_User :: MemberType
$mMemberType_User :: forall r. MemberType -> (Void# -> r) -> (Void# -> r) -> r
MemberType_User = MemberType' "User"
pattern MemberType_Webhook :: MemberType
pattern $bMemberType_Webhook :: MemberType
$mMemberType_Webhook :: forall r. MemberType -> (Void# -> r) -> (Void# -> r) -> r
MemberType_Webhook = MemberType' "Webhook"
{-# COMPLETE
MemberType_Bot,
MemberType_User,
MemberType_Webhook,
MemberType'
#-}