{-# 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.Nimble.ListStudioMembers
(
ListStudioMembers (..),
newListStudioMembers,
listStudioMembers_nextToken,
listStudioMembers_maxResults,
listStudioMembers_studioId,
ListStudioMembersResponse (..),
newListStudioMembersResponse,
listStudioMembersResponse_members,
listStudioMembersResponse_nextToken,
listStudioMembersResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.Nimble.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data ListStudioMembers = ListStudioMembers'
{
ListStudioMembers -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListStudioMembers -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
ListStudioMembers -> Text
studioId :: Prelude.Text
}
deriving (ListStudioMembers -> ListStudioMembers -> Bool
(ListStudioMembers -> ListStudioMembers -> Bool)
-> (ListStudioMembers -> ListStudioMembers -> Bool)
-> Eq ListStudioMembers
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListStudioMembers -> ListStudioMembers -> Bool
$c/= :: ListStudioMembers -> ListStudioMembers -> Bool
== :: ListStudioMembers -> ListStudioMembers -> Bool
$c== :: ListStudioMembers -> ListStudioMembers -> Bool
Prelude.Eq, ReadPrec [ListStudioMembers]
ReadPrec ListStudioMembers
Int -> ReadS ListStudioMembers
ReadS [ListStudioMembers]
(Int -> ReadS ListStudioMembers)
-> ReadS [ListStudioMembers]
-> ReadPrec ListStudioMembers
-> ReadPrec [ListStudioMembers]
-> Read ListStudioMembers
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListStudioMembers]
$creadListPrec :: ReadPrec [ListStudioMembers]
readPrec :: ReadPrec ListStudioMembers
$creadPrec :: ReadPrec ListStudioMembers
readList :: ReadS [ListStudioMembers]
$creadList :: ReadS [ListStudioMembers]
readsPrec :: Int -> ReadS ListStudioMembers
$creadsPrec :: Int -> ReadS ListStudioMembers
Prelude.Read, Int -> ListStudioMembers -> ShowS
[ListStudioMembers] -> ShowS
ListStudioMembers -> String
(Int -> ListStudioMembers -> ShowS)
-> (ListStudioMembers -> String)
-> ([ListStudioMembers] -> ShowS)
-> Show ListStudioMembers
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListStudioMembers] -> ShowS
$cshowList :: [ListStudioMembers] -> ShowS
show :: ListStudioMembers -> String
$cshow :: ListStudioMembers -> String
showsPrec :: Int -> ListStudioMembers -> ShowS
$cshowsPrec :: Int -> ListStudioMembers -> ShowS
Prelude.Show, (forall x. ListStudioMembers -> Rep ListStudioMembers x)
-> (forall x. Rep ListStudioMembers x -> ListStudioMembers)
-> Generic ListStudioMembers
forall x. Rep ListStudioMembers x -> ListStudioMembers
forall x. ListStudioMembers -> Rep ListStudioMembers x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListStudioMembers x -> ListStudioMembers
$cfrom :: forall x. ListStudioMembers -> Rep ListStudioMembers x
Prelude.Generic)
newListStudioMembers ::
Prelude.Text ->
ListStudioMembers
newListStudioMembers :: Text -> ListStudioMembers
newListStudioMembers Text
pStudioId_ =
ListStudioMembers' :: Maybe Text -> Maybe Natural -> Text -> ListStudioMembers
ListStudioMembers'
{ $sel:nextToken:ListStudioMembers' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListStudioMembers' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:studioId:ListStudioMembers' :: Text
studioId = Text
pStudioId_
}
listStudioMembers_nextToken :: Lens.Lens' ListStudioMembers (Prelude.Maybe Prelude.Text)
listStudioMembers_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListStudioMembers -> f ListStudioMembers
listStudioMembers_nextToken = (ListStudioMembers -> Maybe Text)
-> (ListStudioMembers -> Maybe Text -> ListStudioMembers)
-> Lens
ListStudioMembers ListStudioMembers (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListStudioMembers' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListStudioMembers' :: ListStudioMembers -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListStudioMembers
s@ListStudioMembers' {} Maybe Text
a -> ListStudioMembers
s {$sel:nextToken:ListStudioMembers' :: Maybe Text
nextToken = Maybe Text
a} :: ListStudioMembers)
listStudioMembers_maxResults :: Lens.Lens' ListStudioMembers (Prelude.Maybe Prelude.Natural)
listStudioMembers_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListStudioMembers -> f ListStudioMembers
listStudioMembers_maxResults = (ListStudioMembers -> Maybe Natural)
-> (ListStudioMembers -> Maybe Natural -> ListStudioMembers)
-> Lens
ListStudioMembers ListStudioMembers (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListStudioMembers' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListStudioMembers' :: ListStudioMembers -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListStudioMembers
s@ListStudioMembers' {} Maybe Natural
a -> ListStudioMembers
s {$sel:maxResults:ListStudioMembers' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListStudioMembers)
listStudioMembers_studioId :: Lens.Lens' ListStudioMembers Prelude.Text
listStudioMembers_studioId :: (Text -> f Text) -> ListStudioMembers -> f ListStudioMembers
listStudioMembers_studioId = (ListStudioMembers -> Text)
-> (ListStudioMembers -> Text -> ListStudioMembers)
-> Lens ListStudioMembers ListStudioMembers Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListStudioMembers' {Text
studioId :: Text
$sel:studioId:ListStudioMembers' :: ListStudioMembers -> Text
studioId} -> Text
studioId) (\s :: ListStudioMembers
s@ListStudioMembers' {} Text
a -> ListStudioMembers
s {$sel:studioId:ListStudioMembers' :: Text
studioId = Text
a} :: ListStudioMembers)
instance Core.AWSPager ListStudioMembers where
page :: ListStudioMembers
-> AWSResponse ListStudioMembers -> Maybe ListStudioMembers
page ListStudioMembers
rq AWSResponse ListStudioMembers
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListStudioMembers
ListStudioMembersResponse
rs
ListStudioMembersResponse
-> Getting (First Text) ListStudioMembersResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListStudioMembersResponse
-> Const (First Text) ListStudioMembersResponse
Lens' ListStudioMembersResponse (Maybe Text)
listStudioMembersResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListStudioMembersResponse
-> Const (First Text) ListStudioMembersResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListStudioMembersResponse 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 ListStudioMembers
forall a. Maybe a
Prelude.Nothing
| Maybe [StudioMembership] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListStudioMembers
ListStudioMembersResponse
rs
ListStudioMembersResponse
-> Getting
(First [StudioMembership])
ListStudioMembersResponse
[StudioMembership]
-> Maybe [StudioMembership]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [StudioMembership]
-> Const (First [StudioMembership]) (Maybe [StudioMembership]))
-> ListStudioMembersResponse
-> Const (First [StudioMembership]) ListStudioMembersResponse
Lens' ListStudioMembersResponse (Maybe [StudioMembership])
listStudioMembersResponse_members
((Maybe [StudioMembership]
-> Const (First [StudioMembership]) (Maybe [StudioMembership]))
-> ListStudioMembersResponse
-> Const (First [StudioMembership]) ListStudioMembersResponse)
-> (([StudioMembership]
-> Const (First [StudioMembership]) [StudioMembership])
-> Maybe [StudioMembership]
-> Const (First [StudioMembership]) (Maybe [StudioMembership]))
-> Getting
(First [StudioMembership])
ListStudioMembersResponse
[StudioMembership]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([StudioMembership]
-> Const (First [StudioMembership]) [StudioMembership])
-> Maybe [StudioMembership]
-> Const (First [StudioMembership]) (Maybe [StudioMembership])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe ListStudioMembers
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
ListStudioMembers -> Maybe ListStudioMembers
forall a. a -> Maybe a
Prelude.Just (ListStudioMembers -> Maybe ListStudioMembers)
-> ListStudioMembers -> Maybe ListStudioMembers
forall a b. (a -> b) -> a -> b
Prelude.$
ListStudioMembers
rq
ListStudioMembers
-> (ListStudioMembers -> ListStudioMembers) -> ListStudioMembers
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListStudioMembers -> Identity ListStudioMembers
Lens ListStudioMembers ListStudioMembers (Maybe Text) (Maybe Text)
listStudioMembers_nextToken
((Maybe Text -> Identity (Maybe Text))
-> ListStudioMembers -> Identity ListStudioMembers)
-> Maybe Text -> ListStudioMembers -> ListStudioMembers
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListStudioMembers
ListStudioMembersResponse
rs
ListStudioMembersResponse
-> Getting (First Text) ListStudioMembersResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListStudioMembersResponse
-> Const (First Text) ListStudioMembersResponse
Lens' ListStudioMembersResponse (Maybe Text)
listStudioMembersResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListStudioMembersResponse
-> Const (First Text) ListStudioMembersResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListStudioMembersResponse 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 ListStudioMembers where
type
AWSResponse ListStudioMembers =
ListStudioMembersResponse
request :: ListStudioMembers -> Request ListStudioMembers
request = Service -> ListStudioMembers -> Request ListStudioMembers
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy ListStudioMembers
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListStudioMembers)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListStudioMembers))
-> Logger
-> Service
-> Proxy ListStudioMembers
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListStudioMembers)))
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 [StudioMembership]
-> Maybe Text -> Int -> ListStudioMembersResponse
ListStudioMembersResponse'
(Maybe [StudioMembership]
-> Maybe Text -> Int -> ListStudioMembersResponse)
-> Either String (Maybe [StudioMembership])
-> Either String (Maybe Text -> Int -> ListStudioMembersResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe (Maybe [StudioMembership]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"members" Either String (Maybe (Maybe [StudioMembership]))
-> Maybe [StudioMembership]
-> Either String (Maybe [StudioMembership])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [StudioMembership]
forall a. Monoid a => a
Prelude.mempty)
Either String (Maybe Text -> Int -> ListStudioMembersResponse)
-> Either String (Maybe Text)
-> Either String (Int -> ListStudioMembersResponse)
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 -> ListStudioMembersResponse)
-> Either String Int -> Either String ListStudioMembersResponse
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 ListStudioMembers
instance Prelude.NFData ListStudioMembers
instance Core.ToHeaders ListStudioMembers where
toHeaders :: ListStudioMembers -> ResponseHeaders
toHeaders =
ResponseHeaders -> ListStudioMembers -> 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 ListStudioMembers where
toPath :: ListStudioMembers -> ByteString
toPath ListStudioMembers' {Maybe Natural
Maybe Text
Text
studioId :: Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
$sel:studioId:ListStudioMembers' :: ListStudioMembers -> Text
$sel:maxResults:ListStudioMembers' :: ListStudioMembers -> Maybe Natural
$sel:nextToken:ListStudioMembers' :: ListStudioMembers -> Maybe Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"/2020-08-01/studios/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
studioId,
ByteString
"/membership"
]
instance Core.ToQuery ListStudioMembers where
toQuery :: ListStudioMembers -> QueryString
toQuery ListStudioMembers' {Maybe Natural
Maybe Text
Text
studioId :: Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
$sel:studioId:ListStudioMembers' :: ListStudioMembers -> Text
$sel:maxResults:ListStudioMembers' :: ListStudioMembers -> Maybe Natural
$sel:nextToken:ListStudioMembers' :: ListStudioMembers -> Maybe Text
..} =
[QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"nextToken" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
nextToken,
ByteString
"maxResults" ByteString -> Maybe Natural -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Natural
maxResults
]
data ListStudioMembersResponse = ListStudioMembersResponse'
{
ListStudioMembersResponse -> Maybe [StudioMembership]
members :: Prelude.Maybe [StudioMembership],
ListStudioMembersResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListStudioMembersResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListStudioMembersResponse -> ListStudioMembersResponse -> Bool
(ListStudioMembersResponse -> ListStudioMembersResponse -> Bool)
-> (ListStudioMembersResponse -> ListStudioMembersResponse -> Bool)
-> Eq ListStudioMembersResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListStudioMembersResponse -> ListStudioMembersResponse -> Bool
$c/= :: ListStudioMembersResponse -> ListStudioMembersResponse -> Bool
== :: ListStudioMembersResponse -> ListStudioMembersResponse -> Bool
$c== :: ListStudioMembersResponse -> ListStudioMembersResponse -> Bool
Prelude.Eq, ReadPrec [ListStudioMembersResponse]
ReadPrec ListStudioMembersResponse
Int -> ReadS ListStudioMembersResponse
ReadS [ListStudioMembersResponse]
(Int -> ReadS ListStudioMembersResponse)
-> ReadS [ListStudioMembersResponse]
-> ReadPrec ListStudioMembersResponse
-> ReadPrec [ListStudioMembersResponse]
-> Read ListStudioMembersResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListStudioMembersResponse]
$creadListPrec :: ReadPrec [ListStudioMembersResponse]
readPrec :: ReadPrec ListStudioMembersResponse
$creadPrec :: ReadPrec ListStudioMembersResponse
readList :: ReadS [ListStudioMembersResponse]
$creadList :: ReadS [ListStudioMembersResponse]
readsPrec :: Int -> ReadS ListStudioMembersResponse
$creadsPrec :: Int -> ReadS ListStudioMembersResponse
Prelude.Read, Int -> ListStudioMembersResponse -> ShowS
[ListStudioMembersResponse] -> ShowS
ListStudioMembersResponse -> String
(Int -> ListStudioMembersResponse -> ShowS)
-> (ListStudioMembersResponse -> String)
-> ([ListStudioMembersResponse] -> ShowS)
-> Show ListStudioMembersResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListStudioMembersResponse] -> ShowS
$cshowList :: [ListStudioMembersResponse] -> ShowS
show :: ListStudioMembersResponse -> String
$cshow :: ListStudioMembersResponse -> String
showsPrec :: Int -> ListStudioMembersResponse -> ShowS
$cshowsPrec :: Int -> ListStudioMembersResponse -> ShowS
Prelude.Show, (forall x.
ListStudioMembersResponse -> Rep ListStudioMembersResponse x)
-> (forall x.
Rep ListStudioMembersResponse x -> ListStudioMembersResponse)
-> Generic ListStudioMembersResponse
forall x.
Rep ListStudioMembersResponse x -> ListStudioMembersResponse
forall x.
ListStudioMembersResponse -> Rep ListStudioMembersResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListStudioMembersResponse x -> ListStudioMembersResponse
$cfrom :: forall x.
ListStudioMembersResponse -> Rep ListStudioMembersResponse x
Prelude.Generic)
newListStudioMembersResponse ::
Prelude.Int ->
ListStudioMembersResponse
newListStudioMembersResponse :: Int -> ListStudioMembersResponse
newListStudioMembersResponse Int
pHttpStatus_ =
ListStudioMembersResponse' :: Maybe [StudioMembership]
-> Maybe Text -> Int -> ListStudioMembersResponse
ListStudioMembersResponse'
{ $sel:members:ListStudioMembersResponse' :: Maybe [StudioMembership]
members =
Maybe [StudioMembership]
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListStudioMembersResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListStudioMembersResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listStudioMembersResponse_members :: Lens.Lens' ListStudioMembersResponse (Prelude.Maybe [StudioMembership])
listStudioMembersResponse_members :: (Maybe [StudioMembership] -> f (Maybe [StudioMembership]))
-> ListStudioMembersResponse -> f ListStudioMembersResponse
listStudioMembersResponse_members = (ListStudioMembersResponse -> Maybe [StudioMembership])
-> (ListStudioMembersResponse
-> Maybe [StudioMembership] -> ListStudioMembersResponse)
-> Lens' ListStudioMembersResponse (Maybe [StudioMembership])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListStudioMembersResponse' {Maybe [StudioMembership]
members :: Maybe [StudioMembership]
$sel:members:ListStudioMembersResponse' :: ListStudioMembersResponse -> Maybe [StudioMembership]
members} -> Maybe [StudioMembership]
members) (\s :: ListStudioMembersResponse
s@ListStudioMembersResponse' {} Maybe [StudioMembership]
a -> ListStudioMembersResponse
s {$sel:members:ListStudioMembersResponse' :: Maybe [StudioMembership]
members = Maybe [StudioMembership]
a} :: ListStudioMembersResponse) ((Maybe [StudioMembership] -> f (Maybe [StudioMembership]))
-> ListStudioMembersResponse -> f ListStudioMembersResponse)
-> ((Maybe [StudioMembership] -> f (Maybe [StudioMembership]))
-> Maybe [StudioMembership] -> f (Maybe [StudioMembership]))
-> (Maybe [StudioMembership] -> f (Maybe [StudioMembership]))
-> ListStudioMembersResponse
-> f ListStudioMembersResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[StudioMembership]
[StudioMembership]
[StudioMembership]
[StudioMembership]
-> Iso
(Maybe [StudioMembership])
(Maybe [StudioMembership])
(Maybe [StudioMembership])
(Maybe [StudioMembership])
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
[StudioMembership]
[StudioMembership]
[StudioMembership]
[StudioMembership]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listStudioMembersResponse_nextToken :: Lens.Lens' ListStudioMembersResponse (Prelude.Maybe Prelude.Text)
listStudioMembersResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListStudioMembersResponse -> f ListStudioMembersResponse
listStudioMembersResponse_nextToken = (ListStudioMembersResponse -> Maybe Text)
-> (ListStudioMembersResponse
-> Maybe Text -> ListStudioMembersResponse)
-> Lens' ListStudioMembersResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListStudioMembersResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListStudioMembersResponse' :: ListStudioMembersResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListStudioMembersResponse
s@ListStudioMembersResponse' {} Maybe Text
a -> ListStudioMembersResponse
s {$sel:nextToken:ListStudioMembersResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListStudioMembersResponse)
listStudioMembersResponse_httpStatus :: Lens.Lens' ListStudioMembersResponse Prelude.Int
listStudioMembersResponse_httpStatus :: (Int -> f Int)
-> ListStudioMembersResponse -> f ListStudioMembersResponse
listStudioMembersResponse_httpStatus = (ListStudioMembersResponse -> Int)
-> (ListStudioMembersResponse -> Int -> ListStudioMembersResponse)
-> Lens ListStudioMembersResponse ListStudioMembersResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListStudioMembersResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListStudioMembersResponse' :: ListStudioMembersResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListStudioMembersResponse
s@ListStudioMembersResponse' {} Int
a -> ListStudioMembersResponse
s {$sel:httpStatus:ListStudioMembersResponse' :: Int
httpStatus = Int
a} :: ListStudioMembersResponse)
instance Prelude.NFData ListStudioMembersResponse