{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.DirectoryService.Types.RadiusAuthenticationProtocol
( RadiusAuthenticationProtocol
( ..,
RadiusAuthenticationProtocol_CHAP,
RadiusAuthenticationProtocol_MS_CHAPv1,
RadiusAuthenticationProtocol_MS_CHAPv2,
RadiusAuthenticationProtocol_PAP
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype RadiusAuthenticationProtocol = RadiusAuthenticationProtocol'
{ RadiusAuthenticationProtocol -> Text
fromRadiusAuthenticationProtocol ::
Core.Text
}
deriving stock
( Int -> RadiusAuthenticationProtocol -> ShowS
[RadiusAuthenticationProtocol] -> ShowS
RadiusAuthenticationProtocol -> String
(Int -> RadiusAuthenticationProtocol -> ShowS)
-> (RadiusAuthenticationProtocol -> String)
-> ([RadiusAuthenticationProtocol] -> ShowS)
-> Show RadiusAuthenticationProtocol
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [RadiusAuthenticationProtocol] -> ShowS
$cshowList :: [RadiusAuthenticationProtocol] -> ShowS
show :: RadiusAuthenticationProtocol -> String
$cshow :: RadiusAuthenticationProtocol -> String
showsPrec :: Int -> RadiusAuthenticationProtocol -> ShowS
$cshowsPrec :: Int -> RadiusAuthenticationProtocol -> ShowS
Prelude.Show,
ReadPrec [RadiusAuthenticationProtocol]
ReadPrec RadiusAuthenticationProtocol
Int -> ReadS RadiusAuthenticationProtocol
ReadS [RadiusAuthenticationProtocol]
(Int -> ReadS RadiusAuthenticationProtocol)
-> ReadS [RadiusAuthenticationProtocol]
-> ReadPrec RadiusAuthenticationProtocol
-> ReadPrec [RadiusAuthenticationProtocol]
-> Read RadiusAuthenticationProtocol
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [RadiusAuthenticationProtocol]
$creadListPrec :: ReadPrec [RadiusAuthenticationProtocol]
readPrec :: ReadPrec RadiusAuthenticationProtocol
$creadPrec :: ReadPrec RadiusAuthenticationProtocol
readList :: ReadS [RadiusAuthenticationProtocol]
$creadList :: ReadS [RadiusAuthenticationProtocol]
readsPrec :: Int -> ReadS RadiusAuthenticationProtocol
$creadsPrec :: Int -> ReadS RadiusAuthenticationProtocol
Prelude.Read,
RadiusAuthenticationProtocol
-> RadiusAuthenticationProtocol -> Bool
(RadiusAuthenticationProtocol
-> RadiusAuthenticationProtocol -> Bool)
-> (RadiusAuthenticationProtocol
-> RadiusAuthenticationProtocol -> Bool)
-> Eq RadiusAuthenticationProtocol
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: RadiusAuthenticationProtocol
-> RadiusAuthenticationProtocol -> Bool
$c/= :: RadiusAuthenticationProtocol
-> RadiusAuthenticationProtocol -> Bool
== :: RadiusAuthenticationProtocol
-> RadiusAuthenticationProtocol -> Bool
$c== :: RadiusAuthenticationProtocol
-> RadiusAuthenticationProtocol -> Bool
Prelude.Eq,
Eq RadiusAuthenticationProtocol
Eq RadiusAuthenticationProtocol
-> (RadiusAuthenticationProtocol
-> RadiusAuthenticationProtocol -> Ordering)
-> (RadiusAuthenticationProtocol
-> RadiusAuthenticationProtocol -> Bool)
-> (RadiusAuthenticationProtocol
-> RadiusAuthenticationProtocol -> Bool)
-> (RadiusAuthenticationProtocol
-> RadiusAuthenticationProtocol -> Bool)
-> (RadiusAuthenticationProtocol
-> RadiusAuthenticationProtocol -> Bool)
-> (RadiusAuthenticationProtocol
-> RadiusAuthenticationProtocol -> RadiusAuthenticationProtocol)
-> (RadiusAuthenticationProtocol
-> RadiusAuthenticationProtocol -> RadiusAuthenticationProtocol)
-> Ord RadiusAuthenticationProtocol
RadiusAuthenticationProtocol
-> RadiusAuthenticationProtocol -> Bool
RadiusAuthenticationProtocol
-> RadiusAuthenticationProtocol -> Ordering
RadiusAuthenticationProtocol
-> RadiusAuthenticationProtocol -> RadiusAuthenticationProtocol
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 :: RadiusAuthenticationProtocol
-> RadiusAuthenticationProtocol -> RadiusAuthenticationProtocol
$cmin :: RadiusAuthenticationProtocol
-> RadiusAuthenticationProtocol -> RadiusAuthenticationProtocol
max :: RadiusAuthenticationProtocol
-> RadiusAuthenticationProtocol -> RadiusAuthenticationProtocol
$cmax :: RadiusAuthenticationProtocol
-> RadiusAuthenticationProtocol -> RadiusAuthenticationProtocol
>= :: RadiusAuthenticationProtocol
-> RadiusAuthenticationProtocol -> Bool
$c>= :: RadiusAuthenticationProtocol
-> RadiusAuthenticationProtocol -> Bool
> :: RadiusAuthenticationProtocol
-> RadiusAuthenticationProtocol -> Bool
$c> :: RadiusAuthenticationProtocol
-> RadiusAuthenticationProtocol -> Bool
<= :: RadiusAuthenticationProtocol
-> RadiusAuthenticationProtocol -> Bool
$c<= :: RadiusAuthenticationProtocol
-> RadiusAuthenticationProtocol -> Bool
< :: RadiusAuthenticationProtocol
-> RadiusAuthenticationProtocol -> Bool
$c< :: RadiusAuthenticationProtocol
-> RadiusAuthenticationProtocol -> Bool
compare :: RadiusAuthenticationProtocol
-> RadiusAuthenticationProtocol -> Ordering
$ccompare :: RadiusAuthenticationProtocol
-> RadiusAuthenticationProtocol -> Ordering
$cp1Ord :: Eq RadiusAuthenticationProtocol
Prelude.Ord,
(forall x.
RadiusAuthenticationProtocol -> Rep RadiusAuthenticationProtocol x)
-> (forall x.
Rep RadiusAuthenticationProtocol x -> RadiusAuthenticationProtocol)
-> Generic RadiusAuthenticationProtocol
forall x.
Rep RadiusAuthenticationProtocol x -> RadiusAuthenticationProtocol
forall x.
RadiusAuthenticationProtocol -> Rep RadiusAuthenticationProtocol x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep RadiusAuthenticationProtocol x -> RadiusAuthenticationProtocol
$cfrom :: forall x.
RadiusAuthenticationProtocol -> Rep RadiusAuthenticationProtocol x
Prelude.Generic
)
deriving newtype
( Int -> RadiusAuthenticationProtocol -> Int
RadiusAuthenticationProtocol -> Int
(Int -> RadiusAuthenticationProtocol -> Int)
-> (RadiusAuthenticationProtocol -> Int)
-> Hashable RadiusAuthenticationProtocol
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: RadiusAuthenticationProtocol -> Int
$chash :: RadiusAuthenticationProtocol -> Int
hashWithSalt :: Int -> RadiusAuthenticationProtocol -> Int
$chashWithSalt :: Int -> RadiusAuthenticationProtocol -> Int
Prelude.Hashable,
RadiusAuthenticationProtocol -> ()
(RadiusAuthenticationProtocol -> ())
-> NFData RadiusAuthenticationProtocol
forall a. (a -> ()) -> NFData a
rnf :: RadiusAuthenticationProtocol -> ()
$crnf :: RadiusAuthenticationProtocol -> ()
Prelude.NFData,
Text -> Either String RadiusAuthenticationProtocol
(Text -> Either String RadiusAuthenticationProtocol)
-> FromText RadiusAuthenticationProtocol
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String RadiusAuthenticationProtocol
$cfromText :: Text -> Either String RadiusAuthenticationProtocol
Core.FromText,
RadiusAuthenticationProtocol -> Text
(RadiusAuthenticationProtocol -> Text)
-> ToText RadiusAuthenticationProtocol
forall a. (a -> Text) -> ToText a
toText :: RadiusAuthenticationProtocol -> Text
$ctoText :: RadiusAuthenticationProtocol -> Text
Core.ToText,
RadiusAuthenticationProtocol -> ByteString
(RadiusAuthenticationProtocol -> ByteString)
-> ToByteString RadiusAuthenticationProtocol
forall a. (a -> ByteString) -> ToByteString a
toBS :: RadiusAuthenticationProtocol -> ByteString
$ctoBS :: RadiusAuthenticationProtocol -> ByteString
Core.ToByteString,
RadiusAuthenticationProtocol -> ByteStringBuilder
(RadiusAuthenticationProtocol -> ByteStringBuilder)
-> ToLog RadiusAuthenticationProtocol
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: RadiusAuthenticationProtocol -> ByteStringBuilder
$cbuild :: RadiusAuthenticationProtocol -> ByteStringBuilder
Core.ToLog,
HeaderName -> RadiusAuthenticationProtocol -> [Header]
(HeaderName -> RadiusAuthenticationProtocol -> [Header])
-> ToHeader RadiusAuthenticationProtocol
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> RadiusAuthenticationProtocol -> [Header]
$ctoHeader :: HeaderName -> RadiusAuthenticationProtocol -> [Header]
Core.ToHeader,
RadiusAuthenticationProtocol -> QueryString
(RadiusAuthenticationProtocol -> QueryString)
-> ToQuery RadiusAuthenticationProtocol
forall a. (a -> QueryString) -> ToQuery a
toQuery :: RadiusAuthenticationProtocol -> QueryString
$ctoQuery :: RadiusAuthenticationProtocol -> QueryString
Core.ToQuery,
Value -> Parser [RadiusAuthenticationProtocol]
Value -> Parser RadiusAuthenticationProtocol
(Value -> Parser RadiusAuthenticationProtocol)
-> (Value -> Parser [RadiusAuthenticationProtocol])
-> FromJSON RadiusAuthenticationProtocol
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [RadiusAuthenticationProtocol]
$cparseJSONList :: Value -> Parser [RadiusAuthenticationProtocol]
parseJSON :: Value -> Parser RadiusAuthenticationProtocol
$cparseJSON :: Value -> Parser RadiusAuthenticationProtocol
Core.FromJSON,
FromJSONKeyFunction [RadiusAuthenticationProtocol]
FromJSONKeyFunction RadiusAuthenticationProtocol
FromJSONKeyFunction RadiusAuthenticationProtocol
-> FromJSONKeyFunction [RadiusAuthenticationProtocol]
-> FromJSONKey RadiusAuthenticationProtocol
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [RadiusAuthenticationProtocol]
$cfromJSONKeyList :: FromJSONKeyFunction [RadiusAuthenticationProtocol]
fromJSONKey :: FromJSONKeyFunction RadiusAuthenticationProtocol
$cfromJSONKey :: FromJSONKeyFunction RadiusAuthenticationProtocol
Core.FromJSONKey,
[RadiusAuthenticationProtocol] -> Encoding
[RadiusAuthenticationProtocol] -> Value
RadiusAuthenticationProtocol -> Encoding
RadiusAuthenticationProtocol -> Value
(RadiusAuthenticationProtocol -> Value)
-> (RadiusAuthenticationProtocol -> Encoding)
-> ([RadiusAuthenticationProtocol] -> Value)
-> ([RadiusAuthenticationProtocol] -> Encoding)
-> ToJSON RadiusAuthenticationProtocol
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [RadiusAuthenticationProtocol] -> Encoding
$ctoEncodingList :: [RadiusAuthenticationProtocol] -> Encoding
toJSONList :: [RadiusAuthenticationProtocol] -> Value
$ctoJSONList :: [RadiusAuthenticationProtocol] -> Value
toEncoding :: RadiusAuthenticationProtocol -> Encoding
$ctoEncoding :: RadiusAuthenticationProtocol -> Encoding
toJSON :: RadiusAuthenticationProtocol -> Value
$ctoJSON :: RadiusAuthenticationProtocol -> Value
Core.ToJSON,
ToJSONKeyFunction [RadiusAuthenticationProtocol]
ToJSONKeyFunction RadiusAuthenticationProtocol
ToJSONKeyFunction RadiusAuthenticationProtocol
-> ToJSONKeyFunction [RadiusAuthenticationProtocol]
-> ToJSONKey RadiusAuthenticationProtocol
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [RadiusAuthenticationProtocol]
$ctoJSONKeyList :: ToJSONKeyFunction [RadiusAuthenticationProtocol]
toJSONKey :: ToJSONKeyFunction RadiusAuthenticationProtocol
$ctoJSONKey :: ToJSONKeyFunction RadiusAuthenticationProtocol
Core.ToJSONKey,
[Node] -> Either String RadiusAuthenticationProtocol
([Node] -> Either String RadiusAuthenticationProtocol)
-> FromXML RadiusAuthenticationProtocol
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String RadiusAuthenticationProtocol
$cparseXML :: [Node] -> Either String RadiusAuthenticationProtocol
Core.FromXML,
RadiusAuthenticationProtocol -> XML
(RadiusAuthenticationProtocol -> XML)
-> ToXML RadiusAuthenticationProtocol
forall a. (a -> XML) -> ToXML a
toXML :: RadiusAuthenticationProtocol -> XML
$ctoXML :: RadiusAuthenticationProtocol -> XML
Core.ToXML
)
pattern RadiusAuthenticationProtocol_CHAP :: RadiusAuthenticationProtocol
pattern $bRadiusAuthenticationProtocol_CHAP :: RadiusAuthenticationProtocol
$mRadiusAuthenticationProtocol_CHAP :: forall r.
RadiusAuthenticationProtocol -> (Void# -> r) -> (Void# -> r) -> r
RadiusAuthenticationProtocol_CHAP = RadiusAuthenticationProtocol' "CHAP"
pattern RadiusAuthenticationProtocol_MS_CHAPv1 :: RadiusAuthenticationProtocol
pattern $bRadiusAuthenticationProtocol_MS_CHAPv1 :: RadiusAuthenticationProtocol
$mRadiusAuthenticationProtocol_MS_CHAPv1 :: forall r.
RadiusAuthenticationProtocol -> (Void# -> r) -> (Void# -> r) -> r
RadiusAuthenticationProtocol_MS_CHAPv1 = RadiusAuthenticationProtocol' "MS-CHAPv1"
pattern RadiusAuthenticationProtocol_MS_CHAPv2 :: RadiusAuthenticationProtocol
pattern $bRadiusAuthenticationProtocol_MS_CHAPv2 :: RadiusAuthenticationProtocol
$mRadiusAuthenticationProtocol_MS_CHAPv2 :: forall r.
RadiusAuthenticationProtocol -> (Void# -> r) -> (Void# -> r) -> r
RadiusAuthenticationProtocol_MS_CHAPv2 = RadiusAuthenticationProtocol' "MS-CHAPv2"
pattern RadiusAuthenticationProtocol_PAP :: RadiusAuthenticationProtocol
pattern $bRadiusAuthenticationProtocol_PAP :: RadiusAuthenticationProtocol
$mRadiusAuthenticationProtocol_PAP :: forall r.
RadiusAuthenticationProtocol -> (Void# -> r) -> (Void# -> r) -> r
RadiusAuthenticationProtocol_PAP = RadiusAuthenticationProtocol' "PAP"
{-# COMPLETE
RadiusAuthenticationProtocol_CHAP,
RadiusAuthenticationProtocol_MS_CHAPv1,
RadiusAuthenticationProtocol_MS_CHAPv2,
RadiusAuthenticationProtocol_PAP,
RadiusAuthenticationProtocol'
#-}