{-# 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.Kafka.Types.ClientBroker
-- 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.Kafka.Types.ClientBroker
  ( ClientBroker
      ( ..,
        ClientBroker_PLAINTEXT,
        ClientBroker_TLS,
        ClientBroker_TLS_PLAINTEXT
      ),
  )
where

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

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

pattern ClientBroker_PLAINTEXT :: ClientBroker
pattern $bClientBroker_PLAINTEXT :: ClientBroker
$mClientBroker_PLAINTEXT :: forall {r}. ClientBroker -> ((# #) -> r) -> ((# #) -> r) -> r
ClientBroker_PLAINTEXT = ClientBroker' "PLAINTEXT"

pattern ClientBroker_TLS :: ClientBroker
pattern $bClientBroker_TLS :: ClientBroker
$mClientBroker_TLS :: forall {r}. ClientBroker -> ((# #) -> r) -> ((# #) -> r) -> r
ClientBroker_TLS = ClientBroker' "TLS"

pattern ClientBroker_TLS_PLAINTEXT :: ClientBroker
pattern $bClientBroker_TLS_PLAINTEXT :: ClientBroker
$mClientBroker_TLS_PLAINTEXT :: forall {r}. ClientBroker -> ((# #) -> r) -> ((# #) -> r) -> r
ClientBroker_TLS_PLAINTEXT = ClientBroker' "TLS_PLAINTEXT"

{-# COMPLETE
  ClientBroker_PLAINTEXT,
  ClientBroker_TLS,
  ClientBroker_TLS_PLAINTEXT,
  ClientBroker'
  #-}