{-# 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.KafkaConnect.Types.KafkaClusterEncryptionInTransitType
-- 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.KafkaConnect.Types.KafkaClusterEncryptionInTransitType
  ( KafkaClusterEncryptionInTransitType
      ( ..,
        KafkaClusterEncryptionInTransitType_PLAINTEXT,
        KafkaClusterEncryptionInTransitType_TLS
      ),
  )
where

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

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

pattern KafkaClusterEncryptionInTransitType_PLAINTEXT :: KafkaClusterEncryptionInTransitType
pattern $bKafkaClusterEncryptionInTransitType_PLAINTEXT :: KafkaClusterEncryptionInTransitType
$mKafkaClusterEncryptionInTransitType_PLAINTEXT :: forall {r}.
KafkaClusterEncryptionInTransitType
-> ((# #) -> r) -> ((# #) -> r) -> r
KafkaClusterEncryptionInTransitType_PLAINTEXT = KafkaClusterEncryptionInTransitType' "PLAINTEXT"

pattern KafkaClusterEncryptionInTransitType_TLS :: KafkaClusterEncryptionInTransitType
pattern $bKafkaClusterEncryptionInTransitType_TLS :: KafkaClusterEncryptionInTransitType
$mKafkaClusterEncryptionInTransitType_TLS :: forall {r}.
KafkaClusterEncryptionInTransitType
-> ((# #) -> r) -> ((# #) -> r) -> r
KafkaClusterEncryptionInTransitType_TLS = KafkaClusterEncryptionInTransitType' "TLS"

{-# COMPLETE
  KafkaClusterEncryptionInTransitType_PLAINTEXT,
  KafkaClusterEncryptionInTransitType_TLS,
  KafkaClusterEncryptionInTransitType'
  #-}