{-# 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.Connect.Types.DirectoryType
-- 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.Connect.Types.DirectoryType
  ( DirectoryType
      ( ..,
        DirectoryType_CONNECT_MANAGED,
        DirectoryType_EXISTING_DIRECTORY,
        DirectoryType_SAML
      ),
  )
where

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

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

pattern DirectoryType_CONNECT_MANAGED :: DirectoryType
pattern $bDirectoryType_CONNECT_MANAGED :: DirectoryType
$mDirectoryType_CONNECT_MANAGED :: forall r. DirectoryType -> (Void# -> r) -> (Void# -> r) -> r
DirectoryType_CONNECT_MANAGED = DirectoryType' "CONNECT_MANAGED"

pattern DirectoryType_EXISTING_DIRECTORY :: DirectoryType
pattern $bDirectoryType_EXISTING_DIRECTORY :: DirectoryType
$mDirectoryType_EXISTING_DIRECTORY :: forall r. DirectoryType -> (Void# -> r) -> (Void# -> r) -> r
DirectoryType_EXISTING_DIRECTORY = DirectoryType' "EXISTING_DIRECTORY"

pattern DirectoryType_SAML :: DirectoryType
pattern $bDirectoryType_SAML :: DirectoryType
$mDirectoryType_SAML :: forall r. DirectoryType -> (Void# -> r) -> (Void# -> r) -> r
DirectoryType_SAML = DirectoryType' "SAML"

{-# COMPLETE
  DirectoryType_CONNECT_MANAGED,
  DirectoryType_EXISTING_DIRECTORY,
  DirectoryType_SAML,
  DirectoryType'
  #-}