{-# 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-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- 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.Prelude as Prelude

-- | Client-broker encryption in transit setting.
newtype ClientBroker = ClientBroker'
  { ClientBroker -> Text
fromClientBroker ::
      Core.Text
  }
  deriving stock
    ( Int -> ClientBroker -> ShowS
[ClientBroker] -> ShowS
ClientBroker -> String
(Int -> ClientBroker -> ShowS)
-> (ClientBroker -> String)
-> ([ClientBroker] -> ShowS)
-> Show ClientBroker
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]
(Int -> ReadS ClientBroker)
-> ReadS [ClientBroker]
-> ReadPrec ClientBroker
-> ReadPrec [ClientBroker]
-> Read 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
(ClientBroker -> ClientBroker -> Bool)
-> (ClientBroker -> ClientBroker -> Bool) -> Eq ClientBroker
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
Eq ClientBroker
-> (ClientBroker -> ClientBroker -> Ordering)
-> (ClientBroker -> ClientBroker -> Bool)
-> (ClientBroker -> ClientBroker -> Bool)
-> (ClientBroker -> ClientBroker -> Bool)
-> (ClientBroker -> ClientBroker -> Bool)
-> (ClientBroker -> ClientBroker -> ClientBroker)
-> (ClientBroker -> ClientBroker -> ClientBroker)
-> Ord 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
$cp1Ord :: Eq ClientBroker
Prelude.Ord,
      (forall x. ClientBroker -> Rep ClientBroker x)
-> (forall x. Rep ClientBroker x -> ClientBroker)
-> Generic ClientBroker
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
    ( Int -> ClientBroker -> Int
ClientBroker -> Int
(Int -> ClientBroker -> Int)
-> (ClientBroker -> Int) -> Hashable ClientBroker
forall 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 -> ()
(ClientBroker -> ()) -> NFData ClientBroker
forall a. (a -> ()) -> NFData a
rnf :: ClientBroker -> ()
$crnf :: ClientBroker -> ()
Prelude.NFData,
      Text -> Either String ClientBroker
(Text -> Either String ClientBroker) -> FromText ClientBroker
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ClientBroker
$cfromText :: Text -> Either String ClientBroker
Core.FromText,
      ClientBroker -> Text
(ClientBroker -> Text) -> ToText ClientBroker
forall a. (a -> Text) -> ToText a
toText :: ClientBroker -> Text
$ctoText :: ClientBroker -> Text
Core.ToText,
      ClientBroker -> ByteString
(ClientBroker -> ByteString) -> ToByteString ClientBroker
forall a. (a -> ByteString) -> ToByteString a
toBS :: ClientBroker -> ByteString
$ctoBS :: ClientBroker -> ByteString
Core.ToByteString,
      ClientBroker -> ByteStringBuilder
(ClientBroker -> ByteStringBuilder) -> ToLog ClientBroker
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ClientBroker -> ByteStringBuilder
$cbuild :: ClientBroker -> ByteStringBuilder
Core.ToLog,
      HeaderName -> ClientBroker -> [Header]
(HeaderName -> ClientBroker -> [Header]) -> ToHeader ClientBroker
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ClientBroker -> [Header]
$ctoHeader :: HeaderName -> ClientBroker -> [Header]
Core.ToHeader,
      ClientBroker -> QueryString
(ClientBroker -> QueryString) -> ToQuery ClientBroker
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ClientBroker -> QueryString
$ctoQuery :: ClientBroker -> QueryString
Core.ToQuery,
      Value -> Parser [ClientBroker]
Value -> Parser ClientBroker
(Value -> Parser ClientBroker)
-> (Value -> Parser [ClientBroker]) -> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [ClientBroker]
FromJSONKeyFunction ClientBroker
FromJSONKeyFunction ClientBroker
-> FromJSONKeyFunction [ClientBroker] -> FromJSONKey ClientBroker
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ClientBroker]
$cfromJSONKeyList :: FromJSONKeyFunction [ClientBroker]
fromJSONKey :: FromJSONKeyFunction ClientBroker
$cfromJSONKey :: FromJSONKeyFunction ClientBroker
Core.FromJSONKey,
      [ClientBroker] -> Encoding
[ClientBroker] -> Value
ClientBroker -> Encoding
ClientBroker -> Value
(ClientBroker -> Value)
-> (ClientBroker -> Encoding)
-> ([ClientBroker] -> Value)
-> ([ClientBroker] -> Encoding)
-> ToJSON ClientBroker
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
Core.ToJSON,
      ToJSONKeyFunction [ClientBroker]
ToJSONKeyFunction ClientBroker
ToJSONKeyFunction ClientBroker
-> ToJSONKeyFunction [ClientBroker] -> ToJSONKey ClientBroker
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ClientBroker]
$ctoJSONKeyList :: ToJSONKeyFunction [ClientBroker]
toJSONKey :: ToJSONKeyFunction ClientBroker
$ctoJSONKey :: ToJSONKeyFunction ClientBroker
Core.ToJSONKey,
      [Node] -> Either String ClientBroker
([Node] -> Either String ClientBroker) -> FromXML ClientBroker
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ClientBroker
$cparseXML :: [Node] -> Either String ClientBroker
Core.FromXML,
      ClientBroker -> XML
(ClientBroker -> XML) -> ToXML ClientBroker
forall a. (a -> XML) -> ToXML a
toXML :: ClientBroker -> XML
$ctoXML :: ClientBroker -> XML
Core.ToXML
    )

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

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

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

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