{-# 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.Organizations.Types.AccountStatus
-- 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.Organizations.Types.AccountStatus
  ( AccountStatus
      ( ..,
        AccountStatus_ACTIVE,
        AccountStatus_PENDING_CLOSURE,
        AccountStatus_SUSPENDED
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude

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

pattern AccountStatus_ACTIVE :: AccountStatus
pattern $bAccountStatus_ACTIVE :: AccountStatus
$mAccountStatus_ACTIVE :: forall {r}. AccountStatus -> ((# #) -> r) -> ((# #) -> r) -> r
AccountStatus_ACTIVE = AccountStatus' "ACTIVE"

pattern AccountStatus_PENDING_CLOSURE :: AccountStatus
pattern $bAccountStatus_PENDING_CLOSURE :: AccountStatus
$mAccountStatus_PENDING_CLOSURE :: forall {r}. AccountStatus -> ((# #) -> r) -> ((# #) -> r) -> r
AccountStatus_PENDING_CLOSURE = AccountStatus' "PENDING_CLOSURE"

pattern AccountStatus_SUSPENDED :: AccountStatus
pattern $bAccountStatus_SUSPENDED :: AccountStatus
$mAccountStatus_SUSPENDED :: forall {r}. AccountStatus -> ((# #) -> r) -> ((# #) -> r) -> r
AccountStatus_SUSPENDED = AccountStatus' "SUSPENDED"

{-# COMPLETE
  AccountStatus_ACTIVE,
  AccountStatus_PENDING_CLOSURE,
  AccountStatus_SUSPENDED,
  AccountStatus'
  #-}