{-# 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.ListLensReviewImprovements
-- 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 review improvements.
module Amazonka.WellArchitected.ListLensReviewImprovements
  ( -- * Creating a Request
    ListLensReviewImprovements (..),
    newListLensReviewImprovements,

    -- * Request Lenses
    listLensReviewImprovements_pillarId,
    listLensReviewImprovements_milestoneNumber,
    listLensReviewImprovements_nextToken,
    listLensReviewImprovements_maxResults,
    listLensReviewImprovements_workloadId,
    listLensReviewImprovements_lensAlias,

    -- * Destructuring the Response
    ListLensReviewImprovementsResponse (..),
    newListLensReviewImprovementsResponse,

    -- * Response Lenses
    listLensReviewImprovementsResponse_improvementSummaries,
    listLensReviewImprovementsResponse_lensAlias,
    listLensReviewImprovementsResponse_milestoneNumber,
    listLensReviewImprovementsResponse_nextToken,
    listLensReviewImprovementsResponse_workloadId,
    listLensReviewImprovementsResponse_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 review improvements.
--
-- /See:/ 'newListLensReviewImprovements' smart constructor.
data ListLensReviewImprovements = ListLensReviewImprovements'
  { ListLensReviewImprovements -> Maybe Text
pillarId :: Prelude.Maybe Prelude.Text,
    ListLensReviewImprovements -> Maybe Natural
milestoneNumber :: Prelude.Maybe Prelude.Natural,
    ListLensReviewImprovements -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The maximum number of results to return for this request.
    ListLensReviewImprovements -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
    ListLensReviewImprovements -> Text
workloadId :: Prelude.Text,
    ListLensReviewImprovements -> Text
lensAlias :: Prelude.Text
  }
  deriving (ListLensReviewImprovements -> ListLensReviewImprovements -> Bool
(ListLensReviewImprovements -> ListLensReviewImprovements -> Bool)
-> (ListLensReviewImprovements
    -> ListLensReviewImprovements -> Bool)
-> Eq ListLensReviewImprovements
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListLensReviewImprovements -> ListLensReviewImprovements -> Bool
$c/= :: ListLensReviewImprovements -> ListLensReviewImprovements -> Bool
== :: ListLensReviewImprovements -> ListLensReviewImprovements -> Bool
$c== :: ListLensReviewImprovements -> ListLensReviewImprovements -> Bool
Prelude.Eq, ReadPrec [ListLensReviewImprovements]
ReadPrec ListLensReviewImprovements
Int -> ReadS ListLensReviewImprovements
ReadS [ListLensReviewImprovements]
(Int -> ReadS ListLensReviewImprovements)
-> ReadS [ListLensReviewImprovements]
-> ReadPrec ListLensReviewImprovements
-> ReadPrec [ListLensReviewImprovements]
-> Read ListLensReviewImprovements
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListLensReviewImprovements]
$creadListPrec :: ReadPrec [ListLensReviewImprovements]
readPrec :: ReadPrec ListLensReviewImprovements
$creadPrec :: ReadPrec ListLensReviewImprovements
readList :: ReadS [ListLensReviewImprovements]
$creadList :: ReadS [ListLensReviewImprovements]
readsPrec :: Int -> ReadS ListLensReviewImprovements
$creadsPrec :: Int -> ReadS ListLensReviewImprovements
Prelude.Read, Int -> ListLensReviewImprovements -> ShowS
[ListLensReviewImprovements] -> ShowS
ListLensReviewImprovements -> String
(Int -> ListLensReviewImprovements -> ShowS)
-> (ListLensReviewImprovements -> String)
-> ([ListLensReviewImprovements] -> ShowS)
-> Show ListLensReviewImprovements
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListLensReviewImprovements] -> ShowS
$cshowList :: [ListLensReviewImprovements] -> ShowS
show :: ListLensReviewImprovements -> String
$cshow :: ListLensReviewImprovements -> String
showsPrec :: Int -> ListLensReviewImprovements -> ShowS
$cshowsPrec :: Int -> ListLensReviewImprovements -> ShowS
Prelude.Show, (forall x.
 ListLensReviewImprovements -> Rep ListLensReviewImprovements x)
-> (forall x.
    Rep ListLensReviewImprovements x -> ListLensReviewImprovements)
-> Generic ListLensReviewImprovements
forall x.
Rep ListLensReviewImprovements x -> ListLensReviewImprovements
forall x.
ListLensReviewImprovements -> Rep ListLensReviewImprovements x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListLensReviewImprovements x -> ListLensReviewImprovements
$cfrom :: forall x.
ListLensReviewImprovements -> Rep ListLensReviewImprovements x
Prelude.Generic)

