{-# 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.ListLensReviews
-- 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)
--
-- List lens reviews.
module Amazonka.WellArchitected.ListLensReviews
  ( -- * Creating a Request
    ListLensReviews (..),
    newListLensReviews,

    -- * Request Lenses
    listLensReviews_milestoneNumber,
    listLensReviews_nextToken,
    listLensReviews_maxResults,
    listLensReviews_workloadId,

    -- * Destructuring the Response
    ListLensReviewsResponse (..),
    newListLensReviewsResponse,

    -- * Response Lenses
    listLensReviewsResponse_milestoneNumber,
    listLensReviewsResponse_nextToken,
    listLensReviewsResponse_lensReviewSummaries,
    listLensReviewsResponse_workloadId,
    listLensReviewsResponse_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 to list lens reviews.
--
-- /See:/ 'newListLensReviews' smart constructor.
data ListLensReviews = ListLensReviews'
  { ListLensReviews -> Maybe Natural
milestoneNumber :: Prelude.Maybe Prelude.Natural,
    ListLensReviews -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    ListLensReviews -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
    ListLensReviews -> Text
workloadId :: Prelude.Text
  }
  deriving (ListLensReviews -> ListLensReviews -> Bool
(ListLensReviews -> ListLensReviews -> Bool)
-> (ListLensReviews -> ListLensReviews -> Bool)
-> Eq ListLensReviews
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListLensReviews -> ListLensReviews -> Bool
$c/= :: ListLensReviews -> ListLensReviews -> Bool
== :: ListLensReviews -> ListLensReviews -> Bool
$c== :: ListLensReviews -> ListLensReviews -> Bool
Prelude.Eq, ReadPrec [ListLensReviews]
ReadPrec ListLensReviews
Int -> ReadS ListLensReviews
ReadS [ListLensReviews]
(Int -> ReadS ListLensReviews)
-> ReadS [ListLensReviews]
-> ReadPrec ListLensReviews
-> ReadPrec [ListLensReviews]
-> Read ListLensReviews
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListLensReviews]
$creadListPrec :: ReadPrec [ListLensReviews]
readPrec :: ReadPrec ListLensReviews
$creadPrec :: ReadPrec ListLensReviews
readList :: ReadS [ListLensReviews]
$creadList :: ReadS [ListLensReviews]
readsPrec :: Int -> ReadS ListLensReviews
$creadsPrec :: Int -> ReadS ListLensReviews
Prelude.Read, Int -> ListLensReviews -> ShowS
[ListLensReviews] -> ShowS
ListLensReviews -> String
(Int -> ListLensReviews -> ShowS)
-> (ListLensReviews -> String)
-> ([ListLensReviews] -> ShowS)
-> Show ListLensReviews
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListLensReviews] -> ShowS
$cshowList :: [ListLensReviews] -> ShowS
show :: ListLensReviews -> String
$cshow :: ListLensReviews -> String
showsPrec :: Int -> ListLensReviews -> ShowS
$cshowsPrec :: Int -> ListLensReviews -> ShowS
Prelude.Show, (forall x. ListLensReviews -> Rep ListLensReviews x)
-> (forall x. Rep ListLensReviews x -> ListLensReviews)
-> Generic ListLensReviews
forall x. Rep ListLensReviews x -> ListLensReviews
forall x. ListLensReviews -> Rep ListLensReviews x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListLensReviews x -> ListLensReviews
$cfrom :: forall x. ListLensReviews -> Rep ListLensReviews x
Prelude.Generic)

-- |
-- Create a value of 'ListLensReviews' 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:
--
-- 'milestoneNumber', 'listLensReviews_milestoneNumber' - Undocumented member.
--
-- 'nextToken', 'listLensReviews_nextToken' - Undocumented member.
--
-- 'maxResults', 'listLensReviews_maxResults' - Undocumented member.
--
-- 'workloadId', 'listLensReviews_workloadId' - Undocumented member.
newListLensReviews ::
  -- | 'workloadId'
  Prelude.Text ->
  ListLensReviews
