{-# 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.WellArchitected.UpdateLensReview
-- 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)
--
-- Update lens review.
module Amazonka.WellArchitected.UpdateLensReview
  ( -- * Creating a Request
    UpdateLensReview (..),
    newUpdateLensReview,

    -- * Request Lenses
    updateLensReview_lensNotes,
    updateLensReview_pillarNotes,
    updateLensReview_workloadId,
    updateLensReview_lensAlias,

    -- * Destructuring the Response
    UpdateLensReviewResponse (..),
    newUpdateLensReviewResponse,

    -- * Response Lenses
    updateLensReviewResponse_workloadId,
    updateLensReviewResponse_lensReview,
    updateLensReviewResponse_httpStatus,
  )
where

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
import Amazonka.WellArchitected.Types

-- | Input for update lens review.
--
-- /See:/ 'newUpdateLensReview' smart constructor.
data UpdateLensReview = UpdateLensReview'
  { UpdateLensReview -> Maybe Text
lensNotes :: Prelude.Maybe Prelude.Text,
    UpdateLensReview -> Maybe (HashMap Text Text)
pillarNotes :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
    UpdateLensReview -> Text
workloadId :: Prelude.Text,
    UpdateLensReview -> Text
lensAlias :: Prelude.Text
  }
  deriving (UpdateLensReview -> UpdateLensReview -> Bool
(UpdateLensReview -> UpdateLensReview -> Bool)
-> (UpdateLensReview -> UpdateLensReview -> Bool)
-> Eq UpdateLensReview
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateLensReview -> UpdateLensReview -> Bool
$c/= :: UpdateLensReview -> UpdateLensReview -> Bool
== :: UpdateLensReview -> UpdateLensReview -> Bool
$c== :: UpdateLensReview -> UpdateLensReview -> Bool
Prelude.Eq, ReadPrec [UpdateLensReview]
ReadPrec UpdateLensReview
Int -> ReadS UpdateLensReview
ReadS [UpdateLensReview]
(Int -> ReadS UpdateLensReview)
-> ReadS [UpdateLensReview]
-> ReadPrec UpdateLensReview
-> ReadPrec [UpdateLensReview]
-> Read UpdateLensReview
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateLensReview]
$creadListPrec :: ReadPrec [UpdateLensReview]
readPrec :: ReadPrec UpdateLensReview
$creadPrec :: ReadPrec UpdateLensReview
readList :: ReadS [UpdateLensReview]
$creadList :: ReadS [UpdateLensReview]
readsPrec :: Int -> ReadS UpdateLensReview
$creadsPrec :: Int -> ReadS UpdateLensReview
Prelude.Read, Int -> UpdateLensReview -> ShowS
[UpdateLensReview] -> ShowS
UpdateLensReview -> String
(Int -> UpdateLensReview -> ShowS)
-> (UpdateLensReview -> String)
-> ([UpdateLensReview] -> ShowS)
-> Show UpdateLensReview
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateLensReview] -> ShowS
$cshowList :: [UpdateLensReview] -> ShowS
show :: UpdateLensReview -> String
$cshow :: UpdateLensReview -> String
showsPrec :: Int -> UpdateLensReview -> ShowS
$cshowsPrec :: Int -> UpdateLensReview -> ShowS
Prelude.Show, (forall x. UpdateLensReview -> Rep UpdateLensReview x)
-> (forall x. Rep UpdateLensReview x -> UpdateLensReview)
-> Generic UpdateLensReview
forall x. Rep UpdateLensReview x -> UpdateLensReview
forall x. UpdateLensReview -> Rep UpdateLensReview x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep UpdateLensReview x -> UpdateLensReview
$cfrom :: forall x. UpdateLensReview -> Rep UpdateLensReview x
Prelude.Generic)

-- |
-- Create a value of 'UpdateLensReview' 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:
--
-- 'lensNotes', 'updateLensReview_lensNotes' - Undocumented member.
--
-- 'pillarNotes', 'updateLensReview_pillarNotes' - Undocumented member.
--
-- 'workloadId', 'updateLensReview_workloadId' - Undocumented member.
--
-- 'lensAlias', 'updateLensReview_lensAlias' - Undocumented member.
newUpdateLensReview ::
  -- | 'workloadId'
  Prelude.Text ->
  -- | 'lensAlias'
  Prelude.Text ->
  UpdateLensReview