-- |
-- Create a value of 'ListLensReviewImprovements' 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:
--
-- 'pillarId', 'listLensReviewImprovements_pillarId' - Undocumented member.
--
-- 'milestoneNumber', 'listLensReviewImprovements_milestoneNumber' - Undocumented member.
--
-- 'nextToken', 'listLensReviewImprovements_nextToken' - Undocumented member.
--
-- 'maxResults', 'listLensReviewImprovements_maxResults' - The maximum number of results to return for this request.
--
-- 'workloadId', 'listLensReviewImprovements_workloadId' - Undocumented member.
--
-- 'lensAlias', 'listLensReviewImprovements_lensAlias' - Undocumented member.
newListLensReviewImprovements ::
  -- | 'workloadId'
  Prelude.Text ->
  -- | 'lensAlias'
  Prelude.Text ->
  ListLensReviewImprovements
newListLensReviewImprovements :: Text -> Text -> ListLensReviewImprovements
newListLensReviewImprovements
  Text
pWorkloadId_
  Text
pLensAlias_ =
    ListLensReviewImprovements' :: Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe Natural
-> Text
-> Text
-> ListLensReviewImprovements
ListLensReviewImprovements'
      { $sel:pillarId:ListLensReviewImprovements' :: Maybe Text
pillarId =
          Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:milestoneNumber:ListLensReviewImprovements' :: Maybe Natural
milestoneNumber = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
        $sel:nextToken:ListLensReviewImprovements' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:maxResults:ListLensReviewImprovements' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
        $sel:workloadId:ListLensReviewImprovements' :: Text
workloadId = Text
pWorkloadId_,
        $sel:lensAlias:ListLensReviewImprovements' :: Text
lensAlias = Text
pLensAlias_
      }

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

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

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

-- | The maximum number of results to return for this request.
listLensReviewImprovements_maxResults :: Lens.Lens' ListLensReviewImprovements (Prelude.Maybe Prelude.Natural)
listLensReviewImprovements_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListLensReviewImprovements -> f ListLensReviewImprovements
listLensReviewImprovements_maxResults = (ListLensReviewImprovements -> Maybe Natural)
-> (ListLensReviewImprovements
    -> Maybe Natural -> ListLensReviewImprovements)
