{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.MacieV2.Types.RelationshipStatus
( RelationshipStatus
( ..,
RelationshipStatus_AccountSuspended,
RelationshipStatus_Created,
RelationshipStatus_EmailVerificationFailed,
RelationshipStatus_EmailVerificationInProgress,
RelationshipStatus_Enabled,
RelationshipStatus_Invited,
RelationshipStatus_Paused,
RelationshipStatus_RegionDisabled,
RelationshipStatus_Removed,
RelationshipStatus_Resigned
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype RelationshipStatus = RelationshipStatus'
{ RelationshipStatus -> Text
fromRelationshipStatus ::
Core.Text
}
deriving stock
( Int -> RelationshipStatus -> ShowS
[RelationshipStatus] -> ShowS
RelationshipStatus -> String
(Int -> RelationshipStatus -> ShowS)
-> (RelationshipStatus -> String)
-> ([RelationshipStatus] -> ShowS)
-> Show RelationshipStatus
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [RelationshipStatus] -> ShowS
$cshowList :: [RelationshipStatus] -> ShowS
show :: RelationshipStatus -> String
$cshow :: RelationshipStatus -> String
showsPrec :: Int -> RelationshipStatus -> ShowS
$cshowsPrec :: Int -> RelationshipStatus -> ShowS
Prelude.Show,
ReadPrec [RelationshipStatus]
ReadPrec RelationshipStatus
Int -> ReadS RelationshipStatus
ReadS [RelationshipStatus]
(Int -> ReadS RelationshipStatus)
-> ReadS [RelationshipStatus]
-> ReadPrec RelationshipStatus
-> ReadPrec [RelationshipStatus]
-> Read RelationshipStatus
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [RelationshipStatus]
$creadListPrec :: ReadPrec [RelationshipStatus]
readPrec :: ReadPrec RelationshipStatus
$creadPrec :: ReadPrec RelationshipStatus
readList :: ReadS [RelationshipStatus]
$creadList :: ReadS [RelationshipStatus]
readsPrec :: Int -> ReadS RelationshipStatus
$creadsPrec :: Int -> ReadS RelationshipStatus
Prelude.Read,
RelationshipStatus -> RelationshipStatus -> Bool
(RelationshipStatus -> RelationshipStatus -> Bool)
-> (RelationshipStatus -> RelationshipStatus -> Bool)
-> Eq RelationshipStatus
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: RelationshipStatus -> RelationshipStatus -> Bool
$c/= :: RelationshipStatus -> RelationshipStatus -> Bool
== :: RelationshipStatus -> RelationshipStatus -> Bool
$c== :: RelationshipStatus -> RelationshipStatus -> Bool
Prelude.Eq,
Eq RelationshipStatus
Eq RelationshipStatus
-> (RelationshipStatus -> RelationshipStatus -> Ordering)
-> (RelationshipStatus -> RelationshipStatus -> Bool)
-> (RelationshipStatus -> RelationshipStatus -> Bool)
-> (RelationshipStatus -> RelationshipStatus -> Bool)
-> (RelationshipStatus -> RelationshipStatus -> Bool)
-> (RelationshipStatus -> RelationshipStatus -> RelationshipStatus)
-> (RelationshipStatus -> RelationshipStatus -> RelationshipStatus)
-> Ord RelationshipStatus
RelationshipStatus -> RelationshipStatus -> Bool
RelationshipStatus -> RelationshipStatus -> Ordering
RelationshipStatus -> RelationshipStatus -> RelationshipStatus
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 :: RelationshipStatus -> RelationshipStatus -> RelationshipStatus
$cmin :: RelationshipStatus -> RelationshipStatus -> RelationshipStatus
max :: RelationshipStatus -> RelationshipStatus -> RelationshipStatus
$cmax :: RelationshipStatus -> RelationshipStatus -> RelationshipStatus
>= :: RelationshipStatus -> RelationshipStatus -> Bool
$c>= :: RelationshipStatus -> RelationshipStatus -> Bool
> :: RelationshipStatus -> RelationshipStatus -> Bool
$c> :: RelationshipStatus -> RelationshipStatus -> Bool
<= :: RelationshipStatus -> RelationshipStatus -> Bool
$c<= :: RelationshipStatus -> RelationshipStatus -> Bool
< :: RelationshipStatus -> RelationshipStatus -> Bool
$c< :: RelationshipStatus -> RelationshipStatus -> Bool
compare :: RelationshipStatus -> RelationshipStatus -> Ordering
$ccompare :: RelationshipStatus -> RelationshipStatus -> Ordering
$cp1Ord :: Eq RelationshipStatus
Prelude.Ord,
(forall x. RelationshipStatus -> Rep RelationshipStatus x)
-> (forall x. Rep RelationshipStatus x -> RelationshipStatus)
-> Generic RelationshipStatus
forall x. Rep RelationshipStatus x -> RelationshipStatus
forall x. RelationshipStatus -> Rep RelationshipStatus x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep RelationshipStatus x -> RelationshipStatus
$cfrom :: forall x. RelationshipStatus -> Rep RelationshipStatus x
Prelude.Generic
)
deriving newtype
( Int -> RelationshipStatus -> Int
RelationshipStatus -> Int
(Int -> RelationshipStatus -> Int)
-> (RelationshipStatus -> Int) -> Hashable RelationshipStatus
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: RelationshipStatus -> Int
$chash :: RelationshipStatus -> Int
hashWithSalt :: Int -> RelationshipStatus -> Int
$chashWithSalt :: Int -> RelationshipStatus -> Int
Prelude.Hashable,
RelationshipStatus -> ()
(RelationshipStatus -> ()) -> NFData RelationshipStatus
forall a. (a -> ()) -> NFData a
rnf :: RelationshipStatus -> ()
$crnf :: RelationshipStatus -> ()
Prelude.NFData,
Text -> Either String RelationshipStatus
(Text -> Either String RelationshipStatus)
-> FromText RelationshipStatus
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String RelationshipStatus
$cfromText :: Text -> Either String RelationshipStatus
Core.FromText,
RelationshipStatus -> Text
(RelationshipStatus -> Text) -> ToText RelationshipStatus
forall a. (a -> Text) -> ToText a
toText :: RelationshipStatus -> Text
$ctoText :: RelationshipStatus -> Text
Core.ToText,
RelationshipStatus -> ByteString
(RelationshipStatus -> ByteString)
-> ToByteString RelationshipStatus
forall a. (a -> ByteString) -> ToByteString a
toBS :: RelationshipStatus -> ByteString
$ctoBS :: RelationshipStatus -> ByteString
Core.ToByteString,
RelationshipStatus -> ByteStringBuilder
(RelationshipStatus -> ByteStringBuilder)
-> ToLog RelationshipStatus
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: RelationshipStatus -> ByteStringBuilder
$cbuild :: RelationshipStatus -> ByteStringBuilder
Core.ToLog,
HeaderName -> RelationshipStatus -> [Header]
(HeaderName -> RelationshipStatus -> [Header])
-> ToHeader RelationshipStatus
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> RelationshipStatus -> [Header]
$ctoHeader :: HeaderName -> RelationshipStatus -> [Header]
Core.ToHeader,
RelationshipStatus -> QueryString
(RelationshipStatus -> QueryString) -> ToQuery RelationshipStatus
forall a. (a -> QueryString) -> ToQuery a
toQuery :: RelationshipStatus -> QueryString
$ctoQuery :: RelationshipStatus -> QueryString
Core.ToQuery,
Value -> Parser [RelationshipStatus]
Value -> Parser RelationshipStatus
(Value -> Parser RelationshipStatus)
-> (Value -> Parser [RelationshipStatus])
-> FromJSON RelationshipStatus
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [RelationshipStatus]
$cparseJSONList :: Value -> Parser [RelationshipStatus]
parseJSON :: Value -> Parser RelationshipStatus
$cparseJSON :: Value -> Parser RelationshipStatus
Core.FromJSON,
FromJSONKeyFunction [RelationshipStatus]
FromJSONKeyFunction RelationshipStatus
FromJSONKeyFunction RelationshipStatus
-> FromJSONKeyFunction [RelationshipStatus]
-> FromJSONKey RelationshipStatus
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [RelationshipStatus]
$cfromJSONKeyList :: FromJSONKeyFunction [RelationshipStatus]
fromJSONKey :: FromJSONKeyFunction RelationshipStatus
$cfromJSONKey :: FromJSONKeyFunction RelationshipStatus
Core.FromJSONKey,
[RelationshipStatus] -> Encoding
[RelationshipStatus] -> Value
RelationshipStatus -> Encoding
RelationshipStatus -> Value
(RelationshipStatus -> Value)
-> (RelationshipStatus -> Encoding)
-> ([RelationshipStatus] -> Value)
-> ([RelationshipStatus] -> Encoding)
-> ToJSON RelationshipStatus
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [RelationshipStatus] -> Encoding
$ctoEncodingList :: [RelationshipStatus] -> Encoding
toJSONList :: [RelationshipStatus] -> Value
$ctoJSONList :: [RelationshipStatus] -> Value
toEncoding :: RelationshipStatus -> Encoding
$ctoEncoding :: RelationshipStatus -> Encoding
toJSON :: RelationshipStatus -> Value
$ctoJSON :: RelationshipStatus -> Value
Core.ToJSON,
ToJSONKeyFunction [RelationshipStatus]
ToJSONKeyFunction RelationshipStatus
ToJSONKeyFunction RelationshipStatus
-> ToJSONKeyFunction [RelationshipStatus]
-> ToJSONKey RelationshipStatus
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [RelationshipStatus]
$ctoJSONKeyList :: ToJSONKeyFunction [RelationshipStatus]
toJSONKey :: ToJSONKeyFunction RelationshipStatus
$ctoJSONKey :: ToJSONKeyFunction RelationshipStatus
Core.ToJSONKey,
[Node] -> Either String RelationshipStatus
([Node] -> Either String RelationshipStatus)
-> FromXML RelationshipStatus
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String RelationshipStatus
$cparseXML :: [Node] -> Either String RelationshipStatus
Core.FromXML,
RelationshipStatus -> XML
(RelationshipStatus -> XML) -> ToXML RelationshipStatus
forall a. (a -> XML) -> ToXML a
toXML :: RelationshipStatus -> XML
$ctoXML :: RelationshipStatus -> XML
Core.ToXML
)
pattern RelationshipStatus_AccountSuspended :: RelationshipStatus
pattern $bRelationshipStatus_AccountSuspended :: RelationshipStatus
$mRelationshipStatus_AccountSuspended :: forall r. RelationshipStatus -> (Void# -> r) -> (Void# -> r) -> r
RelationshipStatus_AccountSuspended = RelationshipStatus' "AccountSuspended"
pattern RelationshipStatus_Created :: RelationshipStatus
pattern $bRelationshipStatus_Created :: RelationshipStatus
$mRelationshipStatus_Created :: forall r. RelationshipStatus -> (Void# -> r) -> (Void# -> r) -> r
RelationshipStatus_Created = RelationshipStatus' "Created"
pattern RelationshipStatus_EmailVerificationFailed :: RelationshipStatus
pattern $bRelationshipStatus_EmailVerificationFailed :: RelationshipStatus
$mRelationshipStatus_EmailVerificationFailed :: forall r. RelationshipStatus -> (Void# -> r) -> (Void# -> r) -> r
RelationshipStatus_EmailVerificationFailed = RelationshipStatus' "EmailVerificationFailed"
pattern RelationshipStatus_EmailVerificationInProgress :: RelationshipStatus
pattern $bRelationshipStatus_EmailVerificationInProgress :: RelationshipStatus
$mRelationshipStatus_EmailVerificationInProgress :: forall r. RelationshipStatus -> (Void# -> r) -> (Void# -> r) -> r
RelationshipStatus_EmailVerificationInProgress = RelationshipStatus' "EmailVerificationInProgress"
pattern RelationshipStatus_Enabled :: RelationshipStatus
pattern $bRelationshipStatus_Enabled :: RelationshipStatus
$mRelationshipStatus_Enabled :: forall r. RelationshipStatus -> (Void# -> r) -> (Void# -> r) -> r
RelationshipStatus_Enabled = RelationshipStatus' "Enabled"
pattern RelationshipStatus_Invited :: RelationshipStatus
pattern $bRelationshipStatus_Invited :: RelationshipStatus
$mRelationshipStatus_Invited :: forall r. RelationshipStatus -> (Void# -> r) -> (Void# -> r) -> r
RelationshipStatus_Invited = RelationshipStatus' "Invited"
pattern RelationshipStatus_Paused :: RelationshipStatus
pattern $bRelationshipStatus_Paused :: RelationshipStatus
$mRelationshipStatus_Paused :: forall r. RelationshipStatus -> (Void# -> r) -> (Void# -> r) -> r
RelationshipStatus_Paused = RelationshipStatus' "Paused"
pattern RelationshipStatus_RegionDisabled :: RelationshipStatus
pattern $bRelationshipStatus_RegionDisabled :: RelationshipStatus
$mRelationshipStatus_RegionDisabled :: forall r. RelationshipStatus -> (Void# -> r) -> (Void# -> r) -> r
RelationshipStatus_RegionDisabled = RelationshipStatus' "RegionDisabled"
pattern RelationshipStatus_Removed :: RelationshipStatus
pattern $bRelationshipStatus_Removed :: RelationshipStatus
$mRelationshipStatus_Removed :: forall r. RelationshipStatus -> (Void# -> r) -> (Void# -> r) -> r
RelationshipStatus_Removed = RelationshipStatus' "Removed"
pattern RelationshipStatus_Resigned :: RelationshipStatus
pattern $bRelationshipStatus_Resigned :: RelationshipStatus
$mRelationshipStatus_Resigned :: forall r. RelationshipStatus -> (Void# -> r) -> (Void# -> r) -> r
RelationshipStatus_Resigned = RelationshipStatus' "Resigned"
{-# COMPLETE
RelationshipStatus_AccountSuspended,
RelationshipStatus_Created,
RelationshipStatus_EmailVerificationFailed,
RelationshipStatus_EmailVerificationInProgress,
RelationshipStatus_Enabled,
RelationshipStatus_Invited,
RelationshipStatus_Paused,
RelationshipStatus_RegionDisabled,
RelationshipStatus_Removed,
RelationshipStatus_Resigned,
RelationshipStatus'
#-}