{-# 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.ListGroupMembers
(
ListGroupMembers (..),
newListGroupMembers,
listGroupMembers_nextToken,
listGroupMembers_maxResults,
listGroupMembers_organizationId,
listGroupMembers_groupId,
ListGroupMembersResponse (..),
newListGroupMembersResponse,
listGroupMembersResponse_members,
listGroupMembersResponse_nextToken,
listGroupMembersResponse_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 ListGroupMembers = ListGroupMembers'
{
ListGroupMembers -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListGroupMembers -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
ListGroupMembers -> Text
organizationId :: Prelude.Text,
ListGroupMembers -> Text
groupId :: Prelude.Text
}
deriving (ListGroupMembers -> ListGroupMembers -> Bool
(ListGroupMembers -> ListGroupMembers -> Bool)
-> (ListGroupMembers -> ListGroupMembers -> Bool)
-> Eq ListGroupMembers
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListGroupMembers -> ListGroupMembers -> Bool
$c/= :: ListGroupMembers -> ListGroupMembers -> Bool
== :: ListGroupMembers -> ListGroupMembers -> Bool
$c== :: ListGroupMembers -> ListGroupMembers -> Bool
Prelude.Eq, ReadPrec [ListGroupMembers]
ReadPrec ListGroupMembers
Int -> ReadS ListGroupMembers
ReadS [ListGroupMembers]
(Int -> ReadS ListGroupMembers)
-> ReadS [ListGroupMembers]
-> ReadPrec ListGroupMembers
-> ReadPrec [ListGroupMembers]
-> Read ListGroupMembers
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListGroupMembers]
$creadListPrec :: ReadPrec [ListGroupMembers]
readPrec :: ReadPrec ListGroupMembers
$creadPrec :: ReadPrec ListGroupMembers
readList :: ReadS [ListGroupMembers]
$creadList :: ReadS [ListGroupMembers]
readsPrec :: Int -> ReadS ListGroupMembers
$creadsPrec :: Int -> ReadS ListGroupMembers
Prelude.Read, Int -> ListGroupMembers -> ShowS
[ListGroupMembers] -> ShowS
ListGroupMembers -> String
(Int -> ListGroupMembers -> ShowS)
-> (ListGroupMembers -> String)
-> ([ListGroupMembers] -> ShowS)
-> Show ListGroupMembers
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListGroupMembers] -> ShowS
$cshowList :: [ListGroupMembers] -> ShowS
show :: ListGroupMembers -> String
$cshow :: ListGroupMembers -> String
showsPrec :: Int -> ListGroupMembers -> ShowS
$cshowsPrec :: Int -> ListGroupMembers -> ShowS
Prelude.Show, (forall x. ListGroupMembers -> Rep ListGroupMembers x)
-> (forall x. Rep ListGroupMembers x -> ListGroupMembers)
-> Generic ListGroupMembers
forall x. Rep ListGroupMembers x -> ListGroupMembers
forall x. ListGroupMembers -> Rep ListGroupMembers x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListGroupMembers x -> ListGroupMembers
$cfrom :: forall x. ListGroupMembers -> Rep ListGroupMembers x
Prelude.Generic)
newListGroupMembers ::
Prelude.Text ->
Prelude.Text ->
ListGroupMembers
newListGroupMembers :: Text -> Text -> ListGroupMembers
newListGroupMembers Text
pOrganizationId_ Text
pGroupId_ =
ListGroupMembers' :: Maybe Text -> Maybe Natural -> Text -> Text -> ListGroupMembers
ListGroupMembers'
{ $sel:nextToken:ListGroupMembers' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListGroupMembers' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:organizationId:ListGroupMembers' :: Text
organizationId = Text
pOrganizationId_,
$sel:groupId:ListGroupMembers' :: Text
groupId = Text
pGroupId_
}
listGroupMembers_nextToken :: Lens.Lens' ListGroupMembers (Prelude.Maybe Prelude.Text)
listGroupMembers_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListGroupMembers -> f ListGroupMembers
listGroupMembers_nextToken = (ListGroupMembers -> Maybe Text)
-> (ListGroupMembers -> Maybe Text -> ListGroupMembers)
-> Lens ListGroupMembers ListGroupMembers (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListGroupMembers' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListGroupMembers' :: ListGroupMembers -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListGroupMembers
s@ListGroupMembers' {} Maybe Text
a -> ListGroupMembers
s {$sel:nextToken:ListGroupMembers' :: Maybe Text
nextToken = Maybe Text
a} :: ListGroupMembers)
listGroupMembers_maxResults :: Lens.Lens' ListGroupMembers (Prelude.Maybe Prelude.Natural)
listGroupMembers_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListGroupMembers -> f ListGroupMembers
listGroupMembers_maxResults = (ListGroupMembers -> Maybe Natural)
-> (ListGroupMembers -> Maybe Natural -> ListGroupMembers)
-> Lens
ListGroupMembers ListGroupMembers (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListGroupMembers' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListGroupMembers' :: ListGroupMembers -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListGroupMembers
s@ListGroupMembers' {} Maybe Natural
a -> ListGroupMembers
s {$sel:maxResults:ListGroupMembers' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListGroupMembers)
listGroupMembers_organizationId :: Lens.Lens' ListGroupMembers Prelude.Text
listGroupMembers_organizationId :: (Text -> f Text) -> ListGroupMembers -> f ListGroupMembers
listGroupMembers_organizationId = (ListGroupMembers -> Text)
-> (ListGroupMembers -> Text -> ListGroupMembers)
-> Lens ListGroupMembers ListGroupMembers Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListGroupMembers' {Text
organizationId :: Text
$sel:organizationId:ListGroupMembers' :: ListGroupMembers -> Text
organizationId} -> Text
organizationId) (\s :: ListGroupMembers
s@ListGroupMembers' {} Text
a -> ListGroupMembers
s {$sel:organizationId:ListGroupMembers' :: Text
organizationId = Text
a} :: ListGroupMembers)
listGroupMembers_groupId :: Lens.Lens' ListGroupMembers Prelude.Text
listGroupMembers_groupId :: (Text -> f Text) -> ListGroupMembers -> f ListGroupMembers
listGroupMembers_groupId = (ListGroupMembers -> Text)
-> (ListGroupMembers -> Text -> ListGroupMembers)
-> Lens ListGroupMembers ListGroupMembers Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListGroupMembers' {Text
groupId :: Text
$sel:groupId:ListGroupMembers' :: ListGroupMembers -> Text
groupId} -> Text
groupId) (\s :: ListGroupMembers
s@ListGroupMembers' {} Text
a -> ListGroupMembers
s {$sel:groupId:ListGroupMembers' :: Text
groupId = Text
a} :: ListGroupMembers)
instance Core.AWSPager ListGroupMembers where
page :: ListGroupMembers
-> AWSResponse ListGroupMembers -> Maybe ListGroupMembers
page ListGroupMembers
rq AWSResponse ListGroupMembers
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListGroupMembers
ListGroupMembersResponse
rs
ListGroupMembersResponse
-> Getting (First Text) ListGroupMembersResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListGroupMembersResponse
-> Const (First Text) ListGroupMembersResponse
Lens' ListGroupMembersResponse (Maybe Text)
listGroupMembersResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListGroupMembersResponse
-> Const (First Text) ListGroupMembersResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListGroupMembersResponse Text
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text)
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe ListGroupMembers
forall a. Maybe a
Prelude.Nothing
| Maybe [Member] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListGroupMembers
ListGroupMembersResponse
rs
ListGroupMembersResponse
-> Getting (First [Member]) ListGroupMembersResponse [Member]
-> Maybe [Member]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [Member] -> Const (First [Member]) (Maybe [Member]))
-> ListGroupMembersResponse
-> Const (First [Member]) ListGroupMembersResponse
Lens' ListGroupMembersResponse (Maybe [Member])
listGroupMembersResponse_members
((Maybe [Member] -> Const (First [Member]) (Maybe [Member]))
-> ListGroupMembersResponse
-> Const (First [Member]) ListGroupMembersResponse)
-> (([Member] -> Const (First [Member]) [Member])
-> Maybe [Member] -> Const (First [Member]) (Maybe [Member]))
-> Getting (First [Member]) ListGroupMembersResponse [Member]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([Member] -> Const (First [Member]) [Member])
-> Maybe [Member] -> Const (First [Member]) (Maybe [Member])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe ListGroupMembers
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
ListGroupMembers -> Maybe ListGroupMembers
forall a. a -> Maybe a
Prelude.Just (ListGroupMembers -> Maybe ListGroupMembers)
-> ListGroupMembers -> Maybe ListGroupMembers
forall a b. (a -> b) -> a -> b
Prelude.$
ListGroupMembers
rq
ListGroupMembers
-> (ListGroupMembers -> ListGroupMembers) -> ListGroupMembers
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListGroupMembers -> Identity ListGroupMembers
Lens ListGroupMembers ListGroupMembers (Maybe Text) (Maybe Text)
listGroupMembers_nextToken
((Maybe Text -> Identity (Maybe Text))
-> ListGroupMembers -> Identity ListGroupMembers)
-> Maybe Text -> ListGroupMembers -> ListGroupMembers
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListGroupMembers
ListGroupMembersResponse
rs
ListGroupMembersResponse
-> Getting (First Text) ListGroupMembersResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListGroupMembersResponse
-> Const (First Text) ListGroupMembersResponse
Lens' ListGroupMembersResponse (Maybe Text)
listGroupMembersResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListGroupMembersResponse
-> Const (First Text) ListGroupMembersResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListGroupMembersResponse Text
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text)
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
instance Core.AWSRequest ListGroupMembers where
type
AWSResponse ListGroupMembers =
ListGroupMembersResponse
request :: ListGroupMembers -> Request ListGroupMembers
request = Service -> ListGroupMembers -> Request ListGroupMembers
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy ListGroupMembers
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListGroupMembers)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListGroupMembers))
-> Logger
-> Service
-> Proxy ListGroupMembers
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListGroupMembers)))
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 [Member] -> Maybe Text -> Int -> ListGroupMembersResponse
ListGroupMembersResponse'
(Maybe [Member] -> Maybe Text -> Int -> ListGroupMembersResponse)
-> Either String (Maybe [Member])
-> Either String (Maybe Text -> Int -> ListGroupMembersResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe (Maybe [Member]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Members" Either String (Maybe (Maybe [Member]))
-> Maybe [Member] -> Either String (Maybe [Member])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [Member]
forall a. Monoid a => a
Prelude.mempty)
Either String (Maybe Text -> Int -> ListGroupMembersResponse)
-> Either String (Maybe Text)
-> Either String (Int -> ListGroupMembersResponse)
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
"NextToken")
Either String (Int -> ListGroupMembersResponse)
-> Either String Int -> Either String ListGroupMembersResponse
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 ListGroupMembers
instance Prelude.NFData ListGroupMembers
instance Core.ToHeaders ListGroupMembers where
toHeaders :: ListGroupMembers -> ResponseHeaders
toHeaders =
ResponseHeaders -> ListGroupMembers -> 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.ListGroupMembers" ::
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 ListGroupMembers where
toJSON :: ListGroupMembers -> Value
toJSON ListGroupMembers' {Maybe Natural
Maybe Text
Text
groupId :: Text
organizationId :: Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
$sel:groupId:ListGroupMembers' :: ListGroupMembers -> Text
$sel:organizationId:ListGroupMembers' :: ListGroupMembers -> Text
$sel:maxResults:ListGroupMembers' :: ListGroupMembers -> Maybe Natural
$sel:nextToken:ListGroupMembers' :: ListGroupMembers -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"NextToken" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
nextToken,
(Text
"MaxResults" Text -> Natural -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Natural -> Pair) -> Maybe Natural -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
maxResults,
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
"GroupId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
groupId)
]
)
instance Core.ToPath ListGroupMembers where
toPath :: ListGroupMembers -> ByteString
toPath = ByteString -> ListGroupMembers -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery ListGroupMembers where
toQuery :: ListGroupMembers -> QueryString
toQuery = QueryString -> ListGroupMembers -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data ListGroupMembersResponse = ListGroupMembersResponse'
{
ListGroupMembersResponse -> Maybe [Member]
members :: Prelude.Maybe [Member],
ListGroupMembersResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListGroupMembersResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListGroupMembersResponse -> ListGroupMembersResponse -> Bool
(ListGroupMembersResponse -> ListGroupMembersResponse -> Bool)
-> (ListGroupMembersResponse -> ListGroupMembersResponse -> Bool)
-> Eq ListGroupMembersResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListGroupMembersResponse -> ListGroupMembersResponse -> Bool
$c/= :: ListGroupMembersResponse -> ListGroupMembersResponse -> Bool
== :: ListGroupMembersResponse -> ListGroupMembersResponse -> Bool
$c== :: ListGroupMembersResponse -> ListGroupMembersResponse -> Bool
Prelude.Eq, ReadPrec [ListGroupMembersResponse]
ReadPrec ListGroupMembersResponse
Int -> ReadS ListGroupMembersResponse
ReadS [ListGroupMembersResponse]
(Int -> ReadS ListGroupMembersResponse)
-> ReadS [ListGroupMembersResponse]
-> ReadPrec ListGroupMembersResponse
-> ReadPrec [ListGroupMembersResponse]
-> Read ListGroupMembersResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListGroupMembersResponse]
$creadListPrec :: ReadPrec [ListGroupMembersResponse]
readPrec :: ReadPrec ListGroupMembersResponse
$creadPrec :: ReadPrec ListGroupMembersResponse
readList :: ReadS [ListGroupMembersResponse]
$creadList :: ReadS [ListGroupMembersResponse]
readsPrec :: Int -> ReadS ListGroupMembersResponse
$creadsPrec :: Int -> ReadS ListGroupMembersResponse
Prelude.Read, Int -> ListGroupMembersResponse -> ShowS
[ListGroupMembersResponse] -> ShowS
ListGroupMembersResponse -> String
(Int -> ListGroupMembersResponse -> ShowS)
-> (ListGroupMembersResponse -> String)
-> ([ListGroupMembersResponse] -> ShowS)
-> Show ListGroupMembersResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListGroupMembersResponse] -> ShowS
$cshowList :: [ListGroupMembersResponse] -> ShowS
show :: ListGroupMembersResponse -> String
$cshow :: ListGroupMembersResponse -> String
showsPrec :: Int -> ListGroupMembersResponse -> ShowS
$cshowsPrec :: Int -> ListGroupMembersResponse -> ShowS
Prelude.Show, (forall x.
ListGroupMembersResponse -> Rep ListGroupMembersResponse x)
-> (forall x.
Rep ListGroupMembersResponse x -> ListGroupMembersResponse)
-> Generic ListGroupMembersResponse
forall x.
Rep ListGroupMembersResponse x -> ListGroupMembersResponse
forall x.
ListGroupMembersResponse -> Rep ListGroupMembersResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListGroupMembersResponse x -> ListGroupMembersResponse
$cfrom :: forall x.
ListGroupMembersResponse -> Rep ListGroupMembersResponse x
Prelude.Generic)
newListGroupMembersResponse ::
Prelude.Int ->
ListGroupMembersResponse
newListGroupMembersResponse :: Int -> ListGroupMembersResponse
newListGroupMembersResponse Int
pHttpStatus_ =
ListGroupMembersResponse' :: Maybe [Member] -> Maybe Text -> Int -> ListGroupMembersResponse
ListGroupMembersResponse'
{ $sel:members:ListGroupMembersResponse' :: Maybe [Member]
members =
Maybe [Member]
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListGroupMembersResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListGroupMembersResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listGroupMembersResponse_members :: Lens.Lens' ListGroupMembersResponse (Prelude.Maybe [Member])
listGroupMembersResponse_members :: (Maybe [Member] -> f (Maybe [Member]))
-> ListGroupMembersResponse -> f ListGroupMembersResponse
listGroupMembersResponse_members = (ListGroupMembersResponse -> Maybe [Member])
-> (ListGroupMembersResponse
-> Maybe [Member] -> ListGroupMembersResponse)
-> Lens' ListGroupMembersResponse (Maybe [Member])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListGroupMembersResponse' {Maybe [Member]
members :: Maybe [Member]
$sel:members:ListGroupMembersResponse' :: ListGroupMembersResponse -> Maybe [Member]
members} -> Maybe [Member]
members) (\s :: ListGroupMembersResponse
s@ListGroupMembersResponse' {} Maybe [Member]
a -> ListGroupMembersResponse
s {$sel:members:ListGroupMembersResponse' :: Maybe [Member]
members = Maybe [Member]
a} :: ListGroupMembersResponse) ((Maybe [Member] -> f (Maybe [Member]))
-> ListGroupMembersResponse -> f ListGroupMembersResponse)
-> ((Maybe [Member] -> f (Maybe [Member]))
-> Maybe [Member] -> f (Maybe [Member]))
-> (Maybe [Member] -> f (Maybe [Member]))
-> ListGroupMembersResponse
-> f ListGroupMembersResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Member] [Member] [Member] [Member]
-> Iso
(Maybe [Member]) (Maybe [Member]) (Maybe [Member]) (Maybe [Member])
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 [Member] [Member] [Member] [Member]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listGroupMembersResponse_nextToken :: Lens.Lens' ListGroupMembersResponse (Prelude.Maybe Prelude.Text)
listGroupMembersResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListGroupMembersResponse -> f ListGroupMembersResponse
listGroupMembersResponse_nextToken = (ListGroupMembersResponse -> Maybe Text)
-> (ListGroupMembersResponse
-> Maybe Text -> ListGroupMembersResponse)
-> Lens' ListGroupMembersResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListGroupMembersResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListGroupMembersResponse' :: ListGroupMembersResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListGroupMembersResponse
s@ListGroupMembersResponse' {} Maybe Text
a -> ListGroupMembersResponse
s {$sel:nextToken:ListGroupMembersResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListGroupMembersResponse)
listGroupMembersResponse_httpStatus :: Lens.Lens' ListGroupMembersResponse Prelude.Int
listGroupMembersResponse_httpStatus :: (Int -> f Int)
-> ListGroupMembersResponse -> f ListGroupMembersResponse
listGroupMembersResponse_httpStatus = (ListGroupMembersResponse -> Int)
-> (ListGroupMembersResponse -> Int -> ListGroupMembersResponse)
-> Lens ListGroupMembersResponse ListGroupMembersResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListGroupMembersResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListGroupMembersResponse' :: ListGroupMembersResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListGroupMembersResponse
s@ListGroupMembersResponse' {} Int
a -> ListGroupMembersResponse
s {$sel:httpStatus:ListGroupMembersResponse' :: Int
httpStatus = Int
a} :: ListGroupMembersResponse)
instance Prelude.NFData ListGroupMembersResponse