-> Lens
     ListLensReviewImprovements
     ListLensReviewImprovements
     (Maybe Natural)
     (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListLensReviewImprovements' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListLensReviewImprovements' :: ListLensReviewImprovements -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListLensReviewImprovements
s@ListLensReviewImprovements' {} Maybe Natural
a -> ListLensReviewImprovements
s {$sel:maxResults:ListLensReviewImprovements' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListLensReviewImprovements)

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

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

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

instance Prelude.NFData ListLensReviewImprovements

instance Core.ToHeaders ListLensReviewImprovements where
  toHeaders :: ListLensReviewImprovements -> ResponseHeaders
toHeaders =
    ResponseHeaders -> ListLensReviewImprovements -> 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 ListLensReviewImprovements where
  toPath :: ListLensReviewImprovements -> ByteString
toPath ListLensReviewImprovements' {Maybe Natural
Maybe Text
Text
lensAlias :: Text
workloadId :: Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
milestoneNumber :: Maybe Natural
pillarId :: Maybe Text
$sel:lensAlias:ListLensReviewImprovements' :: ListLensReviewImprovements -> Text
$sel:workloadId:ListLensReviewImprovements' :: ListLensReviewImprovements -> Text
$sel:maxResults:ListLensReviewImprovements' :: ListLensReviewImprovements -> Maybe Natural
$sel:nextToken:ListLensReviewImprovements' :: ListLensReviewImprovements -> Maybe Text
$sel:milestoneNumber:ListLensReviewImprovements' :: ListLensReviewImprovements -> Maybe Natural
$sel:pillarId:ListLensReviewImprovements' :: ListLensReviewImprovements -> 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,
        ByteString
"/improvements"
      ]

instance Core.ToQuery ListLensReviewImprovements where
  toQuery :: ListLensReviewImprovements -> QueryString
toQuery ListLensReviewImprovements' {Maybe Natural
Maybe Text
Text
lensAlias :: Text
workloadId :: Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
milestoneNumber :: Maybe Natural
pillarId :: Maybe Text
$sel:lensAlias:ListLensReviewImprovements' :: ListLensReviewImprovements -> Text
$sel:workloadId:ListLensReviewImprovements' :: ListLensReviewImprovements -> Text
$sel:maxResults:ListLensReviewImprovements' :: ListLensReviewImprovements -> Maybe Natural
$sel:nextToken:ListLensReviewImprovements' :: ListLensReviewImprovements -> Maybe Text
$sel:milestoneNumber:ListLensReviewImprovements' :: ListLensReviewImprovements -> Maybe Natural
$sel:pillarId:ListLensReviewImprovements' :: ListLensReviewImprovements -> Maybe Text
..} =
    [QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"PillarId" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
pillarId,
        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 review improvements call.
--
-- /See:/ 'newListLensReviewImprovementsResponse' smart constructor.
data ListLensReviewImprovementsResponse = ListLensReviewImprovementsResponse'
  { ListLensReviewImprovementsResponse -> Maybe [ImprovementSummary]
improvementSummaries :: Prelude.Maybe [ImprovementSummary],
    ListLensReviewImprovementsResponse -> Maybe Text
lensAlias :: Prelude.Maybe Prelude.Text,
    ListLensReviewImprovementsResponse -> Maybe Natural
milestoneNumber :: Prelude.Maybe Prelude.Natural,
    ListLensReviewImprovementsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    ListLensReviewImprovementsResponse -> Maybe Text
workloadId :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    ListLensReviewImprovementsResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (ListLensReviewImprovementsResponse
-> ListLensReviewImprovementsResponse -> Bool
(ListLensReviewImprovementsResponse
 -> ListLensReviewImprovementsResponse -> Bool)
-> (ListLensReviewImprovementsResponse
    -> ListLensReviewImprovementsResponse -> Bool)
-> Eq ListLensReviewImprovementsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListLensReviewImprovementsResponse
-> ListLensReviewImprovementsResponse -> Bool
$c/= :: ListLensReviewImprovementsResponse
-> ListLensReviewImprovementsResponse -> Bool
== :: ListLensReviewImprovementsResponse
-> ListLensReviewImprovementsResponse -> Bool
$c== :: ListLensReviewImprovementsResponse
-> ListLensReviewImprovementsResponse -> Bool
Prelude.Eq, ReadPrec [ListLensReviewImprovementsResponse]
ReadPrec ListLensReviewImprovementsResponse
Int -> ReadS ListLensReviewImprovementsResponse
ReadS [ListLensReviewImprovementsResponse]
(Int -> ReadS ListLensReviewImprovementsResponse)
-> ReadS [ListLensReviewImprovementsResponse]
-> ReadPrec ListLensReviewImprovementsResponse
-> ReadPrec [ListLensReviewImprovementsResponse]
-> Read ListLensReviewImprovementsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListLensReviewImprovementsResponse]
$creadListPrec :: ReadPrec [ListLensReviewImprovementsResponse]
readPrec :: ReadPrec ListLensReviewImprovementsResponse
$creadPrec :: ReadPrec ListLensReviewImprovementsResponse
readList :: ReadS [ListLensReviewImprovementsResponse]
$creadList :: ReadS [ListLensReviewImprovementsResponse]
readsPrec :: Int -> ReadS ListLensReviewImprovementsResponse
$creadsPrec :: Int -> ReadS ListLensReviewImprovementsResponse
Prelude.Read, Int -> ListLensReviewImprovementsResponse -> ShowS
[ListLensReviewImprovementsResponse] -> ShowS
ListLensReviewImprovementsResponse -> String
(Int -> ListLensReviewImprovementsResponse -> ShowS)
-> (ListLensReviewImprovementsResponse -> String)
-> ([ListLensReviewImprovementsResponse] -> ShowS)
-> Show ListLensReviewImprovementsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListLensReviewImprovementsResponse] -> ShowS
$cshowList :: [ListLensReviewImprovementsResponse] -> ShowS
show :: ListLensReviewImprovementsResponse -> String
$cshow :: ListLensReviewImprovementsResponse -> String
showsPrec :: Int -> ListLensReviewImprovementsResponse -> ShowS
$cshowsPrec :: Int -> ListLensReviewImprovementsResponse -> ShowS
Prelude.Show, (forall x.
 ListLensReviewImprovementsResponse
 -> Rep ListLensReviewImprovementsResponse x)
-> (forall x.
    Rep ListLensReviewImprovementsResponse x
    -> ListLensReviewImprovementsResponse)
-> Generic ListLensReviewImprovementsResponse
forall x.
Rep ListLensReviewImprovementsResponse x
-> ListLensReviewImprovementsResponse
forall x.
ListLensReviewImprovementsResponse
-> Rep ListLensReviewImprovementsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListLensReviewImprovementsResponse x
-> ListLensReviewImprovementsResponse
$cfrom :: forall x.
ListLensReviewImprovementsResponse
-> Rep ListLensReviewImprovementsResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListLensReviewImprovementsResponse' 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:
--
-- 'improvementSummaries', 'listLensReviewImprovementsResponse_improvementSummaries' - Undocumented member.
--
-- 'lensAlias', 'listLensReviewImprovementsResponse_lensAlias' - Undocumented member.
--
-- 'milestoneNumber', 'listLensReviewImprovementsResponse_milestoneNumber' - Undocumented member.
--
-- 'nextToken', 'listLensReviewImprovementsResponse_nextToken' - Undocumented member.
--
-- 'workloadId', 'listLensReviewImprovementsResponse_workloadId' - Undocumented member.
--
-- 'httpStatus', 'listLensReviewImprovementsResponse_httpStatus' - The response's http status code.
newListLensReviewImprovementsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListLensReviewImprovementsResponse
newListLensReviewImprovementsResponse :: Int -> ListLensReviewImprovementsResponse
newListLensReviewImprovementsResponse Int
pHttpStatus_ =
  ListLensReviewImprovementsResponse' :: Maybe [ImprovementSummary]
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Int
-> ListLensReviewImprovementsResponse
ListLensReviewImprovementsResponse'
    { $sel:improvementSummaries:ListLensReviewImprovementsResponse' :: Maybe [ImprovementSummary]
improvementSummaries =
        Maybe [ImprovementSummary]
forall a. Maybe a
Prelude.Nothing,
      $sel:lensAlias:ListLensReviewImprovementsResponse' :: Maybe Text
lensAlias = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:milestoneNumber:ListLensReviewImprovementsResponse' :: Maybe Natural
milestoneNumber = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListLensReviewImprovementsResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:workloadId:ListLensReviewImprovementsResponse' :: Maybe Text
workloadId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListLensReviewImprovementsResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

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

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

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

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

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

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

instance
  Prelude.NFData
    ListLensReviewImprovementsResponse