{-# 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.HdfsRpcProtection
-- 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.HdfsRpcProtection
  ( HdfsRpcProtection
      ( ..,
        HdfsRpcProtection_AUTHENTICATION,
        HdfsRpcProtection_DISABLED,
        HdfsRpcProtection_INTEGRITY,
        HdfsRpcProtection_PRIVACY
      ),
  )
where

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

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

pattern HdfsRpcProtection_AUTHENTICATION :: HdfsRpcProtection
pattern $bHdfsRpcProtection_AUTHENTICATION :: HdfsRpcProtection
$mHdfsRpcProtection_AUTHENTICATION :: forall {r}. HdfsRpcProtection -> ((# #) -> r) -> ((# #) -> r) -> r
HdfsRpcProtection_AUTHENTICATION = HdfsRpcProtection' "AUTHENTICATION"

pattern HdfsRpcProtection_DISABLED :: HdfsRpcProtection
pattern $bHdfsRpcProtection_DISABLED :: HdfsRpcProtection
$mHdfsRpcProtection_DISABLED :: forall {r}. HdfsRpcProtection -> ((# #) -> r) -> ((# #) -> r) -> r
HdfsRpcProtection_DISABLED = HdfsRpcProtection' "DISABLED"

pattern HdfsRpcProtection_INTEGRITY :: HdfsRpcProtection
pattern $bHdfsRpcProtection_INTEGRITY :: HdfsRpcProtection
$mHdfsRpcProtection_INTEGRITY :: forall {r}. HdfsRpcProtection -> ((# #) -> r) -> ((# #) -> r) -> r
HdfsRpcProtection_INTEGRITY = HdfsRpcProtection' "INTEGRITY"

pattern HdfsRpcProtection_PRIVACY :: HdfsRpcProtection
pattern $bHdfsRpcProtection_PRIVACY :: HdfsRpcProtection
$mHdfsRpcProtection_PRIVACY :: forall {r}. HdfsRpcProtection -> ((# #) -> r) -> ((# #) -> r) -> r
HdfsRpcProtection_PRIVACY = HdfsRpcProtection' "PRIVACY"

{-# COMPLETE
  HdfsRpcProtection_AUTHENTICATION,
  HdfsRpcProtection_DISABLED,
  HdfsRpcProtection_INTEGRITY,
  HdfsRpcProtection_PRIVACY,
  HdfsRpcProtection'
  #-}