{-# 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.AuditManager.UpdateAssessment
(
UpdateAssessment (..),
newUpdateAssessment,
updateAssessment_roles,
updateAssessment_assessmentDescription,
updateAssessment_assessmentReportsDestination,
updateAssessment_assessmentName,
updateAssessment_assessmentId,
updateAssessment_scope,
UpdateAssessmentResponse (..),
newUpdateAssessmentResponse,
updateAssessmentResponse_assessment,
updateAssessmentResponse_httpStatus,
)
where
import Amazonka.AuditManager.Types
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
data UpdateAssessment = UpdateAssessment'
{
UpdateAssessment -> Maybe [Role]
roles :: Prelude.Maybe [Role],
UpdateAssessment -> Maybe Text
assessmentDescription :: Prelude.Maybe Prelude.Text,
UpdateAssessment -> Maybe AssessmentReportsDestination
assessmentReportsDestination :: Prelude.Maybe AssessmentReportsDestination,
UpdateAssessment -> Maybe Text
assessmentName :: Prelude.Maybe Prelude.Text,
UpdateAssessment -> Text
assessmentId :: Prelude.Text,
UpdateAssessment -> Scope
scope :: Scope
}
deriving (UpdateAssessment -> UpdateAssessment -> Bool
(UpdateAssessment -> UpdateAssessment -> Bool)
-> (UpdateAssessment -> UpdateAssessment -> Bool)
-> Eq UpdateAssessment
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateAssessment -> UpdateAssessment -> Bool
$c/= :: UpdateAssessment -> UpdateAssessment -> Bool
== :: UpdateAssessment -> UpdateAssessment -> Bool
$c== :: UpdateAssessment -> UpdateAssessment -> Bool
Prelude.Eq, ReadPrec [UpdateAssessment]
ReadPrec UpdateAssessment
Int -> ReadS UpdateAssessment
ReadS [UpdateAssessment]
(Int -> ReadS UpdateAssessment)
-> ReadS [UpdateAssessment]
-> ReadPrec UpdateAssessment
-> ReadPrec [UpdateAssessment]
-> Read UpdateAssessment
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateAssessment]
$creadListPrec :: ReadPrec [UpdateAssessment]
readPrec :: ReadPrec UpdateAssessment
$creadPrec :: ReadPrec UpdateAssessment
readList :: ReadS [UpdateAssessment]
$creadList :: ReadS [UpdateAssessment]
readsPrec :: Int -> ReadS UpdateAssessment
$creadsPrec :: Int -> ReadS UpdateAssessment
Prelude.Read, Int -> UpdateAssessment -> ShowS
[UpdateAssessment] -> ShowS
UpdateAssessment -> String
(Int -> UpdateAssessment -> ShowS)
-> (UpdateAssessment -> String)
-> ([UpdateAssessment] -> ShowS)
-> Show UpdateAssessment
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateAssessment] -> ShowS
$cshowList :: [UpdateAssessment] -> ShowS
show :: UpdateAssessment -> String
$cshow :: UpdateAssessment -> String
showsPrec :: Int -> UpdateAssessment -> ShowS
$cshowsPrec :: Int -> UpdateAssessment -> ShowS
Prelude.Show, (forall x. UpdateAssessment -> Rep UpdateAssessment x)
-> (forall x. Rep UpdateAssessment x -> UpdateAssessment)
-> Generic UpdateAssessment
forall x. Rep UpdateAssessment x -> UpdateAssessment
forall x. UpdateAssessment -> Rep UpdateAssessment x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep UpdateAssessment x -> UpdateAssessment
$cfrom :: forall x. UpdateAssessment -> Rep UpdateAssessment x
Prelude.Generic)
newUpdateAssessment ::
Prelude.Text ->
Scope ->
UpdateAssessment
newUpdateAssessment :: Text -> Scope -> UpdateAssessment
newUpdateAssessment Text
pAssessmentId_ Scope
pScope_ =
UpdateAssessment' :: Maybe [Role]
-> Maybe Text
-> Maybe AssessmentReportsDestination
-> Maybe Text
-> Text
-> Scope
-> UpdateAssessment
UpdateAssessment'
{ $sel:roles:UpdateAssessment' :: Maybe [Role]
roles = Maybe [Role]
forall a. Maybe a
Prelude.Nothing,
$sel:assessmentDescription:UpdateAssessment' :: Maybe Text
assessmentDescription = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:assessmentReportsDestination:UpdateAssessment' :: Maybe AssessmentReportsDestination
assessmentReportsDestination = Maybe AssessmentReportsDestination
forall a. Maybe a
Prelude.Nothing,
$sel:assessmentName:UpdateAssessment' :: Maybe Text
assessmentName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:assessmentId:UpdateAssessment' :: Text
assessmentId = Text
pAssessmentId_,
$sel:scope:UpdateAssessment' :: Scope
scope = Scope
pScope_
}
updateAssessment_roles :: Lens.Lens' UpdateAssessment (Prelude.Maybe [Role])
updateAssessment_roles :: (Maybe [Role] -> f (Maybe [Role]))
-> UpdateAssessment -> f UpdateAssessment
updateAssessment_roles = (UpdateAssessment -> Maybe [Role])
-> (UpdateAssessment -> Maybe [Role] -> UpdateAssessment)
-> Lens
UpdateAssessment UpdateAssessment (Maybe [Role]) (Maybe [Role])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateAssessment' {Maybe [Role]
roles :: Maybe [Role]
$sel:roles:UpdateAssessment' :: UpdateAssessment -> Maybe [Role]
roles} -> Maybe [Role]
roles) (\s :: UpdateAssessment
s@UpdateAssessment' {} Maybe [Role]
a -> UpdateAssessment
s {$sel:roles:UpdateAssessment' :: Maybe [Role]
roles = Maybe [Role]
a} :: UpdateAssessment) ((Maybe [Role] -> f (Maybe [Role]))
-> UpdateAssessment -> f UpdateAssessment)
-> ((Maybe [Role] -> f (Maybe [Role]))
-> Maybe [Role] -> f (Maybe [Role]))
-> (Maybe [Role] -> f (Maybe [Role]))
-> UpdateAssessment
-> f UpdateAssessment
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Role] [Role] [Role] [Role]
-> Iso (Maybe [Role]) (Maybe [Role]) (Maybe [Role]) (Maybe [Role])
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 [Role] [Role] [Role] [Role]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
updateAssessment_assessmentDescription :: Lens.Lens' UpdateAssessment (Prelude.Maybe Prelude.Text)
updateAssessment_assessmentDescription :: (Maybe Text -> f (Maybe Text))
-> UpdateAssessment -> f UpdateAssessment
updateAssessment_assessmentDescription = (UpdateAssessment -> Maybe Text)
-> (UpdateAssessment -> Maybe Text -> UpdateAssessment)
-> Lens UpdateAssessment UpdateAssessment (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateAssessment' {Maybe Text
assessmentDescription :: Maybe Text
$sel:assessmentDescription:UpdateAssessment' :: UpdateAssessment -> Maybe Text
assessmentDescription} -> Maybe Text
assessmentDescription) (\s :: UpdateAssessment
s@UpdateAssessment' {} Maybe Text
a -> UpdateAssessment
s {$sel:assessmentDescription:UpdateAssessment' :: Maybe Text
assessmentDescription = Maybe Text
a} :: UpdateAssessment)
updateAssessment_assessmentReportsDestination :: Lens.Lens' UpdateAssessment (Prelude.Maybe AssessmentReportsDestination)
updateAssessment_assessmentReportsDestination :: (Maybe AssessmentReportsDestination
-> f (Maybe AssessmentReportsDestination))
-> UpdateAssessment -> f UpdateAssessment
updateAssessment_assessmentReportsDestination = (UpdateAssessment -> Maybe AssessmentReportsDestination)
-> (UpdateAssessment
-> Maybe AssessmentReportsDestination -> UpdateAssessment)
-> Lens
UpdateAssessment
UpdateAssessment
(Maybe AssessmentReportsDestination)
(Maybe AssessmentReportsDestination)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateAssessment' {Maybe AssessmentReportsDestination
assessmentReportsDestination :: Maybe AssessmentReportsDestination
$sel:assessmentReportsDestination:UpdateAssessment' :: UpdateAssessment -> Maybe AssessmentReportsDestination
assessmentReportsDestination} -> Maybe AssessmentReportsDestination
assessmentReportsDestination) (\s :: UpdateAssessment
s@UpdateAssessment' {} Maybe AssessmentReportsDestination
a -> UpdateAssessment
s {$sel:assessmentReportsDestination:UpdateAssessment' :: Maybe AssessmentReportsDestination
assessmentReportsDestination = Maybe AssessmentReportsDestination
a} :: UpdateAssessment)
updateAssessment_assessmentName :: Lens.Lens' UpdateAssessment (Prelude.Maybe Prelude.Text)
updateAssessment_assessmentName :: (Maybe Text -> f (Maybe Text))
-> UpdateAssessment -> f UpdateAssessment
updateAssessment_assessmentName = (UpdateAssessment -> Maybe Text)
-> (UpdateAssessment -> Maybe Text -> UpdateAssessment)
-> Lens UpdateAssessment UpdateAssessment (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateAssessment' {Maybe Text
assessmentName :: Maybe Text
$sel:assessmentName:UpdateAssessment' :: UpdateAssessment -> Maybe Text
assessmentName} -> Maybe Text
assessmentName) (\s :: UpdateAssessment
s@UpdateAssessment' {} Maybe Text
a -> UpdateAssessment
s {$sel:assessmentName:UpdateAssessment' :: Maybe Text
assessmentName = Maybe Text
a} :: UpdateAssessment)
updateAssessment_assessmentId :: Lens.Lens' UpdateAssessment Prelude.Text
updateAssessment_assessmentId :: (Text -> f Text) -> UpdateAssessment -> f UpdateAssessment
updateAssessment_assessmentId = (UpdateAssessment -> Text)
-> (UpdateAssessment -> Text -> UpdateAssessment)
-> Lens UpdateAssessment UpdateAssessment Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateAssessment' {Text
assessmentId :: Text
$sel:assessmentId:UpdateAssessment' :: UpdateAssessment -> Text
assessmentId} -> Text
assessmentId) (\s :: UpdateAssessment
s@UpdateAssessment' {} Text
a -> UpdateAssessment
s {$sel:assessmentId:UpdateAssessment' :: Text
assessmentId = Text
a} :: UpdateAssessment)
updateAssessment_scope :: Lens.Lens' UpdateAssessment Scope
updateAssessment_scope :: (Scope -> f Scope) -> UpdateAssessment -> f UpdateAssessment
updateAssessment_scope = (UpdateAssessment -> Scope)
-> (UpdateAssessment -> Scope -> UpdateAssessment)
-> Lens UpdateAssessment UpdateAssessment Scope Scope
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateAssessment' {Scope
scope :: Scope
$sel:scope:UpdateAssessment' :: UpdateAssessment -> Scope
scope} -> Scope
scope) (\s :: UpdateAssessment
s@UpdateAssessment' {} Scope
a -> UpdateAssessment
s {$sel:scope:UpdateAssessment' :: Scope
scope = Scope
a} :: UpdateAssessment)
instance Core.AWSRequest UpdateAssessment where
type
AWSResponse UpdateAssessment =
UpdateAssessmentResponse
request :: UpdateAssessment -> Request UpdateAssessment
request = Service -> UpdateAssessment -> Request UpdateAssessment
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.putJSON Service
defaultService
response :: Logger
-> Service
-> Proxy UpdateAssessment
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse UpdateAssessment)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse UpdateAssessment))
-> Logger
-> Service
-> Proxy UpdateAssessment
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse UpdateAssessment)))
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 Assessment -> Int -> UpdateAssessmentResponse
UpdateAssessmentResponse'
(Maybe Assessment -> Int -> UpdateAssessmentResponse)
-> Either String (Maybe Assessment)
-> Either String (Int -> UpdateAssessmentResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe Assessment)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"assessment")
Either String (Int -> UpdateAssessmentResponse)
-> Either String Int -> Either String UpdateAssessmentResponse
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 UpdateAssessment
instance Prelude.NFData UpdateAssessment
instance Core.ToHeaders UpdateAssessment where
toHeaders :: UpdateAssessment -> ResponseHeaders
toHeaders =
ResponseHeaders -> UpdateAssessment -> 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.ToJSON UpdateAssessment where
toJSON :: UpdateAssessment -> Value
toJSON UpdateAssessment' {Maybe [Role]
Maybe Text
Maybe AssessmentReportsDestination
Text
Scope
scope :: Scope
assessmentId :: Text
assessmentName :: Maybe Text
assessmentReportsDestination :: Maybe AssessmentReportsDestination
assessmentDescription :: Maybe Text
roles :: Maybe [Role]
$sel:scope:UpdateAssessment' :: UpdateAssessment -> Scope
$sel:assessmentId:UpdateAssessment' :: UpdateAssessment -> Text
$sel:assessmentName:UpdateAssessment' :: UpdateAssessment -> Maybe Text
$sel:assessmentReportsDestination:UpdateAssessment' :: UpdateAssessment -> Maybe AssessmentReportsDestination
$sel:assessmentDescription:UpdateAssessment' :: UpdateAssessment -> Maybe Text
$sel:roles:UpdateAssessment' :: UpdateAssessment -> Maybe [Role]
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"roles" Text -> [Role] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) ([Role] -> Pair) -> Maybe [Role] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Role]
roles,
(Text
"assessmentDescription" 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
assessmentDescription,
(Text
"assessmentReportsDestination" Text -> AssessmentReportsDestination -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(AssessmentReportsDestination -> Pair)
-> Maybe AssessmentReportsDestination -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe AssessmentReportsDestination
assessmentReportsDestination,
(Text
"assessmentName" 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
assessmentName,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"scope" Text -> Scope -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Scope
scope)
]
)
instance Core.ToPath UpdateAssessment where
toPath :: UpdateAssessment -> ByteString
toPath UpdateAssessment' {Maybe [Role]
Maybe Text
Maybe AssessmentReportsDestination
Text
Scope
scope :: Scope
assessmentId :: Text
assessmentName :: Maybe Text
assessmentReportsDestination :: Maybe AssessmentReportsDestination
assessmentDescription :: Maybe Text
roles :: Maybe [Role]
$sel:scope:UpdateAssessment' :: UpdateAssessment -> Scope
$sel:assessmentId:UpdateAssessment' :: UpdateAssessment -> Text
$sel:assessmentName:UpdateAssessment' :: UpdateAssessment -> Maybe Text
$sel:assessmentReportsDestination:UpdateAssessment' :: UpdateAssessment -> Maybe AssessmentReportsDestination
$sel:assessmentDescription:UpdateAssessment' :: UpdateAssessment -> Maybe Text
$sel:roles:UpdateAssessment' :: UpdateAssessment -> Maybe [Role]
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ByteString
"/assessments/", Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
assessmentId]
instance Core.ToQuery UpdateAssessment where
toQuery :: UpdateAssessment -> QueryString
toQuery = QueryString -> UpdateAssessment -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data UpdateAssessmentResponse = UpdateAssessmentResponse'
{
UpdateAssessmentResponse -> Maybe Assessment
assessment :: Prelude.Maybe Assessment,
UpdateAssessmentResponse -> Int
httpStatus :: Prelude.Int
}
deriving (UpdateAssessmentResponse -> UpdateAssessmentResponse -> Bool
(UpdateAssessmentResponse -> UpdateAssessmentResponse -> Bool)
-> (UpdateAssessmentResponse -> UpdateAssessmentResponse -> Bool)
-> Eq UpdateAssessmentResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateAssessmentResponse -> UpdateAssessmentResponse -> Bool
$c/= :: UpdateAssessmentResponse -> UpdateAssessmentResponse -> Bool
== :: UpdateAssessmentResponse -> UpdateAssessmentResponse -> Bool
$c== :: UpdateAssessmentResponse -> UpdateAssessmentResponse -> Bool
Prelude.Eq, ReadPrec [UpdateAssessmentResponse]
ReadPrec UpdateAssessmentResponse
Int -> ReadS UpdateAssessmentResponse
ReadS [UpdateAssessmentResponse]
(Int -> ReadS UpdateAssessmentResponse)
-> ReadS [UpdateAssessmentResponse]
-> ReadPrec UpdateAssessmentResponse
-> ReadPrec [UpdateAssessmentResponse]
-> Read UpdateAssessmentResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateAssessmentResponse]
$creadListPrec :: ReadPrec [UpdateAssessmentResponse]
readPrec :: ReadPrec UpdateAssessmentResponse
$creadPrec :: ReadPrec UpdateAssessmentResponse
readList :: ReadS [UpdateAssessmentResponse]
$creadList :: ReadS [UpdateAssessmentResponse]
readsPrec :: Int -> ReadS UpdateAssessmentResponse
$creadsPrec :: Int -> ReadS UpdateAssessmentResponse
Prelude.Read, Int -> UpdateAssessmentResponse -> ShowS
[UpdateAssessmentResponse] -> ShowS
UpdateAssessmentResponse -> String
(Int -> UpdateAssessmentResponse -> ShowS)
-> (UpdateAssessmentResponse -> String)
-> ([UpdateAssessmentResponse] -> ShowS)
-> Show UpdateAssessmentResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateAssessmentResponse] -> ShowS
$cshowList :: [UpdateAssessmentResponse] -> ShowS
show :: UpdateAssessmentResponse -> String
$cshow :: UpdateAssessmentResponse -> String
showsPrec :: Int -> UpdateAssessmentResponse -> ShowS
$cshowsPrec :: Int -> UpdateAssessmentResponse -> ShowS
Prelude.Show, (forall x.
UpdateAssessmentResponse -> Rep UpdateAssessmentResponse x)
-> (forall x.
Rep UpdateAssessmentResponse x -> UpdateAssessmentResponse)
-> Generic UpdateAssessmentResponse
forall x.
Rep UpdateAssessmentResponse x -> UpdateAssessmentResponse
forall x.
UpdateAssessmentResponse -> Rep UpdateAssessmentResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdateAssessmentResponse x -> UpdateAssessmentResponse
$cfrom :: forall x.
UpdateAssessmentResponse -> Rep UpdateAssessmentResponse x
Prelude.Generic)
newUpdateAssessmentResponse ::
Prelude.Int ->
UpdateAssessmentResponse
newUpdateAssessmentResponse :: Int -> UpdateAssessmentResponse
newUpdateAssessmentResponse Int
pHttpStatus_ =
UpdateAssessmentResponse' :: Maybe Assessment -> Int -> UpdateAssessmentResponse
UpdateAssessmentResponse'
{ $sel:assessment:UpdateAssessmentResponse' :: Maybe Assessment
assessment =
Maybe Assessment
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:UpdateAssessmentResponse' :: Int
httpStatus = Int
pHttpStatus_
}
updateAssessmentResponse_assessment :: Lens.Lens' UpdateAssessmentResponse (Prelude.Maybe Assessment)
updateAssessmentResponse_assessment :: (Maybe Assessment -> f (Maybe Assessment))
-> UpdateAssessmentResponse -> f UpdateAssessmentResponse
updateAssessmentResponse_assessment = (UpdateAssessmentResponse -> Maybe Assessment)
-> (UpdateAssessmentResponse
-> Maybe Assessment -> UpdateAssessmentResponse)
-> Lens
UpdateAssessmentResponse
UpdateAssessmentResponse
(Maybe Assessment)
(Maybe Assessment)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateAssessmentResponse' {Maybe Assessment
assessment :: Maybe Assessment
$sel:assessment:UpdateAssessmentResponse' :: UpdateAssessmentResponse -> Maybe Assessment
assessment} -> Maybe Assessment
assessment) (\s :: UpdateAssessmentResponse
s@UpdateAssessmentResponse' {} Maybe Assessment
a -> UpdateAssessmentResponse
s {$sel:assessment:UpdateAssessmentResponse' :: Maybe Assessment
assessment = Maybe Assessment
a} :: UpdateAssessmentResponse)
updateAssessmentResponse_httpStatus :: Lens.Lens' UpdateAssessmentResponse Prelude.Int
updateAssessmentResponse_httpStatus :: (Int -> f Int)
-> UpdateAssessmentResponse -> f UpdateAssessmentResponse
updateAssessmentResponse_httpStatus = (UpdateAssessmentResponse -> Int)
-> (UpdateAssessmentResponse -> Int -> UpdateAssessmentResponse)
-> Lens UpdateAssessmentResponse UpdateAssessmentResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateAssessmentResponse' {Int
httpStatus :: Int
$sel:httpStatus:UpdateAssessmentResponse' :: UpdateAssessmentResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: UpdateAssessmentResponse
s@UpdateAssessmentResponse' {} Int
a -> UpdateAssessmentResponse
s {$sel:httpStatus:UpdateAssessmentResponse' :: Int
httpStatus = Int
a} :: UpdateAssessmentResponse)
instance Prelude.NFData UpdateAssessmentResponse