{-# 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.LDAPSStatus
-- 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.LDAPSStatus
  ( LDAPSStatus
      ( ..,
        LDAPSStatus_Disabled,
        LDAPSStatus_EnableFailed,
        LDAPSStatus_Enabled,
        LDAPSStatus_Enabling
      ),
  )
where

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

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

pattern LDAPSStatus_Disabled :: LDAPSStatus
pattern $bLDAPSStatus_Disabled :: LDAPSStatus
$mLDAPSStatus_Disabled :: forall r. LDAPSStatus -> (Void# -> r) -> (Void# -> r) -> r
LDAPSStatus_Disabled = LDAPSStatus' "Disabled"

pattern LDAPSStatus_EnableFailed :: LDAPSStatus
pattern $bLDAPSStatus_EnableFailed :: LDAPSStatus
$mLDAPSStatus_EnableFailed :: forall r. LDAPSStatus -> (Void# -> r) -> (Void# -> r) -> r
LDAPSStatus_EnableFailed = LDAPSStatus' "EnableFailed"

pattern LDAPSStatus_Enabled :: LDAPSStatus
pattern $bLDAPSStatus_Enabled :: LDAPSStatus
$mLDAPSStatus_Enabled :: forall r. LDAPSStatus -> (Void# -> r) -> (Void# -> r) -> r
LDAPSStatus_Enabled = LDAPSStatus' "Enabled"

pattern LDAPSStatus_Enabling :: LDAPSStatus
pattern $bLDAPSStatus_Enabling :: LDAPSStatus
$mLDAPSStatus_Enabling :: forall r. LDAPSStatus -> (Void# -> r) -> (Void# -> r) -> r
LDAPSStatus_Enabling = LDAPSStatus' "Enabling"

{-# COMPLETE
  LDAPSStatus_Disabled,
  LDAPSStatus_EnableFailed,
  LDAPSStatus_Enabled,
  LDAPSStatus_Enabling,
  LDAPSStatus'
  #-}