newUpdateLensReview :: Text -> Text -> UpdateLensReview
newUpdateLensReview Text
pWorkloadId_ Text
pLensAlias_ =
  UpdateLensReview' :: Maybe Text
-> Maybe (HashMap Text Text) -> Text -> Text -> UpdateLensReview
UpdateLensReview'
    { $sel:lensNotes:UpdateLensReview' :: Maybe Text
lensNotes = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:pillarNotes:UpdateLensReview' :: Maybe (HashMap Text Text)
pillarNotes = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
      $sel:workloadId:UpdateLensReview' :: Text
workloadId = Text
pWorkloadId_,
      $sel:lensAlias:UpdateLensReview' :: Text
lensAlias = Text
pLensAlias_
    }

-- | Undocumented member.
updateLensReview_lensNotes :: Lens.Lens' UpdateLensReview (Prelude.Maybe Prelude.Text)
updateLensReview_lensNotes :: (Maybe Text -> f (Maybe Text))
-> UpdateLensReview -> f UpdateLensReview
updateLensReview_lensNotes = (UpdateLensReview -> Maybe Text)
-> (UpdateLensReview -> Maybe Text -> UpdateLensReview)
-> Lens UpdateLensReview UpdateLensReview (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateLensReview' {Maybe Text
lensNotes :: Maybe Text
$sel:lensNotes:UpdateLensReview' :: UpdateLensReview -> Maybe Text
lensNotes} -> Maybe Text
lensNotes) (\s :: UpdateLensReview
s@UpdateLensReview' {} Maybe Text
a -> UpdateLensReview
s {$sel:lensNotes:UpdateLensReview' :: Maybe Text
lensNotes = Maybe Text
a} :: UpdateLensReview)

-- | Undocumented member.
updateLensReview_pillarNotes :: Lens.Lens' UpdateLensReview (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
updateLensReview_pillarNotes :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> UpdateLensReview -> f UpdateLensReview
updateLensReview_pillarNotes = (UpdateLensReview -> Maybe (HashMap Text Text))
-> (UpdateLensReview
    -> Maybe (HashMap Text Text) -> UpdateLensReview)
-> Lens
     UpdateLensReview
     UpdateLensReview
     (Maybe (HashMap Text Text))
     (Maybe (HashMap Text Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateLensReview' {Maybe (HashMap Text Text)
pillarNotes :: Maybe (HashMap Text Text)
$sel:pillarNotes:UpdateLensReview' :: UpdateLensReview -> Maybe (HashMap Text Text)
pillarNotes} -> Maybe (HashMap Text Text)
pillarNotes) (\s :: UpdateLensReview
s@UpdateLensReview' {} Maybe (HashMap Text Text)
a -> UpdateLensReview
s {$sel:pillarNotes:UpdateLensReview' :: Maybe (HashMap Text Text)
pillarNotes = Maybe (HashMap Text Text)
a} :: UpdateLensReview) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
 -> UpdateLensReview -> f UpdateLensReview)
-> ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
    -> Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> UpdateLensReview
-> f UpdateLensReview
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  (HashMap Text Text)
  (HashMap Text Text)
  (HashMap Text Text)
  (HashMap Text Text)
-> Iso
     (Maybe (HashMap Text Text))
     (Maybe (HashMap Text Text))
     (Maybe (HashMap Text Text))
     (Maybe (HashMap Text Text))
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
  (HashMap Text Text)
  (HashMap Text Text)
  (HashMap Text Text)
  (HashMap Text Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | Undocumented member.
updateLensReview_workloadId :: Lens.Lens' UpdateLensReview Prelude.Text
updateLensReview_workloadId :: (Text -> f Text) -> UpdateLensReview -> f UpdateLensReview
updateLensReview_workloadId = (UpdateLensReview -> Text)
-> (UpdateLensReview -> Text -> UpdateLensReview)
-> Lens UpdateLensReview UpdateLensReview Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateLensReview' {Text
workloadId :: Text
$sel:workloadId:UpdateLensReview' :: UpdateLensReview -> Text
workloadId} -> Text
workloadId) (\s :: UpdateLensReview
s@UpdateLensReview' {} Text
a -> UpdateLensReview
s {$sel:workloadId:UpdateLensReview' :: Text
workloadId = Text
a} :: UpdateLensReview)

