{-# 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.LicenseManager.Types.TokenType
-- 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.LicenseManager.Types.TokenType
  ( TokenType
      ( ..,
        TokenType_REFRESH_TOKEN
      ),
  )
where

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

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

pattern TokenType_REFRESH_TOKEN :: TokenType
pattern $bTokenType_REFRESH_TOKEN :: TokenType
$mTokenType_REFRESH_TOKEN :: forall {r}. TokenType -> ((# #) -> r) -> ((# #) -> r) -> r
TokenType_REFRESH_TOKEN = TokenType' "REFRESH_TOKEN"

{-# COMPLETE
  TokenType_REFRESH_TOKEN,
  TokenType'
  #-}