{-# 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.DataSync.Types.HdfsAuthenticationType
-- 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.DataSync.Types.HdfsAuthenticationType
  ( HdfsAuthenticationType
      ( ..,
        HdfsAuthenticationType_KERBEROS,
        HdfsAuthenticationType_SIMPLE
      ),
  )
where

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

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

pattern HdfsAuthenticationType_KERBEROS :: HdfsAuthenticationType
pattern $bHdfsAuthenticationType_KERBEROS :: HdfsAuthenticationType
$mHdfsAuthenticationType_KERBEROS :: forall {r}.
HdfsAuthenticationType -> ((# #) -> r) -> ((# #) -> r) -> r
HdfsAuthenticationType_KERBEROS = HdfsAuthenticationType' "KERBEROS"

pattern HdfsAuthenticationType_SIMPLE :: HdfsAuthenticationType
pattern $bHdfsAuthenticationType_SIMPLE :: HdfsAuthenticationType
$mHdfsAuthenticationType_SIMPLE :: forall {r}.
HdfsAuthenticationType -> ((# #) -> r) -> ((# #) -> r) -> r
HdfsAuthenticationType_SIMPLE = HdfsAuthenticationType' "SIMPLE"

{-# COMPLETE
  HdfsAuthenticationType_KERBEROS,
  HdfsAuthenticationType_SIMPLE,
  HdfsAuthenticationType'
  #-}