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