{-# 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.HdfsDataTransferProtection
-- 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.HdfsDataTransferProtection
  ( HdfsDataTransferProtection
      ( ..,
        HdfsDataTransferProtection_AUTHENTICATION,
        HdfsDataTransferProtection_DISABLED,
        HdfsDataTransferProtection_INTEGRITY,
        HdfsDataTransferProtection_PRIVACY
      ),
  )
where

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

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

pattern HdfsDataTransferProtection_AUTHENTICATION :: HdfsDataTransferProtection
pattern $bHdfsDataTransferProtection_AUTHENTICATION :: HdfsDataTransferProtection
$mHdfsDataTransferProtection_AUTHENTICATION :: forall {r}.
HdfsDataTransferProtection -> ((# #) -> r) -> ((# #) -> r) -> r
HdfsDataTransferProtection_AUTHENTICATION = HdfsDataTransferProtection' "AUTHENTICATION"

pattern HdfsDataTransferProtection_DISABLED :: HdfsDataTransferProtection
pattern $bHdfsDataTransferProtection_DISABLED :: HdfsDataTransferProtection
$mHdfsDataTransferProtection_DISABLED :: forall {r}.
HdfsDataTransferProtection -> ((# #) -> r) -> ((# #) -> r) -> r
HdfsDataTransferProtection_DISABLED = HdfsDataTransferProtection' "DISABLED"

pattern HdfsDataTransferProtection_INTEGRITY :: HdfsDataTransferProtection
pattern $bHdfsDataTransferProtection_INTEGRITY :: HdfsDataTransferProtection
$mHdfsDataTransferProtection_INTEGRITY :: forall {r}.
HdfsDataTransferProtection -> ((# #) -> r) -> ((# #) -> r) -> r
HdfsDataTransferProtection_INTEGRITY = HdfsDataTransferProtection' "INTEGRITY"

pattern HdfsDataTransferProtection_PRIVACY :: HdfsDataTransferProtection
pattern $bHdfsDataTransferProtection_PRIVACY :: HdfsDataTransferProtection
$mHdfsDataTransferProtection_PRIVACY :: forall {r}.
HdfsDataTransferProtection -> ((# #) -> r) -> ((# #) -> r) -> r
HdfsDataTransferProtection_PRIVACY = HdfsDataTransferProtection' "PRIVACY"

{-# COMPLETE
  HdfsDataTransferProtection_AUTHENTICATION,
  HdfsDataTransferProtection_DISABLED,
  HdfsDataTransferProtection_INTEGRITY,
  HdfsDataTransferProtection_PRIVACY,
  HdfsDataTransferProtection'
  #-}