{-# 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.HoneyCode.Types.ImportJobSubmitter where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data ImportJobSubmitter = ImportJobSubmitter'
{
ImportJobSubmitter -> Maybe (Sensitive Text)
email :: Prelude.Maybe (Core.Sensitive Prelude.Text),
ImportJobSubmitter -> Maybe Text
userArn :: Prelude.Maybe Prelude.Text
}
deriving (ImportJobSubmitter -> ImportJobSubmitter -> Bool
(ImportJobSubmitter -> ImportJobSubmitter -> Bool)
-> (ImportJobSubmitter -> ImportJobSubmitter -> Bool)
-> Eq ImportJobSubmitter
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ImportJobSubmitter -> ImportJobSubmitter -> Bool
$c/= :: ImportJobSubmitter -> ImportJobSubmitter -> Bool
== :: ImportJobSubmitter -> ImportJobSubmitter -> Bool
$c== :: ImportJobSubmitter -> ImportJobSubmitter -> Bool
Prelude.Eq, Int -> ImportJobSubmitter -> ShowS
[ImportJobSubmitter] -> ShowS
ImportJobSubmitter -> String
(Int -> ImportJobSubmitter -> ShowS)
-> (ImportJobSubmitter -> String)
-> ([ImportJobSubmitter] -> ShowS)
-> Show ImportJobSubmitter
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ImportJobSubmitter] -> ShowS
$cshowList :: [ImportJobSubmitter] -> ShowS
show :: ImportJobSubmitter -> String
$cshow :: ImportJobSubmitter -> String
showsPrec :: Int -> ImportJobSubmitter -> ShowS
$cshowsPrec :: Int -> ImportJobSubmitter -> ShowS
Prelude.Show, (forall x. ImportJobSubmitter -> Rep ImportJobSubmitter x)
-> (forall x. Rep ImportJobSubmitter x -> ImportJobSubmitter)
-> Generic ImportJobSubmitter
forall x. Rep ImportJobSubmitter x -> ImportJobSubmitter
forall x. ImportJobSubmitter -> Rep ImportJobSubmitter x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ImportJobSubmitter x -> ImportJobSubmitter
$cfrom :: forall x. ImportJobSubmitter -> Rep ImportJobSubmitter x
Prelude.Generic)
newImportJobSubmitter ::
ImportJobSubmitter
newImportJobSubmitter :: ImportJobSubmitter
newImportJobSubmitter =
ImportJobSubmitter' :: Maybe (Sensitive Text) -> Maybe Text -> ImportJobSubmitter
ImportJobSubmitter'
{ $sel:email:ImportJobSubmitter' :: Maybe (Sensitive Text)
email = Maybe (Sensitive Text)
forall a. Maybe a
Prelude.Nothing,
$sel:userArn:ImportJobSubmitter' :: Maybe Text
userArn = Maybe Text
forall a. Maybe a
Prelude.Nothing
}
importJobSubmitter_email :: Lens.Lens' ImportJobSubmitter (Prelude.Maybe Prelude.Text)
importJobSubmitter_email :: (Maybe Text -> f (Maybe Text))
-> ImportJobSubmitter -> f ImportJobSubmitter
importJobSubmitter_email = (ImportJobSubmitter -> Maybe (Sensitive Text))
-> (ImportJobSubmitter
-> Maybe (Sensitive Text) -> ImportJobSubmitter)
-> Lens
ImportJobSubmitter
ImportJobSubmitter
(Maybe (Sensitive Text))
(Maybe (Sensitive Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ImportJobSubmitter' {Maybe (Sensitive Text)
email :: Maybe (Sensitive Text)
$sel:email:ImportJobSubmitter' :: ImportJobSubmitter -> Maybe (Sensitive Text)
email} -> Maybe (Sensitive Text)
email) (\s :: ImportJobSubmitter
s@ImportJobSubmitter' {} Maybe (Sensitive Text)
a -> ImportJobSubmitter
s {$sel:email:ImportJobSubmitter' :: Maybe (Sensitive Text)
email = Maybe (Sensitive Text)
a} :: ImportJobSubmitter) ((Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> ImportJobSubmitter -> f ImportJobSubmitter)
-> ((Maybe Text -> f (Maybe Text))
-> Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> (Maybe Text -> f (Maybe Text))
-> ImportJobSubmitter
-> f ImportJobSubmitter
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso (Sensitive Text) (Sensitive Text) Text Text
-> Iso
(Maybe (Sensitive Text))
(Maybe (Sensitive Text))
(Maybe Text)
(Maybe Text)
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso (Sensitive Text) (Sensitive Text) Text Text
forall a. Iso' (Sensitive a) a
Core._Sensitive
importJobSubmitter_userArn :: Lens.Lens' ImportJobSubmitter (Prelude.Maybe Prelude.Text)
importJobSubmitter_userArn :: (Maybe Text -> f (Maybe Text))
-> ImportJobSubmitter -> f ImportJobSubmitter
importJobSubmitter_userArn = (ImportJobSubmitter -> Maybe Text)
-> (ImportJobSubmitter -> Maybe Text -> ImportJobSubmitter)
-> Lens
ImportJobSubmitter ImportJobSubmitter (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ImportJobSubmitter' {Maybe Text
userArn :: Maybe Text
$sel:userArn:ImportJobSubmitter' :: ImportJobSubmitter -> Maybe Text
userArn} -> Maybe Text
userArn) (\s :: ImportJobSubmitter
s@ImportJobSubmitter' {} Maybe Text
a -> ImportJobSubmitter
s {$sel:userArn:ImportJobSubmitter' :: Maybe Text
userArn = Maybe Text
a} :: ImportJobSubmitter)
instance Core.FromJSON ImportJobSubmitter where
parseJSON :: Value -> Parser ImportJobSubmitter
parseJSON =
String
-> (Object -> Parser ImportJobSubmitter)
-> Value
-> Parser ImportJobSubmitter
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"ImportJobSubmitter"
( \Object
x ->
Maybe (Sensitive Text) -> Maybe Text -> ImportJobSubmitter
ImportJobSubmitter'
(Maybe (Sensitive Text) -> Maybe Text -> ImportJobSubmitter)
-> Parser (Maybe (Sensitive Text))
-> Parser (Maybe Text -> ImportJobSubmitter)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe (Sensitive Text))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"email")
Parser (Maybe Text -> ImportJobSubmitter)
-> Parser (Maybe Text) -> Parser ImportJobSubmitter
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
"userArn")
)
instance Prelude.Hashable ImportJobSubmitter
instance Prelude.NFData ImportJobSubmitter