{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.KafkaConnect.Types.KafkaClusterClientAuthentication where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.KafkaConnect.Types.KafkaClusterClientAuthenticationType
import qualified Amazonka.Prelude as Prelude
data KafkaClusterClientAuthentication = KafkaClusterClientAuthentication'
{
KafkaClusterClientAuthentication
-> KafkaClusterClientAuthenticationType
authenticationType :: KafkaClusterClientAuthenticationType
}
deriving (KafkaClusterClientAuthentication
-> KafkaClusterClientAuthentication -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: KafkaClusterClientAuthentication
-> KafkaClusterClientAuthentication -> Bool
$c/= :: KafkaClusterClientAuthentication
-> KafkaClusterClientAuthentication -> Bool
== :: KafkaClusterClientAuthentication
-> KafkaClusterClientAuthentication -> Bool
$c== :: KafkaClusterClientAuthentication
-> KafkaClusterClientAuthentication -> Bool
Prelude.Eq, ReadPrec [KafkaClusterClientAuthentication]
ReadPrec KafkaClusterClientAuthentication
Int -> ReadS KafkaClusterClientAuthentication
ReadS [KafkaClusterClientAuthentication]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [KafkaClusterClientAuthentication]
$creadListPrec :: ReadPrec [KafkaClusterClientAuthentication]
readPrec :: ReadPrec KafkaClusterClientAuthentication
$creadPrec :: ReadPrec KafkaClusterClientAuthentication
readList :: ReadS [KafkaClusterClientAuthentication]
$creadList :: ReadS [KafkaClusterClientAuthentication]
readsPrec :: Int -> ReadS KafkaClusterClientAuthentication
$creadsPrec :: Int -> ReadS KafkaClusterClientAuthentication
Prelude.Read, Int -> KafkaClusterClientAuthentication -> ShowS
[KafkaClusterClientAuthentication] -> ShowS
KafkaClusterClientAuthentication -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [KafkaClusterClientAuthentication] -> ShowS
$cshowList :: [KafkaClusterClientAuthentication] -> ShowS
show :: KafkaClusterClientAuthentication -> String
$cshow :: KafkaClusterClientAuthentication -> String
showsPrec :: Int -> KafkaClusterClientAuthentication -> ShowS
$cshowsPrec :: Int -> KafkaClusterClientAuthentication -> ShowS
Prelude.Show, forall x.
Rep KafkaClusterClientAuthentication x
-> KafkaClusterClientAuthentication
forall x.
KafkaClusterClientAuthentication
-> Rep KafkaClusterClientAuthentication x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep KafkaClusterClientAuthentication x
-> KafkaClusterClientAuthentication
$cfrom :: forall x.
KafkaClusterClientAuthentication
-> Rep KafkaClusterClientAuthentication x
Prelude.Generic)
newKafkaClusterClientAuthentication ::
KafkaClusterClientAuthenticationType ->
KafkaClusterClientAuthentication
newKafkaClusterClientAuthentication :: KafkaClusterClientAuthenticationType
-> KafkaClusterClientAuthentication
newKafkaClusterClientAuthentication
KafkaClusterClientAuthenticationType
pAuthenticationType_ =
KafkaClusterClientAuthentication'
{ $sel:authenticationType:KafkaClusterClientAuthentication' :: KafkaClusterClientAuthenticationType
authenticationType =
KafkaClusterClientAuthenticationType
pAuthenticationType_
}
kafkaClusterClientAuthentication_authenticationType :: Lens.Lens' KafkaClusterClientAuthentication KafkaClusterClientAuthenticationType
kafkaClusterClientAuthentication_authenticationType :: Lens'
KafkaClusterClientAuthentication
KafkaClusterClientAuthenticationType
kafkaClusterClientAuthentication_authenticationType = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\KafkaClusterClientAuthentication' {KafkaClusterClientAuthenticationType
authenticationType :: KafkaClusterClientAuthenticationType
$sel:authenticationType:KafkaClusterClientAuthentication' :: KafkaClusterClientAuthentication
-> KafkaClusterClientAuthenticationType
authenticationType} -> KafkaClusterClientAuthenticationType
authenticationType) (\s :: KafkaClusterClientAuthentication
s@KafkaClusterClientAuthentication' {} KafkaClusterClientAuthenticationType
a -> KafkaClusterClientAuthentication
s {$sel:authenticationType:KafkaClusterClientAuthentication' :: KafkaClusterClientAuthenticationType
authenticationType = KafkaClusterClientAuthenticationType
a} :: KafkaClusterClientAuthentication)
instance
Prelude.Hashable
KafkaClusterClientAuthentication
where
hashWithSalt :: Int -> KafkaClusterClientAuthentication -> Int
hashWithSalt
Int
_salt
KafkaClusterClientAuthentication' {KafkaClusterClientAuthenticationType
authenticationType :: KafkaClusterClientAuthenticationType
$sel:authenticationType:KafkaClusterClientAuthentication' :: KafkaClusterClientAuthentication
-> KafkaClusterClientAuthenticationType
..} =
Int
_salt forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` KafkaClusterClientAuthenticationType
authenticationType
instance
Prelude.NFData
KafkaClusterClientAuthentication
where
rnf :: KafkaClusterClientAuthentication -> ()
rnf KafkaClusterClientAuthentication' {KafkaClusterClientAuthenticationType
authenticationType :: KafkaClusterClientAuthenticationType
$sel:authenticationType:KafkaClusterClientAuthentication' :: KafkaClusterClientAuthentication
-> KafkaClusterClientAuthenticationType
..} =
forall a. NFData a => a -> ()
Prelude.rnf KafkaClusterClientAuthenticationType
authenticationType
instance Data.ToJSON KafkaClusterClientAuthentication where
toJSON :: KafkaClusterClientAuthentication -> Value
toJSON KafkaClusterClientAuthentication' {KafkaClusterClientAuthenticationType
authenticationType :: KafkaClusterClientAuthenticationType
$sel:authenticationType:KafkaClusterClientAuthentication' :: KafkaClusterClientAuthentication
-> KafkaClusterClientAuthenticationType
..} =
[Pair] -> Value
Data.object
( forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ forall a. a -> Maybe a
Prelude.Just
(Key
"authenticationType" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= KafkaClusterClientAuthenticationType
authenticationType)
]
)