-- | Undocumented member.
updateLensReview_lensAlias :: Lens.Lens' UpdateLensReview Prelude.Text
updateLensReview_lensAlias :: (Text -> f Text) -> UpdateLensReview -> f UpdateLensReview
updateLensReview_lensAlias = (UpdateLensReview -> Text)
-> (UpdateLensReview -> Text -> UpdateLensReview)
-> Lens UpdateLensReview UpdateLensReview Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateLensReview' {Text
lensAlias :: Text
$sel:lensAlias:UpdateLensReview' :: UpdateLensReview -> Text
lensAlias} -> Text
lensAlias) (\s :: UpdateLensReview
s@UpdateLensReview' {} Text
a -> UpdateLensReview
s {$sel:lensAlias:UpdateLensReview' :: Text
lensAlias = Text
a} :: UpdateLensReview)

instance Core.AWSRequest UpdateLensReview where
  type
    AWSResponse UpdateLensReview =
      UpdateLensReviewResponse
  request :: UpdateLensReview -> Request UpdateLensReview
request = Service -> UpdateLensReview -> Request UpdateLensReview
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.patchJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy UpdateLensReview
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse UpdateLensReview)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse UpdateLensReview))
-> Logger
-> Service
-> Proxy UpdateLensReview
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse UpdateLensReview)))
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 Text -> Maybe LensReview -> Int -> UpdateLensReviewResponse
UpdateLensReviewResponse'
            (Maybe Text -> Maybe LensReview -> Int -> UpdateLensReviewResponse)
-> Either String (Maybe Text)
-> Either
     String (Maybe LensReview -> Int -> UpdateLensReviewResponse)
forall (f :: * -> *) a b. Functor 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
"WorkloadId")
            Either String (Maybe LensReview -> Int -> UpdateLensReviewResponse)
-> Either String (Maybe LensReview)
-> Either String (Int -> UpdateLensReviewResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe LensReview)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"LensReview")
            Either String (Int -> UpdateLensReviewResponse)
-> Either String Int -> Either String UpdateLensReviewResponse
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 UpdateLensReview

instance Prelude.NFData UpdateLensReview

instance Core.ToHeaders UpdateLensReview where
  toHeaders :: UpdateLensReview -> ResponseHeaders
toHeaders =
    ResponseHeaders -> UpdateLensReview -> 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 UpdateLensReview where
  toJSON :: UpdateLensReview -> Value
toJSON UpdateLensReview' {Maybe Text
Maybe (HashMap Text Text)
Text
lensAlias :: Text
workloadId :: Text
pillarNotes :: Maybe (HashMap Text Text)
lensNotes :: Maybe Text
$sel:lensAlias:UpdateLensReview' :: UpdateLensReview -> Text
$sel:workloadId:UpdateLensReview' :: UpdateLensReview -> Text
$sel:pillarNotes:UpdateLensReview' :: UpdateLensReview -> Maybe (HashMap Text Text)
$sel:lensNotes:UpdateLensReview' :: UpdateLensReview -> Maybe Text
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Text
"LensNotes" 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
lensNotes,
            (Text
"PillarNotes" Text -> HashMap Text Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (HashMap Text Text -> Pair)
-> Maybe (HashMap Text Text) -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (HashMap Text Text)
pillarNotes
          ]
      )

instance Core.ToPath UpdateLensReview where
  toPath :: UpdateLensReview -> ByteString
toPath UpdateLensReview' {Maybe Text
Maybe (HashMap Text Text)
Text
lensAlias :: Text
workloadId :: Text
pillarNotes :: Maybe (HashMap Text Text)
lensNotes :: Maybe Text
$sel:lensAlias:UpdateLensReview' :: UpdateLensReview -> Text
$sel:workloadId:UpdateLensReview' :: UpdateLensReview -> Text
$sel:pillarNotes:UpdateLensReview' :: UpdateLensReview -> Maybe (HashMap Text Text)
$sel:lensNotes:UpdateLensReview' :: UpdateLensReview -> Maybe Text
..} =
    [ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"/workloads/",
        Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
workloadId,
        ByteString
"/lensReviews/",
        Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
lensAlias
      ]

