{-# 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.UpdateJob
(
UpdateJob (..),
newUpdateJob,
updateJob_aPIVersion,
updateJob_jobId,
updateJob_manifest,
updateJob_jobType,
updateJob_validateOnly,
UpdateJobResponse (..),
newUpdateJobResponse,
updateJobResponse_success,
updateJobResponse_warningMessage,
updateJobResponse_artifactList,
updateJobResponse_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 UpdateJob = UpdateJob'
{ UpdateJob -> Maybe Text
aPIVersion :: Prelude.Maybe Prelude.Text,
UpdateJob -> Text
jobId :: Prelude.Text,
UpdateJob -> Text
manifest :: Prelude.Text,
UpdateJob -> JobType
jobType :: JobType,
UpdateJob -> Bool
validateOnly :: Prelude.Bool
}
deriving (UpdateJob -> UpdateJob -> Bool
(UpdateJob -> UpdateJob -> Bool)
-> (UpdateJob -> UpdateJob -> Bool) -> Eq UpdateJob
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateJob -> UpdateJob -> Bool
$c/= :: UpdateJob -> UpdateJob -> Bool
== :: UpdateJob -> UpdateJob -> Bool
$c== :: UpdateJob -> UpdateJob -> Bool
Prelude.Eq, ReadPrec [UpdateJob]
ReadPrec UpdateJob
Int -> ReadS UpdateJob
ReadS [UpdateJob]
(Int -> ReadS UpdateJob)
-> ReadS [UpdateJob]
-> ReadPrec UpdateJob
-> ReadPrec [UpdateJob]
-> Read UpdateJob
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateJob]
$creadListPrec :: ReadPrec [UpdateJob]
readPrec :: ReadPrec UpdateJob
$creadPrec :: ReadPrec UpdateJob
readList :: ReadS [UpdateJob]
$creadList :: ReadS [UpdateJob]
readsPrec :: Int -> ReadS UpdateJob
$creadsPrec :: Int -> ReadS UpdateJob
Prelude.Read, Int -> UpdateJob -> ShowS
[UpdateJob] -> ShowS
UpdateJob -> String
(Int -> UpdateJob -> ShowS)
-> (UpdateJob -> String)
-> ([UpdateJob] -> ShowS)
-> Show UpdateJob
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateJob] -> ShowS
$cshowList :: [UpdateJob] -> ShowS
show :: UpdateJob -> String
$cshow :: UpdateJob -> String
showsPrec :: Int -> UpdateJob -> ShowS
$cshowsPrec :: Int -> UpdateJob -> ShowS
Prelude.Show, (forall x. UpdateJob -> Rep UpdateJob x)
-> (forall x. Rep UpdateJob x -> UpdateJob) -> Generic UpdateJob
forall x. Rep UpdateJob x -> UpdateJob
forall x. UpdateJob -> Rep UpdateJob x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep UpdateJob x -> UpdateJob
$cfrom :: forall x. UpdateJob -> Rep UpdateJob x
Prelude.Generic)
newUpdateJob ::
Prelude.Text ->
Prelude.Text ->
JobType ->
Prelude.Bool ->
UpdateJob
newUpdateJob :: Text -> Text -> JobType -> Bool -> UpdateJob
newUpdateJob
Text
pJobId_
Text
pManifest_
JobType
pJobType_
Bool
pValidateOnly_ =
UpdateJob' :: Maybe Text -> Text -> Text -> JobType -> Bool -> UpdateJob
UpdateJob'
{ $sel:aPIVersion:UpdateJob' :: Maybe Text
aPIVersion = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:jobId:UpdateJob' :: Text
jobId = Text
pJobId_,
$sel:manifest:UpdateJob' :: Text
manifest = Text
pManifest_,
$sel:jobType:UpdateJob' :: JobType
jobType = JobType
pJobType_,
$sel:validateOnly:UpdateJob' :: Bool
validateOnly = Bool
pValidateOnly_
}
updateJob_aPIVersion :: Lens.Lens' UpdateJob (Prelude.Maybe Prelude.Text)
updateJob_aPIVersion :: (Maybe Text -> f (Maybe Text)) -> UpdateJob -> f UpdateJob
updateJob_aPIVersion = (UpdateJob -> Maybe Text)
-> (UpdateJob -> Maybe Text -> UpdateJob)
-> Lens UpdateJob UpdateJob (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateJob' {Maybe Text
aPIVersion :: Maybe Text
$sel:aPIVersion:UpdateJob' :: UpdateJob -> Maybe Text
aPIVersion} -> Maybe Text
aPIVersion) (\s :: UpdateJob
s@UpdateJob' {} Maybe Text
a -> UpdateJob
s {$sel:aPIVersion:UpdateJob' :: Maybe Text
aPIVersion = Maybe Text
a} :: UpdateJob)
updateJob_jobId :: Lens.Lens' UpdateJob Prelude.Text
updateJob_jobId :: (Text -> f Text) -> UpdateJob -> f UpdateJob
updateJob_jobId = (UpdateJob -> Text)
-> (UpdateJob -> Text -> UpdateJob)
-> Lens UpdateJob UpdateJob Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateJob' {Text
jobId :: Text
$sel:jobId:UpdateJob' :: UpdateJob -> Text
jobId} -> Text
jobId) (\s :: UpdateJob
s@UpdateJob' {} Text
a -> UpdateJob
s {$sel:jobId:UpdateJob' :: Text
jobId = Text
a} :: UpdateJob)
updateJob_manifest :: Lens.Lens' UpdateJob Prelude.Text
updateJob_manifest :: (Text -> f Text) -> UpdateJob -> f UpdateJob
updateJob_manifest = (UpdateJob -> Text)
-> (UpdateJob -> Text -> UpdateJob)
-> Lens UpdateJob UpdateJob Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateJob' {Text
manifest :: Text
$sel:manifest:UpdateJob' :: UpdateJob -> Text
manifest} -> Text
manifest) (\s :: UpdateJob
s@UpdateJob' {} Text
a -> UpdateJob
s {$sel:manifest:UpdateJob' :: Text
manifest = Text
a} :: UpdateJob)
updateJob_jobType :: Lens.Lens' UpdateJob JobType
updateJob_jobType :: (JobType -> f JobType) -> UpdateJob -> f UpdateJob
updateJob_jobType = (UpdateJob -> JobType)
-> (UpdateJob -> JobType -> UpdateJob)
-> Lens UpdateJob UpdateJob JobType JobType
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateJob' {JobType
jobType :: JobType
$sel:jobType:UpdateJob' :: UpdateJob -> JobType
jobType} -> JobType
jobType) (\s :: UpdateJob
s@UpdateJob' {} JobType
a -> UpdateJob
s {$sel:jobType:UpdateJob' :: JobType
jobType = JobType
a} :: UpdateJob)
updateJob_validateOnly :: Lens.Lens' UpdateJob Prelude.Bool
updateJob_validateOnly :: (Bool -> f Bool) -> UpdateJob -> f UpdateJob
updateJob_validateOnly = (UpdateJob -> Bool)
-> (UpdateJob -> Bool -> UpdateJob)
-> Lens UpdateJob UpdateJob Bool Bool
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateJob' {Bool
validateOnly :: Bool
$sel:validateOnly:UpdateJob' :: UpdateJob -> Bool
validateOnly} -> Bool
validateOnly) (\s :: UpdateJob
s@UpdateJob' {} Bool
a -> UpdateJob
s {$sel:validateOnly:UpdateJob' :: Bool
validateOnly = Bool
a} :: UpdateJob)
instance Core.AWSRequest UpdateJob where
type AWSResponse UpdateJob = UpdateJobResponse
request :: UpdateJob -> Request UpdateJob
request = Service -> UpdateJob -> Request UpdateJob
forall a. ToRequest a => Service -> a -> Request a
Request.postQuery Service
defaultService
response :: Logger
-> Service
-> Proxy UpdateJob
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse UpdateJob)))
response =
Text
-> (Int
-> ResponseHeaders
-> [Node]
-> Either String (AWSResponse UpdateJob))
-> Logger
-> Service
-> Proxy UpdateJob
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse UpdateJob)))
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
"UpdateJobResult"
( \Int
s ResponseHeaders
h [Node]
x ->
Maybe Bool
-> Maybe Text -> Maybe [Artifact] -> Int -> UpdateJobResponse
UpdateJobResponse'
(Maybe Bool
-> Maybe Text -> Maybe [Artifact] -> Int -> UpdateJobResponse)
-> Either String (Maybe Bool)
-> Either
String (Maybe Text -> Maybe [Artifact] -> Int -> UpdateJobResponse)
forall (f :: * -> *) a b. Functor 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
"Success")
Either
String (Maybe Text -> Maybe [Artifact] -> Int -> UpdateJobResponse)
-> Either String (Maybe Text)
-> Either String (Maybe [Artifact] -> Int -> UpdateJobResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Text)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"WarningMessage")
Either String (Maybe [Artifact] -> Int -> UpdateJobResponse)
-> Either String (Maybe [Artifact])
-> Either String (Int -> UpdateJobResponse)
forall (f :: * -> *) a b. Applicative f => 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
"ArtifactList" 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 [Artifact]))
-> Either String (Maybe [Artifact])
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
Prelude.>>= ([Node] -> Either String [Artifact])
-> [Node] -> Either String (Maybe [Artifact])
forall (f :: * -> *) a b.
Applicative f =>
([a] -> f b) -> [a] -> f (Maybe b)
Core.may (Text -> [Node] -> Either String [Artifact]
forall a. FromXML a => Text -> [Node] -> Either String [a]
Core.parseXMLList Text
"member")
)
Either String (Int -> UpdateJobResponse)
-> Either String Int -> Either String UpdateJobResponse
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 UpdateJob
instance Prelude.NFData UpdateJob
instance Core.ToHeaders UpdateJob where
toHeaders :: UpdateJob -> ResponseHeaders
toHeaders = ResponseHeaders -> UpdateJob -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty
instance Core.ToPath UpdateJob where
toPath :: UpdateJob -> ByteString
toPath = ByteString -> UpdateJob -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery UpdateJob where
toQuery :: UpdateJob -> QueryString
toQuery UpdateJob' {Bool
Maybe Text
Text
JobType
validateOnly :: Bool
jobType :: JobType
manifest :: Text
jobId :: Text
aPIVersion :: Maybe Text
$sel:validateOnly:UpdateJob' :: UpdateJob -> Bool
$sel:jobType:UpdateJob' :: UpdateJob -> JobType
$sel:manifest:UpdateJob' :: UpdateJob -> Text
$sel:jobId:UpdateJob' :: UpdateJob -> Text
$sel:aPIVersion:UpdateJob' :: UpdateJob -> Maybe Text
..} =
[QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ QueryString
"Operation=UpdateJob",
ByteString
"Action" ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"UpdateJob" :: 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
"JobId" ByteString -> Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Text
jobId,
ByteString
"Manifest" ByteString -> Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Text
manifest,
ByteString
"JobType" ByteString -> JobType -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: JobType
jobType,
ByteString
"ValidateOnly" ByteString -> Bool -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Bool
validateOnly
]
data UpdateJobResponse = UpdateJobResponse'
{ UpdateJobResponse -> Maybe Bool
success :: Prelude.Maybe Prelude.Bool,
UpdateJobResponse -> Maybe Text
warningMessage :: Prelude.Maybe Prelude.Text,
UpdateJobResponse -> Maybe [Artifact]
artifactList :: Prelude.Maybe [Artifact],
UpdateJobResponse -> Int
httpStatus :: Prelude.Int
}
deriving (UpdateJobResponse -> UpdateJobResponse -> Bool
(UpdateJobResponse -> UpdateJobResponse -> Bool)
-> (UpdateJobResponse -> UpdateJobResponse -> Bool)
-> Eq UpdateJobResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateJobResponse -> UpdateJobResponse -> Bool
$c/= :: UpdateJobResponse -> UpdateJobResponse -> Bool
== :: UpdateJobResponse -> UpdateJobResponse -> Bool
$c== :: UpdateJobResponse -> UpdateJobResponse -> Bool
Prelude.Eq, ReadPrec [UpdateJobResponse]
ReadPrec UpdateJobResponse
Int -> ReadS UpdateJobResponse
ReadS [UpdateJobResponse]
(Int -> ReadS UpdateJobResponse)
-> ReadS [UpdateJobResponse]
-> ReadPrec UpdateJobResponse
-> ReadPrec [UpdateJobResponse]
-> Read UpdateJobResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateJobResponse]
$creadListPrec :: ReadPrec [UpdateJobResponse]
readPrec :: ReadPrec UpdateJobResponse
$creadPrec :: ReadPrec UpdateJobResponse
readList :: ReadS [UpdateJobResponse]
$creadList :: ReadS [UpdateJobResponse]
readsPrec :: Int -> ReadS UpdateJobResponse
$creadsPrec :: Int -> ReadS UpdateJobResponse
Prelude.Read, Int -> UpdateJobResponse -> ShowS
[UpdateJobResponse] -> ShowS
UpdateJobResponse -> String
(Int -> UpdateJobResponse -> ShowS)
-> (UpdateJobResponse -> String)
-> ([UpdateJobResponse] -> ShowS)
-> Show UpdateJobResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateJobResponse] -> ShowS
$cshowList :: [UpdateJobResponse] -> ShowS
show :: UpdateJobResponse -> String
$cshow :: UpdateJobResponse -> String
showsPrec :: Int -> UpdateJobResponse -> ShowS
$cshowsPrec :: Int -> UpdateJobResponse -> ShowS
Prelude.Show, (forall x. UpdateJobResponse -> Rep UpdateJobResponse x)
-> (forall x. Rep UpdateJobResponse x -> UpdateJobResponse)
-> Generic UpdateJobResponse
forall x. Rep UpdateJobResponse x -> UpdateJobResponse
forall x. UpdateJobResponse -> Rep UpdateJobResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep UpdateJobResponse x -> UpdateJobResponse
$cfrom :: forall x. UpdateJobResponse -> Rep UpdateJobResponse x
Prelude.Generic)
newUpdateJobResponse ::
Prelude.Int ->
UpdateJobResponse
newUpdateJobResponse :: Int -> UpdateJobResponse
newUpdateJobResponse Int
pHttpStatus_ =
UpdateJobResponse' :: Maybe Bool
-> Maybe Text -> Maybe [Artifact] -> Int -> UpdateJobResponse
UpdateJobResponse'
{ $sel:success:UpdateJobResponse' :: Maybe Bool
success = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:warningMessage:UpdateJobResponse' :: Maybe Text
warningMessage = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:artifactList:UpdateJobResponse' :: Maybe [Artifact]
artifactList = Maybe [Artifact]
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:UpdateJobResponse' :: Int
httpStatus = Int
pHttpStatus_
}
updateJobResponse_success :: Lens.Lens' UpdateJobResponse (Prelude.Maybe Prelude.Bool)
updateJobResponse_success :: (Maybe Bool -> f (Maybe Bool))
-> UpdateJobResponse -> f UpdateJobResponse
updateJobResponse_success = (UpdateJobResponse -> Maybe Bool)
-> (UpdateJobResponse -> Maybe Bool -> UpdateJobResponse)
-> Lens
UpdateJobResponse UpdateJobResponse (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateJobResponse' {Maybe Bool
success :: Maybe Bool
$sel:success:UpdateJobResponse' :: UpdateJobResponse -> Maybe Bool
success} -> Maybe Bool
success) (\s :: UpdateJobResponse
s@UpdateJobResponse' {} Maybe Bool
a -> UpdateJobResponse
s {$sel:success:UpdateJobResponse' :: Maybe Bool
success = Maybe Bool
a} :: UpdateJobResponse)
updateJobResponse_warningMessage :: Lens.Lens' UpdateJobResponse (Prelude.Maybe Prelude.Text)
updateJobResponse_warningMessage :: (Maybe Text -> f (Maybe Text))
-> UpdateJobResponse -> f UpdateJobResponse
updateJobResponse_warningMessage = (UpdateJobResponse -> Maybe Text)
-> (UpdateJobResponse -> Maybe Text -> UpdateJobResponse)
-> Lens
UpdateJobResponse UpdateJobResponse (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateJobResponse' {Maybe Text
warningMessage :: Maybe Text
$sel:warningMessage:UpdateJobResponse' :: UpdateJobResponse -> Maybe Text
warningMessage} -> Maybe Text
warningMessage) (\s :: UpdateJobResponse
s@UpdateJobResponse' {} Maybe Text
a -> UpdateJobResponse
s {$sel:warningMessage:UpdateJobResponse' :: Maybe Text
warningMessage = Maybe Text
a} :: UpdateJobResponse)
updateJobResponse_artifactList :: Lens.Lens' UpdateJobResponse (Prelude.Maybe [Artifact])
updateJobResponse_artifactList :: (Maybe [Artifact] -> f (Maybe [Artifact]))
-> UpdateJobResponse -> f UpdateJobResponse
updateJobResponse_artifactList = (UpdateJobResponse -> Maybe [Artifact])
-> (UpdateJobResponse -> Maybe [Artifact] -> UpdateJobResponse)
-> Lens
UpdateJobResponse
UpdateJobResponse
(Maybe [Artifact])
(Maybe [Artifact])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateJobResponse' {Maybe [Artifact]
artifactList :: Maybe [Artifact]
$sel:artifactList:UpdateJobResponse' :: UpdateJobResponse -> Maybe [Artifact]
artifactList} -> Maybe [Artifact]
artifactList) (\s :: UpdateJobResponse
s@UpdateJobResponse' {} Maybe [Artifact]
a -> UpdateJobResponse
s {$sel:artifactList:UpdateJobResponse' :: Maybe [Artifact]
artifactList = Maybe [Artifact]
a} :: UpdateJobResponse) ((Maybe [Artifact] -> f (Maybe [Artifact]))
-> UpdateJobResponse -> f UpdateJobResponse)
-> ((Maybe [Artifact] -> f (Maybe [Artifact]))
-> Maybe [Artifact] -> f (Maybe [Artifact]))
-> (Maybe [Artifact] -> f (Maybe [Artifact]))
-> UpdateJobResponse
-> f UpdateJobResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Artifact] [Artifact] [Artifact] [Artifact]
-> Iso
(Maybe [Artifact])
(Maybe [Artifact])
(Maybe [Artifact])
(Maybe [Artifact])
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 [Artifact] [Artifact] [Artifact] [Artifact]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
updateJobResponse_httpStatus :: Lens.Lens' UpdateJobResponse Prelude.Int
updateJobResponse_httpStatus :: (Int -> f Int) -> UpdateJobResponse -> f UpdateJobResponse
updateJobResponse_httpStatus = (UpdateJobResponse -> Int)
-> (UpdateJobResponse -> Int -> UpdateJobResponse)
-> Lens UpdateJobResponse UpdateJobResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateJobResponse' {Int
httpStatus :: Int
$sel:httpStatus:UpdateJobResponse' :: UpdateJobResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: UpdateJobResponse
s@UpdateJobResponse' {} Int
a -> UpdateJobResponse
s {$sel:httpStatus:UpdateJobResponse' :: Int
httpStatus = Int
a} :: UpdateJobResponse)
instance Prelude.NFData UpdateJobResponse