{-# 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.SelectiveAuth
-- 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.SelectiveAuth
  ( SelectiveAuth
      ( ..,
        SelectiveAuth_Disabled,
        SelectiveAuth_Enabled
      ),
  )
where

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

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

pattern SelectiveAuth_Disabled :: SelectiveAuth
pattern $bSelectiveAuth_Disabled :: SelectiveAuth
$mSelectiveAuth_Disabled :: forall {r}. SelectiveAuth -> ((# #) -> r) -> ((# #) -> r) -> r
SelectiveAuth_Disabled = SelectiveAuth' "Disabled"

pattern SelectiveAuth_Enabled :: SelectiveAuth
pattern $bSelectiveAuth_Enabled :: SelectiveAuth
$mSelectiveAuth_Enabled :: forall {r}. SelectiveAuth -> ((# #) -> r) -> ((# #) -> r) -> r
SelectiveAuth_Enabled = SelectiveAuth' "Enabled"

{-# COMPLETE
  SelectiveAuth_Disabled,
  SelectiveAuth_Enabled,
  SelectiveAuth'
  #-}