instance Core.ToQuery UpdateLensReview where
  toQuery :: UpdateLensReview -> QueryString
toQuery = QueryString -> UpdateLensReview -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty

-- | Output of a update lens review call.
--
-- /See:/ 'newUpdateLensReviewResponse' smart constructor.
data UpdateLensReviewResponse = UpdateLensReviewResponse'
  { UpdateLensReviewResponse -> Maybe Text
workloadId :: Prelude.Maybe Prelude.Text,
    UpdateLensReviewResponse -> Maybe LensReview
lensReview :: Prelude.Maybe LensReview,
    -- | The response's http status code.
    UpdateLensReviewResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (UpdateLensReviewResponse -> UpdateLensReviewResponse -> Bool
(UpdateLensReviewResponse -> UpdateLensReviewResponse -> Bool)
-> (UpdateLensReviewResponse -> UpdateLensReviewResponse -> Bool)
-> Eq UpdateLensReviewResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateLensReviewResponse -> UpdateLensReviewResponse -> Bool
$c/= :: UpdateLensReviewResponse -> UpdateLensReviewResponse -> Bool
== :: UpdateLensReviewResponse -> UpdateLensReviewResponse -> Bool
$c== :: UpdateLensReviewResponse -> UpdateLensReviewResponse -> Bool
Prelude.Eq, ReadPrec [UpdateLensReviewResponse]
ReadPrec UpdateLensReviewResponse
Int -> ReadS UpdateLensReviewResponse
ReadS [UpdateLensReviewResponse]
(Int -> ReadS UpdateLensReviewResponse)
-> ReadS [UpdateLensReviewResponse]
-> ReadPrec UpdateLensReviewResponse
-> ReadPrec [UpdateLensReviewResponse]
-> Read UpdateLensReviewResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateLensReviewResponse]
$creadListPrec :: ReadPrec [UpdateLensReviewResponse]
readPrec :: ReadPrec UpdateLensReviewResponse
$creadPrec :: ReadPrec UpdateLensReviewResponse
readList :: ReadS [UpdateLensReviewResponse]
$creadList :: ReadS [UpdateLensReviewResponse]
readsPrec :: Int -> ReadS UpdateLensReviewResponse
$creadsPrec :: Int -> ReadS UpdateLensReviewResponse
Prelude.Read, Int -> UpdateLensReviewResponse -> ShowS
[UpdateLensReviewResponse] -> ShowS
UpdateLensReviewResponse -> String
(Int -> UpdateLensReviewResponse -> ShowS)
-> (UpdateLensReviewResponse -> String)
-> ([UpdateLensReviewResponse] -> ShowS)
-> Show UpdateLensReviewResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateLensReviewResponse] -> ShowS
$cshowList :: [UpdateLensReviewResponse] -> ShowS
show :: UpdateLensReviewResponse -> String
$cshow :: UpdateLensReviewResponse -> String
showsPrec :: Int -> UpdateLensReviewResponse -> ShowS
$cshowsPrec :: Int -> UpdateLensReviewResponse -> ShowS
Prelude.Show, (forall x.
 UpdateLensReviewResponse -> Rep UpdateLensReviewResponse x)
-> (forall x.
    Rep UpdateLensReviewResponse x -> UpdateLensReviewResponse)
-> Generic UpdateLensReviewResponse
forall x.
Rep UpdateLensReviewResponse x -> UpdateLensReviewResponse
forall x.
UpdateLensReviewResponse -> Rep UpdateLensReviewResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdateLensReviewResponse x -> UpdateLensReviewResponse
$cfrom :: forall x.
UpdateLensReviewResponse -> Rep UpdateLensReviewResponse x
Prelude.Generic)

