{-# 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.DataExchange.GetJob
(
GetJob (..),
newGetJob,
getJob_jobId,
GetJobResponse (..),
newGetJobResponse,
getJobResponse_state,
getJobResponse_arn,
getJobResponse_createdAt,
getJobResponse_details,
getJobResponse_id,
getJobResponse_type,
getJobResponse_updatedAt,
getJobResponse_errors,
getJobResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.DataExchange.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 GetJob = GetJob'
{
GetJob -> Text
jobId :: Prelude.Text
}
deriving (GetJob -> GetJob -> Bool
(GetJob -> GetJob -> Bool)
-> (GetJob -> GetJob -> Bool) -> Eq GetJob
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetJob -> GetJob -> Bool
$c/= :: GetJob -> GetJob -> Bool
== :: GetJob -> GetJob -> Bool
$c== :: GetJob -> GetJob -> Bool
Prelude.Eq, ReadPrec [GetJob]
ReadPrec GetJob
Int -> ReadS GetJob
ReadS [GetJob]
(Int -> ReadS GetJob)
-> ReadS [GetJob]
-> ReadPrec GetJob
-> ReadPrec [GetJob]
-> Read GetJob
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetJob]
$creadListPrec :: ReadPrec [GetJob]
readPrec :: ReadPrec GetJob
$creadPrec :: ReadPrec GetJob
readList :: ReadS [GetJob]
$creadList :: ReadS [GetJob]
readsPrec :: Int -> ReadS GetJob
$creadsPrec :: Int -> ReadS GetJob
Prelude.Read, Int -> GetJob -> ShowS
[GetJob] -> ShowS
GetJob -> String
(Int -> GetJob -> ShowS)
-> (GetJob -> String) -> ([GetJob] -> ShowS) -> Show GetJob
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetJob] -> ShowS
$cshowList :: [GetJob] -> ShowS
show :: GetJob -> String
$cshow :: GetJob -> String
showsPrec :: Int -> GetJob -> ShowS
$cshowsPrec :: Int -> GetJob -> ShowS
Prelude.Show, (forall x. GetJob -> Rep GetJob x)
-> (forall x. Rep GetJob x -> GetJob) -> Generic GetJob
forall x. Rep GetJob x -> GetJob
forall x. GetJob -> Rep GetJob x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetJob x -> GetJob
$cfrom :: forall x. GetJob -> Rep GetJob x
Prelude.Generic)
newGetJob ::
Prelude.Text ->
GetJob
newGetJob :: Text -> GetJob
newGetJob Text
pJobId_ = GetJob' :: Text -> GetJob
GetJob' {$sel:jobId:GetJob' :: Text
jobId = Text
pJobId_}
getJob_jobId :: Lens.Lens' GetJob Prelude.Text
getJob_jobId :: (Text -> f Text) -> GetJob -> f GetJob
getJob_jobId = (GetJob -> Text)
-> (GetJob -> Text -> GetJob) -> Lens GetJob GetJob Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetJob' {Text
jobId :: Text
$sel:jobId:GetJob' :: GetJob -> Text
jobId} -> Text
jobId) (\s :: GetJob
s@GetJob' {} Text
a -> GetJob
s {$sel:jobId:GetJob' :: Text
jobId = Text
a} :: GetJob)
instance Core.AWSRequest GetJob where
type AWSResponse GetJob = GetJobResponse
request :: GetJob -> Request GetJob
request = Service -> GetJob -> Request GetJob
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy GetJob
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse GetJob)))
response =
(Int
-> ResponseHeaders -> Object -> Either String (AWSResponse GetJob))
-> Logger
-> Service
-> Proxy GetJob
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse GetJob)))
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 State
-> Maybe Text
-> Maybe POSIX
-> Maybe ResponseDetails
-> Maybe Text
-> Maybe Type
-> Maybe POSIX
-> Maybe [JobError]
-> Int
-> GetJobResponse
GetJobResponse'
(Maybe State
-> Maybe Text
-> Maybe POSIX
-> Maybe ResponseDetails
-> Maybe Text
-> Maybe Type
-> Maybe POSIX
-> Maybe [JobError]
-> Int
-> GetJobResponse)
-> Either String (Maybe State)
-> Either
String
(Maybe Text
-> Maybe POSIX
-> Maybe ResponseDetails
-> Maybe Text
-> Maybe Type
-> Maybe POSIX
-> Maybe [JobError]
-> Int
-> GetJobResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe State)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"State")
Either
String
(Maybe Text
-> Maybe POSIX
-> Maybe ResponseDetails
-> Maybe Text
-> Maybe Type
-> Maybe POSIX
-> Maybe [JobError]
-> Int
-> GetJobResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe POSIX
-> Maybe ResponseDetails
-> Maybe Text
-> Maybe Type
-> Maybe POSIX
-> Maybe [JobError]
-> Int
-> GetJobResponse)
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
"Arn")
Either
String
(Maybe POSIX
-> Maybe ResponseDetails
-> Maybe Text
-> Maybe Type
-> Maybe POSIX
-> Maybe [JobError]
-> Int
-> GetJobResponse)
-> Either String (Maybe POSIX)
-> Either
String
(Maybe ResponseDetails
-> Maybe Text
-> Maybe Type
-> Maybe POSIX
-> Maybe [JobError]
-> Int
-> GetJobResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"CreatedAt")
Either
String
(Maybe ResponseDetails
-> Maybe Text
-> Maybe Type
-> Maybe POSIX
-> Maybe [JobError]
-> Int
-> GetJobResponse)
-> Either String (Maybe ResponseDetails)
-> Either
String
(Maybe Text
-> Maybe Type
-> Maybe POSIX
-> Maybe [JobError]
-> Int
-> GetJobResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe ResponseDetails)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Details")
Either
String
(Maybe Text
-> Maybe Type
-> Maybe POSIX
-> Maybe [JobError]
-> Int
-> GetJobResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Type
-> Maybe POSIX -> Maybe [JobError] -> Int -> GetJobResponse)
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
"Id")
Either
String
(Maybe Type
-> Maybe POSIX -> Maybe [JobError] -> Int -> GetJobResponse)
-> Either String (Maybe Type)
-> Either
String (Maybe POSIX -> Maybe [JobError] -> Int -> GetJobResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Type)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Type")
Either
String (Maybe POSIX -> Maybe [JobError] -> Int -> GetJobResponse)
-> Either String (Maybe POSIX)
-> Either String (Maybe [JobError] -> Int -> GetJobResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"UpdatedAt")
Either String (Maybe [JobError] -> Int -> GetJobResponse)
-> Either String (Maybe [JobError])
-> Either String (Int -> GetJobResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Maybe [JobError]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Errors" Either String (Maybe (Maybe [JobError]))
-> Maybe [JobError] -> Either String (Maybe [JobError])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [JobError]
forall a. Monoid a => a
Prelude.mempty)
Either String (Int -> GetJobResponse)
-> Either String Int -> Either String GetJobResponse
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 GetJob
instance Prelude.NFData GetJob
instance Core.ToHeaders GetJob where
toHeaders :: GetJob -> ResponseHeaders
toHeaders =
ResponseHeaders -> GetJob -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ 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.ToPath GetJob where
toPath :: GetJob -> ByteString
toPath GetJob' {Text
jobId :: Text
$sel:jobId:GetJob' :: GetJob -> Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat [ByteString
"/v1/jobs/", Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
jobId]
instance Core.ToQuery GetJob where
toQuery :: GetJob -> QueryString
toQuery = QueryString -> GetJob -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data GetJobResponse = GetJobResponse'
{
GetJobResponse -> Maybe State
state :: Prelude.Maybe State,
GetJobResponse -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
GetJobResponse -> Maybe POSIX
createdAt :: Prelude.Maybe Core.POSIX,
GetJobResponse -> Maybe ResponseDetails
details :: Prelude.Maybe ResponseDetails,
GetJobResponse -> Maybe Text
id :: Prelude.Maybe Prelude.Text,
GetJobResponse -> Maybe Type
type' :: Prelude.Maybe Type,
GetJobResponse -> Maybe POSIX
updatedAt :: Prelude.Maybe Core.POSIX,
GetJobResponse -> Maybe [JobError]
errors :: Prelude.Maybe [JobError],
GetJobResponse -> Int
httpStatus :: Prelude.Int
}
deriving (GetJobResponse -> GetJobResponse -> Bool
(GetJobResponse -> GetJobResponse -> Bool)
-> (GetJobResponse -> GetJobResponse -> Bool) -> Eq GetJobResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetJobResponse -> GetJobResponse -> Bool
$c/= :: GetJobResponse -> GetJobResponse -> Bool
== :: GetJobResponse -> GetJobResponse -> Bool
$c== :: GetJobResponse -> GetJobResponse -> Bool
Prelude.Eq, ReadPrec [GetJobResponse]
ReadPrec GetJobResponse
Int -> ReadS GetJobResponse
ReadS [GetJobResponse]
(Int -> ReadS GetJobResponse)
-> ReadS [GetJobResponse]
-> ReadPrec GetJobResponse
-> ReadPrec [GetJobResponse]
-> Read GetJobResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetJobResponse]
$creadListPrec :: ReadPrec [GetJobResponse]
readPrec :: ReadPrec GetJobResponse
$creadPrec :: ReadPrec GetJobResponse
readList :: ReadS [GetJobResponse]
$creadList :: ReadS [GetJobResponse]
readsPrec :: Int -> ReadS GetJobResponse
$creadsPrec :: Int -> ReadS GetJobResponse
Prelude.Read, Int -> GetJobResponse -> ShowS
[GetJobResponse] -> ShowS
GetJobResponse -> String
(Int -> GetJobResponse -> ShowS)
-> (GetJobResponse -> String)
-> ([GetJobResponse] -> ShowS)
-> Show GetJobResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetJobResponse] -> ShowS
$cshowList :: [GetJobResponse] -> ShowS
show :: GetJobResponse -> String
$cshow :: GetJobResponse -> String
showsPrec :: Int -> GetJobResponse -> ShowS
$cshowsPrec :: Int -> GetJobResponse -> ShowS
Prelude.Show, (forall x. GetJobResponse -> Rep GetJobResponse x)
-> (forall x. Rep GetJobResponse x -> GetJobResponse)
-> Generic GetJobResponse
forall x. Rep GetJobResponse x -> GetJobResponse
forall x. GetJobResponse -> Rep GetJobResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetJobResponse x -> GetJobResponse
$cfrom :: forall x. GetJobResponse -> Rep GetJobResponse x
Prelude.Generic)
newGetJobResponse ::
Prelude.Int ->
GetJobResponse
newGetJobResponse :: Int -> GetJobResponse
newGetJobResponse Int
pHttpStatus_ =
GetJobResponse' :: Maybe State
-> Maybe Text
-> Maybe POSIX
-> Maybe ResponseDetails
-> Maybe Text
-> Maybe Type
-> Maybe POSIX
-> Maybe [JobError]
-> Int
-> GetJobResponse
GetJobResponse'
{ $sel:state:GetJobResponse' :: Maybe State
state = Maybe State
forall a. Maybe a
Prelude.Nothing,
$sel:arn:GetJobResponse' :: Maybe Text
arn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:createdAt:GetJobResponse' :: Maybe POSIX
createdAt = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:details:GetJobResponse' :: Maybe ResponseDetails
details = Maybe ResponseDetails
forall a. Maybe a
Prelude.Nothing,
$sel:id:GetJobResponse' :: Maybe Text
id = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:type':GetJobResponse' :: Maybe Type
type' = Maybe Type
forall a. Maybe a
Prelude.Nothing,
$sel:updatedAt:GetJobResponse' :: Maybe POSIX
updatedAt = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:errors:GetJobResponse' :: Maybe [JobError]
errors = Maybe [JobError]
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:GetJobResponse' :: Int
httpStatus = Int
pHttpStatus_
}
getJobResponse_state :: Lens.Lens' GetJobResponse (Prelude.Maybe State)
getJobResponse_state :: (Maybe State -> f (Maybe State))
-> GetJobResponse -> f GetJobResponse
getJobResponse_state = (GetJobResponse -> Maybe State)
-> (GetJobResponse -> Maybe State -> GetJobResponse)
-> Lens GetJobResponse GetJobResponse (Maybe State) (Maybe State)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetJobResponse' {Maybe State
state :: Maybe State
$sel:state:GetJobResponse' :: GetJobResponse -> Maybe State
state} -> Maybe State
state) (\s :: GetJobResponse
s@GetJobResponse' {} Maybe State
a -> GetJobResponse
s {$sel:state:GetJobResponse' :: Maybe State
state = Maybe State
a} :: GetJobResponse)
getJobResponse_arn :: Lens.Lens' GetJobResponse (Prelude.Maybe Prelude.Text)
getJobResponse_arn :: (Maybe Text -> f (Maybe Text))
-> GetJobResponse -> f GetJobResponse
getJobResponse_arn = (GetJobResponse -> Maybe Text)
-> (GetJobResponse -> Maybe Text -> GetJobResponse)
-> Lens GetJobResponse GetJobResponse (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetJobResponse' {Maybe Text
arn :: Maybe Text
$sel:arn:GetJobResponse' :: GetJobResponse -> Maybe Text
arn} -> Maybe Text
arn) (\s :: GetJobResponse
s@GetJobResponse' {} Maybe Text
a -> GetJobResponse
s {$sel:arn:GetJobResponse' :: Maybe Text
arn = Maybe Text
a} :: GetJobResponse)
getJobResponse_createdAt :: Lens.Lens' GetJobResponse (Prelude.Maybe Prelude.UTCTime)
getJobResponse_createdAt :: (Maybe UTCTime -> f (Maybe UTCTime))
-> GetJobResponse -> f GetJobResponse
getJobResponse_createdAt = (GetJobResponse -> Maybe POSIX)
-> (GetJobResponse -> Maybe POSIX -> GetJobResponse)
-> Lens GetJobResponse GetJobResponse (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetJobResponse' {Maybe POSIX
createdAt :: Maybe POSIX
$sel:createdAt:GetJobResponse' :: GetJobResponse -> Maybe POSIX
createdAt} -> Maybe POSIX
createdAt) (\s :: GetJobResponse
s@GetJobResponse' {} Maybe POSIX
a -> GetJobResponse
s {$sel:createdAt:GetJobResponse' :: Maybe POSIX
createdAt = Maybe POSIX
a} :: GetJobResponse) ((Maybe POSIX -> f (Maybe POSIX))
-> GetJobResponse -> f GetJobResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> GetJobResponse
-> f GetJobResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
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 POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
getJobResponse_details :: Lens.Lens' GetJobResponse (Prelude.Maybe ResponseDetails)
getJobResponse_details :: (Maybe ResponseDetails -> f (Maybe ResponseDetails))
-> GetJobResponse -> f GetJobResponse
getJobResponse_details = (GetJobResponse -> Maybe ResponseDetails)
-> (GetJobResponse -> Maybe ResponseDetails -> GetJobResponse)
-> Lens
GetJobResponse
GetJobResponse
(Maybe ResponseDetails)
(Maybe ResponseDetails)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetJobResponse' {Maybe ResponseDetails
details :: Maybe ResponseDetails
$sel:details:GetJobResponse' :: GetJobResponse -> Maybe ResponseDetails
details} -> Maybe ResponseDetails
details) (\s :: GetJobResponse
s@GetJobResponse' {} Maybe ResponseDetails
a -> GetJobResponse
s {$sel:details:GetJobResponse' :: Maybe ResponseDetails
details = Maybe ResponseDetails
a} :: GetJobResponse)
getJobResponse_id :: Lens.Lens' GetJobResponse (Prelude.Maybe Prelude.Text)
getJobResponse_id :: (Maybe Text -> f (Maybe Text))
-> GetJobResponse -> f GetJobResponse
getJobResponse_id = (GetJobResponse -> Maybe Text)
-> (GetJobResponse -> Maybe Text -> GetJobResponse)
-> Lens GetJobResponse GetJobResponse (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetJobResponse' {Maybe Text
id :: Maybe Text
$sel:id:GetJobResponse' :: GetJobResponse -> Maybe Text
id} -> Maybe Text
id) (\s :: GetJobResponse
s@GetJobResponse' {} Maybe Text
a -> GetJobResponse
s {$sel:id:GetJobResponse' :: Maybe Text
id = Maybe Text
a} :: GetJobResponse)
getJobResponse_type :: Lens.Lens' GetJobResponse (Prelude.Maybe Type)
getJobResponse_type :: (Maybe Type -> f (Maybe Type))
-> GetJobResponse -> f GetJobResponse
getJobResponse_type = (GetJobResponse -> Maybe Type)
-> (GetJobResponse -> Maybe Type -> GetJobResponse)
-> Lens GetJobResponse GetJobResponse (Maybe Type) (Maybe Type)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetJobResponse' {Maybe Type
type' :: Maybe Type
$sel:type':GetJobResponse' :: GetJobResponse -> Maybe Type
type'} -> Maybe Type
type') (\s :: GetJobResponse
s@GetJobResponse' {} Maybe Type
a -> GetJobResponse
s {$sel:type':GetJobResponse' :: Maybe Type
type' = Maybe Type
a} :: GetJobResponse)
getJobResponse_updatedAt :: Lens.Lens' GetJobResponse (Prelude.Maybe Prelude.UTCTime)
getJobResponse_updatedAt :: (Maybe UTCTime -> f (Maybe UTCTime))
-> GetJobResponse -> f GetJobResponse
getJobResponse_updatedAt = (GetJobResponse -> Maybe POSIX)
-> (GetJobResponse -> Maybe POSIX -> GetJobResponse)
-> Lens GetJobResponse GetJobResponse (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetJobResponse' {Maybe POSIX
updatedAt :: Maybe POSIX
$sel:updatedAt:GetJobResponse' :: GetJobResponse -> Maybe POSIX
updatedAt} -> Maybe POSIX
updatedAt) (\s :: GetJobResponse
s@GetJobResponse' {} Maybe POSIX
a -> GetJobResponse
s {$sel:updatedAt:GetJobResponse' :: Maybe POSIX
updatedAt = Maybe POSIX
a} :: GetJobResponse) ((Maybe POSIX -> f (Maybe POSIX))
-> GetJobResponse -> f GetJobResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> GetJobResponse
-> f GetJobResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
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 POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
getJobResponse_errors :: Lens.Lens' GetJobResponse (Prelude.Maybe [JobError])
getJobResponse_errors :: (Maybe [JobError] -> f (Maybe [JobError]))
-> GetJobResponse -> f GetJobResponse
getJobResponse_errors = (GetJobResponse -> Maybe [JobError])
-> (GetJobResponse -> Maybe [JobError] -> GetJobResponse)
-> Lens
GetJobResponse GetJobResponse (Maybe [JobError]) (Maybe [JobError])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetJobResponse' {Maybe [JobError]
errors :: Maybe [JobError]
$sel:errors:GetJobResponse' :: GetJobResponse -> Maybe [JobError]
errors} -> Maybe [JobError]
errors) (\s :: GetJobResponse
s@GetJobResponse' {} Maybe [JobError]
a -> GetJobResponse
s {$sel:errors:GetJobResponse' :: Maybe [JobError]
errors = Maybe [JobError]
a} :: GetJobResponse) ((Maybe [JobError] -> f (Maybe [JobError]))
-> GetJobResponse -> f GetJobResponse)
-> ((Maybe [JobError] -> f (Maybe [JobError]))
-> Maybe [JobError] -> f (Maybe [JobError]))
-> (Maybe [JobError] -> f (Maybe [JobError]))
-> GetJobResponse
-> f GetJobResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [JobError] [JobError] [JobError] [JobError]
-> Iso
(Maybe [JobError])
(Maybe [JobError])
(Maybe [JobError])
(Maybe [JobError])
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 [JobError] [JobError] [JobError] [JobError]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
getJobResponse_httpStatus :: Lens.Lens' GetJobResponse Prelude.Int
getJobResponse_httpStatus :: (Int -> f Int) -> GetJobResponse -> f GetJobResponse
getJobResponse_httpStatus = (GetJobResponse -> Int)
-> (GetJobResponse -> Int -> GetJobResponse)
-> Lens GetJobResponse GetJobResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetJobResponse' {Int
httpStatus :: Int
$sel:httpStatus:GetJobResponse' :: GetJobResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: GetJobResponse
s@GetJobResponse' {} Int
a -> GetJobResponse
s {$sel:httpStatus:GetJobResponse' :: Int
httpStatus = Int
a} :: GetJobResponse)
instance Prelude.NFData GetJobResponse