{-# 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.LDAPSType
-- 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.LDAPSType
  ( LDAPSType
      ( ..,
        LDAPSType_Client
      ),
  )
where

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

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

pattern LDAPSType_Client :: LDAPSType
pattern $bLDAPSType_Client :: LDAPSType
$mLDAPSType_Client :: forall r. LDAPSType -> (Void# -> r) -> (Void# -> r) -> r
LDAPSType_Client = LDAPSType' "Client"

{-# COMPLETE
  LDAPSType_Client,
  LDAPSType'
  #-}