{-# 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.ManagedBlockChain.Types.MemberStatus
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.ManagedBlockChain.Types.MemberStatus
  ( MemberStatus
      ( ..,
        MemberStatus_AVAILABLE,
        MemberStatus_CREATE_FAILED,
        MemberStatus_CREATING,
        MemberStatus_DELETED,
        MemberStatus_DELETING,
        MemberStatus_INACCESSIBLE_ENCRYPTION_KEY,
        MemberStatus_UPDATING
      ),
  )
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_AVAILABLE :: MemberStatus
pattern $bMemberStatus_AVAILABLE :: MemberStatus
$mMemberStatus_AVAILABLE :: forall r. MemberStatus -> (Void# -> r) -> (Void# -> r) -> r
MemberStatus_AVAILABLE = MemberStatus' "AVAILABLE"

pattern MemberStatus_CREATE_FAILED :: MemberStatus
pattern $bMemberStatus_CREATE_FAILED :: MemberStatus
$mMemberStatus_CREATE_FAILED :: forall r. MemberStatus -> (Void# -> r) -> (Void# -> r) -> r
MemberStatus_CREATE_FAILED = MemberStatus' "CREATE_FAILED"

pattern MemberStatus_CREATING :: MemberStatus
pattern $bMemberStatus_CREATING :: MemberStatus
$mMemberStatus_CREATING :: forall r. MemberStatus -> (Void# -> r) -> (Void# -> r) -> r
MemberStatus_CREATING = MemberStatus' "CREATING"

pattern MemberStatus_DELETED :: MemberStatus
pattern $bMemberStatus_DELETED :: MemberStatus
$mMemberStatus_DELETED :: forall r. MemberStatus -> (Void# -> r) -> (Void# -> r) -> r
MemberStatus_DELETED = MemberStatus' "DELETED"

pattern MemberStatus_DELETING :: MemberStatus
pattern $bMemberStatus_DELETING :: MemberStatus
$mMemberStatus_DELETING :: forall r. MemberStatus -> (Void# -> r) -> (Void# -> r) -> r
MemberStatus_DELETING = MemberStatus' "DELETING"

pattern MemberStatus_INACCESSIBLE_ENCRYPTION_KEY :: MemberStatus
pattern $bMemberStatus_INACCESSIBLE_ENCRYPTION_KEY :: MemberStatus
$mMemberStatus_INACCESSIBLE_ENCRYPTION_KEY :: forall r. MemberStatus -> (Void# -> r) -> (Void# -> r) -> r
MemberStatus_INACCESSIBLE_ENCRYPTION_KEY = MemberStatus' "INACCESSIBLE_ENCRYPTION_KEY"

pattern MemberStatus_UPDATING :: MemberStatus
pattern $bMemberStatus_UPDATING :: MemberStatus
$mMemberStatus_UPDATING :: forall r. MemberStatus -> (Void# -> r) -> (Void# -> r) -> r
MemberStatus_UPDATING = MemberStatus' "UPDATING"

{-# COMPLETE
  MemberStatus_AVAILABLE,
  MemberStatus_CREATE_FAILED,
  MemberStatus_CREATING,
  MemberStatus_DELETED,
  MemberStatus_DELETING,
  MemberStatus_INACCESSIBLE_ENCRYPTION_KEY,
  MemberStatus_UPDATING,
  MemberStatus'
  #-}