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