{-# 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.AccessorType
-- 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.AccessorType
  ( AccessorType
      ( ..,
        AccessorType_BILLING_TOKEN
      ),
  )
where

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

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

pattern AccessorType_BILLING_TOKEN :: AccessorType
pattern $bAccessorType_BILLING_TOKEN :: AccessorType
$mAccessorType_BILLING_TOKEN :: forall {r}. AccessorType -> ((# #) -> r) -> ((# #) -> r) -> r
AccessorType_BILLING_TOKEN = AccessorType' "BILLING_TOKEN"

{-# COMPLETE
  AccessorType_BILLING_TOKEN,
  AccessorType'
  #-}