{-# 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.Snowball.ListClusterJobs
(
ListClusterJobs (..),
newListClusterJobs,
listClusterJobs_nextToken,
listClusterJobs_maxResults,
listClusterJobs_clusterId,
ListClusterJobsResponse (..),
newListClusterJobsResponse,
listClusterJobsResponse_jobListEntries,
listClusterJobsResponse_nextToken,
listClusterJobsResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
import Amazonka.Snowball.Types
data ListClusterJobs = ListClusterJobs'
{
ListClusterJobs -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListClusterJobs -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
ListClusterJobs -> Text
clusterId :: Prelude.Text
}
deriving (ListClusterJobs -> ListClusterJobs -> Bool
(ListClusterJobs -> ListClusterJobs -> Bool)
-> (ListClusterJobs -> ListClusterJobs -> Bool)
-> Eq ListClusterJobs
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListClusterJobs -> ListClusterJobs -> Bool
$c/= :: ListClusterJobs -> ListClusterJobs -> Bool
== :: ListClusterJobs -> ListClusterJobs -> Bool
$c== :: ListClusterJobs -> ListClusterJobs -> Bool
Prelude.Eq, ReadPrec [ListClusterJobs]
ReadPrec ListClusterJobs
Int -> ReadS ListClusterJobs
ReadS [ListClusterJobs]
(Int -> ReadS ListClusterJobs)
-> ReadS [ListClusterJobs]
-> ReadPrec ListClusterJobs
-> ReadPrec [ListClusterJobs]
-> Read ListClusterJobs
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListClusterJobs]
$creadListPrec :: ReadPrec [ListClusterJobs]
readPrec :: ReadPrec ListClusterJobs
$creadPrec :: ReadPrec ListClusterJobs
readList :: ReadS [ListClusterJobs]
$creadList :: ReadS [ListClusterJobs]
readsPrec :: Int -> ReadS ListClusterJobs
$creadsPrec :: Int -> ReadS ListClusterJobs
Prelude.Read, Int -> ListClusterJobs -> ShowS
[ListClusterJobs] -> ShowS
ListClusterJobs -> String
(Int -> ListClusterJobs -> ShowS)
-> (ListClusterJobs -> String)
-> ([ListClusterJobs] -> ShowS)
-> Show ListClusterJobs
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListClusterJobs] -> ShowS
$cshowList :: [ListClusterJobs] -> ShowS
show :: ListClusterJobs -> String
$cshow :: ListClusterJobs -> String
showsPrec :: Int -> ListClusterJobs -> ShowS
$cshowsPrec :: Int -> ListClusterJobs -> ShowS
Prelude.Show, (forall x. ListClusterJobs -> Rep ListClusterJobs x)
-> (forall x. Rep ListClusterJobs x -> ListClusterJobs)
-> Generic ListClusterJobs
forall x. Rep ListClusterJobs x -> ListClusterJobs
forall x. ListClusterJobs -> Rep ListClusterJobs x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListClusterJobs x -> ListClusterJobs
$cfrom :: forall x. ListClusterJobs -> Rep ListClusterJobs x
Prelude.Generic)
newListClusterJobs ::
Prelude.Text ->
ListClusterJobs
newListClusterJobs :: Text -> ListClusterJobs
newListClusterJobs Text
pClusterId_ =
ListClusterJobs' :: Maybe Text -> Maybe Natural -> Text -> ListClusterJobs
ListClusterJobs'
{ $sel:nextToken:ListClusterJobs' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListClusterJobs' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:clusterId:ListClusterJobs' :: Text
clusterId = Text
pClusterId_
}
listClusterJobs_nextToken :: Lens.Lens' ListClusterJobs (Prelude.Maybe Prelude.Text)
listClusterJobs_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListClusterJobs -> f ListClusterJobs
listClusterJobs_nextToken = (ListClusterJobs -> Maybe Text)
-> (ListClusterJobs -> Maybe Text -> ListClusterJobs)
-> Lens ListClusterJobs ListClusterJobs (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListClusterJobs' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListClusterJobs' :: ListClusterJobs -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListClusterJobs
s@ListClusterJobs' {} Maybe Text
a -> ListClusterJobs
s {$sel:nextToken:ListClusterJobs' :: Maybe Text
nextToken = Maybe Text
a} :: ListClusterJobs)
listClusterJobs_maxResults :: Lens.Lens' ListClusterJobs (Prelude.Maybe Prelude.Natural)
listClusterJobs_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListClusterJobs -> f ListClusterJobs
listClusterJobs_maxResults = (ListClusterJobs -> Maybe Natural)
-> (ListClusterJobs -> Maybe Natural -> ListClusterJobs)
-> Lens
ListClusterJobs ListClusterJobs (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListClusterJobs' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListClusterJobs' :: ListClusterJobs -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListClusterJobs
s@ListClusterJobs' {} Maybe Natural
a -> ListClusterJobs
s {$sel:maxResults:ListClusterJobs' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListClusterJobs)
listClusterJobs_clusterId :: Lens.Lens' ListClusterJobs Prelude.Text
listClusterJobs_clusterId :: (Text -> f Text) -> ListClusterJobs -> f ListClusterJobs
listClusterJobs_clusterId = (ListClusterJobs -> Text)
-> (ListClusterJobs -> Text -> ListClusterJobs)
-> Lens ListClusterJobs ListClusterJobs Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListClusterJobs' {Text
clusterId :: Text
$sel:clusterId:ListClusterJobs' :: ListClusterJobs -> Text
clusterId} -> Text
clusterId) (\s :: ListClusterJobs
s@ListClusterJobs' {} Text
a -> ListClusterJobs
s {$sel:clusterId:ListClusterJobs' :: Text
clusterId = Text
a} :: ListClusterJobs)
instance Core.AWSPager ListClusterJobs where
page :: ListClusterJobs
-> AWSResponse ListClusterJobs -> Maybe ListClusterJobs
page ListClusterJobs
rq AWSResponse ListClusterJobs
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListClusterJobs
ListClusterJobsResponse
rs
ListClusterJobsResponse
-> Getting (First Text) ListClusterJobsResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListClusterJobsResponse
-> Const (First Text) ListClusterJobsResponse
Lens' ListClusterJobsResponse (Maybe Text)
listClusterJobsResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListClusterJobsResponse
-> Const (First Text) ListClusterJobsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListClusterJobsResponse 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 ListClusterJobs
forall a. Maybe a
Prelude.Nothing
| Maybe [JobListEntry] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListClusterJobs
ListClusterJobsResponse
rs
ListClusterJobsResponse
-> Getting
(First [JobListEntry]) ListClusterJobsResponse [JobListEntry]
-> Maybe [JobListEntry]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [JobListEntry]
-> Const (First [JobListEntry]) (Maybe [JobListEntry]))
-> ListClusterJobsResponse
-> Const (First [JobListEntry]) ListClusterJobsResponse
Lens' ListClusterJobsResponse (Maybe [JobListEntry])
listClusterJobsResponse_jobListEntries
((Maybe [JobListEntry]
-> Const (First [JobListEntry]) (Maybe [JobListEntry]))
-> ListClusterJobsResponse
-> Const (First [JobListEntry]) ListClusterJobsResponse)
-> (([JobListEntry] -> Const (First [JobListEntry]) [JobListEntry])
-> Maybe [JobListEntry]
-> Const (First [JobListEntry]) (Maybe [JobListEntry]))
-> Getting
(First [JobListEntry]) ListClusterJobsResponse [JobListEntry]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([JobListEntry] -> Const (First [JobListEntry]) [JobListEntry])
-> Maybe [JobListEntry]
-> Const (First [JobListEntry]) (Maybe [JobListEntry])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe ListClusterJobs
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
ListClusterJobs -> Maybe ListClusterJobs
forall a. a -> Maybe a
Prelude.Just (ListClusterJobs -> Maybe ListClusterJobs)
-> ListClusterJobs -> Maybe ListClusterJobs
forall a b. (a -> b) -> a -> b
Prelude.$
ListClusterJobs
rq
ListClusterJobs
-> (ListClusterJobs -> ListClusterJobs) -> ListClusterJobs
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListClusterJobs -> Identity ListClusterJobs
Lens ListClusterJobs ListClusterJobs (Maybe Text) (Maybe Text)
listClusterJobs_nextToken
((Maybe Text -> Identity (Maybe Text))
-> ListClusterJobs -> Identity ListClusterJobs)
-> Maybe Text -> ListClusterJobs -> ListClusterJobs
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListClusterJobs
ListClusterJobsResponse
rs
ListClusterJobsResponse
-> Getting (First Text) ListClusterJobsResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListClusterJobsResponse
-> Const (First Text) ListClusterJobsResponse
Lens' ListClusterJobsResponse (Maybe Text)
listClusterJobsResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListClusterJobsResponse
-> Const (First Text) ListClusterJobsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListClusterJobsResponse 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 ListClusterJobs where
type
AWSResponse ListClusterJobs =
ListClusterJobsResponse
request :: ListClusterJobs -> Request ListClusterJobs
request = Service -> ListClusterJobs -> Request ListClusterJobs
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy ListClusterJobs
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListClusterJobs)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListClusterJobs))
-> Logger
-> Service
-> Proxy ListClusterJobs
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListClusterJobs)))
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 [JobListEntry]
-> Maybe Text -> Int -> ListClusterJobsResponse
ListClusterJobsResponse'
(Maybe [JobListEntry]
-> Maybe Text -> Int -> ListClusterJobsResponse)
-> Either String (Maybe [JobListEntry])
-> Either String (Maybe Text -> Int -> ListClusterJobsResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe (Maybe [JobListEntry]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"JobListEntries" Either String (Maybe (Maybe [JobListEntry]))
-> Maybe [JobListEntry] -> Either String (Maybe [JobListEntry])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [JobListEntry]
forall a. Monoid a => a
Prelude.mempty)
Either String (Maybe Text -> Int -> ListClusterJobsResponse)
-> Either String (Maybe Text)
-> Either String (Int -> ListClusterJobsResponse)
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 -> ListClusterJobsResponse)
-> Either String Int -> Either String ListClusterJobsResponse
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 ListClusterJobs
instance Prelude.NFData ListClusterJobs
instance Core.ToHeaders ListClusterJobs where
toHeaders :: ListClusterJobs -> ResponseHeaders
toHeaders =
ResponseHeaders -> ListClusterJobs -> 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
"AWSIESnowballJobManagementService.ListClusterJobs" ::
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 ListClusterJobs where
toJSON :: ListClusterJobs -> Value
toJSON ListClusterJobs' {Maybe Natural
Maybe Text
Text
clusterId :: Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
$sel:clusterId:ListClusterJobs' :: ListClusterJobs -> Text
$sel:maxResults:ListClusterJobs' :: ListClusterJobs -> Maybe Natural
$sel:nextToken:ListClusterJobs' :: ListClusterJobs -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (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
"MaxResults" 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
maxResults,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"ClusterId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
clusterId)
]
)
instance Core.ToPath ListClusterJobs where
toPath :: ListClusterJobs -> ByteString
toPath = ByteString -> ListClusterJobs -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery ListClusterJobs where
toQuery :: ListClusterJobs -> QueryString
toQuery = QueryString -> ListClusterJobs -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data ListClusterJobsResponse = ListClusterJobsResponse'
{
ListClusterJobsResponse -> Maybe [JobListEntry]
jobListEntries :: Prelude.Maybe [JobListEntry],
ListClusterJobsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListClusterJobsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListClusterJobsResponse -> ListClusterJobsResponse -> Bool
(ListClusterJobsResponse -> ListClusterJobsResponse -> Bool)
-> (ListClusterJobsResponse -> ListClusterJobsResponse -> Bool)
-> Eq ListClusterJobsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListClusterJobsResponse -> ListClusterJobsResponse -> Bool
$c/= :: ListClusterJobsResponse -> ListClusterJobsResponse -> Bool
== :: ListClusterJobsResponse -> ListClusterJobsResponse -> Bool
$c== :: ListClusterJobsResponse -> ListClusterJobsResponse -> Bool
Prelude.Eq, ReadPrec [ListClusterJobsResponse]
ReadPrec ListClusterJobsResponse
Int -> ReadS ListClusterJobsResponse
ReadS [ListClusterJobsResponse]
(Int -> ReadS ListClusterJobsResponse)
-> ReadS [ListClusterJobsResponse]
-> ReadPrec ListClusterJobsResponse
-> ReadPrec [ListClusterJobsResponse]
-> Read ListClusterJobsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListClusterJobsResponse]
$creadListPrec :: ReadPrec [ListClusterJobsResponse]
readPrec :: ReadPrec ListClusterJobsResponse
$creadPrec :: ReadPrec ListClusterJobsResponse
readList :: ReadS [ListClusterJobsResponse]
$creadList :: ReadS [ListClusterJobsResponse]
readsPrec :: Int -> ReadS ListClusterJobsResponse
$creadsPrec :: Int -> ReadS ListClusterJobsResponse
Prelude.Read, Int -> ListClusterJobsResponse -> ShowS
[ListClusterJobsResponse] -> ShowS
ListClusterJobsResponse -> String
(Int -> ListClusterJobsResponse -> ShowS)
-> (ListClusterJobsResponse -> String)
-> ([ListClusterJobsResponse] -> ShowS)
-> Show ListClusterJobsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListClusterJobsResponse] -> ShowS
$cshowList :: [ListClusterJobsResponse] -> ShowS
show :: ListClusterJobsResponse -> String
$cshow :: ListClusterJobsResponse -> String
showsPrec :: Int -> ListClusterJobsResponse -> ShowS
$cshowsPrec :: Int -> ListClusterJobsResponse -> ShowS
Prelude.Show, (forall x.
ListClusterJobsResponse -> Rep ListClusterJobsResponse x)
-> (forall x.
Rep ListClusterJobsResponse x -> ListClusterJobsResponse)
-> Generic ListClusterJobsResponse
forall x. Rep ListClusterJobsResponse x -> ListClusterJobsResponse
forall x. ListClusterJobsResponse -> Rep ListClusterJobsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListClusterJobsResponse x -> ListClusterJobsResponse
$cfrom :: forall x. ListClusterJobsResponse -> Rep ListClusterJobsResponse x
Prelude.Generic)
newListClusterJobsResponse ::
Prelude.Int ->
ListClusterJobsResponse
newListClusterJobsResponse :: Int -> ListClusterJobsResponse
newListClusterJobsResponse Int
pHttpStatus_ =
ListClusterJobsResponse' :: Maybe [JobListEntry]
-> Maybe Text -> Int -> ListClusterJobsResponse
ListClusterJobsResponse'
{ $sel:jobListEntries:ListClusterJobsResponse' :: Maybe [JobListEntry]
jobListEntries =
Maybe [JobListEntry]
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListClusterJobsResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListClusterJobsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listClusterJobsResponse_jobListEntries :: Lens.Lens' ListClusterJobsResponse (Prelude.Maybe [JobListEntry])
listClusterJobsResponse_jobListEntries :: (Maybe [JobListEntry] -> f (Maybe [JobListEntry]))
-> ListClusterJobsResponse -> f ListClusterJobsResponse
listClusterJobsResponse_jobListEntries = (ListClusterJobsResponse -> Maybe [JobListEntry])
-> (ListClusterJobsResponse
-> Maybe [JobListEntry] -> ListClusterJobsResponse)
-> Lens' ListClusterJobsResponse (Maybe [JobListEntry])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListClusterJobsResponse' {Maybe [JobListEntry]
jobListEntries :: Maybe [JobListEntry]
$sel:jobListEntries:ListClusterJobsResponse' :: ListClusterJobsResponse -> Maybe [JobListEntry]
jobListEntries} -> Maybe [JobListEntry]
jobListEntries) (\s :: ListClusterJobsResponse
s@ListClusterJobsResponse' {} Maybe [JobListEntry]
a -> ListClusterJobsResponse
s {$sel:jobListEntries:ListClusterJobsResponse' :: Maybe [JobListEntry]
jobListEntries = Maybe [JobListEntry]
a} :: ListClusterJobsResponse) ((Maybe [JobListEntry] -> f (Maybe [JobListEntry]))
-> ListClusterJobsResponse -> f ListClusterJobsResponse)
-> ((Maybe [JobListEntry] -> f (Maybe [JobListEntry]))
-> Maybe [JobListEntry] -> f (Maybe [JobListEntry]))
-> (Maybe [JobListEntry] -> f (Maybe [JobListEntry]))
-> ListClusterJobsResponse
-> f ListClusterJobsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [JobListEntry] [JobListEntry] [JobListEntry] [JobListEntry]
-> Iso
(Maybe [JobListEntry])
(Maybe [JobListEntry])
(Maybe [JobListEntry])
(Maybe [JobListEntry])
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 [JobListEntry] [JobListEntry] [JobListEntry] [JobListEntry]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listClusterJobsResponse_nextToken :: Lens.Lens' ListClusterJobsResponse (Prelude.Maybe Prelude.Text)
listClusterJobsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListClusterJobsResponse -> f ListClusterJobsResponse
listClusterJobsResponse_nextToken = (ListClusterJobsResponse -> Maybe Text)
-> (ListClusterJobsResponse
-> Maybe Text -> ListClusterJobsResponse)
-> Lens' ListClusterJobsResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListClusterJobsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListClusterJobsResponse' :: ListClusterJobsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListClusterJobsResponse
s@ListClusterJobsResponse' {} Maybe Text
a -> ListClusterJobsResponse
s {$sel:nextToken:ListClusterJobsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListClusterJobsResponse)
listClusterJobsResponse_httpStatus :: Lens.Lens' ListClusterJobsResponse Prelude.Int
listClusterJobsResponse_httpStatus :: (Int -> f Int)
-> ListClusterJobsResponse -> f ListClusterJobsResponse
listClusterJobsResponse_httpStatus = (ListClusterJobsResponse -> Int)
-> (ListClusterJobsResponse -> Int -> ListClusterJobsResponse)
-> Lens ListClusterJobsResponse ListClusterJobsResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListClusterJobsResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListClusterJobsResponse' :: ListClusterJobsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListClusterJobsResponse
s@ListClusterJobsResponse' {} Int
a -> ListClusterJobsResponse
s {$sel:httpStatus:ListClusterJobsResponse' :: Int
httpStatus = Int
a} :: ListClusterJobsResponse)
instance Prelude.NFData ListClusterJobsResponse