{-# 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.StateDBType
-- 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.ManagedBlockChain.Types.StateDBType
  ( StateDBType
      ( ..,
        StateDBType_CouchDB,
        StateDBType_LevelDB
      ),
  )
where

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

newtype StateDBType = StateDBType'
  { StateDBType -> Text
fromStateDBType ::
      Data.Text
  }
  deriving stock
    ( Int -> StateDBType -> ShowS
[StateDBType] -> ShowS
StateDBType -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [StateDBType] -> ShowS
$cshowList :: [StateDBType] -> ShowS
show :: StateDBType -> String
$cshow :: StateDBType -> String
showsPrec :: Int -> StateDBType -> ShowS
$cshowsPrec :: Int -> StateDBType -> ShowS
Prelude.Show,
      ReadPrec [StateDBType]
ReadPrec StateDBType
Int -> ReadS StateDBType
ReadS [StateDBType]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [StateDBType]
$creadListPrec :: ReadPrec [StateDBType]
readPrec :: ReadPrec StateDBType
$creadPrec :: ReadPrec StateDBType
readList :: ReadS [StateDBType]
$creadList :: ReadS [StateDBType]
readsPrec :: Int -> ReadS StateDBType
$creadsPrec :: Int -> ReadS StateDBType
Prelude.Read,
      StateDBType -> StateDBType -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: StateDBType -> StateDBType -> Bool
$c/= :: StateDBType -> StateDBType -> Bool
== :: StateDBType -> StateDBType -> Bool
$c== :: StateDBType -> StateDBType -> Bool
Prelude.Eq,
      Eq StateDBType
StateDBType -> StateDBType -> Bool
StateDBType -> StateDBType -> Ordering
StateDBType -> StateDBType -> StateDBType
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 :: StateDBType -> StateDBType -> StateDBType
$cmin :: StateDBType -> StateDBType -> StateDBType
max :: StateDBType -> StateDBType -> StateDBType
$cmax :: StateDBType -> StateDBType -> StateDBType
>= :: StateDBType -> StateDBType -> Bool
$c>= :: StateDBType -> StateDBType -> Bool
> :: StateDBType -> StateDBType -> Bool
$c> :: StateDBType -> StateDBType -> Bool
<= :: StateDBType -> StateDBType -> Bool
$c<= :: StateDBType -> StateDBType -> Bool
< :: StateDBType -> StateDBType -> Bool
$c< :: StateDBType -> StateDBType -> Bool
compare :: StateDBType -> StateDBType -> Ordering
$ccompare :: StateDBType -> StateDBType -> Ordering
Prelude.Ord,
      forall x. Rep StateDBType x -> StateDBType
forall x. StateDBType -> Rep StateDBType x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep StateDBType x -> StateDBType
$cfrom :: forall x. StateDBType -> Rep StateDBType x
Prelude.Generic
    )
  deriving newtype
    ( Eq StateDBType
Int -> StateDBType -> Int
StateDBType -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: StateDBType -> Int
$chash :: StateDBType -> Int
hashWithSalt :: Int -> StateDBType -> Int
$chashWithSalt :: Int -> StateDBType -> Int
Prelude.Hashable,
      StateDBType -> ()
forall a. (a -> ()) -> NFData a
rnf :: StateDBType -> ()
$crnf :: StateDBType -> ()
Prelude.NFData,
      Text -> Either String StateDBType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String StateDBType
$cfromText :: Text -> Either String StateDBType
Data.FromText,
      StateDBType -> Text
forall a. (a -> Text) -> ToText a
toText :: StateDBType -> Text
$ctoText :: StateDBType -> Text
Data.ToText,
      StateDBType -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: StateDBType -> ByteString
$ctoBS :: StateDBType -> ByteString
Data.ToByteString,
      StateDBType -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: StateDBType -> ByteStringBuilder
$cbuild :: StateDBType -> ByteStringBuilder
Data.ToLog,
      HeaderName -> StateDBType -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> StateDBType -> [Header]
$ctoHeader :: HeaderName -> StateDBType -> [Header]
Data.ToHeader,
      StateDBType -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: StateDBType -> QueryString
$ctoQuery :: StateDBType -> QueryString
Data.ToQuery,
      Value -> Parser [StateDBType]
Value -> Parser StateDBType
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [StateDBType]
$cparseJSONList :: Value -> Parser [StateDBType]
parseJSON :: Value -> Parser StateDBType
$cparseJSON :: Value -> Parser StateDBType
Data.FromJSON,
      FromJSONKeyFunction [StateDBType]
FromJSONKeyFunction StateDBType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [StateDBType]
$cfromJSONKeyList :: FromJSONKeyFunction [StateDBType]
fromJSONKey :: FromJSONKeyFunction StateDBType
$cfromJSONKey :: FromJSONKeyFunction StateDBType
Data.FromJSONKey,
      [StateDBType] -> Encoding
[StateDBType] -> Value
StateDBType -> Encoding
StateDBType -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [StateDBType] -> Encoding
$ctoEncodingList :: [StateDBType] -> Encoding
toJSONList :: [StateDBType] -> Value
$ctoJSONList :: [StateDBType] -> Value
toEncoding :: StateDBType -> Encoding
$ctoEncoding :: StateDBType -> Encoding
toJSON :: StateDBType -> Value
$ctoJSON :: StateDBType -> Value
Data.ToJSON,
      ToJSONKeyFunction [StateDBType]
ToJSONKeyFunction StateDBType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [StateDBType]
$ctoJSONKeyList :: ToJSONKeyFunction [StateDBType]
toJSONKey :: ToJSONKeyFunction StateDBType
$ctoJSONKey :: ToJSONKeyFunction StateDBType
Data.ToJSONKey,
      [Node] -> Either String StateDBType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String StateDBType
$cparseXML :: [Node] -> Either String StateDBType
Data.FromXML,
      StateDBType -> XML
forall a. (a -> XML) -> ToXML a
toXML :: StateDBType -> XML
$ctoXML :: StateDBType -> XML
Data.ToXML
    )

pattern StateDBType_CouchDB :: StateDBType
pattern $bStateDBType_CouchDB :: StateDBType
$mStateDBType_CouchDB :: forall {r}. StateDBType -> ((# #) -> r) -> ((# #) -> r) -> r
StateDBType_CouchDB = StateDBType' "CouchDB"

pattern StateDBType_LevelDB :: StateDBType
pattern $bStateDBType_LevelDB :: StateDBType
$mStateDBType_LevelDB :: forall {r}. StateDBType -> ((# #) -> r) -> ((# #) -> r) -> r
StateDBType_LevelDB = StateDBType' "LevelDB"

{-# COMPLETE
  StateDBType_CouchDB,
  StateDBType_LevelDB,
  StateDBType'
  #-}