{-# 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.SharePointOnlineAuthenticationType
-- 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.SharePointOnlineAuthenticationType
  ( SharePointOnlineAuthenticationType
      ( ..,
        SharePointOnlineAuthenticationType_HTTP_BASIC,
        SharePointOnlineAuthenticationType_OAUTH2
      ),
  )
where

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

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

pattern SharePointOnlineAuthenticationType_HTTP_BASIC :: SharePointOnlineAuthenticationType
pattern $bSharePointOnlineAuthenticationType_HTTP_BASIC :: SharePointOnlineAuthenticationType
$mSharePointOnlineAuthenticationType_HTTP_BASIC :: forall {r}.
SharePointOnlineAuthenticationType
-> ((# #) -> r) -> ((# #) -> r) -> r
SharePointOnlineAuthenticationType_HTTP_BASIC = SharePointOnlineAuthenticationType' "HTTP_BASIC"

pattern SharePointOnlineAuthenticationType_OAUTH2 :: SharePointOnlineAuthenticationType
pattern $bSharePointOnlineAuthenticationType_OAUTH2 :: SharePointOnlineAuthenticationType
$mSharePointOnlineAuthenticationType_OAUTH2 :: forall {r}.
SharePointOnlineAuthenticationType
-> ((# #) -> r) -> ((# #) -> r) -> r
SharePointOnlineAuthenticationType_OAUTH2 = SharePointOnlineAuthenticationType' "OAUTH2"

{-# COMPLETE
  SharePointOnlineAuthenticationType_HTTP_BASIC,
  SharePointOnlineAuthenticationType_OAUTH2,
  SharePointOnlineAuthenticationType'
  #-}