{-# 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.Kafka.Types.UnprocessedScramSecret where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data UnprocessedScramSecret = UnprocessedScramSecret'
{
UnprocessedScramSecret -> Maybe Text
errorCode :: Prelude.Maybe Prelude.Text,
UnprocessedScramSecret -> Maybe Text
errorMessage :: Prelude.Maybe Prelude.Text,
UnprocessedScramSecret -> Maybe Text
secretArn :: Prelude.Maybe Prelude.Text
}
deriving (UnprocessedScramSecret -> UnprocessedScramSecret -> Bool
(UnprocessedScramSecret -> UnprocessedScramSecret -> Bool)
-> (UnprocessedScramSecret -> UnprocessedScramSecret -> Bool)
-> Eq UnprocessedScramSecret
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UnprocessedScramSecret -> UnprocessedScramSecret -> Bool
$c/= :: UnprocessedScramSecret -> UnprocessedScramSecret -> Bool
== :: UnprocessedScramSecret -> UnprocessedScramSecret -> Bool
$c== :: UnprocessedScramSecret -> UnprocessedScramSecret -> Bool
Prelude.Eq, ReadPrec [UnprocessedScramSecret]
ReadPrec UnprocessedScramSecret
Int -> ReadS UnprocessedScramSecret
ReadS [UnprocessedScramSecret]
(Int -> ReadS UnprocessedScramSecret)
-> ReadS [UnprocessedScramSecret]
-> ReadPrec UnprocessedScramSecret
-> ReadPrec [UnprocessedScramSecret]
-> Read UnprocessedScramSecret
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UnprocessedScramSecret]
$creadListPrec :: ReadPrec [UnprocessedScramSecret]
readPrec :: ReadPrec UnprocessedScramSecret
$creadPrec :: ReadPrec UnprocessedScramSecret
readList :: ReadS [UnprocessedScramSecret]
$creadList :: ReadS [UnprocessedScramSecret]
readsPrec :: Int -> ReadS UnprocessedScramSecret
$creadsPrec :: Int -> ReadS UnprocessedScramSecret
Prelude.Read, Int -> UnprocessedScramSecret -> ShowS
[UnprocessedScramSecret] -> ShowS
UnprocessedScramSecret -> String
(Int -> UnprocessedScramSecret -> ShowS)
-> (UnprocessedScramSecret -> String)
-> ([UnprocessedScramSecret] -> ShowS)
-> Show UnprocessedScramSecret
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UnprocessedScramSecret] -> ShowS
$cshowList :: [UnprocessedScramSecret] -> ShowS
show :: UnprocessedScramSecret -> String
$cshow :: UnprocessedScramSecret -> String
showsPrec :: Int -> UnprocessedScramSecret -> ShowS
$cshowsPrec :: Int -> UnprocessedScramSecret -> ShowS
Prelude.Show, (forall x. UnprocessedScramSecret -> Rep UnprocessedScramSecret x)
-> (forall x.
Rep UnprocessedScramSecret x -> UnprocessedScramSecret)
-> Generic UnprocessedScramSecret
forall x. Rep UnprocessedScramSecret x -> UnprocessedScramSecret
forall x. UnprocessedScramSecret -> Rep UnprocessedScramSecret x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep UnprocessedScramSecret x -> UnprocessedScramSecret
$cfrom :: forall x. UnprocessedScramSecret -> Rep UnprocessedScramSecret x
Prelude.Generic)
newUnprocessedScramSecret ::
UnprocessedScramSecret
newUnprocessedScramSecret :: UnprocessedScramSecret
newUnprocessedScramSecret =
UnprocessedScramSecret' :: Maybe Text -> Maybe Text -> Maybe Text -> UnprocessedScramSecret
UnprocessedScramSecret'
{ $sel:errorCode:UnprocessedScramSecret' :: Maybe Text
errorCode =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:errorMessage:UnprocessedScramSecret' :: Maybe Text
errorMessage = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:secretArn:UnprocessedScramSecret' :: Maybe Text
secretArn = Maybe Text
forall a. Maybe a
Prelude.Nothing
}
unprocessedScramSecret_errorCode :: Lens.Lens' UnprocessedScramSecret (Prelude.Maybe Prelude.Text)
unprocessedScramSecret_errorCode :: (Maybe Text -> f (Maybe Text))
-> UnprocessedScramSecret -> f UnprocessedScramSecret
unprocessedScramSecret_errorCode = (UnprocessedScramSecret -> Maybe Text)
-> (UnprocessedScramSecret -> Maybe Text -> UnprocessedScramSecret)
-> Lens
UnprocessedScramSecret
UnprocessedScramSecret
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UnprocessedScramSecret' {Maybe Text
errorCode :: Maybe Text
$sel:errorCode:UnprocessedScramSecret' :: UnprocessedScramSecret -> Maybe Text
errorCode} -> Maybe Text
errorCode) (\s :: UnprocessedScramSecret
s@UnprocessedScramSecret' {} Maybe Text
a -> UnprocessedScramSecret
s {$sel:errorCode:UnprocessedScramSecret' :: Maybe Text
errorCode = Maybe Text
a} :: UnprocessedScramSecret)
unprocessedScramSecret_errorMessage :: Lens.Lens' UnprocessedScramSecret (Prelude.Maybe Prelude.Text)
unprocessedScramSecret_errorMessage :: (Maybe Text -> f (Maybe Text))
-> UnprocessedScramSecret -> f UnprocessedScramSecret
unprocessedScramSecret_errorMessage = (UnprocessedScramSecret -> Maybe Text)
-> (UnprocessedScramSecret -> Maybe Text -> UnprocessedScramSecret)
-> Lens
UnprocessedScramSecret
UnprocessedScramSecret
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UnprocessedScramSecret' {Maybe Text
errorMessage :: Maybe Text
$sel:errorMessage:UnprocessedScramSecret' :: UnprocessedScramSecret -> Maybe Text
errorMessage} -> Maybe Text
errorMessage) (\s :: UnprocessedScramSecret
s@UnprocessedScramSecret' {} Maybe Text
a -> UnprocessedScramSecret
s {$sel:errorMessage:UnprocessedScramSecret' :: Maybe Text
errorMessage = Maybe Text
a} :: UnprocessedScramSecret)
unprocessedScramSecret_secretArn :: Lens.Lens' UnprocessedScramSecret (Prelude.Maybe Prelude.Text)
unprocessedScramSecret_secretArn :: (Maybe Text -> f (Maybe Text))
-> UnprocessedScramSecret -> f UnprocessedScramSecret
unprocessedScramSecret_secretArn = (UnprocessedScramSecret -> Maybe Text)
-> (UnprocessedScramSecret -> Maybe Text -> UnprocessedScramSecret)
-> Lens
UnprocessedScramSecret
UnprocessedScramSecret
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UnprocessedScramSecret' {Maybe Text
secretArn :: Maybe Text
$sel:secretArn:UnprocessedScramSecret' :: UnprocessedScramSecret -> Maybe Text
secretArn} -> Maybe Text
secretArn) (\s :: UnprocessedScramSecret
s@UnprocessedScramSecret' {} Maybe Text
a -> UnprocessedScramSecret
s {$sel:secretArn:UnprocessedScramSecret' :: Maybe Text
secretArn = Maybe Text
a} :: UnprocessedScramSecret)
instance Core.FromJSON UnprocessedScramSecret where
parseJSON :: Value -> Parser UnprocessedScramSecret
parseJSON =
String
-> (Object -> Parser UnprocessedScramSecret)
-> Value
-> Parser UnprocessedScramSecret
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"UnprocessedScramSecret"
( \Object
x ->
Maybe Text -> Maybe Text -> Maybe Text -> UnprocessedScramSecret
UnprocessedScramSecret'
(Maybe Text -> Maybe Text -> Maybe Text -> UnprocessedScramSecret)
-> Parser (Maybe Text)
-> Parser (Maybe Text -> Maybe Text -> UnprocessedScramSecret)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"errorCode")
Parser (Maybe Text -> Maybe Text -> UnprocessedScramSecret)
-> Parser (Maybe Text)
-> Parser (Maybe Text -> UnprocessedScramSecret)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"errorMessage")
Parser (Maybe Text -> UnprocessedScramSecret)
-> Parser (Maybe Text) -> Parser UnprocessedScramSecret
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"secretArn")
)
instance Prelude.Hashable UnprocessedScramSecret
instance Prelude.NFData UnprocessedScramSecret