{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.WorkMail.DescribeUser
(
DescribeUser (..),
newDescribeUser,
describeUser_organizationId,
describeUser_userId,
DescribeUserResponse (..),
newDescribeUserResponse,
describeUserResponse_email,
describeUserResponse_state,
describeUserResponse_userId,
describeUserResponse_disabledDate,
describeUserResponse_name,
describeUserResponse_displayName,
describeUserResponse_userRole,
describeUserResponse_enabledDate,
describeUserResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
import Amazonka.WorkMail.Types
data DescribeUser = DescribeUser'
{
DescribeUser -> Text
organizationId :: Prelude.Text,
DescribeUser -> Text
userId :: Prelude.Text
}
deriving (DescribeUser -> DescribeUser -> Bool
(DescribeUser -> DescribeUser -> Bool)
-> (DescribeUser -> DescribeUser -> Bool) -> Eq DescribeUser
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeUser -> DescribeUser -> Bool
$c/= :: DescribeUser -> DescribeUser -> Bool
== :: DescribeUser -> DescribeUser -> Bool
$c== :: DescribeUser -> DescribeUser -> Bool
Prelude.Eq, ReadPrec [DescribeUser]
ReadPrec DescribeUser
Int -> ReadS DescribeUser
ReadS [DescribeUser]
(Int -> ReadS DescribeUser)
-> ReadS [DescribeUser]
-> ReadPrec DescribeUser
-> ReadPrec [DescribeUser]
-> Read DescribeUser
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeUser]
$creadListPrec :: ReadPrec [DescribeUser]
readPrec :: ReadPrec DescribeUser
$creadPrec :: ReadPrec DescribeUser
readList :: ReadS [DescribeUser]
$creadList :: ReadS [DescribeUser]
readsPrec :: Int -> ReadS DescribeUser
$creadsPrec :: Int -> ReadS DescribeUser
Prelude.Read, Int -> DescribeUser -> ShowS
[DescribeUser] -> ShowS
DescribeUser -> String
(Int -> DescribeUser -> ShowS)
-> (DescribeUser -> String)
-> ([DescribeUser] -> ShowS)
-> Show DescribeUser
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeUser] -> ShowS
$cshowList :: [DescribeUser] -> ShowS
show :: DescribeUser -> String
$cshow :: DescribeUser -> String
showsPrec :: Int -> DescribeUser -> ShowS
$cshowsPrec :: Int -> DescribeUser -> ShowS
Prelude.Show, (forall x. DescribeUser -> Rep DescribeUser x)
-> (forall x. Rep DescribeUser x -> DescribeUser)
-> Generic DescribeUser
forall x. Rep DescribeUser x -> DescribeUser
forall x. DescribeUser -> Rep DescribeUser x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeUser x -> DescribeUser
$cfrom :: forall x. DescribeUser -> Rep DescribeUser x
Prelude.Generic)
newDescribeUser ::
Prelude.Text ->
Prelude.Text ->
DescribeUser
newDescribeUser :: Text -> Text -> DescribeUser
newDescribeUser Text
pOrganizationId_ Text
pUserId_ =
DescribeUser' :: Text -> Text -> DescribeUser
DescribeUser'
{ $sel:organizationId:DescribeUser' :: Text
organizationId = Text
pOrganizationId_,
$sel:userId:DescribeUser' :: Text
userId = Text
pUserId_
}
describeUser_organizationId :: Lens.Lens' DescribeUser Prelude.Text
describeUser_organizationId :: (Text -> f Text) -> DescribeUser -> f DescribeUser
describeUser_organizationId = (DescribeUser -> Text)
-> (DescribeUser -> Text -> DescribeUser)
-> Lens DescribeUser DescribeUser Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeUser' {Text
organizationId :: Text
$sel:organizationId:DescribeUser' :: DescribeUser -> Text
organizationId} -> Text
organizationId) (\s :: DescribeUser
s@DescribeUser' {} Text
a -> DescribeUser
s {$sel:organizationId:DescribeUser' :: Text
organizationId = Text
a} :: DescribeUser)
describeUser_userId :: Lens.Lens' DescribeUser Prelude.Text
describeUser_userId :: (Text -> f Text) -> DescribeUser -> f DescribeUser
describeUser_userId = (DescribeUser -> Text)
-> (DescribeUser -> Text -> DescribeUser)
-> Lens DescribeUser DescribeUser Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeUser' {Text
userId :: Text
$sel:userId:DescribeUser' :: DescribeUser -> Text
userId} -> Text
userId) (\s :: DescribeUser
s@DescribeUser' {} Text
a -> DescribeUser
s {$sel:userId:DescribeUser' :: Text
userId = Text
a} :: DescribeUser)
instance Core.AWSRequest DescribeUser where
type AWSResponse DescribeUser = DescribeUserResponse
request :: DescribeUser -> Request DescribeUser
request = Service -> DescribeUser -> Request DescribeUser
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy DescribeUser
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse DescribeUser)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse DescribeUser))
-> Logger
-> Service
-> Proxy DescribeUser
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse DescribeUser)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
( \Int
s ResponseHeaders
h Object
x ->
Maybe Text
-> Maybe EntityState
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe UserRole
-> Maybe POSIX
-> Int
-> DescribeUserResponse
DescribeUserResponse'
(Maybe Text
-> Maybe EntityState
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe UserRole
-> Maybe POSIX
-> Int
-> DescribeUserResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe EntityState
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe UserRole
-> Maybe POSIX
-> Int
-> DescribeUserResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Email")
Either
String
(Maybe EntityState
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe UserRole
-> Maybe POSIX
-> Int
-> DescribeUserResponse)
-> Either String (Maybe EntityState)
-> Either
String
(Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe UserRole
-> Maybe POSIX
-> Int
-> DescribeUserResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe EntityState)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"State")
Either
String
(Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe UserRole
-> Maybe POSIX
-> Int
-> DescribeUserResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe UserRole
-> Maybe POSIX
-> Int
-> DescribeUserResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"UserId")
Either
String
(Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe UserRole
-> Maybe POSIX
-> Int
-> DescribeUserResponse)
-> Either String (Maybe POSIX)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe UserRole
-> Maybe POSIX
-> Int
-> DescribeUserResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"DisabledDate")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe UserRole
-> Maybe POSIX
-> Int
-> DescribeUserResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe UserRole -> Maybe POSIX -> Int -> DescribeUserResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Name")
Either
String
(Maybe Text
-> Maybe UserRole -> Maybe POSIX -> Int -> DescribeUserResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe UserRole -> Maybe POSIX -> Int -> DescribeUserResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"DisplayName")
Either
String
(Maybe UserRole -> Maybe POSIX -> Int -> DescribeUserResponse)
-> Either String (Maybe UserRole)
-> Either String (Maybe POSIX -> Int -> DescribeUserResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe UserRole)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"UserRole")
Either String (Maybe POSIX -> Int -> DescribeUserResponse)
-> Either String (Maybe POSIX)
-> Either String (Int -> DescribeUserResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"EnabledDate")
Either String (Int -> DescribeUserResponse)
-> Either String Int -> Either String DescribeUserResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Int -> Either String Int
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (Int -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
)
instance Prelude.Hashable DescribeUser
instance Prelude.NFData DescribeUser
instance Core.ToHeaders DescribeUser where
toHeaders :: DescribeUser -> ResponseHeaders
toHeaders =
ResponseHeaders -> DescribeUser -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"X-Amz-Target"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"WorkMailService.DescribeUser" ::
Prelude.ByteString
),
HeaderName
"Content-Type"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Core.ToJSON DescribeUser where
toJSON :: DescribeUser -> Value
toJSON DescribeUser' {Text
userId :: Text
organizationId :: Text
$sel:userId:DescribeUser' :: DescribeUser -> Text
$sel:organizationId:DescribeUser' :: DescribeUser -> Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
(Text
"OrganizationId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
organizationId),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"UserId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
userId)
]
)
instance Core.ToPath DescribeUser where
toPath :: DescribeUser -> ByteString
toPath = ByteString -> DescribeUser -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery DescribeUser where
toQuery :: DescribeUser -> QueryString
toQuery = QueryString -> DescribeUser -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data DescribeUserResponse = DescribeUserResponse'
{
DescribeUserResponse -> Maybe Text
email :: Prelude.Maybe Prelude.Text,
DescribeUserResponse -> Maybe EntityState
state :: Prelude.Maybe EntityState,
DescribeUserResponse -> Maybe Text
userId :: Prelude.Maybe Prelude.Text,
DescribeUserResponse -> Maybe POSIX
disabledDate :: Prelude.Maybe Core.POSIX,
DescribeUserResponse -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
DescribeUserResponse -> Maybe Text
displayName :: Prelude.Maybe Prelude.Text,
DescribeUserResponse -> Maybe UserRole
userRole :: Prelude.Maybe UserRole,
DescribeUserResponse -> Maybe POSIX
enabledDate :: Prelude.Maybe Core.POSIX,
DescribeUserResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DescribeUserResponse -> DescribeUserResponse -> Bool
(DescribeUserResponse -> DescribeUserResponse -> Bool)
-> (DescribeUserResponse -> DescribeUserResponse -> Bool)
-> Eq DescribeUserResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeUserResponse -> DescribeUserResponse -> Bool
$c/= :: DescribeUserResponse -> DescribeUserResponse -> Bool
== :: DescribeUserResponse -> DescribeUserResponse -> Bool
$c== :: DescribeUserResponse -> DescribeUserResponse -> Bool
Prelude.Eq, ReadPrec [DescribeUserResponse]
ReadPrec DescribeUserResponse
Int -> ReadS DescribeUserResponse
ReadS [DescribeUserResponse]
(Int -> ReadS DescribeUserResponse)
-> ReadS [DescribeUserResponse]
-> ReadPrec DescribeUserResponse
-> ReadPrec [DescribeUserResponse]
-> Read DescribeUserResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeUserResponse]
$creadListPrec :: ReadPrec [DescribeUserResponse]
readPrec :: ReadPrec DescribeUserResponse
$creadPrec :: ReadPrec DescribeUserResponse
readList :: ReadS [DescribeUserResponse]
$creadList :: ReadS [DescribeUserResponse]
readsPrec :: Int -> ReadS DescribeUserResponse
$creadsPrec :: Int -> ReadS DescribeUserResponse
Prelude.Read, Int -> DescribeUserResponse -> ShowS
[DescribeUserResponse] -> ShowS
DescribeUserResponse -> String
(Int -> DescribeUserResponse -> ShowS)
-> (DescribeUserResponse -> String)
-> ([DescribeUserResponse] -> ShowS)
-> Show DescribeUserResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeUserResponse] -> ShowS
$cshowList :: [DescribeUserResponse] -> ShowS
show :: DescribeUserResponse -> String
$cshow :: DescribeUserResponse -> String
showsPrec :: Int -> DescribeUserResponse -> ShowS
$cshowsPrec :: Int -> DescribeUserResponse -> ShowS
Prelude.Show, (forall x. DescribeUserResponse -> Rep DescribeUserResponse x)
-> (forall x. Rep DescribeUserResponse x -> DescribeUserResponse)
-> Generic DescribeUserResponse
forall x. Rep DescribeUserResponse x -> DescribeUserResponse
forall x. DescribeUserResponse -> Rep DescribeUserResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeUserResponse x -> DescribeUserResponse
$cfrom :: forall x. DescribeUserResponse -> Rep DescribeUserResponse x
Prelude.Generic)
newDescribeUserResponse ::
Prelude.Int ->
DescribeUserResponse
newDescribeUserResponse :: Int -> DescribeUserResponse
newDescribeUserResponse Int
pHttpStatus_ =
DescribeUserResponse' :: Maybe Text
-> Maybe EntityState
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe UserRole
-> Maybe POSIX
-> Int
-> DescribeUserResponse
DescribeUserResponse'
{ $sel:email:DescribeUserResponse' :: Maybe Text
email = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:state:DescribeUserResponse' :: Maybe EntityState
state = Maybe EntityState
forall a. Maybe a
Prelude.Nothing,
$sel:userId:DescribeUserResponse' :: Maybe Text
userId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:disabledDate:DescribeUserResponse' :: Maybe POSIX
disabledDate = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:name:DescribeUserResponse' :: Maybe Text
name = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:displayName:DescribeUserResponse' :: Maybe Text
displayName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:userRole:DescribeUserResponse' :: Maybe UserRole
userRole = Maybe UserRole
forall a. Maybe a
Prelude.Nothing,
$sel:enabledDate:DescribeUserResponse' :: Maybe POSIX
enabledDate = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DescribeUserResponse' :: Int
httpStatus = Int
pHttpStatus_
}
describeUserResponse_email :: Lens.Lens' DescribeUserResponse (Prelude.Maybe Prelude.Text)
describeUserResponse_email :: (Maybe Text -> f (Maybe Text))
-> DescribeUserResponse -> f DescribeUserResponse
describeUserResponse_email = (DescribeUserResponse -> Maybe Text)
-> (DescribeUserResponse -> Maybe Text -> DescribeUserResponse)
-> Lens
DescribeUserResponse DescribeUserResponse (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeUserResponse' {Maybe Text
email :: Maybe Text
$sel:email:DescribeUserResponse' :: DescribeUserResponse -> Maybe Text
email} -> Maybe Text
email) (\s :: DescribeUserResponse
s@DescribeUserResponse' {} Maybe Text
a -> DescribeUserResponse
s {$sel:email:DescribeUserResponse' :: Maybe Text
email = Maybe Text
a} :: DescribeUserResponse)
describeUserResponse_state :: Lens.Lens' DescribeUserResponse (Prelude.Maybe EntityState)
describeUserResponse_state :: (Maybe EntityState -> f (Maybe EntityState))
-> DescribeUserResponse -> f DescribeUserResponse
describeUserResponse_state = (DescribeUserResponse -> Maybe EntityState)
-> (DescribeUserResponse
-> Maybe EntityState -> DescribeUserResponse)
-> Lens
DescribeUserResponse
DescribeUserResponse
(Maybe EntityState)
(Maybe EntityState)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeUserResponse' {Maybe EntityState
state :: Maybe EntityState
$sel:state:DescribeUserResponse' :: DescribeUserResponse -> Maybe EntityState
state} -> Maybe EntityState
state) (\s :: DescribeUserResponse
s@DescribeUserResponse' {} Maybe EntityState
a -> DescribeUserResponse
s {$sel:state:DescribeUserResponse' :: Maybe EntityState
state = Maybe EntityState
a} :: DescribeUserResponse)
describeUserResponse_userId :: Lens.Lens' DescribeUserResponse (Prelude.Maybe Prelude.Text)
describeUserResponse_userId :: (Maybe Text -> f (Maybe Text))
-> DescribeUserResponse -> f DescribeUserResponse
describeUserResponse_userId = (DescribeUserResponse -> Maybe Text)
-> (DescribeUserResponse -> Maybe Text -> DescribeUserResponse)
-> Lens
DescribeUserResponse DescribeUserResponse (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeUserResponse' {Maybe Text
userId :: Maybe Text
$sel:userId:DescribeUserResponse' :: DescribeUserResponse -> Maybe Text
userId} -> Maybe Text
userId) (\s :: DescribeUserResponse
s@DescribeUserResponse' {} Maybe Text
a -> DescribeUserResponse
s {$sel:userId:DescribeUserResponse' :: Maybe Text
userId = Maybe Text
a} :: DescribeUserResponse)
describeUserResponse_disabledDate :: Lens.Lens' DescribeUserResponse (Prelude.Maybe Prelude.UTCTime)
describeUserResponse_disabledDate :: (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeUserResponse -> f DescribeUserResponse
describeUserResponse_disabledDate = (DescribeUserResponse -> Maybe POSIX)
-> (DescribeUserResponse -> Maybe POSIX -> DescribeUserResponse)
-> Lens
DescribeUserResponse
DescribeUserResponse
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeUserResponse' {Maybe POSIX
disabledDate :: Maybe POSIX
$sel:disabledDate:DescribeUserResponse' :: DescribeUserResponse -> Maybe POSIX
disabledDate} -> Maybe POSIX
disabledDate) (\s :: DescribeUserResponse
s@DescribeUserResponse' {} Maybe POSIX
a -> DescribeUserResponse
s {$sel:disabledDate:DescribeUserResponse' :: Maybe POSIX
disabledDate = Maybe POSIX
a} :: DescribeUserResponse) ((Maybe POSIX -> f (Maybe POSIX))
-> DescribeUserResponse -> f DescribeUserResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeUserResponse
-> f DescribeUserResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
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 POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
describeUserResponse_name :: Lens.Lens' DescribeUserResponse (Prelude.Maybe Prelude.Text)
describeUserResponse_name :: (Maybe Text -> f (Maybe Text))
-> DescribeUserResponse -> f DescribeUserResponse
describeUserResponse_name = (DescribeUserResponse -> Maybe Text)
-> (DescribeUserResponse -> Maybe Text -> DescribeUserResponse)
-> Lens
DescribeUserResponse DescribeUserResponse (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeUserResponse' {Maybe Text
name :: Maybe Text
$sel:name:DescribeUserResponse' :: DescribeUserResponse -> Maybe Text
name} -> Maybe Text
name) (\s :: DescribeUserResponse
s@DescribeUserResponse' {} Maybe Text
a -> DescribeUserResponse
s {$sel:name:DescribeUserResponse' :: Maybe Text
name = Maybe Text
a} :: DescribeUserResponse)
describeUserResponse_displayName :: Lens.Lens' DescribeUserResponse (Prelude.Maybe Prelude.Text)
describeUserResponse_displayName :: (Maybe Text -> f (Maybe Text))
-> DescribeUserResponse -> f DescribeUserResponse
describeUserResponse_displayName = (DescribeUserResponse -> Maybe Text)
-> (DescribeUserResponse -> Maybe Text -> DescribeUserResponse)
-> Lens
DescribeUserResponse DescribeUserResponse (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeUserResponse' {Maybe Text
displayName :: Maybe Text
$sel:displayName:DescribeUserResponse' :: DescribeUserResponse -> Maybe Text
displayName} -> Maybe Text
displayName) (\s :: DescribeUserResponse
s@DescribeUserResponse' {} Maybe Text
a -> DescribeUserResponse
s {$sel:displayName:DescribeUserResponse' :: Maybe Text
displayName = Maybe Text
a} :: DescribeUserResponse)
describeUserResponse_userRole :: Lens.Lens' DescribeUserResponse (Prelude.Maybe UserRole)
describeUserResponse_userRole :: (Maybe UserRole -> f (Maybe UserRole))
-> DescribeUserResponse -> f DescribeUserResponse
describeUserResponse_userRole = (DescribeUserResponse -> Maybe UserRole)
-> (DescribeUserResponse -> Maybe UserRole -> DescribeUserResponse)
-> Lens
DescribeUserResponse
DescribeUserResponse
(Maybe UserRole)
(Maybe UserRole)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeUserResponse' {Maybe UserRole
userRole :: Maybe UserRole
$sel:userRole:DescribeUserResponse' :: DescribeUserResponse -> Maybe UserRole
userRole} -> Maybe UserRole
userRole) (\s :: DescribeUserResponse
s@DescribeUserResponse' {} Maybe UserRole
a -> DescribeUserResponse
s {$sel:userRole:DescribeUserResponse' :: Maybe UserRole
userRole = Maybe UserRole
a} :: DescribeUserResponse)
describeUserResponse_enabledDate :: Lens.Lens' DescribeUserResponse (Prelude.Maybe Prelude.UTCTime)
describeUserResponse_enabledDate :: (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeUserResponse -> f DescribeUserResponse
describeUserResponse_enabledDate = (DescribeUserResponse -> Maybe POSIX)
-> (DescribeUserResponse -> Maybe POSIX -> DescribeUserResponse)
-> Lens
DescribeUserResponse
DescribeUserResponse
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeUserResponse' {Maybe POSIX
enabledDate :: Maybe POSIX
$sel:enabledDate:DescribeUserResponse' :: DescribeUserResponse -> Maybe POSIX
enabledDate} -> Maybe POSIX
enabledDate) (\s :: DescribeUserResponse
s@DescribeUserResponse' {} Maybe POSIX
a -> DescribeUserResponse
s {$sel:enabledDate:DescribeUserResponse' :: Maybe POSIX
enabledDate = Maybe POSIX
a} :: DescribeUserResponse) ((Maybe POSIX -> f (Maybe POSIX))
-> DescribeUserResponse -> f DescribeUserResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeUserResponse
-> f DescribeUserResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
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 POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
describeUserResponse_httpStatus :: Lens.Lens' DescribeUserResponse Prelude.Int
describeUserResponse_httpStatus :: (Int -> f Int) -> DescribeUserResponse -> f DescribeUserResponse
describeUserResponse_httpStatus = (DescribeUserResponse -> Int)
-> (DescribeUserResponse -> Int -> DescribeUserResponse)
-> Lens DescribeUserResponse DescribeUserResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeUserResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeUserResponse' :: DescribeUserResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeUserResponse
s@DescribeUserResponse' {} Int
a -> DescribeUserResponse
s {$sel:httpStatus:DescribeUserResponse' :: Int
httpStatus = Int
a} :: DescribeUserResponse)
instance Prelude.NFData DescribeUserResponse