{-# 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.ImportExport.ListJobs
(
ListJobs (..),
newListJobs,
listJobs_aPIVersion,
listJobs_marker,
listJobs_maxJobs,
ListJobsResponse (..),
newListJobsResponse,
listJobsResponse_jobs,
listJobsResponse_isTruncated,
listJobsResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.ImportExport.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 ListJobs = ListJobs'
{ ListJobs -> Maybe Text
aPIVersion :: Prelude.Maybe Prelude.Text,
ListJobs -> Maybe Text
marker :: Prelude.Maybe Prelude.Text,
ListJobs -> Maybe Int
maxJobs :: Prelude.Maybe Prelude.Int
}
deriving (ListJobs -> ListJobs -> Bool
(ListJobs -> ListJobs -> Bool)
-> (ListJobs -> ListJobs -> Bool) -> Eq ListJobs
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListJobs -> ListJobs -> Bool
$c/= :: ListJobs -> ListJobs -> Bool
== :: ListJobs -> ListJobs -> Bool
$c== :: ListJobs -> ListJobs -> Bool
Prelude.Eq, ReadPrec [ListJobs]
ReadPrec ListJobs
Int -> ReadS ListJobs
ReadS [ListJobs]
(Int -> ReadS ListJobs)
-> ReadS [ListJobs]
-> ReadPrec ListJobs
-> ReadPrec [ListJobs]
-> Read ListJobs
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListJobs]
$creadListPrec :: ReadPrec [ListJobs]
readPrec :: ReadPrec ListJobs
$creadPrec :: ReadPrec ListJobs
readList :: ReadS [ListJobs]
$creadList :: ReadS [ListJobs]
readsPrec :: Int -> ReadS ListJobs
$creadsPrec :: Int -> ReadS ListJobs
Prelude.Read, Int -> ListJobs -> ShowS
[ListJobs] -> ShowS
ListJobs -> String
(Int -> ListJobs -> ShowS)
-> (ListJobs -> String) -> ([ListJobs] -> ShowS) -> Show ListJobs
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListJobs] -> ShowS
$cshowList :: [ListJobs] -> ShowS
show :: ListJobs -> String
$cshow :: ListJobs -> String
showsPrec :: Int -> ListJobs -> ShowS
$cshowsPrec :: Int -> ListJobs -> ShowS
Prelude.Show, (forall x. ListJobs -> Rep ListJobs x)
-> (forall x. Rep ListJobs x -> ListJobs) -> Generic ListJobs
forall x. Rep ListJobs x -> ListJobs
forall x. ListJobs -> Rep ListJobs x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListJobs x -> ListJobs
$cfrom :: forall x. ListJobs -> Rep ListJobs x
Prelude.Generic)
newListJobs ::
ListJobs
newListJobs :: ListJobs
newListJobs =
ListJobs' :: Maybe Text -> Maybe Text -> Maybe Int -> ListJobs
ListJobs'
{ $sel:aPIVersion:ListJobs' :: Maybe Text
aPIVersion = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:marker:ListJobs' :: Maybe Text
marker = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxJobs:ListJobs' :: Maybe Int
maxJobs = Maybe Int
forall a. Maybe a
Prelude.Nothing
}
listJobs_aPIVersion :: Lens.Lens' ListJobs (Prelude.Maybe Prelude.Text)
listJobs_aPIVersion :: (Maybe Text -> f (Maybe Text)) -> ListJobs -> f ListJobs
listJobs_aPIVersion = (ListJobs -> Maybe Text)
-> (ListJobs -> Maybe Text -> ListJobs)
-> Lens ListJobs ListJobs (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListJobs' {Maybe Text
aPIVersion :: Maybe Text
$sel:aPIVersion:ListJobs' :: ListJobs -> Maybe Text
aPIVersion} -> Maybe Text
aPIVersion) (\s :: ListJobs
s@ListJobs' {} Maybe Text
a -> ListJobs
s {$sel:aPIVersion:ListJobs' :: Maybe Text
aPIVersion = Maybe Text
a} :: ListJobs)
listJobs_marker :: Lens.Lens' ListJobs (Prelude.Maybe Prelude.Text)
listJobs_marker :: (Maybe Text -> f (Maybe Text)) -> ListJobs -> f ListJobs
listJobs_marker = (ListJobs -> Maybe Text)
-> (ListJobs -> Maybe Text -> ListJobs)
-> Lens ListJobs ListJobs (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListJobs' {Maybe Text
marker :: Maybe Text
$sel:marker:ListJobs' :: ListJobs -> Maybe Text
marker} -> Maybe Text
marker) (\s :: ListJobs
s@ListJobs' {} Maybe Text
a -> ListJobs
s {$sel:marker:ListJobs' :: Maybe Text
marker = Maybe Text
a} :: ListJobs)
listJobs_maxJobs :: Lens.Lens' ListJobs (Prelude.Maybe Prelude.Int)
listJobs_maxJobs :: (Maybe Int -> f (Maybe Int)) -> ListJobs -> f ListJobs
listJobs_maxJobs = (ListJobs -> Maybe Int)
-> (ListJobs -> Maybe Int -> ListJobs)
-> Lens ListJobs ListJobs (Maybe Int) (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListJobs' {Maybe Int
maxJobs :: Maybe Int
$sel:maxJobs:ListJobs' :: ListJobs -> Maybe Int
maxJobs} -> Maybe Int
maxJobs) (\s :: ListJobs
s@ListJobs' {} Maybe Int
a -> ListJobs
s {$sel:maxJobs:ListJobs' :: Maybe Int
maxJobs = Maybe Int
a} :: ListJobs)
instance Core.AWSPager ListJobs where
page :: ListJobs -> AWSResponse ListJobs -> Maybe ListJobs
page ListJobs
rq AWSResponse ListJobs
rs
| Maybe Bool -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListJobs
ListJobsResponse
rs
ListJobsResponse
-> Getting (First Bool) ListJobsResponse Bool -> Maybe Bool
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Bool -> Const (First Bool) (Maybe Bool))
-> ListJobsResponse -> Const (First Bool) ListJobsResponse
Lens' ListJobsResponse (Maybe Bool)
listJobsResponse_isTruncated ((Maybe Bool -> Const (First Bool) (Maybe Bool))
-> ListJobsResponse -> Const (First Bool) ListJobsResponse)
-> ((Bool -> Const (First Bool) Bool)
-> Maybe Bool -> Const (First Bool) (Maybe Bool))
-> Getting (First Bool) ListJobsResponse Bool
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Bool -> Const (First Bool) Bool)
-> Maybe Bool -> Const (First Bool) (Maybe Bool)
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe ListJobs
forall a. Maybe a
Prelude.Nothing
| Maybe Text -> Bool
forall a. Maybe a -> Bool
Prelude.isNothing
( AWSResponse ListJobs
ListJobsResponse
rs
ListJobsResponse
-> Getting (First Text) ListJobsResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [Job] -> Const (First Text) (Maybe [Job]))
-> ListJobsResponse -> Const (First Text) ListJobsResponse
Lens' ListJobsResponse (Maybe [Job])
listJobsResponse_jobs ((Maybe [Job] -> Const (First Text) (Maybe [Job]))
-> ListJobsResponse -> Const (First Text) ListJobsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe [Job] -> Const (First Text) (Maybe [Job]))
-> Getting (First Text) ListJobsResponse Text
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([Job] -> Const (First Text) [Job])
-> Maybe [Job] -> Const (First Text) (Maybe [Job])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
(([Job] -> Const (First Text) [Job])
-> Maybe [Job] -> Const (First Text) (Maybe [Job]))
-> ((Text -> Const (First Text) Text)
-> [Job] -> Const (First Text) [Job])
-> (Text -> Const (First Text) Text)
-> Maybe [Job]
-> Const (First Text) (Maybe [Job])
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Job -> Const (First Text) Job)
-> [Job] -> Const (First Text) [Job]
forall s a. Snoc s s a a => Traversal' s a
Lens._last
((Job -> Const (First Text) Job)
-> [Job] -> Const (First Text) [Job])
-> ((Text -> Const (First Text) Text)
-> Job -> Const (First Text) Job)
-> (Text -> Const (First Text) Text)
-> [Job]
-> Const (First Text) [Job]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> Const (First Text) Text) -> Job -> Const (First Text) Job
Lens' Job Text
job_jobId
) =
Maybe ListJobs
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
ListJobs -> Maybe ListJobs
forall a. a -> Maybe a
Prelude.Just (ListJobs -> Maybe ListJobs) -> ListJobs -> Maybe ListJobs
forall a b. (a -> b) -> a -> b
Prelude.$
ListJobs
rq
ListJobs -> (ListJobs -> ListJobs) -> ListJobs
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListJobs -> Identity ListJobs
Lens ListJobs ListJobs (Maybe Text) (Maybe Text)
listJobs_marker
((Maybe Text -> Identity (Maybe Text))
-> ListJobs -> Identity ListJobs)
-> Maybe Text -> ListJobs -> ListJobs
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListJobs
ListJobsResponse
rs
ListJobsResponse
-> Getting (First Text) ListJobsResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [Job] -> Const (First Text) (Maybe [Job]))
-> ListJobsResponse -> Const (First Text) ListJobsResponse
Lens' ListJobsResponse (Maybe [Job])
listJobsResponse_jobs ((Maybe [Job] -> Const (First Text) (Maybe [Job]))
-> ListJobsResponse -> Const (First Text) ListJobsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe [Job] -> Const (First Text) (Maybe [Job]))
-> Getting (First Text) ListJobsResponse Text
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([Job] -> Const (First Text) [Job])
-> Maybe [Job] -> Const (First Text) (Maybe [Job])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
(([Job] -> Const (First Text) [Job])
-> Maybe [Job] -> Const (First Text) (Maybe [Job]))
-> ((Text -> Const (First Text) Text)
-> [Job] -> Const (First Text) [Job])
-> (Text -> Const (First Text) Text)
-> Maybe [Job]
-> Const (First Text) (Maybe [Job])
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Job -> Const (First Text) Job)
-> [Job] -> Const (First Text) [Job]
forall s a. Snoc s s a a => Traversal' s a
Lens._last
((Job -> Const (First Text) Job)
-> [Job] -> Const (First Text) [Job])
-> ((Text -> Const (First Text) Text)
-> Job -> Const (First Text) Job)
-> (Text -> Const (First Text) Text)
-> [Job]
-> Const (First Text) [Job]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> Const (First Text) Text) -> Job -> Const (First Text) Job
Lens' Job Text
job_jobId
instance Core.AWSRequest ListJobs where
type AWSResponse ListJobs = ListJobsResponse
request :: ListJobs -> Request ListJobs
request = Service -> ListJobs -> Request ListJobs
forall a. ToRequest a => Service -> a -> Request a
Request.postQuery Service
defaultService
response :: Logger
-> Service
-> Proxy ListJobs
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListJobs)))
response =
Text
-> (Int
-> ResponseHeaders
-> [Node]
-> Either String (AWSResponse ListJobs))
-> Logger
-> Service
-> Proxy ListJobs
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListJobs)))
forall (m :: * -> *) a.
MonadResource m =>
Text
-> (Int
-> ResponseHeaders -> [Node] -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveXMLWrapper
Text
"ListJobsResult"
( \Int
s ResponseHeaders
h [Node]
x ->
Maybe [Job] -> Maybe Bool -> Int -> ListJobsResponse
ListJobsResponse'
(Maybe [Job] -> Maybe Bool -> Int -> ListJobsResponse)
-> Either String (Maybe [Job])
-> Either String (Maybe Bool -> Int -> ListJobsResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( [Node]
x [Node] -> Text -> Either String (Maybe [Node])
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"Jobs" Either String (Maybe [Node]) -> [Node] -> Either String [Node]
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ [Node]
forall a. Monoid a => a
Prelude.mempty
Either String [Node]
-> ([Node] -> Either String (Maybe [Job]))
-> Either String (Maybe [Job])
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
Prelude.>>= ([Node] -> Either String [Job])
-> [Node] -> Either String (Maybe [Job])
forall (f :: * -> *) a b.
Applicative f =>
([a] -> f b) -> [a] -> f (Maybe b)
Core.may (Text -> [Node] -> Either String [Job]
forall a. FromXML a => Text -> [Node] -> Either String [a]
Core.parseXMLList Text
"member")
)
Either String (Maybe Bool -> Int -> ListJobsResponse)
-> Either String (Maybe Bool)
-> Either String (Int -> ListJobsResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Bool)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"IsTruncated")
Either String (Int -> ListJobsResponse)
-> Either String Int -> Either String ListJobsResponse
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 ListJobs
instance Prelude.NFData ListJobs
instance Core.ToHeaders ListJobs where
toHeaders :: ListJobs -> ResponseHeaders
toHeaders = ResponseHeaders -> ListJobs -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty
instance Core.ToPath ListJobs where
toPath :: ListJobs -> ByteString
toPath = ByteString -> ListJobs -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery ListJobs where
toQuery :: ListJobs -> QueryString
toQuery ListJobs' {Maybe Int
Maybe Text
maxJobs :: Maybe Int
marker :: Maybe Text
aPIVersion :: Maybe Text
$sel:maxJobs:ListJobs' :: ListJobs -> Maybe Int
$sel:marker:ListJobs' :: ListJobs -> Maybe Text
$sel:aPIVersion:ListJobs' :: ListJobs -> Maybe Text
..} =
[QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ QueryString
"Operation=ListJobs",
ByteString
"Action" ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"ListJobs" :: Prelude.ByteString),
ByteString
"Version"
ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"2010-06-01" :: Prelude.ByteString),
ByteString
"APIVersion" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
aPIVersion,
ByteString
"Marker" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
marker,
ByteString
"MaxJobs" ByteString -> Maybe Int -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Int
maxJobs
]
data ListJobsResponse = ListJobsResponse'
{ ListJobsResponse -> Maybe [Job]
jobs :: Prelude.Maybe [Job],
ListJobsResponse -> Maybe Bool
isTruncated :: Prelude.Maybe Prelude.Bool,
ListJobsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListJobsResponse -> ListJobsResponse -> Bool
(ListJobsResponse -> ListJobsResponse -> Bool)
-> (ListJobsResponse -> ListJobsResponse -> Bool)
-> Eq ListJobsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListJobsResponse -> ListJobsResponse -> Bool
$c/= :: ListJobsResponse -> ListJobsResponse -> Bool
== :: ListJobsResponse -> ListJobsResponse -> Bool
$c== :: ListJobsResponse -> ListJobsResponse -> Bool
Prelude.Eq, ReadPrec [ListJobsResponse]
ReadPrec ListJobsResponse
Int -> ReadS ListJobsResponse
ReadS [ListJobsResponse]
(Int -> ReadS ListJobsResponse)
-> ReadS [ListJobsResponse]
-> ReadPrec ListJobsResponse
-> ReadPrec [ListJobsResponse]
-> Read ListJobsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListJobsResponse]
$creadListPrec :: ReadPrec [ListJobsResponse]
readPrec :: ReadPrec ListJobsResponse
$creadPrec :: ReadPrec ListJobsResponse
readList :: ReadS [ListJobsResponse]
$creadList :: ReadS [ListJobsResponse]
readsPrec :: Int -> ReadS ListJobsResponse
$creadsPrec :: Int -> ReadS ListJobsResponse
Prelude.Read, Int -> ListJobsResponse -> ShowS
[ListJobsResponse] -> ShowS
ListJobsResponse -> String
(Int -> ListJobsResponse -> ShowS)
-> (ListJobsResponse -> String)
-> ([ListJobsResponse] -> ShowS)
-> Show ListJobsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListJobsResponse] -> ShowS
$cshowList :: [ListJobsResponse] -> ShowS
show :: ListJobsResponse -> String
$cshow :: ListJobsResponse -> String
showsPrec :: Int -> ListJobsResponse -> ShowS
$cshowsPrec :: Int -> ListJobsResponse -> ShowS
Prelude.Show, (forall x. ListJobsResponse -> Rep ListJobsResponse x)
-> (forall x. Rep ListJobsResponse x -> ListJobsResponse)
-> Generic ListJobsResponse
forall x. Rep ListJobsResponse x -> ListJobsResponse
forall x. ListJobsResponse -> Rep ListJobsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListJobsResponse x -> ListJobsResponse
$cfrom :: forall x. ListJobsResponse -> Rep ListJobsResponse x
Prelude.Generic)
newListJobsResponse ::
Prelude.Int ->
ListJobsResponse
newListJobsResponse :: Int -> ListJobsResponse
newListJobsResponse Int
pHttpStatus_ =
ListJobsResponse' :: Maybe [Job] -> Maybe Bool -> Int -> ListJobsResponse
ListJobsResponse'
{ $sel:jobs:ListJobsResponse' :: Maybe [Job]
jobs = Maybe [Job]
forall a. Maybe a
Prelude.Nothing,
$sel:isTruncated:ListJobsResponse' :: Maybe Bool
isTruncated = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListJobsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listJobsResponse_jobs :: Lens.Lens' ListJobsResponse (Prelude.Maybe [Job])
listJobsResponse_jobs :: (Maybe [Job] -> f (Maybe [Job]))
-> ListJobsResponse -> f ListJobsResponse
listJobsResponse_jobs = (ListJobsResponse -> Maybe [Job])
-> (ListJobsResponse -> Maybe [Job] -> ListJobsResponse)
-> Lens' ListJobsResponse (Maybe [Job])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListJobsResponse' {Maybe [Job]
jobs :: Maybe [Job]
$sel:jobs:ListJobsResponse' :: ListJobsResponse -> Maybe [Job]
jobs} -> Maybe [Job]
jobs) (\s :: ListJobsResponse
s@ListJobsResponse' {} Maybe [Job]
a -> ListJobsResponse
s {$sel:jobs:ListJobsResponse' :: Maybe [Job]
jobs = Maybe [Job]
a} :: ListJobsResponse) ((Maybe [Job] -> f (Maybe [Job]))
-> ListJobsResponse -> f ListJobsResponse)
-> ((Maybe [Job] -> f (Maybe [Job]))
-> Maybe [Job] -> f (Maybe [Job]))
-> (Maybe [Job] -> f (Maybe [Job]))
-> ListJobsResponse
-> f ListJobsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Job] [Job] [Job] [Job]
-> Iso (Maybe [Job]) (Maybe [Job]) (Maybe [Job]) (Maybe [Job])
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 [Job] [Job] [Job] [Job]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listJobsResponse_isTruncated :: Lens.Lens' ListJobsResponse (Prelude.Maybe Prelude.Bool)
listJobsResponse_isTruncated :: (Maybe Bool -> f (Maybe Bool))
-> ListJobsResponse -> f ListJobsResponse
listJobsResponse_isTruncated = (ListJobsResponse -> Maybe Bool)
-> (ListJobsResponse -> Maybe Bool -> ListJobsResponse)
-> Lens' ListJobsResponse (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListJobsResponse' {Maybe Bool
isTruncated :: Maybe Bool
$sel:isTruncated:ListJobsResponse' :: ListJobsResponse -> Maybe Bool
isTruncated} -> Maybe Bool
isTruncated) (\s :: ListJobsResponse
s@ListJobsResponse' {} Maybe Bool
a -> ListJobsResponse
s {$sel:isTruncated:ListJobsResponse' :: Maybe Bool
isTruncated = Maybe Bool
a} :: ListJobsResponse)
listJobsResponse_httpStatus :: Lens.Lens' ListJobsResponse Prelude.Int
listJobsResponse_httpStatus :: (Int -> f Int) -> ListJobsResponse -> f ListJobsResponse
listJobsResponse_httpStatus = (ListJobsResponse -> Int)
-> (ListJobsResponse -> Int -> ListJobsResponse)
-> Lens ListJobsResponse ListJobsResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListJobsResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListJobsResponse' :: ListJobsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListJobsResponse
s@ListJobsResponse' {} Int
a -> ListJobsResponse
s {$sel:httpStatus:ListJobsResponse' :: Int
httpStatus = Int
a} :: ListJobsResponse)
instance Prelude.NFData ListJobsResponse