{-# 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.LookoutEquipment.ListDataIngestionJobs
(
ListDataIngestionJobs (..),
newListDataIngestionJobs,
listDataIngestionJobs_status,
listDataIngestionJobs_nextToken,
listDataIngestionJobs_datasetName,
listDataIngestionJobs_maxResults,
ListDataIngestionJobsResponse (..),
newListDataIngestionJobsResponse,
listDataIngestionJobsResponse_nextToken,
listDataIngestionJobsResponse_dataIngestionJobSummaries,
listDataIngestionJobsResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.LookoutEquipment.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data ListDataIngestionJobs = ListDataIngestionJobs'
{
ListDataIngestionJobs -> Maybe IngestionJobStatus
status :: Prelude.Maybe IngestionJobStatus,
ListDataIngestionJobs -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListDataIngestionJobs -> Maybe Text
datasetName :: Prelude.Maybe Prelude.Text,
ListDataIngestionJobs -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural
}
deriving (ListDataIngestionJobs -> ListDataIngestionJobs -> Bool
(ListDataIngestionJobs -> ListDataIngestionJobs -> Bool)
-> (ListDataIngestionJobs -> ListDataIngestionJobs -> Bool)
-> Eq ListDataIngestionJobs
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListDataIngestionJobs -> ListDataIngestionJobs -> Bool
$c/= :: ListDataIngestionJobs -> ListDataIngestionJobs -> Bool
== :: ListDataIngestionJobs -> ListDataIngestionJobs -> Bool
$c== :: ListDataIngestionJobs -> ListDataIngestionJobs -> Bool
Prelude.Eq, ReadPrec [ListDataIngestionJobs]
ReadPrec ListDataIngestionJobs
Int -> ReadS ListDataIngestionJobs
ReadS [ListDataIngestionJobs]
(Int -> ReadS ListDataIngestionJobs)
-> ReadS [ListDataIngestionJobs]
-> ReadPrec ListDataIngestionJobs
-> ReadPrec [ListDataIngestionJobs]
-> Read ListDataIngestionJobs
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListDataIngestionJobs]
$creadListPrec :: ReadPrec [ListDataIngestionJobs]
readPrec :: ReadPrec ListDataIngestionJobs
$creadPrec :: ReadPrec ListDataIngestionJobs
readList :: ReadS [ListDataIngestionJobs]
$creadList :: ReadS [ListDataIngestionJobs]
readsPrec :: Int -> ReadS ListDataIngestionJobs
$creadsPrec :: Int -> ReadS ListDataIngestionJobs
Prelude.Read, Int -> ListDataIngestionJobs -> ShowS
[ListDataIngestionJobs] -> ShowS
ListDataIngestionJobs -> String
(Int -> ListDataIngestionJobs -> ShowS)
-> (ListDataIngestionJobs -> String)
-> ([ListDataIngestionJobs] -> ShowS)
-> Show ListDataIngestionJobs
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListDataIngestionJobs] -> ShowS
$cshowList :: [ListDataIngestionJobs] -> ShowS
show :: ListDataIngestionJobs -> String
$cshow :: ListDataIngestionJobs -> String
showsPrec :: Int -> ListDataIngestionJobs -> ShowS
$cshowsPrec :: Int -> ListDataIngestionJobs -> ShowS
Prelude.Show, (forall x. ListDataIngestionJobs -> Rep ListDataIngestionJobs x)
-> (forall x. Rep ListDataIngestionJobs x -> ListDataIngestionJobs)
-> Generic ListDataIngestionJobs
forall x. Rep ListDataIngestionJobs x -> ListDataIngestionJobs
forall x. ListDataIngestionJobs -> Rep ListDataIngestionJobs x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListDataIngestionJobs x -> ListDataIngestionJobs
$cfrom :: forall x. ListDataIngestionJobs -> Rep ListDataIngestionJobs x
Prelude.Generic)
newListDataIngestionJobs ::
ListDataIngestionJobs
newListDataIngestionJobs :: ListDataIngestionJobs
newListDataIngestionJobs =
ListDataIngestionJobs' :: Maybe IngestionJobStatus
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> ListDataIngestionJobs
ListDataIngestionJobs'
{ $sel:status:ListDataIngestionJobs' :: Maybe IngestionJobStatus
status = Maybe IngestionJobStatus
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListDataIngestionJobs' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:datasetName:ListDataIngestionJobs' :: Maybe Text
datasetName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListDataIngestionJobs' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing
}
listDataIngestionJobs_status :: Lens.Lens' ListDataIngestionJobs (Prelude.Maybe IngestionJobStatus)
listDataIngestionJobs_status :: (Maybe IngestionJobStatus -> f (Maybe IngestionJobStatus))
-> ListDataIngestionJobs -> f ListDataIngestionJobs
listDataIngestionJobs_status = (ListDataIngestionJobs -> Maybe IngestionJobStatus)
-> (ListDataIngestionJobs
-> Maybe IngestionJobStatus -> ListDataIngestionJobs)
-> Lens
ListDataIngestionJobs
ListDataIngestionJobs
(Maybe IngestionJobStatus)
(Maybe IngestionJobStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDataIngestionJobs' {Maybe IngestionJobStatus
status :: Maybe IngestionJobStatus
$sel:status:ListDataIngestionJobs' :: ListDataIngestionJobs -> Maybe IngestionJobStatus
status} -> Maybe IngestionJobStatus
status) (\s :: ListDataIngestionJobs
s@ListDataIngestionJobs' {} Maybe IngestionJobStatus
a -> ListDataIngestionJobs
s {$sel:status:ListDataIngestionJobs' :: Maybe IngestionJobStatus
status = Maybe IngestionJobStatus
a} :: ListDataIngestionJobs)
listDataIngestionJobs_nextToken :: Lens.Lens' ListDataIngestionJobs (Prelude.Maybe Prelude.Text)
listDataIngestionJobs_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListDataIngestionJobs -> f ListDataIngestionJobs
listDataIngestionJobs_nextToken = (ListDataIngestionJobs -> Maybe Text)
-> (ListDataIngestionJobs -> Maybe Text -> ListDataIngestionJobs)
-> Lens
ListDataIngestionJobs
ListDataIngestionJobs
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDataIngestionJobs' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListDataIngestionJobs' :: ListDataIngestionJobs -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListDataIngestionJobs
s@ListDataIngestionJobs' {} Maybe Text
a -> ListDataIngestionJobs
s {$sel:nextToken:ListDataIngestionJobs' :: Maybe Text
nextToken = Maybe Text
a} :: ListDataIngestionJobs)
listDataIngestionJobs_datasetName :: Lens.Lens' ListDataIngestionJobs (Prelude.Maybe Prelude.Text)
listDataIngestionJobs_datasetName :: (Maybe Text -> f (Maybe Text))
-> ListDataIngestionJobs -> f ListDataIngestionJobs
listDataIngestionJobs_datasetName = (ListDataIngestionJobs -> Maybe Text)
-> (ListDataIngestionJobs -> Maybe Text -> ListDataIngestionJobs)
-> Lens
ListDataIngestionJobs
ListDataIngestionJobs
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDataIngestionJobs' {Maybe Text
datasetName :: Maybe Text
$sel:datasetName:ListDataIngestionJobs' :: ListDataIngestionJobs -> Maybe Text
datasetName} -> Maybe Text
datasetName) (\s :: ListDataIngestionJobs
s@ListDataIngestionJobs' {} Maybe Text
a -> ListDataIngestionJobs
s {$sel:datasetName:ListDataIngestionJobs' :: Maybe Text
datasetName = Maybe Text
a} :: ListDataIngestionJobs)
listDataIngestionJobs_maxResults :: Lens.Lens' ListDataIngestionJobs (Prelude.Maybe Prelude.Natural)
listDataIngestionJobs_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListDataIngestionJobs -> f ListDataIngestionJobs
listDataIngestionJobs_maxResults = (ListDataIngestionJobs -> Maybe Natural)
-> (ListDataIngestionJobs
-> Maybe Natural -> ListDataIngestionJobs)
-> Lens
ListDataIngestionJobs
ListDataIngestionJobs
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDataIngestionJobs' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListDataIngestionJobs' :: ListDataIngestionJobs -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListDataIngestionJobs
s@ListDataIngestionJobs' {} Maybe Natural
a -> ListDataIngestionJobs
s {$sel:maxResults:ListDataIngestionJobs' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListDataIngestionJobs)
instance Core.AWSRequest ListDataIngestionJobs where
type
AWSResponse ListDataIngestionJobs =
ListDataIngestionJobsResponse
request :: ListDataIngestionJobs -> Request ListDataIngestionJobs
request = Service -> ListDataIngestionJobs -> Request ListDataIngestionJobs
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy ListDataIngestionJobs
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListDataIngestionJobs)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListDataIngestionJobs))
-> Logger
-> Service
-> Proxy ListDataIngestionJobs
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListDataIngestionJobs)))
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 [DataIngestionJobSummary]
-> Int
-> ListDataIngestionJobsResponse
ListDataIngestionJobsResponse'
(Maybe Text
-> Maybe [DataIngestionJobSummary]
-> Int
-> ListDataIngestionJobsResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe [DataIngestionJobSummary]
-> Int -> ListDataIngestionJobsResponse)
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
"NextToken")
Either
String
(Maybe [DataIngestionJobSummary]
-> Int -> ListDataIngestionJobsResponse)
-> Either String (Maybe [DataIngestionJobSummary])
-> Either String (Int -> ListDataIngestionJobsResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object
-> Text -> Either String (Maybe (Maybe [DataIngestionJobSummary]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"DataIngestionJobSummaries"
Either String (Maybe (Maybe [DataIngestionJobSummary]))
-> Maybe [DataIngestionJobSummary]
-> Either String (Maybe [DataIngestionJobSummary])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [DataIngestionJobSummary]
forall a. Monoid a => a
Prelude.mempty
)
Either String (Int -> ListDataIngestionJobsResponse)
-> Either String Int -> Either String ListDataIngestionJobsResponse
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 ListDataIngestionJobs
instance Prelude.NFData ListDataIngestionJobs
instance Core.ToHeaders ListDataIngestionJobs where
toHeaders :: ListDataIngestionJobs -> ResponseHeaders
toHeaders =
ResponseHeaders -> ListDataIngestionJobs -> 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
"AWSLookoutEquipmentFrontendService.ListDataIngestionJobs" ::
Prelude.ByteString
),
HeaderName
"Content-Type"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.0" ::
Prelude.ByteString
)
]
)
instance Core.ToJSON ListDataIngestionJobs where
toJSON :: ListDataIngestionJobs -> Value
toJSON ListDataIngestionJobs' {Maybe Natural
Maybe Text
Maybe IngestionJobStatus
maxResults :: Maybe Natural
datasetName :: Maybe Text
nextToken :: Maybe Text
status :: Maybe IngestionJobStatus
$sel:maxResults:ListDataIngestionJobs' :: ListDataIngestionJobs -> Maybe Natural
$sel:datasetName:ListDataIngestionJobs' :: ListDataIngestionJobs -> Maybe Text
$sel:nextToken:ListDataIngestionJobs' :: ListDataIngestionJobs -> Maybe Text
$sel:status:ListDataIngestionJobs' :: ListDataIngestionJobs -> Maybe IngestionJobStatus
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"Status" Text -> IngestionJobStatus -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (IngestionJobStatus -> Pair)
-> Maybe IngestionJobStatus -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe IngestionJobStatus
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
"DatasetName" 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
datasetName,
(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
]
)
instance Core.ToPath ListDataIngestionJobs where
toPath :: ListDataIngestionJobs -> ByteString
toPath = ByteString -> ListDataIngestionJobs -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery ListDataIngestionJobs where
toQuery :: ListDataIngestionJobs -> QueryString
toQuery = QueryString -> ListDataIngestionJobs -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data ListDataIngestionJobsResponse = ListDataIngestionJobsResponse'
{
ListDataIngestionJobsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListDataIngestionJobsResponse -> Maybe [DataIngestionJobSummary]
dataIngestionJobSummaries :: Prelude.Maybe [DataIngestionJobSummary],
ListDataIngestionJobsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListDataIngestionJobsResponse
-> ListDataIngestionJobsResponse -> Bool
(ListDataIngestionJobsResponse
-> ListDataIngestionJobsResponse -> Bool)
-> (ListDataIngestionJobsResponse
-> ListDataIngestionJobsResponse -> Bool)
-> Eq ListDataIngestionJobsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListDataIngestionJobsResponse
-> ListDataIngestionJobsResponse -> Bool
$c/= :: ListDataIngestionJobsResponse
-> ListDataIngestionJobsResponse -> Bool
== :: ListDataIngestionJobsResponse
-> ListDataIngestionJobsResponse -> Bool
$c== :: ListDataIngestionJobsResponse
-> ListDataIngestionJobsResponse -> Bool
Prelude.Eq, ReadPrec [ListDataIngestionJobsResponse]
ReadPrec ListDataIngestionJobsResponse
Int -> ReadS ListDataIngestionJobsResponse
ReadS [ListDataIngestionJobsResponse]
(Int -> ReadS ListDataIngestionJobsResponse)
-> ReadS [ListDataIngestionJobsResponse]
-> ReadPrec ListDataIngestionJobsResponse
-> ReadPrec [ListDataIngestionJobsResponse]
-> Read ListDataIngestionJobsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListDataIngestionJobsResponse]
$creadListPrec :: ReadPrec [ListDataIngestionJobsResponse]
readPrec :: ReadPrec ListDataIngestionJobsResponse
$creadPrec :: ReadPrec ListDataIngestionJobsResponse
readList :: ReadS [ListDataIngestionJobsResponse]
$creadList :: ReadS [ListDataIngestionJobsResponse]
readsPrec :: Int -> ReadS ListDataIngestionJobsResponse
$creadsPrec :: Int -> ReadS ListDataIngestionJobsResponse
Prelude.Read, Int -> ListDataIngestionJobsResponse -> ShowS
[ListDataIngestionJobsResponse] -> ShowS
ListDataIngestionJobsResponse -> String
(Int -> ListDataIngestionJobsResponse -> ShowS)
-> (ListDataIngestionJobsResponse -> String)
-> ([ListDataIngestionJobsResponse] -> ShowS)
-> Show ListDataIngestionJobsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListDataIngestionJobsResponse] -> ShowS
$cshowList :: [ListDataIngestionJobsResponse] -> ShowS
show :: ListDataIngestionJobsResponse -> String
$cshow :: ListDataIngestionJobsResponse -> String
showsPrec :: Int -> ListDataIngestionJobsResponse -> ShowS
$cshowsPrec :: Int -> ListDataIngestionJobsResponse -> ShowS
Prelude.Show, (forall x.
ListDataIngestionJobsResponse
-> Rep ListDataIngestionJobsResponse x)
-> (forall x.
Rep ListDataIngestionJobsResponse x
-> ListDataIngestionJobsResponse)
-> Generic ListDataIngestionJobsResponse
forall x.
Rep ListDataIngestionJobsResponse x
-> ListDataIngestionJobsResponse
forall x.
ListDataIngestionJobsResponse
-> Rep ListDataIngestionJobsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListDataIngestionJobsResponse x
-> ListDataIngestionJobsResponse
$cfrom :: forall x.
ListDataIngestionJobsResponse
-> Rep ListDataIngestionJobsResponse x
Prelude.Generic)
newListDataIngestionJobsResponse ::
Prelude.Int ->
ListDataIngestionJobsResponse
newListDataIngestionJobsResponse :: Int -> ListDataIngestionJobsResponse
newListDataIngestionJobsResponse Int
pHttpStatus_ =
ListDataIngestionJobsResponse' :: Maybe Text
-> Maybe [DataIngestionJobSummary]
-> Int
-> ListDataIngestionJobsResponse
ListDataIngestionJobsResponse'
{ $sel:nextToken:ListDataIngestionJobsResponse' :: Maybe Text
nextToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:dataIngestionJobSummaries:ListDataIngestionJobsResponse' :: Maybe [DataIngestionJobSummary]
dataIngestionJobSummaries = Maybe [DataIngestionJobSummary]
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListDataIngestionJobsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listDataIngestionJobsResponse_nextToken :: Lens.Lens' ListDataIngestionJobsResponse (Prelude.Maybe Prelude.Text)
listDataIngestionJobsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListDataIngestionJobsResponse -> f ListDataIngestionJobsResponse
listDataIngestionJobsResponse_nextToken = (ListDataIngestionJobsResponse -> Maybe Text)
-> (ListDataIngestionJobsResponse
-> Maybe Text -> ListDataIngestionJobsResponse)
-> Lens
ListDataIngestionJobsResponse
ListDataIngestionJobsResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDataIngestionJobsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListDataIngestionJobsResponse' :: ListDataIngestionJobsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListDataIngestionJobsResponse
s@ListDataIngestionJobsResponse' {} Maybe Text
a -> ListDataIngestionJobsResponse
s {$sel:nextToken:ListDataIngestionJobsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListDataIngestionJobsResponse)
listDataIngestionJobsResponse_dataIngestionJobSummaries :: Lens.Lens' ListDataIngestionJobsResponse (Prelude.Maybe [DataIngestionJobSummary])
listDataIngestionJobsResponse_dataIngestionJobSummaries :: (Maybe [DataIngestionJobSummary]
-> f (Maybe [DataIngestionJobSummary]))
-> ListDataIngestionJobsResponse -> f ListDataIngestionJobsResponse
listDataIngestionJobsResponse_dataIngestionJobSummaries = (ListDataIngestionJobsResponse -> Maybe [DataIngestionJobSummary])
-> (ListDataIngestionJobsResponse
-> Maybe [DataIngestionJobSummary]
-> ListDataIngestionJobsResponse)
-> Lens
ListDataIngestionJobsResponse
ListDataIngestionJobsResponse
(Maybe [DataIngestionJobSummary])
(Maybe [DataIngestionJobSummary])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDataIngestionJobsResponse' {Maybe [DataIngestionJobSummary]
dataIngestionJobSummaries :: Maybe [DataIngestionJobSummary]
$sel:dataIngestionJobSummaries:ListDataIngestionJobsResponse' :: ListDataIngestionJobsResponse -> Maybe [DataIngestionJobSummary]
dataIngestionJobSummaries} -> Maybe [DataIngestionJobSummary]
dataIngestionJobSummaries) (\s :: ListDataIngestionJobsResponse
s@ListDataIngestionJobsResponse' {} Maybe [DataIngestionJobSummary]
a -> ListDataIngestionJobsResponse
s {$sel:dataIngestionJobSummaries:ListDataIngestionJobsResponse' :: Maybe [DataIngestionJobSummary]
dataIngestionJobSummaries = Maybe [DataIngestionJobSummary]
a} :: ListDataIngestionJobsResponse) ((Maybe [DataIngestionJobSummary]
-> f (Maybe [DataIngestionJobSummary]))
-> ListDataIngestionJobsResponse
-> f ListDataIngestionJobsResponse)
-> ((Maybe [DataIngestionJobSummary]
-> f (Maybe [DataIngestionJobSummary]))
-> Maybe [DataIngestionJobSummary]
-> f (Maybe [DataIngestionJobSummary]))
-> (Maybe [DataIngestionJobSummary]
-> f (Maybe [DataIngestionJobSummary]))
-> ListDataIngestionJobsResponse
-> f ListDataIngestionJobsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[DataIngestionJobSummary]
[DataIngestionJobSummary]
[DataIngestionJobSummary]
[DataIngestionJobSummary]
-> Iso
(Maybe [DataIngestionJobSummary])
(Maybe [DataIngestionJobSummary])
(Maybe [DataIngestionJobSummary])
(Maybe [DataIngestionJobSummary])
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
[DataIngestionJobSummary]
[DataIngestionJobSummary]
[DataIngestionJobSummary]
[DataIngestionJobSummary]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listDataIngestionJobsResponse_httpStatus :: Lens.Lens' ListDataIngestionJobsResponse Prelude.Int
listDataIngestionJobsResponse_httpStatus :: (Int -> f Int)
-> ListDataIngestionJobsResponse -> f ListDataIngestionJobsResponse
listDataIngestionJobsResponse_httpStatus = (ListDataIngestionJobsResponse -> Int)
-> (ListDataIngestionJobsResponse
-> Int -> ListDataIngestionJobsResponse)
-> Lens
ListDataIngestionJobsResponse ListDataIngestionJobsResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDataIngestionJobsResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListDataIngestionJobsResponse' :: ListDataIngestionJobsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListDataIngestionJobsResponse
s@ListDataIngestionJobsResponse' {} Int
a -> ListDataIngestionJobsResponse
s {$sel:httpStatus:ListDataIngestionJobsResponse' :: Int
httpStatus = Int
a} :: ListDataIngestionJobsResponse)
instance Prelude.NFData ListDataIngestionJobsResponse