{-# 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 #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.AuditManager.UpdateAssessmentFramework
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Updates a custom framework in Audit Manager.
module Amazonka.AuditManager.UpdateAssessmentFramework
  ( -- * Creating a Request
    UpdateAssessmentFramework (..),
    newUpdateAssessmentFramework,

    -- * Request Lenses
    updateAssessmentFramework_complianceType,
    updateAssessmentFramework_description,
    updateAssessmentFramework_frameworkId,
    updateAssessmentFramework_name,
    updateAssessmentFramework_controlSets,

    -- * Destructuring the Response
    UpdateAssessmentFrameworkResponse (..),
    newUpdateAssessmentFrameworkResponse,

    -- * Response Lenses
    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

-- | /See:/ 'newUpdateAssessmentFramework' smart constructor.
data UpdateAssessmentFramework = UpdateAssessmentFramework'
  { -- | The compliance type that the new custom framework supports, such as CIS
    -- or HIPAA.
    UpdateAssessmentFramework -> Maybe Text
complianceType :: Prelude.Maybe Prelude.Text,
    -- | The description of the framework that is to be updated.
    UpdateAssessmentFramework -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
    -- | The identifier for the specified framework.
    UpdateAssessmentFramework -> Text
frameworkId :: Prelude.Text,
    -- | The name of the framework to be updated.
    UpdateAssessmentFramework -> Text
name :: Prelude.Text,
    -- | The control sets associated with the framework.
    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)

-- |
-- Create a value of 'UpdateAssessmentFramework' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'complianceType', 'updateAssessmentFramework_complianceType' - The compliance type that the new custom framework supports, such as CIS
-- or HIPAA.
--
-- 'description', 'updateAssessmentFramework_description' - The description of the framework that is to be updated.
--
-- 'frameworkId', 'updateAssessmentFramework_frameworkId' - The identifier for the specified framework.
--
-- 'name', 'updateAssessmentFramework_name' - The name of the framework to be updated.
--
-- 'controlSets', 'updateAssessmentFramework_controlSets' - The control sets associated with the framework.
newUpdateAssessmentFramework ::
  -- | 'frameworkId'
  Prelude.Text ->
  -- | 'name'
  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
    }

-- | The compliance type that the new custom framework supports, such as CIS
-- or HIPAA.
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)

-- | The description of the framework that is to be updated.
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)

-- | The identifier for the specified framework.
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)

-- | The name of the framework to be updated.
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)

-- | The control sets associated with the framework.
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

-- | /See:/ 'newUpdateAssessmentFrameworkResponse' smart constructor.
data UpdateAssessmentFrameworkResponse = UpdateAssessmentFrameworkResponse'
  { -- | The name of the specified framework.
    UpdateAssessmentFrameworkResponse -> Maybe Framework
framework :: Prelude.Maybe Framework,
    -- | The response's http status code.
    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)

-- |
-- Create a value of 'UpdateAssessmentFrameworkResponse' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'framework', 'updateAssessmentFrameworkResponse_framework' - The name of the specified framework.
--
-- 'httpStatus', 'updateAssessmentFrameworkResponse_httpStatus' - The response's http status code.
newUpdateAssessmentFrameworkResponse ::
  -- | 'httpStatus'
  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_
    }

-- | The name of the specified framework.
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)

-- | The response's http status code.
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