{-# 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-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.DirectoryService.Types.ClientAuthenticationType
  ( ClientAuthenticationType
      ( ..,
        ClientAuthenticationType_SmartCard,
        ClientAuthenticationType_SmartCardOrPassword
      ),
  )
where

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

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

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

pattern ClientAuthenticationType_SmartCardOrPassword :: ClientAuthenticationType
pattern $bClientAuthenticationType_SmartCardOrPassword :: ClientAuthenticationType
$mClientAuthenticationType_SmartCardOrPassword :: forall {r}.
ClientAuthenticationType -> ((# #) -> r) -> ((# #) -> r) -> r
ClientAuthenticationType_SmartCardOrPassword = ClientAuthenticationType' "SmartCardOrPassword"

{-# COMPLETE
  ClientAuthenticationType_SmartCard,
  ClientAuthenticationType_SmartCardOrPassword,
  ClientAuthenticationType'
  #-}