{-# 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.MacieV2.GetMember
(
GetMember (..),
newGetMember,
getMember_id,
GetMemberResponse (..),
newGetMemberResponse,
getMemberResponse_email,
getMemberResponse_administratorAccountId,
getMemberResponse_arn,
getMemberResponse_relationshipStatus,
getMemberResponse_masterAccountId,
getMemberResponse_invitedAt,
getMemberResponse_accountId,
getMemberResponse_updatedAt,
getMemberResponse_tags,
getMemberResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.MacieV2.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data GetMember = GetMember'
{
GetMember -> Text
id :: Prelude.Text
}
deriving (GetMember -> GetMember -> Bool
(GetMember -> GetMember -> Bool)
-> (GetMember -> GetMember -> Bool) -> Eq GetMember
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetMember -> GetMember -> Bool
$c/= :: GetMember -> GetMember -> Bool
== :: GetMember -> GetMember -> Bool
$c== :: GetMember -> GetMember -> Bool
Prelude.Eq, ReadPrec [GetMember]
ReadPrec GetMember
Int -> ReadS GetMember
ReadS [GetMember]
(Int -> ReadS GetMember)
-> ReadS [GetMember]
-> ReadPrec GetMember
-> ReadPrec [GetMember]
-> Read GetMember
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetMember]
$creadListPrec :: ReadPrec [GetMember]
readPrec :: ReadPrec GetMember
$creadPrec :: ReadPrec GetMember
readList :: ReadS [GetMember]
$creadList :: ReadS [GetMember]
readsPrec :: Int -> ReadS GetMember
$creadsPrec :: Int -> ReadS GetMember
Prelude.Read, Int -> GetMember -> ShowS
[GetMember] -> ShowS
GetMember -> String
(Int -> GetMember -> ShowS)
-> (GetMember -> String)
-> ([GetMember] -> ShowS)
-> Show GetMember
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetMember] -> ShowS
$cshowList :: [GetMember] -> ShowS
show :: GetMember -> String
$cshow :: GetMember -> String
showsPrec :: Int -> GetMember -> ShowS
$cshowsPrec :: Int -> GetMember -> ShowS
Prelude.Show, (forall x. GetMember -> Rep GetMember x)
-> (forall x. Rep GetMember x -> GetMember) -> Generic GetMember
forall x. Rep GetMember x -> GetMember
forall x. GetMember -> Rep GetMember x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetMember x -> GetMember
$cfrom :: forall x. GetMember -> Rep GetMember x
Prelude.Generic)
newGetMember ::
Prelude.Text ->
GetMember
newGetMember :: Text -> GetMember
newGetMember Text
pId_ = GetMember' :: Text -> GetMember
GetMember' {$sel:id:GetMember' :: Text
id = Text
pId_}
getMember_id :: Lens.Lens' GetMember Prelude.Text
getMember_id :: (Text -> f Text) -> GetMember -> f GetMember
getMember_id = (GetMember -> Text)
-> (GetMember -> Text -> GetMember)
-> Lens GetMember GetMember Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetMember' {Text
id :: Text
$sel:id:GetMember' :: GetMember -> Text
id} -> Text
id) (\s :: GetMember
s@GetMember' {} Text
a -> GetMember
s {$sel:id:GetMember' :: Text
id = Text
a} :: GetMember)
instance Core.AWSRequest GetMember where
type AWSResponse GetMember = GetMemberResponse
request :: GetMember -> Request GetMember
request = Service -> GetMember -> Request GetMember
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy GetMember
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse GetMember)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse GetMember))
-> Logger
-> Service
-> Proxy GetMember
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse GetMember)))
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 Text
-> Maybe Text
-> Maybe RelationshipStatus
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe (HashMap Text Text)
-> Int
-> GetMemberResponse
GetMemberResponse'
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe RelationshipStatus
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe (HashMap Text Text)
-> Int
-> GetMemberResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe RelationshipStatus
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe (HashMap Text Text)
-> Int
-> GetMemberResponse)
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 Text
-> Maybe Text
-> Maybe RelationshipStatus
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe (HashMap Text Text)
-> Int
-> GetMemberResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe RelationshipStatus
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe (HashMap Text Text)
-> Int
-> GetMemberResponse)
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
"administratorAccountId")
Either
String
(Maybe Text
-> Maybe RelationshipStatus
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe (HashMap Text Text)
-> Int
-> GetMemberResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe RelationshipStatus
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe (HashMap Text Text)
-> Int
-> GetMemberResponse)
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
"arn")
Either
String
(Maybe RelationshipStatus
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe (HashMap Text Text)
-> Int
-> GetMemberResponse)
-> Either String (Maybe RelationshipStatus)
-> Either
String
(Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe (HashMap Text Text)
-> Int
-> GetMemberResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe RelationshipStatus)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"relationshipStatus")
Either
String
(Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe (HashMap Text Text)
-> Int
-> GetMemberResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe (HashMap Text Text)
-> Int
-> GetMemberResponse)
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
"masterAccountId")
Either
String
(Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe (HashMap Text Text)
-> Int
-> GetMemberResponse)
-> Either String (Maybe POSIX)
-> Either
String
(Maybe Text
-> Maybe POSIX
-> Maybe (HashMap Text Text)
-> Int
-> GetMemberResponse)
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
"invitedAt")
Either
String
(Maybe Text
-> Maybe POSIX
-> Maybe (HashMap Text Text)
-> Int
-> GetMemberResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe POSIX
-> Maybe (HashMap Text Text) -> Int -> GetMemberResponse)
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
"accountId")
Either
String
(Maybe POSIX
-> Maybe (HashMap Text Text) -> Int -> GetMemberResponse)
-> Either String (Maybe POSIX)
-> Either
String (Maybe (HashMap Text Text) -> Int -> GetMemberResponse)
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
"updatedAt")
Either
String (Maybe (HashMap Text Text) -> Int -> GetMemberResponse)
-> Either String (Maybe (HashMap Text Text))
-> Either String (Int -> GetMemberResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Maybe (HashMap Text Text)))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"tags" Either String (Maybe (Maybe (HashMap Text Text)))
-> Maybe (HashMap Text Text)
-> Either String (Maybe (HashMap Text Text))
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe (HashMap Text Text)
forall a. Monoid a => a
Prelude.mempty)
Either String (Int -> GetMemberResponse)
-> Either String Int -> Either String GetMemberResponse
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 GetMember
instance Prelude.NFData GetMember
instance Core.ToHeaders GetMember where
toHeaders :: GetMember -> ResponseHeaders
toHeaders =
ResponseHeaders -> GetMember -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ 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.ToPath GetMember where
toPath :: GetMember -> ByteString
toPath GetMember' {Text
id :: Text
$sel:id:GetMember' :: GetMember -> Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat [ByteString
"/members/", Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
id]
instance Core.ToQuery GetMember where
toQuery :: GetMember -> QueryString
toQuery = QueryString -> GetMember -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data GetMemberResponse = GetMemberResponse'
{
GetMemberResponse -> Maybe Text
email :: Prelude.Maybe Prelude.Text,
GetMemberResponse -> Maybe Text
administratorAccountId :: Prelude.Maybe Prelude.Text,
GetMemberResponse -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
GetMemberResponse -> Maybe RelationshipStatus
relationshipStatus :: Prelude.Maybe RelationshipStatus,
GetMemberResponse -> Maybe Text
masterAccountId :: Prelude.Maybe Prelude.Text,
GetMemberResponse -> Maybe POSIX
invitedAt :: Prelude.Maybe Core.POSIX,
GetMemberResponse -> Maybe Text
accountId :: Prelude.Maybe Prelude.Text,
GetMemberResponse -> Maybe POSIX
updatedAt :: Prelude.Maybe Core.POSIX,
GetMemberResponse -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
GetMemberResponse -> Int
httpStatus :: Prelude.Int
}
deriving (GetMemberResponse -> GetMemberResponse -> Bool
(GetMemberResponse -> GetMemberResponse -> Bool)
-> (GetMemberResponse -> GetMemberResponse -> Bool)
-> Eq GetMemberResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetMemberResponse -> GetMemberResponse -> Bool
$c/= :: GetMemberResponse -> GetMemberResponse -> Bool
== :: GetMemberResponse -> GetMemberResponse -> Bool
$c== :: GetMemberResponse -> GetMemberResponse -> Bool
Prelude.Eq, ReadPrec [GetMemberResponse]
ReadPrec GetMemberResponse
Int -> ReadS GetMemberResponse
ReadS [GetMemberResponse]
(Int -> ReadS GetMemberResponse)
-> ReadS [GetMemberResponse]
-> ReadPrec GetMemberResponse
-> ReadPrec [GetMemberResponse]
-> Read GetMemberResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetMemberResponse]
$creadListPrec :: ReadPrec [GetMemberResponse]
readPrec :: ReadPrec GetMemberResponse
$creadPrec :: ReadPrec GetMemberResponse
readList :: ReadS [GetMemberResponse]
$creadList :: ReadS [GetMemberResponse]
readsPrec :: Int -> ReadS GetMemberResponse
$creadsPrec :: Int -> ReadS GetMemberResponse
Prelude.Read, Int -> GetMemberResponse -> ShowS
[GetMemberResponse] -> ShowS
GetMemberResponse -> String
(Int -> GetMemberResponse -> ShowS)
-> (GetMemberResponse -> String)
-> ([GetMemberResponse] -> ShowS)
-> Show GetMemberResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetMemberResponse] -> ShowS
$cshowList :: [GetMemberResponse] -> ShowS
show :: GetMemberResponse -> String
$cshow :: GetMemberResponse -> String
showsPrec :: Int -> GetMemberResponse -> ShowS
$cshowsPrec :: Int -> GetMemberResponse -> ShowS
Prelude.Show, (forall x. GetMemberResponse -> Rep GetMemberResponse x)
-> (forall x. Rep GetMemberResponse x -> GetMemberResponse)
-> Generic GetMemberResponse
forall x. Rep GetMemberResponse x -> GetMemberResponse
forall x. GetMemberResponse -> Rep GetMemberResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetMemberResponse x -> GetMemberResponse
$cfrom :: forall x. GetMemberResponse -> Rep GetMemberResponse x
Prelude.Generic)
newGetMemberResponse ::
Prelude.Int ->
GetMemberResponse
newGetMemberResponse :: Int -> GetMemberResponse
newGetMemberResponse Int
pHttpStatus_ =
GetMemberResponse' :: Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe RelationshipStatus
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe (HashMap Text Text)
-> Int
-> GetMemberResponse
GetMemberResponse'
{ $sel:email:GetMemberResponse' :: Maybe Text
email = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:administratorAccountId:GetMemberResponse' :: Maybe Text
administratorAccountId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:arn:GetMemberResponse' :: Maybe Text
arn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:relationshipStatus:GetMemberResponse' :: Maybe RelationshipStatus
relationshipStatus = Maybe RelationshipStatus
forall a. Maybe a
Prelude.Nothing,
$sel:masterAccountId:GetMemberResponse' :: Maybe Text
masterAccountId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:invitedAt:GetMemberResponse' :: Maybe POSIX
invitedAt = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:accountId:GetMemberResponse' :: Maybe Text
accountId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:updatedAt:GetMemberResponse' :: Maybe POSIX
updatedAt = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:tags:GetMemberResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:GetMemberResponse' :: Int
httpStatus = Int
pHttpStatus_
}
getMemberResponse_email :: Lens.Lens' GetMemberResponse (Prelude.Maybe Prelude.Text)
getMemberResponse_email :: (Maybe Text -> f (Maybe Text))
-> GetMemberResponse -> f GetMemberResponse
getMemberResponse_email = (GetMemberResponse -> Maybe Text)
-> (GetMemberResponse -> Maybe Text -> GetMemberResponse)
-> Lens
GetMemberResponse GetMemberResponse (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetMemberResponse' {Maybe Text
email :: Maybe Text
$sel:email:GetMemberResponse' :: GetMemberResponse -> Maybe Text
email} -> Maybe Text
email) (\s :: GetMemberResponse
s@GetMemberResponse' {} Maybe Text
a -> GetMemberResponse
s {$sel:email:GetMemberResponse' :: Maybe Text
email = Maybe Text
a} :: GetMemberResponse)
getMemberResponse_administratorAccountId :: Lens.Lens' GetMemberResponse (Prelude.Maybe Prelude.Text)
getMemberResponse_administratorAccountId :: (Maybe Text -> f (Maybe Text))
-> GetMemberResponse -> f GetMemberResponse
getMemberResponse_administratorAccountId = (GetMemberResponse -> Maybe Text)
-> (GetMemberResponse -> Maybe Text -> GetMemberResponse)
-> Lens
GetMemberResponse GetMemberResponse (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetMemberResponse' {Maybe Text
administratorAccountId :: Maybe Text
$sel:administratorAccountId:GetMemberResponse' :: GetMemberResponse -> Maybe Text
administratorAccountId} -> Maybe Text
administratorAccountId) (\s :: GetMemberResponse
s@GetMemberResponse' {} Maybe Text
a -> GetMemberResponse
s {$sel:administratorAccountId:GetMemberResponse' :: Maybe Text
administratorAccountId = Maybe Text
a} :: GetMemberResponse)
getMemberResponse_arn :: Lens.Lens' GetMemberResponse (Prelude.Maybe Prelude.Text)
getMemberResponse_arn :: (Maybe Text -> f (Maybe Text))
-> GetMemberResponse -> f GetMemberResponse
getMemberResponse_arn = (GetMemberResponse -> Maybe Text)
-> (GetMemberResponse -> Maybe Text -> GetMemberResponse)
-> Lens
GetMemberResponse GetMemberResponse (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetMemberResponse' {Maybe Text
arn :: Maybe Text
$sel:arn:GetMemberResponse' :: GetMemberResponse -> Maybe Text
arn} -> Maybe Text
arn) (\s :: GetMemberResponse
s@GetMemberResponse' {} Maybe Text
a -> GetMemberResponse
s {$sel:arn:GetMemberResponse' :: Maybe Text
arn = Maybe Text
a} :: GetMemberResponse)
getMemberResponse_relationshipStatus :: Lens.Lens' GetMemberResponse (Prelude.Maybe RelationshipStatus)
getMemberResponse_relationshipStatus :: (Maybe RelationshipStatus -> f (Maybe RelationshipStatus))
-> GetMemberResponse -> f GetMemberResponse
getMemberResponse_relationshipStatus = (GetMemberResponse -> Maybe RelationshipStatus)
-> (GetMemberResponse
-> Maybe RelationshipStatus -> GetMemberResponse)
-> Lens
GetMemberResponse
GetMemberResponse
(Maybe RelationshipStatus)
(Maybe RelationshipStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetMemberResponse' {Maybe RelationshipStatus
relationshipStatus :: Maybe RelationshipStatus
$sel:relationshipStatus:GetMemberResponse' :: GetMemberResponse -> Maybe RelationshipStatus
relationshipStatus} -> Maybe RelationshipStatus
relationshipStatus) (\s :: GetMemberResponse
s@GetMemberResponse' {} Maybe RelationshipStatus
a -> GetMemberResponse
s {$sel:relationshipStatus:GetMemberResponse' :: Maybe RelationshipStatus
relationshipStatus = Maybe RelationshipStatus
a} :: GetMemberResponse)
getMemberResponse_masterAccountId :: Lens.Lens' GetMemberResponse (Prelude.Maybe Prelude.Text)
getMemberResponse_masterAccountId :: (Maybe Text -> f (Maybe Text))
-> GetMemberResponse -> f GetMemberResponse
getMemberResponse_masterAccountId = (GetMemberResponse -> Maybe Text)
-> (GetMemberResponse -> Maybe Text -> GetMemberResponse)
-> Lens
GetMemberResponse GetMemberResponse (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetMemberResponse' {Maybe Text
masterAccountId :: Maybe Text
$sel:masterAccountId:GetMemberResponse' :: GetMemberResponse -> Maybe Text
masterAccountId} -> Maybe Text
masterAccountId) (\s :: GetMemberResponse
s@GetMemberResponse' {} Maybe Text
a -> GetMemberResponse
s {$sel:masterAccountId:GetMemberResponse' :: Maybe Text
masterAccountId = Maybe Text
a} :: GetMemberResponse)
getMemberResponse_invitedAt :: Lens.Lens' GetMemberResponse (Prelude.Maybe Prelude.UTCTime)
getMemberResponse_invitedAt :: (Maybe UTCTime -> f (Maybe UTCTime))
-> GetMemberResponse -> f GetMemberResponse
getMemberResponse_invitedAt = (GetMemberResponse -> Maybe POSIX)
-> (GetMemberResponse -> Maybe POSIX -> GetMemberResponse)
-> Lens
GetMemberResponse GetMemberResponse (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetMemberResponse' {Maybe POSIX
invitedAt :: Maybe POSIX
$sel:invitedAt:GetMemberResponse' :: GetMemberResponse -> Maybe POSIX
invitedAt} -> Maybe POSIX
invitedAt) (\s :: GetMemberResponse
s@GetMemberResponse' {} Maybe POSIX
a -> GetMemberResponse
s {$sel:invitedAt:GetMemberResponse' :: Maybe POSIX
invitedAt = Maybe POSIX
a} :: GetMemberResponse) ((Maybe POSIX -> f (Maybe POSIX))
-> GetMemberResponse -> f GetMemberResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> GetMemberResponse
-> f GetMemberResponse
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
getMemberResponse_accountId :: Lens.Lens' GetMemberResponse (Prelude.Maybe Prelude.Text)
getMemberResponse_accountId :: (Maybe Text -> f (Maybe Text))
-> GetMemberResponse -> f GetMemberResponse
getMemberResponse_accountId = (GetMemberResponse -> Maybe Text)
-> (GetMemberResponse -> Maybe Text -> GetMemberResponse)
-> Lens
GetMemberResponse GetMemberResponse (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetMemberResponse' {Maybe Text
accountId :: Maybe Text
$sel:accountId:GetMemberResponse' :: GetMemberResponse -> Maybe Text
accountId} -> Maybe Text
accountId) (\s :: GetMemberResponse
s@GetMemberResponse' {} Maybe Text
a -> GetMemberResponse
s {$sel:accountId:GetMemberResponse' :: Maybe Text
accountId = Maybe Text
a} :: GetMemberResponse)
getMemberResponse_updatedAt :: Lens.Lens' GetMemberResponse (Prelude.Maybe Prelude.UTCTime)
getMemberResponse_updatedAt :: (Maybe UTCTime -> f (Maybe UTCTime))
-> GetMemberResponse -> f GetMemberResponse
getMemberResponse_updatedAt = (GetMemberResponse -> Maybe POSIX)
-> (GetMemberResponse -> Maybe POSIX -> GetMemberResponse)
-> Lens
GetMemberResponse GetMemberResponse (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetMemberResponse' {Maybe POSIX
updatedAt :: Maybe POSIX
$sel:updatedAt:GetMemberResponse' :: GetMemberResponse -> Maybe POSIX
updatedAt} -> Maybe POSIX
updatedAt) (\s :: GetMemberResponse
s@GetMemberResponse' {} Maybe POSIX
a -> GetMemberResponse
s {$sel:updatedAt:GetMemberResponse' :: Maybe POSIX
updatedAt = Maybe POSIX
a} :: GetMemberResponse) ((Maybe POSIX -> f (Maybe POSIX))
-> GetMemberResponse -> f GetMemberResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> GetMemberResponse
-> f GetMemberResponse
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
getMemberResponse_tags :: Lens.Lens' GetMemberResponse (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
getMemberResponse_tags :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> GetMemberResponse -> f GetMemberResponse
getMemberResponse_tags = (GetMemberResponse -> Maybe (HashMap Text Text))
-> (GetMemberResponse
-> Maybe (HashMap Text Text) -> GetMemberResponse)
-> Lens
GetMemberResponse
GetMemberResponse
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetMemberResponse' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:GetMemberResponse' :: GetMemberResponse -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: GetMemberResponse
s@GetMemberResponse' {} Maybe (HashMap Text Text)
a -> GetMemberResponse
s {$sel:tags:GetMemberResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: GetMemberResponse) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> GetMemberResponse -> f GetMemberResponse)
-> ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> GetMemberResponse
-> f GetMemberResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
-> Iso
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
(Maybe (HashMap Text 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
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
getMemberResponse_httpStatus :: Lens.Lens' GetMemberResponse Prelude.Int
getMemberResponse_httpStatus :: (Int -> f Int) -> GetMemberResponse -> f GetMemberResponse
getMemberResponse_httpStatus = (GetMemberResponse -> Int)
-> (GetMemberResponse -> Int -> GetMemberResponse)
-> Lens GetMemberResponse GetMemberResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetMemberResponse' {Int
httpStatus :: Int
$sel:httpStatus:GetMemberResponse' :: GetMemberResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: GetMemberResponse
s@GetMemberResponse' {} Int
a -> GetMemberResponse
s {$sel:httpStatus:GetMemberResponse' :: Int
httpStatus = Int
a} :: GetMemberResponse)
instance Prelude.NFData GetMemberResponse