newListLensReviews :: Text -> ListLensReviews
newListLensReviews Text
pWorkloadId_ =
  ListLensReviews' :: Maybe Natural
-> Maybe Text -> Maybe Natural -> Text -> ListLensReviews
ListLensReviews'
    { $sel:milestoneNumber:ListLensReviews' :: Maybe Natural
milestoneNumber = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListLensReviews' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:maxResults:ListLensReviews' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
      $sel:workloadId:ListLensReviews' :: Text
workloadId = Text
pWorkloadId_
    }

-- | Undocumented member.
listLensReviews_milestoneNumber :: Lens.Lens' ListLensReviews (Prelude.Maybe Prelude.Natural)
listLensReviews_milestoneNumber :: (Maybe Natural -> f (Maybe Natural))
-> ListLensReviews -> f ListLensReviews
listLensReviews_milestoneNumber = (ListLensReviews -> Maybe Natural)
-> (ListLensReviews -> Maybe Natural -> ListLensReviews)
-> Lens
     ListLensReviews ListLensReviews (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListLensReviews' {Maybe Natural
milestoneNumber :: Maybe Natural
$sel:milestoneNumber:ListLensReviews' :: ListLensReviews -> Maybe Natural
milestoneNumber} -> Maybe Natural
milestoneNumber) (\s :: ListLensReviews
s@ListLensReviews' {} Maybe Natural
a -> ListLensReviews
s {$sel:milestoneNumber:ListLensReviews' :: Maybe Natural
milestoneNumber = Maybe Natural
a} :: ListLensReviews)

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

-- | Undocumented member.
listLensReviews_maxResults :: Lens.Lens' ListLensReviews (Prelude.Maybe Prelude.Natural)
listLensReviews_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListLensReviews -> f ListLensReviews
listLensReviews_maxResults = (ListLensReviews -> Maybe Natural)
-> (ListLensReviews -> Maybe Natural -> ListLensReviews)
-> Lens
     ListLensReviews ListLensReviews (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListLensReviews' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListLensReviews' :: ListLensReviews -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListLensReviews
s@ListLensReviews' {} Maybe Natural
a -> ListLensReviews
s {$sel:maxResults:ListLensReviews' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListLensReviews)

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

instance Core.AWSRequest ListLensReviews where
  type
    AWSResponse ListLensReviews =
      ListLensReviewsResponse
  request :: ListLensReviews -> Request ListLensReviews
request = Service -> ListLensReviews -> Request ListLensReviews
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
  response :: Logger
-> Service
-> Proxy ListLensReviews
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListLensReviews)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse ListLensReviews))
-> Logger
-> Service
-> Proxy ListLensReviews
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListLensReviews)))
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 Natural
-> Maybe Text
-> Maybe [LensReviewSummary]
-> Maybe Text
-> Int
-> ListLensReviewsResponse
ListLensReviewsResponse'
            (Maybe Natural
 -> Maybe Text
 -> Maybe [LensReviewSummary]
 -> Maybe Text
 -> Int
 -> ListLensReviewsResponse)
-> Either String (Maybe Natural)
-> Either
     String
     (Maybe Text
      -> Maybe [LensReviewSummary]
      -> Maybe Text
      -> Int
      -> ListLensReviewsResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe Natural)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"MilestoneNumber")
            Either
  String
  (Maybe Text
   -> Maybe [LensReviewSummary]
   -> Maybe Text
   -> Int
   -> ListLensReviewsResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe [LensReviewSummary]
      -> Maybe Text -> Int -> ListLensReviewsResponse)
forall (f :: * -> *) a b. Applicative f => 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
"NextToken")
            Either
  String
  (Maybe [LensReviewSummary]
   -> Maybe Text -> Int -> ListLensReviewsResponse)
