{-# 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.DirectoryService.Types.ClientAuthenticationType
-- 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.DirectoryService.Types.ClientAuthenticationType
  ( ClientAuthenticationType
      ( ..,
        ClientAuthenticationType_SmartCard
      ),
  )
where

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

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

pattern ClientAuthenticationType_SmartCard :: ClientAuthenticationType
pattern $bClientAuthenticationType_SmartCard :: ClientAuthenticationType
$mClientAuthenticationType_SmartCard :: forall r.
ClientAuthenticationType -> (Void# -> r) -> (Void# -> r) -> r
ClientAuthenticationType_SmartCard = ClientAuthenticationType' "SmartCard"

{-# COMPLETE
  ClientAuthenticationType_SmartCard,
  ClientAuthenticationType'
  #-}