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