{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.FMS.Types.AccountRoleStatus
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
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.Data as Data
import qualified Amazonka.Prelude as Prelude

newtype AccountRoleStatus = AccountRoleStatus'
  { AccountRoleStatus -> Text
fromAccountRoleStatus ::
      Data.Text
  }
  deriving stock
    ( Int -> AccountRoleStatus -> ShowS
[AccountRoleStatus] -> ShowS
AccountRoleStatus -> String
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]
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
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
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
Prelude.Ord,
      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
    ( Eq AccountRoleStatus
Int -> AccountRoleStatus -> Int
AccountRoleStatus -> Int
forall a. Eq 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 -> ()
forall a. (a -> ()) -> NFData a
rnf :: AccountRoleStatus -> ()
$crnf :: AccountRoleStatus -> ()
Prelude.NFData,
      Text -> Either String AccountRoleStatus
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String AccountRoleStatus
$cfromText :: Text -> Either String AccountRoleStatus
Data.FromText,
      AccountRoleStatus -> Text
forall a. (a -> Text) -> ToText a
toText :: AccountRoleStatus -> Text
$ctoText :: AccountRoleStatus -> Text
Data.ToText,
      AccountRoleStatus -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: AccountRoleStatus -> ByteString
$ctoBS :: AccountRoleStatus -> ByteString
Data.ToByteString,
      AccountRoleStatus -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: AccountRoleStatus -> ByteStringBuilder
$cbuild :: AccountRoleStatus -> ByteStringBuilder
Data.ToLog,
      HeaderName -> AccountRoleStatus -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> AccountRoleStatus -> [Header]
$ctoHeader :: HeaderName -> AccountRoleStatus -> [Header]
Data.ToHeader,
      AccountRoleStatus -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: AccountRoleStatus -> QueryString
$ctoQuery :: AccountRoleStatus -> QueryString
Data.ToQuery,
      Value -> Parser [AccountRoleStatus]
Value -> Parser 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
Data.FromJSON,
      FromJSONKeyFunction [AccountRoleStatus]
FromJSONKeyFunction AccountRoleStatus
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [AccountRoleStatus]
$cfromJSONKeyList :: FromJSONKeyFunction [AccountRoleStatus]
fromJSONKey :: FromJSONKeyFunction AccountRoleStatus
$cfromJSONKey :: FromJSONKeyFunction AccountRoleStatus
Data.FromJSONKey,
      [AccountRoleStatus] -> Encoding
[AccountRoleStatus] -> Value
AccountRoleStatus -> Encoding
AccountRoleStatus -> Value
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
Data.ToJSON,
      ToJSONKeyFunction [AccountRoleStatus]
ToJSONKeyFunction AccountRoleStatus
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [AccountRoleStatus]
$ctoJSONKeyList :: ToJSONKeyFunction [AccountRoleStatus]
toJSONKey :: ToJSONKeyFunction AccountRoleStatus
$ctoJSONKey :: ToJSONKeyFunction AccountRoleStatus
Data.ToJSONKey,
      [Node] -> Either String AccountRoleStatus
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String AccountRoleStatus
$cparseXML :: [Node] -> Either String AccountRoleStatus
Data.FromXML,
      AccountRoleStatus -> XML
forall a. (a -> XML) -> ToXML a
toXML :: AccountRoleStatus -> XML
$ctoXML :: AccountRoleStatus -> XML
Data.ToXML
    )

pattern AccountRoleStatus_CREATING :: AccountRoleStatus
pattern $bAccountRoleStatus_CREATING :: AccountRoleStatus
$mAccountRoleStatus_CREATING :: forall {r}. AccountRoleStatus -> ((# #) -> r) -> ((# #) -> r) -> r
AccountRoleStatus_CREATING = AccountRoleStatus' "CREATING"

pattern AccountRoleStatus_DELETED :: AccountRoleStatus
pattern $bAccountRoleStatus_DELETED :: AccountRoleStatus
$mAccountRoleStatus_DELETED :: forall {r}. AccountRoleStatus -> ((# #) -> r) -> ((# #) -> r) -> r
AccountRoleStatus_DELETED = AccountRoleStatus' "DELETED"

pattern AccountRoleStatus_DELETING :: AccountRoleStatus
pattern $bAccountRoleStatus_DELETING :: AccountRoleStatus
$mAccountRoleStatus_DELETING :: forall {r}. AccountRoleStatus -> ((# #) -> r) -> ((# #) -> r) -> r
AccountRoleStatus_DELETING = AccountRoleStatus' "DELETING"

pattern AccountRoleStatus_PENDING_DELETION :: AccountRoleStatus
pattern $bAccountRoleStatus_PENDING_DELETION :: AccountRoleStatus
$mAccountRoleStatus_PENDING_DELETION :: forall {r}. AccountRoleStatus -> ((# #) -> r) -> ((# #) -> r) -> r
AccountRoleStatus_PENDING_DELETION = AccountRoleStatus' "PENDING_DELETION"

pattern AccountRoleStatus_READY :: AccountRoleStatus
pattern $bAccountRoleStatus_READY :: AccountRoleStatus
$mAccountRoleStatus_READY :: forall {r}. AccountRoleStatus -> ((# #) -> r) -> ((# #) -> r) -> r
AccountRoleStatus_READY = AccountRoleStatus' "READY"

{-# COMPLETE
  AccountRoleStatus_CREATING,
  AccountRoleStatus_DELETED,
  AccountRoleStatus_DELETING,
  AccountRoleStatus_PENDING_DELETION,
  AccountRoleStatus_READY,
  AccountRoleStatus'
  #-}