{-# 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.UpdateAssessmentFramework
(
UpdateAssessmentFramework (..),
newUpdateAssessmentFramework,
updateAssessmentFramework_complianceType,
updateAssessmentFramework_description,
updateAssessmentFramework_frameworkId,
updateAssessmentFramework_name,
updateAssessmentFramework_controlSets,
UpdateAssessmentFrameworkResponse (..),
newUpdateAssessmentFrameworkResponse,
updateAssessmentFrameworkResponse_framework,
updateAssessmentFrameworkResponse_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 UpdateAssessmentFramework = UpdateAssessmentFramework'
{
UpdateAssessmentFramework -> Maybe Text
complianceType :: Prelude.Maybe Prelude.Text,
UpdateAssessmentFramework -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
UpdateAssessmentFramework -> Text
frameworkId :: Prelude.Text,
UpdateAssessmentFramework -> Text
name :: Prelude.Text,
UpdateAssessmentFramework -> [UpdateAssessmentFrameworkControlSet]
controlSets :: [UpdateAssessmentFrameworkControlSet]
}
deriving (UpdateAssessmentFramework -> UpdateAssessmentFramework -> Bool
(UpdateAssessmentFramework -> UpdateAssessmentFramework -> Bool)
-> (UpdateAssessmentFramework -> UpdateAssessmentFramework -> Bool)
-> Eq UpdateAssessmentFramework
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateAssessmentFramework -> UpdateAssessmentFramework -> Bool
$c/= :: UpdateAssessmentFramework -> UpdateAssessmentFramework -> Bool
== :: UpdateAssessmentFramework -> UpdateAssessmentFramework -> Bool
$c== :: UpdateAssessmentFramework -> UpdateAssessmentFramework -> Bool
Prelude.Eq, ReadPrec [UpdateAssessmentFramework]
ReadPrec UpdateAssessmentFramework
Int -> ReadS UpdateAssessmentFramework
ReadS [UpdateAssessmentFramework]
(Int -> ReadS UpdateAssessmentFramework)
-> ReadS [UpdateAssessmentFramework]
-> ReadPrec UpdateAssessmentFramework
-> ReadPrec [UpdateAssessmentFramework]
-> Read UpdateAssessmentFramework
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateAssessmentFramework]
$creadListPrec :: ReadPrec [UpdateAssessmentFramework]
readPrec :: ReadPrec UpdateAssessmentFramework
$creadPrec :: ReadPrec UpdateAssessmentFramework
readList :: ReadS [UpdateAssessmentFramework]
$creadList :: ReadS [UpdateAssessmentFramework]
readsPrec :: Int -> ReadS UpdateAssessmentFramework
$creadsPrec :: Int -> ReadS UpdateAssessmentFramework
Prelude.Read, Int -> UpdateAssessmentFramework -> ShowS
[UpdateAssessmentFramework] -> ShowS
UpdateAssessmentFramework -> String
(Int -> UpdateAssessmentFramework -> ShowS)
-> (UpdateAssessmentFramework -> String)
-> ([UpdateAssessmentFramework] -> ShowS)
-> Show UpdateAssessmentFramework
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateAssessmentFramework] -> ShowS
$cshowList :: [UpdateAssessmentFramework] -> ShowS
show :: UpdateAssessmentFramework -> String
$cshow :: UpdateAssessmentFramework -> String
showsPrec :: Int -> UpdateAssessmentFramework -> ShowS
$cshowsPrec :: Int -> UpdateAssessmentFramework -> ShowS
Prelude.Show, (forall x.
UpdateAssessmentFramework -> Rep UpdateAssessmentFramework x)
-> (forall x.
Rep UpdateAssessmentFramework x -> UpdateAssessmentFramework)
-> Generic UpdateAssessmentFramework
forall x.
Rep UpdateAssessmentFramework x -> UpdateAssessmentFramework
forall x.
UpdateAssessmentFramework -> Rep UpdateAssessmentFramework x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdateAssessmentFramework x -> UpdateAssessmentFramework
$cfrom :: forall x.
UpdateAssessmentFramework -> Rep UpdateAssessmentFramework x
Prelude.Generic)
newUpdateAssessmentFramework ::
Prelude.Text ->
Prelude.Text ->
UpdateAssessmentFramework
newUpdateAssessmentFramework :: Text -> Text -> UpdateAssessmentFramework
newUpdateAssessmentFramework Text
pFrameworkId_ Text
pName_ =
UpdateAssessmentFramework' :: Maybe Text
-> Maybe Text
-> Text
-> Text
-> [UpdateAssessmentFrameworkControlSet]
-> UpdateAssessmentFramework
UpdateAssessmentFramework'
{ $sel:complianceType:UpdateAssessmentFramework' :: Maybe Text
complianceType =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:description:UpdateAssessmentFramework' :: Maybe Text
description = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:frameworkId:UpdateAssessmentFramework' :: Text
frameworkId = Text
pFrameworkId_,
$sel:name:UpdateAssessmentFramework' :: Text
name = Text
pName_,
$sel:controlSets:UpdateAssessmentFramework' :: [UpdateAssessmentFrameworkControlSet]
controlSets = [UpdateAssessmentFrameworkControlSet]
forall a. Monoid a => a
Prelude.mempty
}
updateAssessmentFramework_complianceType :: Lens.Lens' UpdateAssessmentFramework (Prelude.Maybe Prelude.Text)
updateAssessmentFramework_complianceType :: (Maybe Text -> f (Maybe Text))
-> UpdateAssessmentFramework -> f UpdateAssessmentFramework
updateAssessmentFramework_complianceType = (UpdateAssessmentFramework -> Maybe Text)
-> (UpdateAssessmentFramework
-> Maybe Text -> UpdateAssessmentFramework)
-> Lens
UpdateAssessmentFramework
UpdateAssessmentFramework
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateAssessmentFramework' {Maybe Text
complianceType :: Maybe Text
$sel:complianceType:UpdateAssessmentFramework' :: UpdateAssessmentFramework -> Maybe Text
complianceType} -> Maybe Text
complianceType) (\s :: UpdateAssessmentFramework
s@UpdateAssessmentFramework' {} Maybe Text
a -> UpdateAssessmentFramework
s {$sel:complianceType:UpdateAssessmentFramework' :: Maybe Text
complianceType = Maybe Text
a} :: UpdateAssessmentFramework)
updateAssessmentFramework_description :: Lens.Lens' UpdateAssessmentFramework (Prelude.Maybe Prelude.Text)
updateAssessmentFramework_description :: (Maybe Text -> f (Maybe Text))
-> UpdateAssessmentFramework -> f UpdateAssessmentFramework
updateAssessmentFramework_description = (UpdateAssessmentFramework -> Maybe Text)
-> (UpdateAssessmentFramework
-> Maybe Text -> UpdateAssessmentFramework)
-> Lens
UpdateAssessmentFramework
UpdateAssessmentFramework
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateAssessmentFramework' {Maybe Text
description :: Maybe Text
$sel:description:UpdateAssessmentFramework' :: UpdateAssessmentFramework -> Maybe Text
description} -> Maybe Text
description) (\s :: UpdateAssessmentFramework
s@UpdateAssessmentFramework' {} Maybe Text
a -> UpdateAssessmentFramework
s {$sel:description:UpdateAssessmentFramework' :: Maybe Text
description = Maybe Text
a} :: UpdateAssessmentFramework)
updateAssessmentFramework_frameworkId :: Lens.Lens' UpdateAssessmentFramework Prelude.Text
updateAssessmentFramework_frameworkId :: (Text -> f Text)
-> UpdateAssessmentFramework -> f UpdateAssessmentFramework
updateAssessmentFramework_frameworkId = (UpdateAssessmentFramework -> Text)
-> (UpdateAssessmentFramework -> Text -> UpdateAssessmentFramework)
-> Lens
UpdateAssessmentFramework UpdateAssessmentFramework Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateAssessmentFramework' {Text
frameworkId :: Text
$sel:frameworkId:UpdateAssessmentFramework' :: UpdateAssessmentFramework -> Text
frameworkId} -> Text
frameworkId) (\s :: UpdateAssessmentFramework
s@UpdateAssessmentFramework' {} Text
a -> UpdateAssessmentFramework
s {$sel:frameworkId:UpdateAssessmentFramework' :: Text
frameworkId = Text
a} :: UpdateAssessmentFramework)
updateAssessmentFramework_name :: Lens.Lens' UpdateAssessmentFramework Prelude.Text
updateAssessmentFramework_name :: (Text -> f Text)
-> UpdateAssessmentFramework -> f UpdateAssessmentFramework
updateAssessmentFramework_name = (UpdateAssessmentFramework -> Text)
-> (UpdateAssessmentFramework -> Text -> UpdateAssessmentFramework)
-> Lens
UpdateAssessmentFramework UpdateAssessmentFramework Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateAssessmentFramework' {Text
name :: Text
$sel:name:UpdateAssessmentFramework' :: UpdateAssessmentFramework -> Text
name} -> Text
name) (\s :: UpdateAssessmentFramework
s@UpdateAssessmentFramework' {} Text
a -> UpdateAssessmentFramework
s {$sel:name:UpdateAssessmentFramework' :: Text
name = Text
a} :: UpdateAssessmentFramework)
updateAssessmentFramework_controlSets :: Lens.Lens' UpdateAssessmentFramework [UpdateAssessmentFrameworkControlSet]
updateAssessmentFramework_controlSets :: ([UpdateAssessmentFrameworkControlSet]
-> f [UpdateAssessmentFrameworkControlSet])
-> UpdateAssessmentFramework -> f UpdateAssessmentFramework
updateAssessmentFramework_controlSets = (UpdateAssessmentFramework
-> [UpdateAssessmentFrameworkControlSet])
-> (UpdateAssessmentFramework
-> [UpdateAssessmentFrameworkControlSet]
-> UpdateAssessmentFramework)
-> Lens
UpdateAssessmentFramework
UpdateAssessmentFramework
[UpdateAssessmentFrameworkControlSet]
[UpdateAssessmentFrameworkControlSet]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateAssessmentFramework' {[UpdateAssessmentFrameworkControlSet]
controlSets :: [UpdateAssessmentFrameworkControlSet]
$sel:controlSets:UpdateAssessmentFramework' :: UpdateAssessmentFramework -> [UpdateAssessmentFrameworkControlSet]
controlSets} -> [UpdateAssessmentFrameworkControlSet]
controlSets) (\s :: UpdateAssessmentFramework
s@UpdateAssessmentFramework' {} [UpdateAssessmentFrameworkControlSet]
a -> UpdateAssessmentFramework
s {$sel:controlSets:UpdateAssessmentFramework' :: [UpdateAssessmentFrameworkControlSet]
controlSets = [UpdateAssessmentFrameworkControlSet]
a} :: UpdateAssessmentFramework) (([UpdateAssessmentFrameworkControlSet]
-> f [UpdateAssessmentFrameworkControlSet])
-> UpdateAssessmentFramework -> f UpdateAssessmentFramework)
-> (([UpdateAssessmentFrameworkControlSet]
-> f [UpdateAssessmentFrameworkControlSet])
-> [UpdateAssessmentFrameworkControlSet]
-> f [UpdateAssessmentFrameworkControlSet])
-> ([UpdateAssessmentFrameworkControlSet]
-> f [UpdateAssessmentFrameworkControlSet])
-> UpdateAssessmentFramework
-> f UpdateAssessmentFramework
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([UpdateAssessmentFrameworkControlSet]
-> f [UpdateAssessmentFrameworkControlSet])
-> [UpdateAssessmentFrameworkControlSet]
-> f [UpdateAssessmentFrameworkControlSet]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
instance Core.AWSRequest UpdateAssessmentFramework where
type
AWSResponse UpdateAssessmentFramework =
UpdateAssessmentFrameworkResponse
request :: UpdateAssessmentFramework -> Request UpdateAssessmentFramework
request = Service
-> UpdateAssessmentFramework -> Request UpdateAssessmentFramework
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.putJSON Service
defaultService
response :: Logger
-> Service
-> Proxy UpdateAssessmentFramework
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse UpdateAssessmentFramework)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse UpdateAssessmentFramework))
-> Logger
-> Service
-> Proxy UpdateAssessmentFramework
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse UpdateAssessmentFramework)))
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 Framework -> Int -> UpdateAssessmentFrameworkResponse
UpdateAssessmentFrameworkResponse'
(Maybe Framework -> Int -> UpdateAssessmentFrameworkResponse)
-> Either String (Maybe Framework)
-> Either String (Int -> UpdateAssessmentFrameworkResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe Framework)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"framework")
Either String (Int -> UpdateAssessmentFrameworkResponse)
-> Either String Int
-> Either String UpdateAssessmentFrameworkResponse
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 UpdateAssessmentFramework
instance Prelude.NFData UpdateAssessmentFramework
instance Core.ToHeaders UpdateAssessmentFramework where
toHeaders :: UpdateAssessmentFramework -> ResponseHeaders
toHeaders =
ResponseHeaders -> UpdateAssessmentFramework -> 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 UpdateAssessmentFramework where
toJSON :: UpdateAssessmentFramework -> Value
toJSON UpdateAssessmentFramework' {[UpdateAssessmentFrameworkControlSet]
Maybe Text
Text
controlSets :: [UpdateAssessmentFrameworkControlSet]
name :: Text
frameworkId :: Text
description :: Maybe Text
complianceType :: Maybe Text
$sel:controlSets:UpdateAssessmentFramework' :: UpdateAssessmentFramework -> [UpdateAssessmentFrameworkControlSet]
$sel:name:UpdateAssessmentFramework' :: UpdateAssessmentFramework -> Text
$sel:frameworkId:UpdateAssessmentFramework' :: UpdateAssessmentFramework -> Text
$sel:description:UpdateAssessmentFramework' :: UpdateAssessmentFramework -> Maybe Text
$sel:complianceType:UpdateAssessmentFramework' :: UpdateAssessmentFramework -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"complianceType" 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
complianceType,
(Text
"description" 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
description,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"name" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
name),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"controlSets" Text -> [UpdateAssessmentFrameworkControlSet] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= [UpdateAssessmentFrameworkControlSet]
controlSets)
]
)
instance Core.ToPath UpdateAssessmentFramework where
toPath :: UpdateAssessmentFramework -> ByteString
toPath UpdateAssessmentFramework' {[UpdateAssessmentFrameworkControlSet]
Maybe Text
Text
controlSets :: [UpdateAssessmentFrameworkControlSet]
name :: Text
frameworkId :: Text
description :: Maybe Text
complianceType :: Maybe Text
$sel:controlSets:UpdateAssessmentFramework' :: UpdateAssessmentFramework -> [UpdateAssessmentFrameworkControlSet]
$sel:name:UpdateAssessmentFramework' :: UpdateAssessmentFramework -> Text
$sel:frameworkId:UpdateAssessmentFramework' :: UpdateAssessmentFramework -> Text
$sel:description:UpdateAssessmentFramework' :: UpdateAssessmentFramework -> Maybe Text
$sel:complianceType:UpdateAssessmentFramework' :: UpdateAssessmentFramework -> Maybe Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ByteString
"/assessmentFrameworks/", Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
frameworkId]
instance Core.ToQuery UpdateAssessmentFramework where
toQuery :: UpdateAssessmentFramework -> QueryString
toQuery = QueryString -> UpdateAssessmentFramework -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data UpdateAssessmentFrameworkResponse = UpdateAssessmentFrameworkResponse'
{
UpdateAssessmentFrameworkResponse -> Maybe Framework
framework :: Prelude.Maybe Framework,
UpdateAssessmentFrameworkResponse -> Int
httpStatus :: Prelude.Int
}
deriving (UpdateAssessmentFrameworkResponse
-> UpdateAssessmentFrameworkResponse -> Bool
(UpdateAssessmentFrameworkResponse
-> UpdateAssessmentFrameworkResponse -> Bool)
-> (UpdateAssessmentFrameworkResponse
-> UpdateAssessmentFrameworkResponse -> Bool)
-> Eq UpdateAssessmentFrameworkResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateAssessmentFrameworkResponse
-> UpdateAssessmentFrameworkResponse -> Bool
$c/= :: UpdateAssessmentFrameworkResponse
-> UpdateAssessmentFrameworkResponse -> Bool
== :: UpdateAssessmentFrameworkResponse
-> UpdateAssessmentFrameworkResponse -> Bool
$c== :: UpdateAssessmentFrameworkResponse
-> UpdateAssessmentFrameworkResponse -> Bool
Prelude.Eq, ReadPrec [UpdateAssessmentFrameworkResponse]
ReadPrec UpdateAssessmentFrameworkResponse
Int -> ReadS UpdateAssessmentFrameworkResponse
ReadS [UpdateAssessmentFrameworkResponse]
(Int -> ReadS UpdateAssessmentFrameworkResponse)
-> ReadS [UpdateAssessmentFrameworkResponse]
-> ReadPrec UpdateAssessmentFrameworkResponse
-> ReadPrec [UpdateAssessmentFrameworkResponse]
-> Read UpdateAssessmentFrameworkResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateAssessmentFrameworkResponse]
$creadListPrec :: ReadPrec [UpdateAssessmentFrameworkResponse]
readPrec :: ReadPrec UpdateAssessmentFrameworkResponse
$creadPrec :: ReadPrec UpdateAssessmentFrameworkResponse
readList :: ReadS [UpdateAssessmentFrameworkResponse]
$creadList :: ReadS [UpdateAssessmentFrameworkResponse]
readsPrec :: Int -> ReadS UpdateAssessmentFrameworkResponse
$creadsPrec :: Int -> ReadS UpdateAssessmentFrameworkResponse
Prelude.Read, Int -> UpdateAssessmentFrameworkResponse -> ShowS
[UpdateAssessmentFrameworkResponse] -> ShowS
UpdateAssessmentFrameworkResponse -> String
(Int -> UpdateAssessmentFrameworkResponse -> ShowS)
-> (UpdateAssessmentFrameworkResponse -> String)
-> ([UpdateAssessmentFrameworkResponse] -> ShowS)
-> Show UpdateAssessmentFrameworkResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateAssessmentFrameworkResponse] -> ShowS
$cshowList :: [UpdateAssessmentFrameworkResponse] -> ShowS
show :: UpdateAssessmentFrameworkResponse -> String
$cshow :: UpdateAssessmentFrameworkResponse -> String
showsPrec :: Int -> UpdateAssessmentFrameworkResponse -> ShowS
$cshowsPrec :: Int -> UpdateAssessmentFrameworkResponse -> ShowS
Prelude.Show, (forall x.
UpdateAssessmentFrameworkResponse
-> Rep UpdateAssessmentFrameworkResponse x)
-> (forall x.
Rep UpdateAssessmentFrameworkResponse x
-> UpdateAssessmentFrameworkResponse)
-> Generic UpdateAssessmentFrameworkResponse
forall x.
Rep UpdateAssessmentFrameworkResponse x
-> UpdateAssessmentFrameworkResponse
forall x.
UpdateAssessmentFrameworkResponse
-> Rep UpdateAssessmentFrameworkResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdateAssessmentFrameworkResponse x
-> UpdateAssessmentFrameworkResponse
$cfrom :: forall x.
UpdateAssessmentFrameworkResponse
-> Rep UpdateAssessmentFrameworkResponse x
Prelude.Generic)
newUpdateAssessmentFrameworkResponse ::
Prelude.Int ->
UpdateAssessmentFrameworkResponse
newUpdateAssessmentFrameworkResponse :: Int -> UpdateAssessmentFrameworkResponse
newUpdateAssessmentFrameworkResponse Int
pHttpStatus_ =
UpdateAssessmentFrameworkResponse' :: Maybe Framework -> Int -> UpdateAssessmentFrameworkResponse
UpdateAssessmentFrameworkResponse'
{ $sel:framework:UpdateAssessmentFrameworkResponse' :: Maybe Framework
framework =
Maybe Framework
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:UpdateAssessmentFrameworkResponse' :: Int
httpStatus = Int
pHttpStatus_
}
updateAssessmentFrameworkResponse_framework :: Lens.Lens' UpdateAssessmentFrameworkResponse (Prelude.Maybe Framework)
updateAssessmentFrameworkResponse_framework :: (Maybe Framework -> f (Maybe Framework))
-> UpdateAssessmentFrameworkResponse
-> f UpdateAssessmentFrameworkResponse
updateAssessmentFrameworkResponse_framework = (UpdateAssessmentFrameworkResponse -> Maybe Framework)
-> (UpdateAssessmentFrameworkResponse
-> Maybe Framework -> UpdateAssessmentFrameworkResponse)
-> Lens
UpdateAssessmentFrameworkResponse
UpdateAssessmentFrameworkResponse
(Maybe Framework)
(Maybe Framework)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateAssessmentFrameworkResponse' {Maybe Framework
framework :: Maybe Framework
$sel:framework:UpdateAssessmentFrameworkResponse' :: UpdateAssessmentFrameworkResponse -> Maybe Framework
framework} -> Maybe Framework
framework) (\s :: UpdateAssessmentFrameworkResponse
s@UpdateAssessmentFrameworkResponse' {} Maybe Framework
a -> UpdateAssessmentFrameworkResponse
s {$sel:framework:UpdateAssessmentFrameworkResponse' :: Maybe Framework
framework = Maybe Framework
a} :: UpdateAssessmentFrameworkResponse)
updateAssessmentFrameworkResponse_httpStatus :: Lens.Lens' UpdateAssessmentFrameworkResponse Prelude.Int
updateAssessmentFrameworkResponse_httpStatus :: (Int -> f Int)
-> UpdateAssessmentFrameworkResponse
-> f UpdateAssessmentFrameworkResponse
updateAssessmentFrameworkResponse_httpStatus = (UpdateAssessmentFrameworkResponse -> Int)
-> (UpdateAssessmentFrameworkResponse
-> Int -> UpdateAssessmentFrameworkResponse)
-> Lens
UpdateAssessmentFrameworkResponse
UpdateAssessmentFrameworkResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateAssessmentFrameworkResponse' {Int
httpStatus :: Int
$sel:httpStatus:UpdateAssessmentFrameworkResponse' :: UpdateAssessmentFrameworkResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: UpdateAssessmentFrameworkResponse
s@UpdateAssessmentFrameworkResponse' {} Int
a -> UpdateAssessmentFrameworkResponse
s {$sel:httpStatus:UpdateAssessmentFrameworkResponse' :: Int
httpStatus = Int
a} :: UpdateAssessmentFrameworkResponse)
instance
Prelude.NFData
UpdateAssessmentFrameworkResponse