{-# 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.Kendra.Types.ConfluenceAuthenticationType
-- 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.Kendra.Types.ConfluenceAuthenticationType
  ( ConfluenceAuthenticationType
      ( ..,
        ConfluenceAuthenticationType_HTTP_BASIC,
        ConfluenceAuthenticationType_PAT
      ),
  )
where

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

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

pattern ConfluenceAuthenticationType_HTTP_BASIC :: ConfluenceAuthenticationType
pattern $bConfluenceAuthenticationType_HTTP_BASIC :: ConfluenceAuthenticationType
$mConfluenceAuthenticationType_HTTP_BASIC :: forall {r}.
ConfluenceAuthenticationType -> ((# #) -> r) -> ((# #) -> r) -> r
ConfluenceAuthenticationType_HTTP_BASIC = ConfluenceAuthenticationType' "HTTP_BASIC"

pattern ConfluenceAuthenticationType_PAT :: ConfluenceAuthenticationType
pattern $bConfluenceAuthenticationType_PAT :: ConfluenceAuthenticationType
$mConfluenceAuthenticationType_PAT :: forall {r}.
ConfluenceAuthenticationType -> ((# #) -> r) -> ((# #) -> r) -> r
ConfluenceAuthenticationType_PAT = ConfluenceAuthenticationType' "PAT"

{-# COMPLETE
  ConfluenceAuthenticationType_HTTP_BASIC,
  ConfluenceAuthenticationType_PAT,
  ConfluenceAuthenticationType'
  #-}