-> Either String (Maybe [LensReviewSummary])
-> Either String (Maybe Text -> Int -> ListLensReviewsResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object -> Text -> Either String (Maybe (Maybe [LensReviewSummary]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"LensReviewSummaries"
                            Either String (Maybe (Maybe [LensReviewSummary]))
-> Maybe [LensReviewSummary]
-> Either String (Maybe [LensReviewSummary])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [LensReviewSummary]
forall a. Monoid a => a
Prelude.mempty
                        )
            Either String (Maybe Text -> Int -> ListLensReviewsResponse)
-> Either String (Maybe Text)
-> Either String (Int -> ListLensReviewsResponse)
forall (f :: * -> *) a b. Applicative f => 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 (Int -> ListLensReviewsResponse)
-> Either String Int -> Either String ListLensReviewsResponse
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 ListLensReviews

instance Prelude.NFData ListLensReviews

instance Core.ToHeaders ListLensReviews where
  toHeaders :: ListLensReviews -> ResponseHeaders
toHeaders =
    ResponseHeaders -> ListLensReviews -> 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.ToPath ListLensReviews where
  toPath :: ListLensReviews -> ByteString
toPath ListLensReviews' {Maybe Natural
Maybe Text
Text
workloadId :: Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
milestoneNumber :: Maybe Natural
$sel:workloadId:ListLensReviews' :: ListLensReviews -> Text
$sel:maxResults:ListLensReviews' :: ListLensReviews -> Maybe Natural
$sel:nextToken:ListLensReviews' :: ListLensReviews -> Maybe Text
$sel:milestoneNumber:ListLensReviews' :: ListLensReviews -> Maybe Natural
..} =
    [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"]

instance Core.ToQuery ListLensReviews where
  toQuery :: ListLensReviews -> QueryString
toQuery ListLensReviews' {Maybe Natural
Maybe Text
Text
workloadId :: Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
milestoneNumber :: Maybe Natural
$sel:workloadId:ListLensReviews' :: ListLensReviews -> Text
$sel:maxResults:ListLensReviews' :: ListLensReviews -> Maybe Natural
$sel:nextToken:ListLensReviews' :: ListLensReviews -> Maybe Text
$sel:milestoneNumber:ListLensReviews' :: ListLensReviews -> Maybe Natural
..} =
    [QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"MilestoneNumber" ByteString -> Maybe Natural -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Natural
milestoneNumber,
        ByteString
"NextToken" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
nextToken,
        ByteString
"MaxResults" ByteString -> Maybe Natural -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Natural
maxResults
      ]

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

-- |
-- Create a value of 'ListLensReviewsResponse' 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:
--
-- 'milestoneNumber', 'listLensReviewsResponse_milestoneNumber' - Undocumented member.
--
-- 'nextToken', 'listLensReviewsResponse_nextToken' - Undocumented member.
--
-- 'lensReviewSummaries', 'listLensReviewsResponse_lensReviewSummaries' - Undocumented member.
--
-- 'workloadId', 'listLensReviewsResponse_workloadId' - Undocumented member.
--
-- 'httpStatus', 'listLensReviewsResponse_httpStatus' - The response's http status code.
newListLensReviewsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListLensReviewsResponse
newListLensReviewsResponse :: Int -> ListLensReviewsResponse
newListLensReviewsResponse Int
pHttpStatus_ =
  ListLensReviewsResponse' :: Maybe Natural
-> Maybe Text
-> Maybe [LensReviewSummary]
-> Maybe Text
-> Int
-> ListLensReviewsResponse
ListLensReviewsResponse'
    { $sel:milestoneNumber:ListLensReviewsResponse' :: Maybe Natural
milestoneNumber =
        Maybe Natural
forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListLensReviewsResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:lensReviewSummaries:ListLensReviewsResponse' :: Maybe [LensReviewSummary]
lensReviewSummaries = Maybe [LensReviewSummary]
forall a. Maybe a
Prelude.Nothing,
      $sel:workloadId:ListLensReviewsResponse' :: Maybe Text
workloadId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListLensReviewsResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | Undocumented member.
listLensReviewsResponse_milestoneNumber :: Lens.Lens' ListLensReviewsResponse (Prelude.Maybe Prelude.Natural)
listLensReviewsResponse_milestoneNumber :: (Maybe Natural -> f (Maybe Natural))
-> ListLensReviewsResponse -> f ListLensReviewsResponse
listLensReviewsResponse_milestoneNumber = (ListLensReviewsResponse -> Maybe Natural)
-> (ListLensReviewsResponse
    -> Maybe Natural -> ListLensReviewsResponse)
-> Lens
     ListLensReviewsResponse
     ListLensReviewsResponse
     (Maybe Natural)
     (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListLensReviewsResponse' {Maybe Natural
milestoneNumber :: Maybe Natural
$sel:milestoneNumber:ListLensReviewsResponse' :: ListLensReviewsResponse -> Maybe Natural
milestoneNumber} -> Maybe Natural
milestoneNumber) (\s :: ListLensReviewsResponse
s@ListLensReviewsResponse' {} Maybe Natural
a -> ListLensReviewsResponse
s {$sel:milestoneNumber:ListLensReviewsResponse' :: Maybe Natural
milestoneNumber = Maybe Natural
a} :: ListLensReviewsResponse)

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

-- | Undocumented member.
listLensReviewsResponse_lensReviewSummaries :: Lens.Lens' ListLensReviewsResponse (Prelude.Maybe [LensReviewSummary])
listLensReviewsResponse_lensReviewSummaries :: (Maybe [LensReviewSummary] -> f (Maybe [LensReviewSummary]))
-> ListLensReviewsResponse -> f ListLensReviewsResponse
listLensReviewsResponse_lensReviewSummaries = (ListLensReviewsResponse -> Maybe [LensReviewSummary])
-> (ListLensReviewsResponse
    -> Maybe [LensReviewSummary] -> ListLensReviewsResponse)
-> Lens
     ListLensReviewsResponse
     ListLensReviewsResponse
     (Maybe [LensReviewSummary])
     (Maybe [LensReviewSummary])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListLensReviewsResponse' {Maybe [LensReviewSummary]
lensReviewSummaries :: Maybe [LensReviewSummary]
$sel:lensReviewSummaries:ListLensReviewsResponse' :: ListLensReviewsResponse -> Maybe [LensReviewSummary]
lensReviewSummaries} -> Maybe [LensReviewSummary]
lensReviewSummaries) (\s :: ListLensReviewsResponse
s@ListLensReviewsResponse' {} Maybe [LensReviewSummary]
a -> ListLensReviewsResponse
s {$sel:lensReviewSummaries:ListLensReviewsResponse' :: Maybe [LensReviewSummary]
lensReviewSummaries = Maybe [LensReviewSummary]
a} :: ListLensReviewsResponse) ((Maybe [LensReviewSummary] -> f (Maybe [LensReviewSummary]))
 -> ListLensReviewsResponse -> f ListLensReviewsResponse)
-> ((Maybe [LensReviewSummary] -> f (Maybe [LensReviewSummary]))
    -> Maybe [LensReviewSummary] -> f (Maybe [LensReviewSummary]))
-> (Maybe [LensReviewSummary] -> f (Maybe [LensReviewSummary]))
-> ListLensReviewsResponse
-> f ListLensReviewsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [LensReviewSummary]
  [LensReviewSummary]
  [LensReviewSummary]
  [LensReviewSummary]
-> Iso
     (Maybe [LensReviewSummary])
     (Maybe [LensReviewSummary])
     (Maybe [LensReviewSummary])
     (Maybe [LensReviewSummary])
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
  [LensReviewSummary]
  [LensReviewSummary]
  [LensReviewSummary]
  [LensReviewSummary]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

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

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

instance Prelude.NFData ListLensReviewsResponse