{-# 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.ElasticTranscoder.ListJobsByPipeline
(
ListJobsByPipeline (..),
newListJobsByPipeline,
listJobsByPipeline_ascending,
listJobsByPipeline_pageToken,
listJobsByPipeline_pipelineId,
ListJobsByPipelineResponse (..),
newListJobsByPipelineResponse,
listJobsByPipelineResponse_nextPageToken,
listJobsByPipelineResponse_jobs,
listJobsByPipelineResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.ElasticTranscoder.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 ListJobsByPipeline = ListJobsByPipeline'
{
ListJobsByPipeline -> Maybe Text
ascending :: Prelude.Maybe Prelude.Text,
ListJobsByPipeline -> Maybe Text
pageToken :: Prelude.Maybe Prelude.Text,
ListJobsByPipeline -> Text
pipelineId :: Prelude.Text
}
deriving (ListJobsByPipeline -> ListJobsByPipeline -> Bool
(ListJobsByPipeline -> ListJobsByPipeline -> Bool)
-> (ListJobsByPipeline -> ListJobsByPipeline -> Bool)
-> Eq ListJobsByPipeline
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListJobsByPipeline -> ListJobsByPipeline -> Bool
$c/= :: ListJobsByPipeline -> ListJobsByPipeline -> Bool
== :: ListJobsByPipeline -> ListJobsByPipeline -> Bool
$c== :: ListJobsByPipeline -> ListJobsByPipeline -> Bool
Prelude.Eq, ReadPrec [ListJobsByPipeline]
ReadPrec ListJobsByPipeline
Int -> ReadS ListJobsByPipeline
ReadS [ListJobsByPipeline]
(Int -> ReadS ListJobsByPipeline)
-> ReadS [ListJobsByPipeline]
-> ReadPrec ListJobsByPipeline
-> ReadPrec [ListJobsByPipeline]
-> Read ListJobsByPipeline
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListJobsByPipeline]
$creadListPrec :: ReadPrec [ListJobsByPipeline]
readPrec :: ReadPrec ListJobsByPipeline
$creadPrec :: ReadPrec ListJobsByPipeline
readList :: ReadS [ListJobsByPipeline]
$creadList :: ReadS [ListJobsByPipeline]
readsPrec :: Int -> ReadS ListJobsByPipeline
$creadsPrec :: Int -> ReadS ListJobsByPipeline
Prelude.Read, Int -> ListJobsByPipeline -> ShowS
[ListJobsByPipeline] -> ShowS
ListJobsByPipeline -> String
(Int -> ListJobsByPipeline -> ShowS)
-> (ListJobsByPipeline -> String)
-> ([ListJobsByPipeline] -> ShowS)
-> Show ListJobsByPipeline
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListJobsByPipeline] -> ShowS
$cshowList :: [ListJobsByPipeline] -> ShowS
show :: ListJobsByPipeline -> String
$cshow :: ListJobsByPipeline -> String
showsPrec :: Int -> ListJobsByPipeline -> ShowS
$cshowsPrec :: Int -> ListJobsByPipeline -> ShowS
Prelude.Show, (forall x. ListJobsByPipeline -> Rep ListJobsByPipeline x)
-> (forall x. Rep ListJobsByPipeline x -> ListJobsByPipeline)
-> Generic ListJobsByPipeline
forall x. Rep ListJobsByPipeline x -> ListJobsByPipeline
forall x. ListJobsByPipeline -> Rep ListJobsByPipeline x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListJobsByPipeline x -> ListJobsByPipeline
$cfrom :: forall x. ListJobsByPipeline -> Rep ListJobsByPipeline x
Prelude.Generic)
newListJobsByPipeline ::
Prelude.Text ->
ListJobsByPipeline
newListJobsByPipeline :: Text -> ListJobsByPipeline
newListJobsByPipeline Text
pPipelineId_ =
ListJobsByPipeline' :: Maybe Text -> Maybe Text -> Text -> ListJobsByPipeline
ListJobsByPipeline'
{ $sel:ascending:ListJobsByPipeline' :: Maybe Text
ascending = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:pageToken:ListJobsByPipeline' :: Maybe Text
pageToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:pipelineId:ListJobsByPipeline' :: Text
pipelineId = Text
pPipelineId_
}
listJobsByPipeline_ascending :: Lens.Lens' ListJobsByPipeline (Prelude.Maybe Prelude.Text)
listJobsByPipeline_ascending :: (Maybe Text -> f (Maybe Text))
-> ListJobsByPipeline -> f ListJobsByPipeline
listJobsByPipeline_ascending = (ListJobsByPipeline -> Maybe Text)
-> (ListJobsByPipeline -> Maybe Text -> ListJobsByPipeline)
-> Lens
ListJobsByPipeline ListJobsByPipeline (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListJobsByPipeline' {Maybe Text
ascending :: Maybe Text
$sel:ascending:ListJobsByPipeline' :: ListJobsByPipeline -> Maybe Text
ascending} -> Maybe Text
ascending) (\s :: ListJobsByPipeline
s@ListJobsByPipeline' {} Maybe Text
a -> ListJobsByPipeline
s {$sel:ascending:ListJobsByPipeline' :: Maybe Text
ascending = Maybe Text
a} :: ListJobsByPipeline)
listJobsByPipeline_pageToken :: Lens.Lens' ListJobsByPipeline (Prelude.Maybe Prelude.Text)
listJobsByPipeline_pageToken :: (Maybe Text -> f (Maybe Text))
-> ListJobsByPipeline -> f ListJobsByPipeline
listJobsByPipeline_pageToken = (ListJobsByPipeline -> Maybe Text)
-> (ListJobsByPipeline -> Maybe Text -> ListJobsByPipeline)
-> Lens
ListJobsByPipeline ListJobsByPipeline (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListJobsByPipeline' {Maybe Text
pageToken :: Maybe Text
$sel:pageToken:ListJobsByPipeline' :: ListJobsByPipeline -> Maybe Text
pageToken} -> Maybe Text
pageToken) (\s :: ListJobsByPipeline
s@ListJobsByPipeline' {} Maybe Text
a -> ListJobsByPipeline
s {$sel:pageToken:ListJobsByPipeline' :: Maybe Text
pageToken = Maybe Text
a} :: ListJobsByPipeline)
listJobsByPipeline_pipelineId :: Lens.Lens' ListJobsByPipeline Prelude.Text
listJobsByPipeline_pipelineId :: (Text -> f Text) -> ListJobsByPipeline -> f ListJobsByPipeline
listJobsByPipeline_pipelineId = (ListJobsByPipeline -> Text)
-> (ListJobsByPipeline -> Text -> ListJobsByPipeline)
-> Lens ListJobsByPipeline ListJobsByPipeline Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListJobsByPipeline' {Text
pipelineId :: Text
$sel:pipelineId:ListJobsByPipeline' :: ListJobsByPipeline -> Text
pipelineId} -> Text
pipelineId) (\s :: ListJobsByPipeline
s@ListJobsByPipeline' {} Text
a -> ListJobsByPipeline
s {$sel:pipelineId:ListJobsByPipeline' :: Text
pipelineId = Text
a} :: ListJobsByPipeline)
instance Core.AWSPager ListJobsByPipeline where
page :: ListJobsByPipeline
-> AWSResponse ListJobsByPipeline -> Maybe ListJobsByPipeline
page ListJobsByPipeline
rq AWSResponse ListJobsByPipeline
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListJobsByPipeline
ListJobsByPipelineResponse
rs
ListJobsByPipelineResponse
-> Getting (First Text) ListJobsByPipelineResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListJobsByPipelineResponse
-> Const (First Text) ListJobsByPipelineResponse
Lens' ListJobsByPipelineResponse (Maybe Text)
listJobsByPipelineResponse_nextPageToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListJobsByPipelineResponse
-> Const (First Text) ListJobsByPipelineResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListJobsByPipelineResponse 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 ListJobsByPipeline
forall a. Maybe a
Prelude.Nothing
| Maybe [Job] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListJobsByPipeline
ListJobsByPipelineResponse
rs
ListJobsByPipelineResponse
-> Getting (First [Job]) ListJobsByPipelineResponse [Job]
-> Maybe [Job]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [Job] -> Const (First [Job]) (Maybe [Job]))
-> ListJobsByPipelineResponse
-> Const (First [Job]) ListJobsByPipelineResponse
Lens' ListJobsByPipelineResponse (Maybe [Job])
listJobsByPipelineResponse_jobs ((Maybe [Job] -> Const (First [Job]) (Maybe [Job]))
-> ListJobsByPipelineResponse
-> Const (First [Job]) ListJobsByPipelineResponse)
-> (([Job] -> Const (First [Job]) [Job])
-> Maybe [Job] -> Const (First [Job]) (Maybe [Job]))
-> Getting (First [Job]) ListJobsByPipelineResponse [Job]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([Job] -> Const (First [Job]) [Job])
-> Maybe [Job] -> Const (First [Job]) (Maybe [Job])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe ListJobsByPipeline
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
ListJobsByPipeline -> Maybe ListJobsByPipeline
forall a. a -> Maybe a
Prelude.Just (ListJobsByPipeline -> Maybe ListJobsByPipeline)
-> ListJobsByPipeline -> Maybe ListJobsByPipeline
forall a b. (a -> b) -> a -> b
Prelude.$
ListJobsByPipeline
rq
ListJobsByPipeline
-> (ListJobsByPipeline -> ListJobsByPipeline) -> ListJobsByPipeline
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListJobsByPipeline -> Identity ListJobsByPipeline
Lens
ListJobsByPipeline ListJobsByPipeline (Maybe Text) (Maybe Text)
listJobsByPipeline_pageToken
((Maybe Text -> Identity (Maybe Text))
-> ListJobsByPipeline -> Identity ListJobsByPipeline)
-> Maybe Text -> ListJobsByPipeline -> ListJobsByPipeline
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListJobsByPipeline
ListJobsByPipelineResponse
rs
ListJobsByPipelineResponse
-> Getting (First Text) ListJobsByPipelineResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListJobsByPipelineResponse
-> Const (First Text) ListJobsByPipelineResponse
Lens' ListJobsByPipelineResponse (Maybe Text)
listJobsByPipelineResponse_nextPageToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListJobsByPipelineResponse
-> Const (First Text) ListJobsByPipelineResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListJobsByPipelineResponse 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 ListJobsByPipeline where
type
AWSResponse ListJobsByPipeline =
ListJobsByPipelineResponse
request :: ListJobsByPipeline -> Request ListJobsByPipeline
request = Service -> ListJobsByPipeline -> Request ListJobsByPipeline
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy ListJobsByPipeline
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListJobsByPipeline)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListJobsByPipeline))
-> Logger
-> Service
-> Proxy ListJobsByPipeline
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListJobsByPipeline)))
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 -> Maybe [Job] -> Int -> ListJobsByPipelineResponse
ListJobsByPipelineResponse'
(Maybe Text -> Maybe [Job] -> Int -> ListJobsByPipelineResponse)
-> Either String (Maybe Text)
-> Either String (Maybe [Job] -> Int -> ListJobsByPipelineResponse)
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
"NextPageToken")
Either String (Maybe [Job] -> Int -> ListJobsByPipelineResponse)
-> Either String (Maybe [Job])
-> Either String (Int -> ListJobsByPipelineResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Maybe [Job]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Jobs" Either String (Maybe (Maybe [Job]))
-> Maybe [Job] -> Either String (Maybe [Job])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [Job]
forall a. Monoid a => a
Prelude.mempty)
Either String (Int -> ListJobsByPipelineResponse)
-> Either String Int -> Either String ListJobsByPipelineResponse
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 ListJobsByPipeline
instance Prelude.NFData ListJobsByPipeline
instance Core.ToHeaders ListJobsByPipeline where
toHeaders :: ListJobsByPipeline -> ResponseHeaders
toHeaders = ResponseHeaders -> ListJobsByPipeline -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty
instance Core.ToPath ListJobsByPipeline where
toPath :: ListJobsByPipeline -> ByteString
toPath ListJobsByPipeline' {Maybe Text
Text
pipelineId :: Text
pageToken :: Maybe Text
ascending :: Maybe Text
$sel:pipelineId:ListJobsByPipeline' :: ListJobsByPipeline -> Text
$sel:pageToken:ListJobsByPipeline' :: ListJobsByPipeline -> Maybe Text
$sel:ascending:ListJobsByPipeline' :: ListJobsByPipeline -> Maybe Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ByteString
"/2012-09-25/jobsByPipeline/", Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
pipelineId]
instance Core.ToQuery ListJobsByPipeline where
toQuery :: ListJobsByPipeline -> QueryString
toQuery ListJobsByPipeline' {Maybe Text
Text
pipelineId :: Text
pageToken :: Maybe Text
ascending :: Maybe Text
$sel:pipelineId:ListJobsByPipeline' :: ListJobsByPipeline -> Text
$sel:pageToken:ListJobsByPipeline' :: ListJobsByPipeline -> Maybe Text
$sel:ascending:ListJobsByPipeline' :: ListJobsByPipeline -> Maybe Text
..} =
[QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"Ascending" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
ascending,
ByteString
"PageToken" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
pageToken
]
data ListJobsByPipelineResponse = ListJobsByPipelineResponse'
{
ListJobsByPipelineResponse -> Maybe Text
nextPageToken :: Prelude.Maybe Prelude.Text,
ListJobsByPipelineResponse -> Maybe [Job]
jobs :: Prelude.Maybe [Job],
ListJobsByPipelineResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListJobsByPipelineResponse -> ListJobsByPipelineResponse -> Bool
(ListJobsByPipelineResponse -> ListJobsByPipelineResponse -> Bool)
-> (ListJobsByPipelineResponse
-> ListJobsByPipelineResponse -> Bool)
-> Eq ListJobsByPipelineResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListJobsByPipelineResponse -> ListJobsByPipelineResponse -> Bool
$c/= :: ListJobsByPipelineResponse -> ListJobsByPipelineResponse -> Bool
== :: ListJobsByPipelineResponse -> ListJobsByPipelineResponse -> Bool
$c== :: ListJobsByPipelineResponse -> ListJobsByPipelineResponse -> Bool
Prelude.Eq, ReadPrec [ListJobsByPipelineResponse]
ReadPrec ListJobsByPipelineResponse
Int -> ReadS ListJobsByPipelineResponse
ReadS [ListJobsByPipelineResponse]
(Int -> ReadS ListJobsByPipelineResponse)
-> ReadS [ListJobsByPipelineResponse]
-> ReadPrec ListJobsByPipelineResponse
-> ReadPrec [ListJobsByPipelineResponse]
-> Read ListJobsByPipelineResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListJobsByPipelineResponse]
$creadListPrec :: ReadPrec [ListJobsByPipelineResponse]
readPrec :: ReadPrec ListJobsByPipelineResponse
$creadPrec :: ReadPrec ListJobsByPipelineResponse
readList :: ReadS [ListJobsByPipelineResponse]
$creadList :: ReadS [ListJobsByPipelineResponse]
readsPrec :: Int -> ReadS ListJobsByPipelineResponse
$creadsPrec :: Int -> ReadS ListJobsByPipelineResponse
Prelude.Read, Int -> ListJobsByPipelineResponse -> ShowS
[ListJobsByPipelineResponse] -> ShowS
ListJobsByPipelineResponse -> String
(Int -> ListJobsByPipelineResponse -> ShowS)
-> (ListJobsByPipelineResponse -> String)
-> ([ListJobsByPipelineResponse] -> ShowS)
-> Show ListJobsByPipelineResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListJobsByPipelineResponse] -> ShowS
$cshowList :: [ListJobsByPipelineResponse] -> ShowS
show :: ListJobsByPipelineResponse -> String
$cshow :: ListJobsByPipelineResponse -> String
showsPrec :: Int -> ListJobsByPipelineResponse -> ShowS
$cshowsPrec :: Int -> ListJobsByPipelineResponse -> ShowS
Prelude.Show, (forall x.
ListJobsByPipelineResponse -> Rep ListJobsByPipelineResponse x)
-> (forall x.
Rep ListJobsByPipelineResponse x -> ListJobsByPipelineResponse)
-> Generic ListJobsByPipelineResponse
forall x.
Rep ListJobsByPipelineResponse x -> ListJobsByPipelineResponse
forall x.
ListJobsByPipelineResponse -> Rep ListJobsByPipelineResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListJobsByPipelineResponse x -> ListJobsByPipelineResponse
$cfrom :: forall x.
ListJobsByPipelineResponse -> Rep ListJobsByPipelineResponse x
Prelude.Generic)
newListJobsByPipelineResponse ::
Prelude.Int ->
ListJobsByPipelineResponse
newListJobsByPipelineResponse :: Int -> ListJobsByPipelineResponse
newListJobsByPipelineResponse Int
pHttpStatus_ =
ListJobsByPipelineResponse' :: Maybe Text -> Maybe [Job] -> Int -> ListJobsByPipelineResponse
ListJobsByPipelineResponse'
{ $sel:nextPageToken:ListJobsByPipelineResponse' :: Maybe Text
nextPageToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:jobs:ListJobsByPipelineResponse' :: Maybe [Job]
jobs = Maybe [Job]
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListJobsByPipelineResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listJobsByPipelineResponse_nextPageToken :: Lens.Lens' ListJobsByPipelineResponse (Prelude.Maybe Prelude.Text)
listJobsByPipelineResponse_nextPageToken :: (Maybe Text -> f (Maybe Text))
-> ListJobsByPipelineResponse -> f ListJobsByPipelineResponse
listJobsByPipelineResponse_nextPageToken = (ListJobsByPipelineResponse -> Maybe Text)
-> (ListJobsByPipelineResponse
-> Maybe Text -> ListJobsByPipelineResponse)
-> Lens' ListJobsByPipelineResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListJobsByPipelineResponse' {Maybe Text
nextPageToken :: Maybe Text
$sel:nextPageToken:ListJobsByPipelineResponse' :: ListJobsByPipelineResponse -> Maybe Text
nextPageToken} -> Maybe Text
nextPageToken) (\s :: ListJobsByPipelineResponse
s@ListJobsByPipelineResponse' {} Maybe Text
a -> ListJobsByPipelineResponse
s {$sel:nextPageToken:ListJobsByPipelineResponse' :: Maybe Text
nextPageToken = Maybe Text
a} :: ListJobsByPipelineResponse)
listJobsByPipelineResponse_jobs :: Lens.Lens' ListJobsByPipelineResponse (Prelude.Maybe [Job])
listJobsByPipelineResponse_jobs :: (Maybe [Job] -> f (Maybe [Job]))
-> ListJobsByPipelineResponse -> f ListJobsByPipelineResponse
listJobsByPipelineResponse_jobs = (ListJobsByPipelineResponse -> Maybe [Job])
-> (ListJobsByPipelineResponse
-> Maybe [Job] -> ListJobsByPipelineResponse)
-> Lens' ListJobsByPipelineResponse (Maybe [Job])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListJobsByPipelineResponse' {Maybe [Job]
jobs :: Maybe [Job]
$sel:jobs:ListJobsByPipelineResponse' :: ListJobsByPipelineResponse -> Maybe [Job]
jobs} -> Maybe [Job]
jobs) (\s :: ListJobsByPipelineResponse
s@ListJobsByPipelineResponse' {} Maybe [Job]
a -> ListJobsByPipelineResponse
s {$sel:jobs:ListJobsByPipelineResponse' :: Maybe [Job]
jobs = Maybe [Job]
a} :: ListJobsByPipelineResponse) ((Maybe [Job] -> f (Maybe [Job]))
-> ListJobsByPipelineResponse -> f ListJobsByPipelineResponse)
-> ((Maybe [Job] -> f (Maybe [Job]))
-> Maybe [Job] -> f (Maybe [Job]))
-> (Maybe [Job] -> f (Maybe [Job]))
-> ListJobsByPipelineResponse
-> f ListJobsByPipelineResponse
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
listJobsByPipelineResponse_httpStatus :: Lens.Lens' ListJobsByPipelineResponse Prelude.Int
listJobsByPipelineResponse_httpStatus :: (Int -> f Int)
-> ListJobsByPipelineResponse -> f ListJobsByPipelineResponse
listJobsByPipelineResponse_httpStatus = (ListJobsByPipelineResponse -> Int)
-> (ListJobsByPipelineResponse
-> Int -> ListJobsByPipelineResponse)
-> Lens
ListJobsByPipelineResponse ListJobsByPipelineResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListJobsByPipelineResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListJobsByPipelineResponse' :: ListJobsByPipelineResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListJobsByPipelineResponse
s@ListJobsByPipelineResponse' {} Int
a -> ListJobsByPipelineResponse
s {$sel:httpStatus:ListJobsByPipelineResponse' :: Int
httpStatus = Int
a} :: ListJobsByPipelineResponse)
instance Prelude.NFData ListJobsByPipelineResponse