-- |
-- Create a value of 'UpdateLensReviewResponse' 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:
--
-- 'workloadId', 'updateLensReviewResponse_workloadId' - Undocumented member.
--
-- 'lensReview', 'updateLensReviewResponse_lensReview' - Undocumented member.
--
-- 'httpStatus', 'updateLensReviewResponse_httpStatus' - The response's http status code.
newUpdateLensReviewResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  UpdateLensReviewResponse
newUpdateLensReviewResponse :: Int -> UpdateLensReviewResponse
newUpdateLensReviewResponse Int
pHttpStatus_ =
  UpdateLensReviewResponse' :: Maybe Text -> Maybe LensReview -> Int -> UpdateLensReviewResponse
UpdateLensReviewResponse'
    { $sel:workloadId:UpdateLensReviewResponse' :: Maybe Text
workloadId =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:lensReview:UpdateLensReviewResponse' :: Maybe LensReview
lensReview = Maybe LensReview
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:UpdateLensReviewResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | Undocumented member.
updateLensReviewResponse_workloadId :: Lens.Lens' UpdateLensReviewResponse (Prelude.Maybe Prelude.Text)
updateLensReviewResponse_workloadId :: (Maybe Text -> f (Maybe Text))
-> UpdateLensReviewResponse -> f UpdateLensReviewResponse
updateLensReviewResponse_workloadId = (UpdateLensReviewResponse -> Maybe Text)
-> (UpdateLensReviewResponse
    -> Maybe Text -> UpdateLensReviewResponse)
-> Lens
     UpdateLensReviewResponse
     UpdateLensReviewResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateLensReviewResponse' {Maybe Text
workloadId :: Maybe Text
$sel:workloadId:UpdateLensReviewResponse' :: UpdateLensReviewResponse -> Maybe Text
workloadId} -> Maybe Text
workloadId) (\s :: UpdateLensReviewResponse
s@UpdateLensReviewResponse' {} Maybe Text
a -> UpdateLensReviewResponse
s {$sel:workloadId:UpdateLensReviewResponse' :: Maybe Text
workloadId = Maybe Text
a} :: UpdateLensReviewResponse)

-- | Undocumented member.
updateLensReviewResponse_lensReview :: Lens.Lens' UpdateLensReviewResponse (Prelude.Maybe LensReview)
updateLensReviewResponse_lensReview :: (Maybe LensReview -> f (Maybe LensReview))
-> UpdateLensReviewResponse -> f UpdateLensReviewResponse
updateLensReviewResponse_lensReview = (UpdateLensReviewResponse -> Maybe LensReview)
-> (UpdateLensReviewResponse
    -> Maybe LensReview -> UpdateLensReviewResponse)
-> Lens
     UpdateLensReviewResponse
     UpdateLensReviewResponse
     (Maybe LensReview)
     (Maybe LensReview)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateLensReviewResponse' {Maybe LensReview
lensReview :: Maybe LensReview
$sel:lensReview:UpdateLensReviewResponse' :: UpdateLensReviewResponse -> Maybe LensReview
lensReview} -> Maybe LensReview
lensReview) (\s :: UpdateLensReviewResponse
s@UpdateLensReviewResponse' {} Maybe LensReview
a -> UpdateLensReviewResponse
s {$sel:lensReview:UpdateLensReviewResponse' :: Maybe LensReview
lensReview = Maybe LensReview
a} :: UpdateLensReviewResponse)

-- | The response's http status code.
updateLensReviewResponse_httpStatus :: Lens.Lens' UpdateLensReviewResponse Prelude.Int
updateLensReviewResponse_httpStatus :: (Int -> f Int)
-> UpdateLensReviewResponse -> f UpdateLensReviewResponse
updateLensReviewResponse_httpStatus = (UpdateLensReviewResponse -> Int)
-> (UpdateLensReviewResponse -> Int -> UpdateLensReviewResponse)
-> Lens UpdateLensReviewResponse UpdateLensReviewResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateLensReviewResponse' {Int
httpStatus :: Int
$sel:httpStatus:UpdateLensReviewResponse' :: UpdateLensReviewResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: UpdateLensReviewResponse
s@UpdateLensReviewResponse' {} Int
a -> UpdateLensReviewResponse
s {$sel:httpStatus:UpdateLensReviewResponse' :: Int
httpStatus = Int
a} :: UpdateLensReviewResponse)

instance Prelude.NFData UpdateLensReviewResponse