{-# 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.GameLift.ListBuilds
(
ListBuilds (..),
newListBuilds,
listBuilds_status,
listBuilds_nextToken,
listBuilds_limit,
ListBuildsResponse (..),
newListBuildsResponse,
listBuildsResponse_builds,
listBuildsResponse_nextToken,
listBuildsResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.GameLift.Types
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 ListBuilds = ListBuilds'
{
ListBuilds -> Maybe BuildStatus
status :: Prelude.Maybe BuildStatus,
ListBuilds -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListBuilds -> Maybe Natural
limit :: Prelude.Maybe Prelude.Natural
}
deriving (ListBuilds -> ListBuilds -> Bool
(ListBuilds -> ListBuilds -> Bool)
-> (ListBuilds -> ListBuilds -> Bool) -> Eq ListBuilds
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListBuilds -> ListBuilds -> Bool
$c/= :: ListBuilds -> ListBuilds -> Bool
== :: ListBuilds -> ListBuilds -> Bool
$c== :: ListBuilds -> ListBuilds -> Bool
Prelude.Eq, ReadPrec [ListBuilds]
ReadPrec ListBuilds
Int -> ReadS ListBuilds
ReadS [ListBuilds]
(Int -> ReadS ListBuilds)
-> ReadS [ListBuilds]
-> ReadPrec ListBuilds
-> ReadPrec [ListBuilds]
-> Read ListBuilds
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListBuilds]
$creadListPrec :: ReadPrec [ListBuilds]
readPrec :: ReadPrec ListBuilds
$creadPrec :: ReadPrec ListBuilds
readList :: ReadS [ListBuilds]
$creadList :: ReadS [ListBuilds]
readsPrec :: Int -> ReadS ListBuilds
$creadsPrec :: Int -> ReadS ListBuilds
Prelude.Read, Int -> ListBuilds -> ShowS
[ListBuilds] -> ShowS
ListBuilds -> String
(Int -> ListBuilds -> ShowS)
-> (ListBuilds -> String)
-> ([ListBuilds] -> ShowS)
-> Show ListBuilds
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListBuilds] -> ShowS
$cshowList :: [ListBuilds] -> ShowS
show :: ListBuilds -> String
$cshow :: ListBuilds -> String
showsPrec :: Int -> ListBuilds -> ShowS
$cshowsPrec :: Int -> ListBuilds -> ShowS
Prelude.Show, (forall x. ListBuilds -> Rep ListBuilds x)
-> (forall x. Rep ListBuilds x -> ListBuilds) -> Generic ListBuilds
forall x. Rep ListBuilds x -> ListBuilds
forall x. ListBuilds -> Rep ListBuilds x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListBuilds x -> ListBuilds
$cfrom :: forall x. ListBuilds -> Rep ListBuilds x
Prelude.Generic)
newListBuilds ::
ListBuilds
newListBuilds :: ListBuilds
newListBuilds =
ListBuilds' :: Maybe BuildStatus -> Maybe Text -> Maybe Natural -> ListBuilds
ListBuilds'
{ $sel:status:ListBuilds' :: Maybe BuildStatus
status = Maybe BuildStatus
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListBuilds' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:limit:ListBuilds' :: Maybe Natural
limit = Maybe Natural
forall a. Maybe a
Prelude.Nothing
}
listBuilds_status :: Lens.Lens' ListBuilds (Prelude.Maybe BuildStatus)
listBuilds_status :: (Maybe BuildStatus -> f (Maybe BuildStatus))
-> ListBuilds -> f ListBuilds
listBuilds_status = (ListBuilds -> Maybe BuildStatus)
-> (ListBuilds -> Maybe BuildStatus -> ListBuilds)
-> Lens
ListBuilds ListBuilds (Maybe BuildStatus) (Maybe BuildStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListBuilds' {Maybe BuildStatus
status :: Maybe BuildStatus
$sel:status:ListBuilds' :: ListBuilds -> Maybe BuildStatus
status} -> Maybe BuildStatus
status) (\s :: ListBuilds
s@ListBuilds' {} Maybe BuildStatus
a -> ListBuilds
s {$sel:status:ListBuilds' :: Maybe BuildStatus
status = Maybe BuildStatus
a} :: ListBuilds)
listBuilds_nextToken :: Lens.Lens' ListBuilds (Prelude.Maybe Prelude.Text)
listBuilds_nextToken :: (Maybe Text -> f (Maybe Text)) -> ListBuilds -> f ListBuilds
listBuilds_nextToken = (ListBuilds -> Maybe Text)
-> (ListBuilds -> Maybe Text -> ListBuilds)
-> Lens ListBuilds ListBuilds (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListBuilds' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListBuilds' :: ListBuilds -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListBuilds
s@ListBuilds' {} Maybe Text
a -> ListBuilds
s {$sel:nextToken:ListBuilds' :: Maybe Text
nextToken = Maybe Text
a} :: ListBuilds)
listBuilds_limit :: Lens.Lens' ListBuilds (Prelude.Maybe Prelude.Natural)
listBuilds_limit :: (Maybe Natural -> f (Maybe Natural)) -> ListBuilds -> f ListBuilds
listBuilds_limit = (ListBuilds -> Maybe Natural)
-> (ListBuilds -> Maybe Natural -> ListBuilds)
-> Lens ListBuilds ListBuilds (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListBuilds' {Maybe Natural
limit :: Maybe Natural
$sel:limit:ListBuilds' :: ListBuilds -> Maybe Natural
limit} -> Maybe Natural
limit) (\s :: ListBuilds
s@ListBuilds' {} Maybe Natural
a -> ListBuilds
s {$sel:limit:ListBuilds' :: Maybe Natural
limit = Maybe Natural
a} :: ListBuilds)
instance Core.AWSPager ListBuilds where
page :: ListBuilds -> AWSResponse ListBuilds -> Maybe ListBuilds
page ListBuilds
rq AWSResponse ListBuilds
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListBuilds
ListBuildsResponse
rs
ListBuildsResponse
-> Getting (First Text) ListBuildsResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListBuildsResponse -> Const (First Text) ListBuildsResponse
Lens' ListBuildsResponse (Maybe Text)
listBuildsResponse_nextToken ((Maybe Text -> Const (First Text) (Maybe Text))
-> ListBuildsResponse -> Const (First Text) ListBuildsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListBuildsResponse 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 ListBuilds
forall a. Maybe a
Prelude.Nothing
| Maybe [Build] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListBuilds
ListBuildsResponse
rs
ListBuildsResponse
-> Getting (First [Build]) ListBuildsResponse [Build]
-> Maybe [Build]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [Build] -> Const (First [Build]) (Maybe [Build]))
-> ListBuildsResponse -> Const (First [Build]) ListBuildsResponse
Lens' ListBuildsResponse (Maybe [Build])
listBuildsResponse_builds ((Maybe [Build] -> Const (First [Build]) (Maybe [Build]))
-> ListBuildsResponse -> Const (First [Build]) ListBuildsResponse)
-> (([Build] -> Const (First [Build]) [Build])
-> Maybe [Build] -> Const (First [Build]) (Maybe [Build]))
-> Getting (First [Build]) ListBuildsResponse [Build]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([Build] -> Const (First [Build]) [Build])
-> Maybe [Build] -> Const (First [Build]) (Maybe [Build])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe ListBuilds
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
ListBuilds -> Maybe ListBuilds
forall a. a -> Maybe a
Prelude.Just (ListBuilds -> Maybe ListBuilds) -> ListBuilds -> Maybe ListBuilds
forall a b. (a -> b) -> a -> b
Prelude.$
ListBuilds
rq
ListBuilds -> (ListBuilds -> ListBuilds) -> ListBuilds
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListBuilds -> Identity ListBuilds
Lens ListBuilds ListBuilds (Maybe Text) (Maybe Text)
listBuilds_nextToken
((Maybe Text -> Identity (Maybe Text))
-> ListBuilds -> Identity ListBuilds)
-> Maybe Text -> ListBuilds -> ListBuilds
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListBuilds
ListBuildsResponse
rs
ListBuildsResponse
-> Getting (First Text) ListBuildsResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListBuildsResponse -> Const (First Text) ListBuildsResponse
Lens' ListBuildsResponse (Maybe Text)
listBuildsResponse_nextToken ((Maybe Text -> Const (First Text) (Maybe Text))
-> ListBuildsResponse -> Const (First Text) ListBuildsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListBuildsResponse 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 ListBuilds where
type AWSResponse ListBuilds = ListBuildsResponse
request :: ListBuilds -> Request ListBuilds
request = Service -> ListBuilds -> Request ListBuilds
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy ListBuilds
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListBuilds)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListBuilds))
-> Logger
-> Service
-> Proxy ListBuilds
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListBuilds)))
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 [Build] -> Maybe Text -> Int -> ListBuildsResponse
ListBuildsResponse'
(Maybe [Build] -> Maybe Text -> Int -> ListBuildsResponse)
-> Either String (Maybe [Build])
-> Either String (Maybe Text -> Int -> ListBuildsResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe (Maybe [Build]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Builds" Either String (Maybe (Maybe [Build]))
-> Maybe [Build] -> Either String (Maybe [Build])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [Build]
forall a. Monoid a => a
Prelude.mempty)
Either String (Maybe Text -> Int -> ListBuildsResponse)
-> Either String (Maybe Text)
-> Either String (Int -> ListBuildsResponse)
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 -> ListBuildsResponse)
-> Either String Int -> Either String ListBuildsResponse
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 ListBuilds
instance Prelude.NFData ListBuilds
instance Core.ToHeaders ListBuilds where
toHeaders :: ListBuilds -> ResponseHeaders
toHeaders =
ResponseHeaders -> ListBuilds -> 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
"GameLift.ListBuilds" :: 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 ListBuilds where
toJSON :: ListBuilds -> Value
toJSON ListBuilds' {Maybe Natural
Maybe Text
Maybe BuildStatus
limit :: Maybe Natural
nextToken :: Maybe Text
status :: Maybe BuildStatus
$sel:limit:ListBuilds' :: ListBuilds -> Maybe Natural
$sel:nextToken:ListBuilds' :: ListBuilds -> Maybe Text
$sel:status:ListBuilds' :: ListBuilds -> Maybe BuildStatus
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"Status" Text -> BuildStatus -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (BuildStatus -> Pair) -> Maybe BuildStatus -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe BuildStatus
status,
(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
"Limit" 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
limit
]
)
instance Core.ToPath ListBuilds where
toPath :: ListBuilds -> ByteString
toPath = ByteString -> ListBuilds -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery ListBuilds where
toQuery :: ListBuilds -> QueryString
toQuery = QueryString -> ListBuilds -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data ListBuildsResponse = ListBuildsResponse'
{
ListBuildsResponse -> Maybe [Build]
builds :: Prelude.Maybe [Build],
ListBuildsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListBuildsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListBuildsResponse -> ListBuildsResponse -> Bool
(ListBuildsResponse -> ListBuildsResponse -> Bool)
-> (ListBuildsResponse -> ListBuildsResponse -> Bool)
-> Eq ListBuildsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListBuildsResponse -> ListBuildsResponse -> Bool
$c/= :: ListBuildsResponse -> ListBuildsResponse -> Bool
== :: ListBuildsResponse -> ListBuildsResponse -> Bool
$c== :: ListBuildsResponse -> ListBuildsResponse -> Bool
Prelude.Eq, ReadPrec [ListBuildsResponse]
ReadPrec ListBuildsResponse
Int -> ReadS ListBuildsResponse
ReadS [ListBuildsResponse]
(Int -> ReadS ListBuildsResponse)
-> ReadS [ListBuildsResponse]
-> ReadPrec ListBuildsResponse
-> ReadPrec [ListBuildsResponse]
-> Read ListBuildsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListBuildsResponse]
$creadListPrec :: ReadPrec [ListBuildsResponse]
readPrec :: ReadPrec ListBuildsResponse
$creadPrec :: ReadPrec ListBuildsResponse
readList :: ReadS [ListBuildsResponse]
$creadList :: ReadS [ListBuildsResponse]
readsPrec :: Int -> ReadS ListBuildsResponse
$creadsPrec :: Int -> ReadS ListBuildsResponse
Prelude.Read, Int -> ListBuildsResponse -> ShowS
[ListBuildsResponse] -> ShowS
ListBuildsResponse -> String
(Int -> ListBuildsResponse -> ShowS)
-> (ListBuildsResponse -> String)
-> ([ListBuildsResponse] -> ShowS)
-> Show ListBuildsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListBuildsResponse] -> ShowS
$cshowList :: [ListBuildsResponse] -> ShowS
show :: ListBuildsResponse -> String
$cshow :: ListBuildsResponse -> String
showsPrec :: Int -> ListBuildsResponse -> ShowS
$cshowsPrec :: Int -> ListBuildsResponse -> ShowS
Prelude.Show, (forall x. ListBuildsResponse -> Rep ListBuildsResponse x)
-> (forall x. Rep ListBuildsResponse x -> ListBuildsResponse)
-> Generic ListBuildsResponse
forall x. Rep ListBuildsResponse x -> ListBuildsResponse
forall x. ListBuildsResponse -> Rep ListBuildsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListBuildsResponse x -> ListBuildsResponse
$cfrom :: forall x. ListBuildsResponse -> Rep ListBuildsResponse x
Prelude.Generic)
newListBuildsResponse ::
Prelude.Int ->
ListBuildsResponse
newListBuildsResponse :: Int -> ListBuildsResponse
newListBuildsResponse Int
pHttpStatus_ =
ListBuildsResponse' :: Maybe [Build] -> Maybe Text -> Int -> ListBuildsResponse
ListBuildsResponse'
{ $sel:builds:ListBuildsResponse' :: Maybe [Build]
builds = Maybe [Build]
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListBuildsResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListBuildsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listBuildsResponse_builds :: Lens.Lens' ListBuildsResponse (Prelude.Maybe [Build])
listBuildsResponse_builds :: (Maybe [Build] -> f (Maybe [Build]))
-> ListBuildsResponse -> f ListBuildsResponse
listBuildsResponse_builds = (ListBuildsResponse -> Maybe [Build])
-> (ListBuildsResponse -> Maybe [Build] -> ListBuildsResponse)
-> Lens' ListBuildsResponse (Maybe [Build])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListBuildsResponse' {Maybe [Build]
builds :: Maybe [Build]
$sel:builds:ListBuildsResponse' :: ListBuildsResponse -> Maybe [Build]
builds} -> Maybe [Build]
builds) (\s :: ListBuildsResponse
s@ListBuildsResponse' {} Maybe [Build]
a -> ListBuildsResponse
s {$sel:builds:ListBuildsResponse' :: Maybe [Build]
builds = Maybe [Build]
a} :: ListBuildsResponse) ((Maybe [Build] -> f (Maybe [Build]))
-> ListBuildsResponse -> f ListBuildsResponse)
-> ((Maybe [Build] -> f (Maybe [Build]))
-> Maybe [Build] -> f (Maybe [Build]))
-> (Maybe [Build] -> f (Maybe [Build]))
-> ListBuildsResponse
-> f ListBuildsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Build] [Build] [Build] [Build]
-> Iso
(Maybe [Build]) (Maybe [Build]) (Maybe [Build]) (Maybe [Build])
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 [Build] [Build] [Build] [Build]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listBuildsResponse_nextToken :: Lens.Lens' ListBuildsResponse (Prelude.Maybe Prelude.Text)
listBuildsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListBuildsResponse -> f ListBuildsResponse
listBuildsResponse_nextToken = (ListBuildsResponse -> Maybe Text)
-> (ListBuildsResponse -> Maybe Text -> ListBuildsResponse)
-> Lens' ListBuildsResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListBuildsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListBuildsResponse' :: ListBuildsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListBuildsResponse
s@ListBuildsResponse' {} Maybe Text
a -> ListBuildsResponse
s {$sel:nextToken:ListBuildsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListBuildsResponse)
listBuildsResponse_httpStatus :: Lens.Lens' ListBuildsResponse Prelude.Int
listBuildsResponse_httpStatus :: (Int -> f Int) -> ListBuildsResponse -> f ListBuildsResponse
listBuildsResponse_httpStatus = (ListBuildsResponse -> Int)
-> (ListBuildsResponse -> Int -> ListBuildsResponse)
-> Lens ListBuildsResponse ListBuildsResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListBuildsResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListBuildsResponse' :: ListBuildsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListBuildsResponse
s@ListBuildsResponse' {} Int
a -> ListBuildsResponse
s {$sel:httpStatus:ListBuildsResponse' :: Int
httpStatus = Int
a} :: ListBuildsResponse)
instance Prelude.NFData ListBuildsResponse