{-# 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.GamesParks.ListGeneratedCodeJobs
(
ListGeneratedCodeJobs (..),
newListGeneratedCodeJobs,
listGeneratedCodeJobs_maxResults,
listGeneratedCodeJobs_nextToken,
listGeneratedCodeJobs_gameName,
listGeneratedCodeJobs_snapshotId,
ListGeneratedCodeJobsResponse (..),
newListGeneratedCodeJobsResponse,
listGeneratedCodeJobsResponse_generatedCodeJobs,
listGeneratedCodeJobsResponse_nextToken,
listGeneratedCodeJobsResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.GamesParks.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data ListGeneratedCodeJobs = ListGeneratedCodeJobs'
{
ListGeneratedCodeJobs -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
ListGeneratedCodeJobs -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListGeneratedCodeJobs -> Text
gameName :: Prelude.Text,
ListGeneratedCodeJobs -> Text
snapshotId :: Prelude.Text
}
deriving (ListGeneratedCodeJobs -> ListGeneratedCodeJobs -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListGeneratedCodeJobs -> ListGeneratedCodeJobs -> Bool
$c/= :: ListGeneratedCodeJobs -> ListGeneratedCodeJobs -> Bool
== :: ListGeneratedCodeJobs -> ListGeneratedCodeJobs -> Bool
$c== :: ListGeneratedCodeJobs -> ListGeneratedCodeJobs -> Bool
Prelude.Eq, ReadPrec [ListGeneratedCodeJobs]
ReadPrec ListGeneratedCodeJobs
Int -> ReadS ListGeneratedCodeJobs
ReadS [ListGeneratedCodeJobs]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListGeneratedCodeJobs]
$creadListPrec :: ReadPrec [ListGeneratedCodeJobs]
readPrec :: ReadPrec ListGeneratedCodeJobs
$creadPrec :: ReadPrec ListGeneratedCodeJobs
readList :: ReadS [ListGeneratedCodeJobs]
$creadList :: ReadS [ListGeneratedCodeJobs]
readsPrec :: Int -> ReadS ListGeneratedCodeJobs
$creadsPrec :: Int -> ReadS ListGeneratedCodeJobs
Prelude.Read, Int -> ListGeneratedCodeJobs -> ShowS
[ListGeneratedCodeJobs] -> ShowS
ListGeneratedCodeJobs -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListGeneratedCodeJobs] -> ShowS
$cshowList :: [ListGeneratedCodeJobs] -> ShowS
show :: ListGeneratedCodeJobs -> String
$cshow :: ListGeneratedCodeJobs -> String
showsPrec :: Int -> ListGeneratedCodeJobs -> ShowS
$cshowsPrec :: Int -> ListGeneratedCodeJobs -> ShowS
Prelude.Show, forall x. Rep ListGeneratedCodeJobs x -> ListGeneratedCodeJobs
forall x. ListGeneratedCodeJobs -> Rep ListGeneratedCodeJobs x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListGeneratedCodeJobs x -> ListGeneratedCodeJobs
$cfrom :: forall x. ListGeneratedCodeJobs -> Rep ListGeneratedCodeJobs x
Prelude.Generic)
newListGeneratedCodeJobs ::
Prelude.Text ->
Prelude.Text ->
ListGeneratedCodeJobs
newListGeneratedCodeJobs :: Text -> Text -> ListGeneratedCodeJobs
newListGeneratedCodeJobs Text
pGameName_ Text
pSnapshotId_ =
ListGeneratedCodeJobs'
{ $sel:maxResults:ListGeneratedCodeJobs' :: Maybe Natural
maxResults =
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListGeneratedCodeJobs' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
$sel:gameName:ListGeneratedCodeJobs' :: Text
gameName = Text
pGameName_,
$sel:snapshotId:ListGeneratedCodeJobs' :: Text
snapshotId = Text
pSnapshotId_
}
listGeneratedCodeJobs_maxResults :: Lens.Lens' ListGeneratedCodeJobs (Prelude.Maybe Prelude.Natural)
listGeneratedCodeJobs_maxResults :: Lens' ListGeneratedCodeJobs (Maybe Natural)
listGeneratedCodeJobs_maxResults = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListGeneratedCodeJobs' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListGeneratedCodeJobs' :: ListGeneratedCodeJobs -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListGeneratedCodeJobs
s@ListGeneratedCodeJobs' {} Maybe Natural
a -> ListGeneratedCodeJobs
s {$sel:maxResults:ListGeneratedCodeJobs' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListGeneratedCodeJobs)
listGeneratedCodeJobs_nextToken :: Lens.Lens' ListGeneratedCodeJobs (Prelude.Maybe Prelude.Text)
listGeneratedCodeJobs_nextToken :: Lens' ListGeneratedCodeJobs (Maybe Text)
listGeneratedCodeJobs_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListGeneratedCodeJobs' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListGeneratedCodeJobs' :: ListGeneratedCodeJobs -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListGeneratedCodeJobs
s@ListGeneratedCodeJobs' {} Maybe Text
a -> ListGeneratedCodeJobs
s {$sel:nextToken:ListGeneratedCodeJobs' :: Maybe Text
nextToken = Maybe Text
a} :: ListGeneratedCodeJobs)
listGeneratedCodeJobs_gameName :: Lens.Lens' ListGeneratedCodeJobs Prelude.Text
listGeneratedCodeJobs_gameName :: Lens' ListGeneratedCodeJobs Text
listGeneratedCodeJobs_gameName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListGeneratedCodeJobs' {Text
gameName :: Text
$sel:gameName:ListGeneratedCodeJobs' :: ListGeneratedCodeJobs -> Text
gameName} -> Text
gameName) (\s :: ListGeneratedCodeJobs
s@ListGeneratedCodeJobs' {} Text
a -> ListGeneratedCodeJobs
s {$sel:gameName:ListGeneratedCodeJobs' :: Text
gameName = Text
a} :: ListGeneratedCodeJobs)
listGeneratedCodeJobs_snapshotId :: Lens.Lens' ListGeneratedCodeJobs Prelude.Text
listGeneratedCodeJobs_snapshotId :: Lens' ListGeneratedCodeJobs Text
listGeneratedCodeJobs_snapshotId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListGeneratedCodeJobs' {Text
snapshotId :: Text
$sel:snapshotId:ListGeneratedCodeJobs' :: ListGeneratedCodeJobs -> Text
snapshotId} -> Text
snapshotId) (\s :: ListGeneratedCodeJobs
s@ListGeneratedCodeJobs' {} Text
a -> ListGeneratedCodeJobs
s {$sel:snapshotId:ListGeneratedCodeJobs' :: Text
snapshotId = Text
a} :: ListGeneratedCodeJobs)
instance Core.AWSPager ListGeneratedCodeJobs where
page :: ListGeneratedCodeJobs
-> AWSResponse ListGeneratedCodeJobs -> Maybe ListGeneratedCodeJobs
page ListGeneratedCodeJobs
rq AWSResponse ListGeneratedCodeJobs
rs
| forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListGeneratedCodeJobs
rs
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListGeneratedCodeJobsResponse (Maybe Text)
listGeneratedCodeJobsResponse_nextToken
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
forall a. Maybe a
Prelude.Nothing
| forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListGeneratedCodeJobs
rs
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens'
ListGeneratedCodeJobsResponse (Maybe [GeneratedCodeJobDetails])
listGeneratedCodeJobsResponse_generatedCodeJobs
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
forall a. a -> Maybe a
Prelude.Just
forall a b. (a -> b) -> a -> b
Prelude.$ ListGeneratedCodeJobs
rq
forall a b. a -> (a -> b) -> b
Prelude.& Lens' ListGeneratedCodeJobs (Maybe Text)
listGeneratedCodeJobs_nextToken
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListGeneratedCodeJobs
rs
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListGeneratedCodeJobsResponse (Maybe Text)
listGeneratedCodeJobsResponse_nextToken
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
instance Core.AWSRequest ListGeneratedCodeJobs where
type
AWSResponse ListGeneratedCodeJobs =
ListGeneratedCodeJobsResponse
request :: (Service -> Service)
-> ListGeneratedCodeJobs -> Request ListGeneratedCodeJobs
request Service -> Service
overrides =
forall a. ToRequest a => Service -> a -> Request a
Request.get (Service -> Service
overrides Service
defaultService)
response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy ListGeneratedCodeJobs
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListGeneratedCodeJobs)))
response =
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
( \Int
s ResponseHeaders
h Object
x ->
Maybe [GeneratedCodeJobDetails]
-> Maybe Text -> Int -> ListGeneratedCodeJobsResponse
ListGeneratedCodeJobsResponse'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( Object
x
forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"GeneratedCodeJobs"
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty
)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"NextToken")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
)
instance Prelude.Hashable ListGeneratedCodeJobs where
hashWithSalt :: Int -> ListGeneratedCodeJobs -> Int
hashWithSalt Int
_salt ListGeneratedCodeJobs' {Maybe Natural
Maybe Text
Text
snapshotId :: Text
gameName :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:snapshotId:ListGeneratedCodeJobs' :: ListGeneratedCodeJobs -> Text
$sel:gameName:ListGeneratedCodeJobs' :: ListGeneratedCodeJobs -> Text
$sel:nextToken:ListGeneratedCodeJobs' :: ListGeneratedCodeJobs -> Maybe Text
$sel:maxResults:ListGeneratedCodeJobs' :: ListGeneratedCodeJobs -> Maybe Natural
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
maxResults
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
nextToken
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
gameName
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
snapshotId
instance Prelude.NFData ListGeneratedCodeJobs where
rnf :: ListGeneratedCodeJobs -> ()
rnf ListGeneratedCodeJobs' {Maybe Natural
Maybe Text
Text
snapshotId :: Text
gameName :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:snapshotId:ListGeneratedCodeJobs' :: ListGeneratedCodeJobs -> Text
$sel:gameName:ListGeneratedCodeJobs' :: ListGeneratedCodeJobs -> Text
$sel:nextToken:ListGeneratedCodeJobs' :: ListGeneratedCodeJobs -> Maybe Text
$sel:maxResults:ListGeneratedCodeJobs' :: ListGeneratedCodeJobs -> Maybe Natural
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
maxResults
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
nextToken
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
gameName
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
snapshotId
instance Data.ToHeaders ListGeneratedCodeJobs where
toHeaders :: ListGeneratedCodeJobs -> ResponseHeaders
toHeaders =
forall a b. a -> b -> a
Prelude.const
( forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"Content-Type"
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Data.ToPath ListGeneratedCodeJobs where
toPath :: ListGeneratedCodeJobs -> ByteString
toPath ListGeneratedCodeJobs' {Maybe Natural
Maybe Text
Text
snapshotId :: Text
gameName :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:snapshotId:ListGeneratedCodeJobs' :: ListGeneratedCodeJobs -> Text
$sel:gameName:ListGeneratedCodeJobs' :: ListGeneratedCodeJobs -> Text
$sel:nextToken:ListGeneratedCodeJobs' :: ListGeneratedCodeJobs -> Maybe Text
$sel:maxResults:ListGeneratedCodeJobs' :: ListGeneratedCodeJobs -> Maybe Natural
..} =
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"/game/",
forall a. ToByteString a => a -> ByteString
Data.toBS Text
gameName,
ByteString
"/snapshot/",
forall a. ToByteString a => a -> ByteString
Data.toBS Text
snapshotId,
ByteString
"/generated-sdk-code-jobs"
]
instance Data.ToQuery ListGeneratedCodeJobs where
toQuery :: ListGeneratedCodeJobs -> QueryString
toQuery ListGeneratedCodeJobs' {Maybe Natural
Maybe Text
Text
snapshotId :: Text
gameName :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:snapshotId:ListGeneratedCodeJobs' :: ListGeneratedCodeJobs -> Text
$sel:gameName:ListGeneratedCodeJobs' :: ListGeneratedCodeJobs -> Text
$sel:nextToken:ListGeneratedCodeJobs' :: ListGeneratedCodeJobs -> Maybe Text
$sel:maxResults:ListGeneratedCodeJobs' :: ListGeneratedCodeJobs -> Maybe Natural
..} =
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"MaxResults" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Natural
maxResults,
ByteString
"NextToken" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Text
nextToken
]
data ListGeneratedCodeJobsResponse = ListGeneratedCodeJobsResponse'
{
ListGeneratedCodeJobsResponse -> Maybe [GeneratedCodeJobDetails]
generatedCodeJobs :: Prelude.Maybe [GeneratedCodeJobDetails],
ListGeneratedCodeJobsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListGeneratedCodeJobsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListGeneratedCodeJobsResponse
-> ListGeneratedCodeJobsResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListGeneratedCodeJobsResponse
-> ListGeneratedCodeJobsResponse -> Bool
$c/= :: ListGeneratedCodeJobsResponse
-> ListGeneratedCodeJobsResponse -> Bool
== :: ListGeneratedCodeJobsResponse
-> ListGeneratedCodeJobsResponse -> Bool
$c== :: ListGeneratedCodeJobsResponse
-> ListGeneratedCodeJobsResponse -> Bool
Prelude.Eq, ReadPrec [ListGeneratedCodeJobsResponse]
ReadPrec ListGeneratedCodeJobsResponse
Int -> ReadS ListGeneratedCodeJobsResponse
ReadS [ListGeneratedCodeJobsResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListGeneratedCodeJobsResponse]
$creadListPrec :: ReadPrec [ListGeneratedCodeJobsResponse]
readPrec :: ReadPrec ListGeneratedCodeJobsResponse
$creadPrec :: ReadPrec ListGeneratedCodeJobsResponse
readList :: ReadS [ListGeneratedCodeJobsResponse]
$creadList :: ReadS [ListGeneratedCodeJobsResponse]
readsPrec :: Int -> ReadS ListGeneratedCodeJobsResponse
$creadsPrec :: Int -> ReadS ListGeneratedCodeJobsResponse
Prelude.Read, Int -> ListGeneratedCodeJobsResponse -> ShowS
[ListGeneratedCodeJobsResponse] -> ShowS
ListGeneratedCodeJobsResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListGeneratedCodeJobsResponse] -> ShowS
$cshowList :: [ListGeneratedCodeJobsResponse] -> ShowS
show :: ListGeneratedCodeJobsResponse -> String
$cshow :: ListGeneratedCodeJobsResponse -> String
showsPrec :: Int -> ListGeneratedCodeJobsResponse -> ShowS
$cshowsPrec :: Int -> ListGeneratedCodeJobsResponse -> ShowS
Prelude.Show, forall x.
Rep ListGeneratedCodeJobsResponse x
-> ListGeneratedCodeJobsResponse
forall x.
ListGeneratedCodeJobsResponse
-> Rep ListGeneratedCodeJobsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListGeneratedCodeJobsResponse x
-> ListGeneratedCodeJobsResponse
$cfrom :: forall x.
ListGeneratedCodeJobsResponse
-> Rep ListGeneratedCodeJobsResponse x
Prelude.Generic)
newListGeneratedCodeJobsResponse ::
Prelude.Int ->
ListGeneratedCodeJobsResponse
newListGeneratedCodeJobsResponse :: Int -> ListGeneratedCodeJobsResponse
newListGeneratedCodeJobsResponse Int
pHttpStatus_ =
ListGeneratedCodeJobsResponse'
{ $sel:generatedCodeJobs:ListGeneratedCodeJobsResponse' :: Maybe [GeneratedCodeJobDetails]
generatedCodeJobs =
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListGeneratedCodeJobsResponse' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListGeneratedCodeJobsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listGeneratedCodeJobsResponse_generatedCodeJobs :: Lens.Lens' ListGeneratedCodeJobsResponse (Prelude.Maybe [GeneratedCodeJobDetails])
listGeneratedCodeJobsResponse_generatedCodeJobs :: Lens'
ListGeneratedCodeJobsResponse (Maybe [GeneratedCodeJobDetails])
listGeneratedCodeJobsResponse_generatedCodeJobs = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListGeneratedCodeJobsResponse' {Maybe [GeneratedCodeJobDetails]
generatedCodeJobs :: Maybe [GeneratedCodeJobDetails]
$sel:generatedCodeJobs:ListGeneratedCodeJobsResponse' :: ListGeneratedCodeJobsResponse -> Maybe [GeneratedCodeJobDetails]
generatedCodeJobs} -> Maybe [GeneratedCodeJobDetails]
generatedCodeJobs) (\s :: ListGeneratedCodeJobsResponse
s@ListGeneratedCodeJobsResponse' {} Maybe [GeneratedCodeJobDetails]
a -> ListGeneratedCodeJobsResponse
s {$sel:generatedCodeJobs:ListGeneratedCodeJobsResponse' :: Maybe [GeneratedCodeJobDetails]
generatedCodeJobs = Maybe [GeneratedCodeJobDetails]
a} :: ListGeneratedCodeJobsResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listGeneratedCodeJobsResponse_nextToken :: Lens.Lens' ListGeneratedCodeJobsResponse (Prelude.Maybe Prelude.Text)
listGeneratedCodeJobsResponse_nextToken :: Lens' ListGeneratedCodeJobsResponse (Maybe Text)
listGeneratedCodeJobsResponse_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListGeneratedCodeJobsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListGeneratedCodeJobsResponse' :: ListGeneratedCodeJobsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListGeneratedCodeJobsResponse
s@ListGeneratedCodeJobsResponse' {} Maybe Text
a -> ListGeneratedCodeJobsResponse
s {$sel:nextToken:ListGeneratedCodeJobsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListGeneratedCodeJobsResponse)
listGeneratedCodeJobsResponse_httpStatus :: Lens.Lens' ListGeneratedCodeJobsResponse Prelude.Int
listGeneratedCodeJobsResponse_httpStatus :: Lens' ListGeneratedCodeJobsResponse Int
listGeneratedCodeJobsResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListGeneratedCodeJobsResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListGeneratedCodeJobsResponse' :: ListGeneratedCodeJobsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListGeneratedCodeJobsResponse
s@ListGeneratedCodeJobsResponse' {} Int
a -> ListGeneratedCodeJobsResponse
s {$sel:httpStatus:ListGeneratedCodeJobsResponse' :: Int
httpStatus = Int
a} :: ListGeneratedCodeJobsResponse)
instance Prelude.NFData ListGeneratedCodeJobsResponse where
rnf :: ListGeneratedCodeJobsResponse -> ()
rnf ListGeneratedCodeJobsResponse' {Int
Maybe [GeneratedCodeJobDetails]
Maybe Text
httpStatus :: Int
nextToken :: Maybe Text
generatedCodeJobs :: Maybe [GeneratedCodeJobDetails]
$sel:httpStatus:ListGeneratedCodeJobsResponse' :: ListGeneratedCodeJobsResponse -> Int
$sel:nextToken:ListGeneratedCodeJobsResponse' :: ListGeneratedCodeJobsResponse -> Maybe Text
$sel:generatedCodeJobs:ListGeneratedCodeJobsResponse' :: ListGeneratedCodeJobsResponse -> Maybe [GeneratedCodeJobDetails]
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe [GeneratedCodeJobDetails]
generatedCodeJobs
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
nextToken
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus