{-# 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.ListAssessmentReports
-- 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)
--
-- Returns a list of assessment reports created in Audit Manager.
module Amazonka.AuditManager.ListAssessmentReports
  ( -- * Creating a Request
    ListAssessmentReports (..),
    newListAssessmentReports,

    -- * Request Lenses
    listAssessmentReports_nextToken,
    listAssessmentReports_maxResults,

    -- * Destructuring the Response
    ListAssessmentReportsResponse (..),
    newListAssessmentReportsResponse,

    -- * Response Lenses
    listAssessmentReportsResponse_assessmentReports,
    listAssessmentReportsResponse_nextToken,
    listAssessmentReportsResponse_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:/ 'newListAssessmentReports' smart constructor.
data ListAssessmentReports = ListAssessmentReports'
  { -- | The pagination token used to fetch the next set of results.
    ListAssessmentReports -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | Represents the maximum number of results per page, or per API request
    -- call.
    ListAssessmentReports -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural
  }
  deriving (ListAssessmentReports -> ListAssessmentReports -> Bool
(ListAssessmentReports -> ListAssessmentReports -> Bool)
-> (ListAssessmentReports -> ListAssessmentReports -> Bool)
-> Eq ListAssessmentReports
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListAssessmentReports -> ListAssessmentReports -> Bool
$c/= :: ListAssessmentReports -> ListAssessmentReports -> Bool
== :: ListAssessmentReports -> ListAssessmentReports -> Bool
$c== :: ListAssessmentReports -> ListAssessmentReports -> Bool
Prelude.Eq, ReadPrec [ListAssessmentReports]
ReadPrec ListAssessmentReports
Int -> ReadS ListAssessmentReports
ReadS [ListAssessmentReports]
(Int -> ReadS ListAssessmentReports)
-> ReadS [ListAssessmentReports]
-> ReadPrec ListAssessmentReports
-> ReadPrec [ListAssessmentReports]
-> Read ListAssessmentReports
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListAssessmentReports]
$creadListPrec :: ReadPrec [ListAssessmentReports]
readPrec :: ReadPrec ListAssessmentReports
$creadPrec :: ReadPrec ListAssessmentReports
readList :: ReadS [ListAssessmentReports]
$creadList :: ReadS [ListAssessmentReports]
readsPrec :: Int -> ReadS ListAssessmentReports
$creadsPrec :: Int -> ReadS ListAssessmentReports
Prelude.Read, Int -> ListAssessmentReports -> ShowS
[ListAssessmentReports] -> ShowS
ListAssessmentReports -> String
(Int -> ListAssessmentReports -> ShowS)
-> (ListAssessmentReports -> String)
-> ([ListAssessmentReports] -> ShowS)
-> Show ListAssessmentReports
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListAssessmentReports] -> ShowS
$cshowList :: [ListAssessmentReports] -> ShowS
show :: ListAssessmentReports -> String
$cshow :: ListAssessmentReports -> String
showsPrec :: Int -> ListAssessmentReports -> ShowS
$cshowsPrec :: Int -> ListAssessmentReports -> ShowS
Prelude.Show, (forall x. ListAssessmentReports -> Rep ListAssessmentReports x)
-> (forall x. Rep ListAssessmentReports x -> ListAssessmentReports)
-> Generic ListAssessmentReports
forall x. Rep ListAssessmentReports x -> ListAssessmentReports
forall x. ListAssessmentReports -> Rep ListAssessmentReports x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListAssessmentReports x -> ListAssessmentReports
$cfrom :: forall x. ListAssessmentReports -> Rep ListAssessmentReports x
Prelude.Generic)

-- |
-- Create a value of 'ListAssessmentReports' 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:
--
-- 'nextToken', 'listAssessmentReports_nextToken' - The pagination token used to fetch the next set of results.
--
-- 'maxResults', 'listAssessmentReports_maxResults' - Represents the maximum number of results per page, or per API request
-- call.
newListAssessmentReports ::
  ListAssessmentReports
newListAssessmentReports :: ListAssessmentReports
newListAssessmentReports =
  ListAssessmentReports' :: Maybe Text -> Maybe Natural -> ListAssessmentReports
ListAssessmentReports'
    { $sel:nextToken:ListAssessmentReports' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:maxResults:ListAssessmentReports' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing
    }

-- | The pagination token used to fetch the next set of results.
listAssessmentReports_nextToken :: Lens.Lens' ListAssessmentReports (Prelude.Maybe Prelude.Text)
listAssessmentReports_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListAssessmentReports -> f ListAssessmentReports
listAssessmentReports_nextToken = (ListAssessmentReports -> Maybe Text)
-> (ListAssessmentReports -> Maybe Text -> ListAssessmentReports)
-> Lens
     ListAssessmentReports
     ListAssessmentReports
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAssessmentReports' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListAssessmentReports' :: ListAssessmentReports -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListAssessmentReports
s@ListAssessmentReports' {} Maybe Text
a -> ListAssessmentReports
s {$sel:nextToken:ListAssessmentReports' :: Maybe Text
nextToken = Maybe Text
a} :: ListAssessmentReports)

-- | Represents the maximum number of results per page, or per API request
-- call.
listAssessmentReports_maxResults :: Lens.Lens' ListAssessmentReports (Prelude.Maybe Prelude.Natural)
listAssessmentReports_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListAssessmentReports -> f ListAssessmentReports
listAssessmentReports_maxResults = (ListAssessmentReports -> Maybe Natural)
-> (ListAssessmentReports
    -> Maybe Natural -> ListAssessmentReports)
-> Lens
     ListAssessmentReports
     ListAssessmentReports
     (Maybe Natural)
     (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAssessmentReports' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListAssessmentReports' :: ListAssessmentReports -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListAssessmentReports
s@ListAssessmentReports' {} Maybe Natural
a -> ListAssessmentReports
s {$sel:maxResults:ListAssessmentReports' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListAssessmentReports)

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

instance Prelude.NFData ListAssessmentReports

instance Core.ToHeaders ListAssessmentReports where
  toHeaders :: ListAssessmentReports -> ResponseHeaders
toHeaders =
    ResponseHeaders -> ListAssessmentReports -> 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 ListAssessmentReports where
  toPath :: ListAssessmentReports -> ByteString
toPath = ByteString -> ListAssessmentReports -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/assessmentReports"

instance Core.ToQuery ListAssessmentReports where
  toQuery :: ListAssessmentReports -> QueryString
toQuery ListAssessmentReports' {Maybe Natural
Maybe Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
$sel:maxResults:ListAssessmentReports' :: ListAssessmentReports -> Maybe Natural
$sel:nextToken:ListAssessmentReports' :: ListAssessmentReports -> Maybe Text
..} =
    [QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ 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
      ]

-- | /See:/ 'newListAssessmentReportsResponse' smart constructor.
data ListAssessmentReportsResponse = ListAssessmentReportsResponse'
  { -- | The list of assessment reports returned by the @ListAssessmentReports@
    -- API.
    ListAssessmentReportsResponse -> Maybe [AssessmentReportMetadata]
assessmentReports :: Prelude.Maybe [AssessmentReportMetadata],
    -- | The pagination token used to fetch the next set of results.
    ListAssessmentReportsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    ListAssessmentReportsResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (ListAssessmentReportsResponse
-> ListAssessmentReportsResponse -> Bool
(ListAssessmentReportsResponse
 -> ListAssessmentReportsResponse -> Bool)
-> (ListAssessmentReportsResponse
    -> ListAssessmentReportsResponse -> Bool)
-> Eq ListAssessmentReportsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListAssessmentReportsResponse
-> ListAssessmentReportsResponse -> Bool
$c/= :: ListAssessmentReportsResponse
-> ListAssessmentReportsResponse -> Bool
== :: ListAssessmentReportsResponse
-> ListAssessmentReportsResponse -> Bool
$c== :: ListAssessmentReportsResponse
-> ListAssessmentReportsResponse -> Bool
Prelude.Eq, ReadPrec [ListAssessmentReportsResponse]
ReadPrec ListAssessmentReportsResponse
Int -> ReadS ListAssessmentReportsResponse
ReadS [ListAssessmentReportsResponse]
(Int -> ReadS ListAssessmentReportsResponse)
-> ReadS [ListAssessmentReportsResponse]
-> ReadPrec ListAssessmentReportsResponse
-> ReadPrec [ListAssessmentReportsResponse]
-> Read ListAssessmentReportsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListAssessmentReportsResponse]
$creadListPrec :: ReadPrec [ListAssessmentReportsResponse]
readPrec :: ReadPrec ListAssessmentReportsResponse
$creadPrec :: ReadPrec ListAssessmentReportsResponse
readList :: ReadS [ListAssessmentReportsResponse]
$creadList :: ReadS [ListAssessmentReportsResponse]
readsPrec :: Int -> ReadS ListAssessmentReportsResponse
$creadsPrec :: Int -> ReadS ListAssessmentReportsResponse
Prelude.Read, Int -> ListAssessmentReportsResponse -> ShowS
[ListAssessmentReportsResponse] -> ShowS
ListAssessmentReportsResponse -> String
(Int -> ListAssessmentReportsResponse -> ShowS)
-> (ListAssessmentReportsResponse -> String)
-> ([ListAssessmentReportsResponse] -> ShowS)
-> Show ListAssessmentReportsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListAssessmentReportsResponse] -> ShowS
$cshowList :: [ListAssessmentReportsResponse] -> ShowS
show :: ListAssessmentReportsResponse -> String
$cshow :: ListAssessmentReportsResponse -> String
showsPrec :: Int -> ListAssessmentReportsResponse -> ShowS
$cshowsPrec :: Int -> ListAssessmentReportsResponse -> ShowS
Prelude.Show, (forall x.
 ListAssessmentReportsResponse
 -> Rep ListAssessmentReportsResponse x)
-> (forall x.
    Rep ListAssessmentReportsResponse x
    -> ListAssessmentReportsResponse)
-> Generic ListAssessmentReportsResponse
forall x.
Rep ListAssessmentReportsResponse x
-> ListAssessmentReportsResponse
forall x.
ListAssessmentReportsResponse
-> Rep ListAssessmentReportsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListAssessmentReportsResponse x
-> ListAssessmentReportsResponse
$cfrom :: forall x.
ListAssessmentReportsResponse
-> Rep ListAssessmentReportsResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListAssessmentReportsResponse' 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:
--
-- 'assessmentReports', 'listAssessmentReportsResponse_assessmentReports' - The list of assessment reports returned by the @ListAssessmentReports@
-- API.
--
-- 'nextToken', 'listAssessmentReportsResponse_nextToken' - The pagination token used to fetch the next set of results.
--
-- 'httpStatus', 'listAssessmentReportsResponse_httpStatus' - The response's http status code.
newListAssessmentReportsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListAssessmentReportsResponse
newListAssessmentReportsResponse :: Int -> ListAssessmentReportsResponse
newListAssessmentReportsResponse Int
pHttpStatus_ =
  ListAssessmentReportsResponse' :: Maybe [AssessmentReportMetadata]
-> Maybe Text -> Int -> ListAssessmentReportsResponse
ListAssessmentReportsResponse'
    { $sel:assessmentReports:ListAssessmentReportsResponse' :: Maybe [AssessmentReportMetadata]
assessmentReports =
        Maybe [AssessmentReportMetadata]
forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListAssessmentReportsResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListAssessmentReportsResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | The list of assessment reports returned by the @ListAssessmentReports@
-- API.
listAssessmentReportsResponse_assessmentReports :: Lens.Lens' ListAssessmentReportsResponse (Prelude.Maybe [AssessmentReportMetadata])
listAssessmentReportsResponse_assessmentReports :: (Maybe [AssessmentReportMetadata]
 -> f (Maybe [AssessmentReportMetadata]))
-> ListAssessmentReportsResponse -> f ListAssessmentReportsResponse
listAssessmentReportsResponse_assessmentReports = (ListAssessmentReportsResponse -> Maybe [AssessmentReportMetadata])
-> (ListAssessmentReportsResponse
    -> Maybe [AssessmentReportMetadata]
    -> ListAssessmentReportsResponse)
-> Lens
     ListAssessmentReportsResponse
     ListAssessmentReportsResponse
     (Maybe [AssessmentReportMetadata])
     (Maybe [AssessmentReportMetadata])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAssessmentReportsResponse' {Maybe [AssessmentReportMetadata]
assessmentReports :: Maybe [AssessmentReportMetadata]
$sel:assessmentReports:ListAssessmentReportsResponse' :: ListAssessmentReportsResponse -> Maybe [AssessmentReportMetadata]
assessmentReports} -> Maybe [AssessmentReportMetadata]
assessmentReports) (\s :: ListAssessmentReportsResponse
s@ListAssessmentReportsResponse' {} Maybe [AssessmentReportMetadata]
a -> ListAssessmentReportsResponse
s {$sel:assessmentReports:ListAssessmentReportsResponse' :: Maybe [AssessmentReportMetadata]
assessmentReports = Maybe [AssessmentReportMetadata]
a} :: ListAssessmentReportsResponse) ((Maybe [AssessmentReportMetadata]
  -> f (Maybe [AssessmentReportMetadata]))
 -> ListAssessmentReportsResponse
 -> f ListAssessmentReportsResponse)
-> ((Maybe [AssessmentReportMetadata]
     -> f (Maybe [AssessmentReportMetadata]))
    -> Maybe [AssessmentReportMetadata]
    -> f (Maybe [AssessmentReportMetadata]))
-> (Maybe [AssessmentReportMetadata]
    -> f (Maybe [AssessmentReportMetadata]))
-> ListAssessmentReportsResponse
-> f ListAssessmentReportsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [AssessmentReportMetadata]
  [AssessmentReportMetadata]
  [AssessmentReportMetadata]
  [AssessmentReportMetadata]
-> Iso
     (Maybe [AssessmentReportMetadata])
     (Maybe [AssessmentReportMetadata])
     (Maybe [AssessmentReportMetadata])
     (Maybe [AssessmentReportMetadata])
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
  [AssessmentReportMetadata]
  [AssessmentReportMetadata]
  [AssessmentReportMetadata]
  [AssessmentReportMetadata]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The pagination token used to fetch the next set of results.
listAssessmentReportsResponse_nextToken :: Lens.Lens' ListAssessmentReportsResponse (Prelude.Maybe Prelude.Text)
listAssessmentReportsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListAssessmentReportsResponse -> f ListAssessmentReportsResponse
listAssessmentReportsResponse_nextToken = (ListAssessmentReportsResponse -> Maybe Text)
-> (ListAssessmentReportsResponse
    -> Maybe Text -> ListAssessmentReportsResponse)
-> Lens
     ListAssessmentReportsResponse
     ListAssessmentReportsResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAssessmentReportsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListAssessmentReportsResponse' :: ListAssessmentReportsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListAssessmentReportsResponse
s@ListAssessmentReportsResponse' {} Maybe Text
a -> ListAssessmentReportsResponse
s {$sel:nextToken:ListAssessmentReportsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListAssessmentReportsResponse)

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

instance Prelude.NFData ListAssessmentReportsResponse