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