{-# 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.CodeStar.ListTeamMembers
(
ListTeamMembers (..),
newListTeamMembers,
listTeamMembers_nextToken,
listTeamMembers_maxResults,
listTeamMembers_projectId,
ListTeamMembersResponse (..),
newListTeamMembersResponse,
listTeamMembersResponse_nextToken,
listTeamMembersResponse_httpStatus,
listTeamMembersResponse_teamMembers,
)
where
import Amazonka.CodeStar.Types
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
data ListTeamMembers = ListTeamMembers'
{
ListTeamMembers -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListTeamMembers -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
ListTeamMembers -> Text
projectId :: Prelude.Text
}
deriving (ListTeamMembers -> ListTeamMembers -> Bool
(ListTeamMembers -> ListTeamMembers -> Bool)
-> (ListTeamMembers -> ListTeamMembers -> Bool)
-> Eq ListTeamMembers
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListTeamMembers -> ListTeamMembers -> Bool
$c/= :: ListTeamMembers -> ListTeamMembers -> Bool
== :: ListTeamMembers -> ListTeamMembers -> Bool
$c== :: ListTeamMembers -> ListTeamMembers -> Bool
Prelude.Eq, ReadPrec [ListTeamMembers]
ReadPrec ListTeamMembers
Int -> ReadS ListTeamMembers
ReadS [ListTeamMembers]
(Int -> ReadS ListTeamMembers)
-> ReadS [ListTeamMembers]
-> ReadPrec ListTeamMembers
-> ReadPrec [ListTeamMembers]
-> Read ListTeamMembers
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListTeamMembers]
$creadListPrec :: ReadPrec [ListTeamMembers]
readPrec :: ReadPrec ListTeamMembers
$creadPrec :: ReadPrec ListTeamMembers
readList :: ReadS [ListTeamMembers]
$creadList :: ReadS [ListTeamMembers]
readsPrec :: Int -> ReadS ListTeamMembers
$creadsPrec :: Int -> ReadS ListTeamMembers
Prelude.Read, Int -> ListTeamMembers -> ShowS
[ListTeamMembers] -> ShowS
ListTeamMembers -> String
(Int -> ListTeamMembers -> ShowS)
-> (ListTeamMembers -> String)
-> ([ListTeamMembers] -> ShowS)
-> Show ListTeamMembers
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListTeamMembers] -> ShowS
$cshowList :: [ListTeamMembers] -> ShowS
show :: ListTeamMembers -> String
$cshow :: ListTeamMembers -> String
showsPrec :: Int -> ListTeamMembers -> ShowS
$cshowsPrec :: Int -> ListTeamMembers -> ShowS
Prelude.Show, (forall x. ListTeamMembers -> Rep ListTeamMembers x)
-> (forall x. Rep ListTeamMembers x -> ListTeamMembers)
-> Generic ListTeamMembers
forall x. Rep ListTeamMembers x -> ListTeamMembers
forall x. ListTeamMembers -> Rep ListTeamMembers x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListTeamMembers x -> ListTeamMembers
$cfrom :: forall x. ListTeamMembers -> Rep ListTeamMembers x
Prelude.Generic)
newListTeamMembers ::
Prelude.Text ->
ListTeamMembers
newListTeamMembers :: Text -> ListTeamMembers
newListTeamMembers Text
pProjectId_ =
ListTeamMembers' :: Maybe Text -> Maybe Natural -> Text -> ListTeamMembers
ListTeamMembers'
{ $sel:nextToken:ListTeamMembers' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListTeamMembers' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:projectId:ListTeamMembers' :: Text
projectId = Text
pProjectId_
}
listTeamMembers_nextToken :: Lens.Lens' ListTeamMembers (Prelude.Maybe Prelude.Text)
listTeamMembers_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListTeamMembers -> f ListTeamMembers
listTeamMembers_nextToken = (ListTeamMembers -> Maybe Text)
-> (ListTeamMembers -> Maybe Text -> ListTeamMembers)
-> Lens ListTeamMembers ListTeamMembers (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListTeamMembers' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListTeamMembers' :: ListTeamMembers -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListTeamMembers
s@ListTeamMembers' {} Maybe Text
a -> ListTeamMembers
s {$sel:nextToken:ListTeamMembers' :: Maybe Text
nextToken = Maybe Text
a} :: ListTeamMembers)
listTeamMembers_maxResults :: Lens.Lens' ListTeamMembers (Prelude.Maybe Prelude.Natural)
listTeamMembers_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListTeamMembers -> f ListTeamMembers
listTeamMembers_maxResults = (ListTeamMembers -> Maybe Natural)
-> (ListTeamMembers -> Maybe Natural -> ListTeamMembers)
-> Lens
ListTeamMembers ListTeamMembers (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListTeamMembers' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListTeamMembers' :: ListTeamMembers -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListTeamMembers
s@ListTeamMembers' {} Maybe Natural
a -> ListTeamMembers
s {$sel:maxResults:ListTeamMembers' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListTeamMembers)
listTeamMembers_projectId :: Lens.Lens' ListTeamMembers Prelude.Text
listTeamMembers_projectId :: (Text -> f Text) -> ListTeamMembers -> f ListTeamMembers
listTeamMembers_projectId = (ListTeamMembers -> Text)
-> (ListTeamMembers -> Text -> ListTeamMembers)
-> Lens ListTeamMembers ListTeamMembers Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListTeamMembers' {Text
projectId :: Text
$sel:projectId:ListTeamMembers' :: ListTeamMembers -> Text
projectId} -> Text
projectId) (\s :: ListTeamMembers
s@ListTeamMembers' {} Text
a -> ListTeamMembers
s {$sel:projectId:ListTeamMembers' :: Text
projectId = Text
a} :: ListTeamMembers)
instance Core.AWSPager ListTeamMembers where
page :: ListTeamMembers
-> AWSResponse ListTeamMembers -> Maybe ListTeamMembers
page ListTeamMembers
rq AWSResponse ListTeamMembers
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListTeamMembers
ListTeamMembersResponse
rs
ListTeamMembersResponse
-> Getting (First Text) ListTeamMembersResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListTeamMembersResponse
-> Const (First Text) ListTeamMembersResponse
Lens' ListTeamMembersResponse (Maybe Text)
listTeamMembersResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListTeamMembersResponse
-> Const (First Text) ListTeamMembersResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListTeamMembersResponse 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 ListTeamMembers
forall a. Maybe a
Prelude.Nothing
| [TeamMember] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
(AWSResponse ListTeamMembers
ListTeamMembersResponse
rs ListTeamMembersResponse
-> Getting [TeamMember] ListTeamMembersResponse [TeamMember]
-> [TeamMember]
forall s a. s -> Getting a s a -> a
Lens.^. Getting [TeamMember] ListTeamMembersResponse [TeamMember]
Lens' ListTeamMembersResponse [TeamMember]
listTeamMembersResponse_teamMembers) =
Maybe ListTeamMembers
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
ListTeamMembers -> Maybe ListTeamMembers
forall a. a -> Maybe a
Prelude.Just (ListTeamMembers -> Maybe ListTeamMembers)
-> ListTeamMembers -> Maybe ListTeamMembers
forall a b. (a -> b) -> a -> b
Prelude.$
ListTeamMembers
rq
ListTeamMembers
-> (ListTeamMembers -> ListTeamMembers) -> ListTeamMembers
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListTeamMembers -> Identity ListTeamMembers
Lens ListTeamMembers ListTeamMembers (Maybe Text) (Maybe Text)
listTeamMembers_nextToken
((Maybe Text -> Identity (Maybe Text))
-> ListTeamMembers -> Identity ListTeamMembers)
-> Maybe Text -> ListTeamMembers -> ListTeamMembers
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListTeamMembers
ListTeamMembersResponse
rs
ListTeamMembersResponse
-> Getting (First Text) ListTeamMembersResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListTeamMembersResponse
-> Const (First Text) ListTeamMembersResponse
Lens' ListTeamMembersResponse (Maybe Text)
listTeamMembersResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListTeamMembersResponse
-> Const (First Text) ListTeamMembersResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListTeamMembersResponse 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 ListTeamMembers where
type
AWSResponse ListTeamMembers =
ListTeamMembersResponse
request :: ListTeamMembers -> Request ListTeamMembers
request = Service -> ListTeamMembers -> Request ListTeamMembers
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy ListTeamMembers
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListTeamMembers)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListTeamMembers))
-> Logger
-> Service
-> Proxy ListTeamMembers
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListTeamMembers)))
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 -> Int -> [TeamMember] -> ListTeamMembersResponse
ListTeamMembersResponse'
(Maybe Text -> Int -> [TeamMember] -> ListTeamMembersResponse)
-> Either String (Maybe Text)
-> Either String (Int -> [TeamMember] -> ListTeamMembersResponse)
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
"nextToken")
Either String (Int -> [TeamMember] -> ListTeamMembersResponse)
-> Either String Int
-> Either String ([TeamMember] -> ListTeamMembersResponse)
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))
Either String ([TeamMember] -> ListTeamMembersResponse)
-> Either String [TeamMember]
-> Either String ListTeamMembersResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe [TeamMember])
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"teamMembers" Either String (Maybe [TeamMember])
-> [TeamMember] -> Either String [TeamMember]
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ [TeamMember]
forall a. Monoid a => a
Prelude.mempty)
)
instance Prelude.Hashable ListTeamMembers
instance Prelude.NFData ListTeamMembers
instance Core.ToHeaders ListTeamMembers where
toHeaders :: ListTeamMembers -> ResponseHeaders
toHeaders =
ResponseHeaders -> ListTeamMembers -> 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
"CodeStar_20170419.ListTeamMembers" ::
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 ListTeamMembers where
toJSON :: ListTeamMembers -> Value
toJSON ListTeamMembers' {Maybe Natural
Maybe Text
Text
projectId :: Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
$sel:projectId:ListTeamMembers' :: ListTeamMembers -> Text
$sel:maxResults:ListTeamMembers' :: ListTeamMembers -> Maybe Natural
$sel:nextToken:ListTeamMembers' :: ListTeamMembers -> 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
"projectId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
projectId)
]
)
instance Core.ToPath ListTeamMembers where
toPath :: ListTeamMembers -> ByteString
toPath = ByteString -> ListTeamMembers -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery ListTeamMembers where
toQuery :: ListTeamMembers -> QueryString
toQuery = QueryString -> ListTeamMembers -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data ListTeamMembersResponse = ListTeamMembersResponse'
{
ListTeamMembersResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListTeamMembersResponse -> Int
httpStatus :: Prelude.Int,
ListTeamMembersResponse -> [TeamMember]
teamMembers :: [TeamMember]
}
deriving (ListTeamMembersResponse -> ListTeamMembersResponse -> Bool
(ListTeamMembersResponse -> ListTeamMembersResponse -> Bool)
-> (ListTeamMembersResponse -> ListTeamMembersResponse -> Bool)
-> Eq ListTeamMembersResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListTeamMembersResponse -> ListTeamMembersResponse -> Bool
$c/= :: ListTeamMembersResponse -> ListTeamMembersResponse -> Bool
== :: ListTeamMembersResponse -> ListTeamMembersResponse -> Bool
$c== :: ListTeamMembersResponse -> ListTeamMembersResponse -> Bool
Prelude.Eq, ReadPrec [ListTeamMembersResponse]
ReadPrec ListTeamMembersResponse
Int -> ReadS ListTeamMembersResponse
ReadS [ListTeamMembersResponse]
(Int -> ReadS ListTeamMembersResponse)
-> ReadS [ListTeamMembersResponse]
-> ReadPrec ListTeamMembersResponse
-> ReadPrec [ListTeamMembersResponse]
-> Read ListTeamMembersResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListTeamMembersResponse]
$creadListPrec :: ReadPrec [ListTeamMembersResponse]
readPrec :: ReadPrec ListTeamMembersResponse
$creadPrec :: ReadPrec ListTeamMembersResponse
readList :: ReadS [ListTeamMembersResponse]
$creadList :: ReadS [ListTeamMembersResponse]
readsPrec :: Int -> ReadS ListTeamMembersResponse
$creadsPrec :: Int -> ReadS ListTeamMembersResponse
Prelude.Read, Int -> ListTeamMembersResponse -> ShowS
[ListTeamMembersResponse] -> ShowS
ListTeamMembersResponse -> String
(Int -> ListTeamMembersResponse -> ShowS)
-> (ListTeamMembersResponse -> String)
-> ([ListTeamMembersResponse] -> ShowS)
-> Show ListTeamMembersResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListTeamMembersResponse] -> ShowS
$cshowList :: [ListTeamMembersResponse] -> ShowS
show :: ListTeamMembersResponse -> String
$cshow :: ListTeamMembersResponse -> String
showsPrec :: Int -> ListTeamMembersResponse -> ShowS
$cshowsPrec :: Int -> ListTeamMembersResponse -> ShowS
Prelude.Show, (forall x.
ListTeamMembersResponse -> Rep ListTeamMembersResponse x)
-> (forall x.
Rep ListTeamMembersResponse x -> ListTeamMembersResponse)
-> Generic ListTeamMembersResponse
forall x. Rep ListTeamMembersResponse x -> ListTeamMembersResponse
forall x. ListTeamMembersResponse -> Rep ListTeamMembersResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListTeamMembersResponse x -> ListTeamMembersResponse
$cfrom :: forall x. ListTeamMembersResponse -> Rep ListTeamMembersResponse x
Prelude.Generic)
newListTeamMembersResponse ::
Prelude.Int ->
ListTeamMembersResponse
newListTeamMembersResponse :: Int -> ListTeamMembersResponse
newListTeamMembersResponse Int
pHttpStatus_ =
ListTeamMembersResponse' :: Maybe Text -> Int -> [TeamMember] -> ListTeamMembersResponse
ListTeamMembersResponse'
{ $sel:nextToken:ListTeamMembersResponse' :: Maybe Text
nextToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListTeamMembersResponse' :: Int
httpStatus = Int
pHttpStatus_,
$sel:teamMembers:ListTeamMembersResponse' :: [TeamMember]
teamMembers = [TeamMember]
forall a. Monoid a => a
Prelude.mempty
}
listTeamMembersResponse_nextToken :: Lens.Lens' ListTeamMembersResponse (Prelude.Maybe Prelude.Text)
listTeamMembersResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListTeamMembersResponse -> f ListTeamMembersResponse
listTeamMembersResponse_nextToken = (ListTeamMembersResponse -> Maybe Text)
-> (ListTeamMembersResponse
-> Maybe Text -> ListTeamMembersResponse)
-> Lens' ListTeamMembersResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListTeamMembersResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListTeamMembersResponse' :: ListTeamMembersResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListTeamMembersResponse
s@ListTeamMembersResponse' {} Maybe Text
a -> ListTeamMembersResponse
s {$sel:nextToken:ListTeamMembersResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListTeamMembersResponse)
listTeamMembersResponse_httpStatus :: Lens.Lens' ListTeamMembersResponse Prelude.Int
listTeamMembersResponse_httpStatus :: (Int -> f Int)
-> ListTeamMembersResponse -> f ListTeamMembersResponse
listTeamMembersResponse_httpStatus = (ListTeamMembersResponse -> Int)
-> (ListTeamMembersResponse -> Int -> ListTeamMembersResponse)
-> Lens ListTeamMembersResponse ListTeamMembersResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListTeamMembersResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListTeamMembersResponse' :: ListTeamMembersResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListTeamMembersResponse
s@ListTeamMembersResponse' {} Int
a -> ListTeamMembersResponse
s {$sel:httpStatus:ListTeamMembersResponse' :: Int
httpStatus = Int
a} :: ListTeamMembersResponse)
listTeamMembersResponse_teamMembers :: Lens.Lens' ListTeamMembersResponse [TeamMember]
listTeamMembersResponse_teamMembers :: ([TeamMember] -> f [TeamMember])
-> ListTeamMembersResponse -> f ListTeamMembersResponse
listTeamMembersResponse_teamMembers = (ListTeamMembersResponse -> [TeamMember])
-> (ListTeamMembersResponse
-> [TeamMember] -> ListTeamMembersResponse)
-> Lens' ListTeamMembersResponse [TeamMember]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListTeamMembersResponse' {[TeamMember]
teamMembers :: [TeamMember]
$sel:teamMembers:ListTeamMembersResponse' :: ListTeamMembersResponse -> [TeamMember]
teamMembers} -> [TeamMember]
teamMembers) (\s :: ListTeamMembersResponse
s@ListTeamMembersResponse' {} [TeamMember]
a -> ListTeamMembersResponse
s {$sel:teamMembers:ListTeamMembersResponse' :: [TeamMember]
teamMembers = [TeamMember]
a} :: ListTeamMembersResponse) (([TeamMember] -> f [TeamMember])
-> ListTeamMembersResponse -> f ListTeamMembersResponse)
-> (([TeamMember] -> f [TeamMember])
-> [TeamMember] -> f [TeamMember])
-> ([TeamMember] -> f [TeamMember])
-> ListTeamMembersResponse
-> f ListTeamMembersResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([TeamMember] -> f [TeamMember]) -> [TeamMember] -> f [TeamMember]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
instance Prelude.NFData ListTeamMembersResponse