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

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

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

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

{-# COMPLETE
  TokenType_REFRESH_TOKEN,
  TokenType'
  #-}