{-# 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.GetEvidenceFoldersByAssessment
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Returns the evidence folders from a specified assessment in Audit
-- Manager.
module Amazonka.AuditManager.GetEvidenceFoldersByAssessment
  ( -- * Creating a Request
    GetEvidenceFoldersByAssessment (..),
    newGetEvidenceFoldersByAssessment,

    -- * Request Lenses
    getEvidenceFoldersByAssessment_maxResults,
    getEvidenceFoldersByAssessment_nextToken,
    getEvidenceFoldersByAssessment_assessmentId,

    -- * Destructuring the Response
    GetEvidenceFoldersByAssessmentResponse (..),
    newGetEvidenceFoldersByAssessmentResponse,

    -- * Response Lenses
    getEvidenceFoldersByAssessmentResponse_evidenceFolders,
    getEvidenceFoldersByAssessmentResponse_nextToken,
    getEvidenceFoldersByAssessmentResponse_httpStatus,
  )
where

import Amazonka.AuditManager.Types
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response

-- | /See:/ 'newGetEvidenceFoldersByAssessment' smart constructor.
data GetEvidenceFoldersByAssessment = GetEvidenceFoldersByAssessment'
  { -- | Represents the maximum number of results on a page or for an API request
    -- call.
    GetEvidenceFoldersByAssessment -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
    -- | The pagination token that\'s used to fetch the next set of results.
    GetEvidenceFoldersByAssessment -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The unique identifier for the assessment.
    GetEvidenceFoldersByAssessment -> Text
assessmentId :: Prelude.Text
  }
  deriving (GetEvidenceFoldersByAssessment
-> GetEvidenceFoldersByAssessment -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetEvidenceFoldersByAssessment
-> GetEvidenceFoldersByAssessment -> Bool
$c/= :: GetEvidenceFoldersByAssessment
-> GetEvidenceFoldersByAssessment -> Bool
== :: GetEvidenceFoldersByAssessment
-> GetEvidenceFoldersByAssessment -> Bool
$c== :: GetEvidenceFoldersByAssessment
-> GetEvidenceFoldersByAssessment -> Bool
Prelude.Eq, ReadPrec [GetEvidenceFoldersByAssessment]
ReadPrec GetEvidenceFoldersByAssessment
Int -> ReadS GetEvidenceFoldersByAssessment
ReadS [GetEvidenceFoldersByAssessment]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetEvidenceFoldersByAssessment]
$creadListPrec :: ReadPrec [GetEvidenceFoldersByAssessment]
readPrec :: ReadPrec GetEvidenceFoldersByAssessment
$creadPrec :: ReadPrec GetEvidenceFoldersByAssessment
readList :: ReadS [GetEvidenceFoldersByAssessment]
$creadList :: ReadS [GetEvidenceFoldersByAssessment]
readsPrec :: Int -> ReadS GetEvidenceFoldersByAssessment
$creadsPrec :: Int -> ReadS GetEvidenceFoldersByAssessment
Prelude.Read, Int -> GetEvidenceFoldersByAssessment -> ShowS
[GetEvidenceFoldersByAssessment] -> ShowS
GetEvidenceFoldersByAssessment -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetEvidenceFoldersByAssessment] -> ShowS
$cshowList :: [GetEvidenceFoldersByAssessment] -> ShowS
show :: GetEvidenceFoldersByAssessment -> String
$cshow :: GetEvidenceFoldersByAssessment -> String
showsPrec :: Int -> GetEvidenceFoldersByAssessment -> ShowS
$cshowsPrec :: Int -> GetEvidenceFoldersByAssessment -> ShowS
Prelude.Show, forall x.
Rep GetEvidenceFoldersByAssessment x
-> GetEvidenceFoldersByAssessment
forall x.
GetEvidenceFoldersByAssessment
-> Rep GetEvidenceFoldersByAssessment x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetEvidenceFoldersByAssessment x
-> GetEvidenceFoldersByAssessment
$cfrom :: forall x.
GetEvidenceFoldersByAssessment
-> Rep GetEvidenceFoldersByAssessment x
Prelude.Generic)

-- |
-- Create a value of 'GetEvidenceFoldersByAssessment' 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:
--
-- 'maxResults', 'getEvidenceFoldersByAssessment_maxResults' - Represents the maximum number of results on a page or for an API request
-- call.
--
-- 'nextToken', 'getEvidenceFoldersByAssessment_nextToken' - The pagination token that\'s used to fetch the next set of results.
--
-- 'assessmentId', 'getEvidenceFoldersByAssessment_assessmentId' - The unique identifier for the assessment.
newGetEvidenceFoldersByAssessment ::
  -- | 'assessmentId'
  Prelude.Text ->
  GetEvidenceFoldersByAssessment
newGetEvidenceFoldersByAssessment :: Text -> GetEvidenceFoldersByAssessment
newGetEvidenceFoldersByAssessment Text
pAssessmentId_ =
  GetEvidenceFoldersByAssessment'
    { $sel:maxResults:GetEvidenceFoldersByAssessment' :: Maybe Natural
maxResults =
        forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:GetEvidenceFoldersByAssessment' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
      $sel:assessmentId:GetEvidenceFoldersByAssessment' :: Text
assessmentId = Text
pAssessmentId_
    }

-- | Represents the maximum number of results on a page or for an API request
-- call.
getEvidenceFoldersByAssessment_maxResults :: Lens.Lens' GetEvidenceFoldersByAssessment (Prelude.Maybe Prelude.Natural)
getEvidenceFoldersByAssessment_maxResults :: Lens' GetEvidenceFoldersByAssessment (Maybe Natural)
getEvidenceFoldersByAssessment_maxResults = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetEvidenceFoldersByAssessment' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:GetEvidenceFoldersByAssessment' :: GetEvidenceFoldersByAssessment -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: GetEvidenceFoldersByAssessment
s@GetEvidenceFoldersByAssessment' {} Maybe Natural
a -> GetEvidenceFoldersByAssessment
s {$sel:maxResults:GetEvidenceFoldersByAssessment' :: Maybe Natural
maxResults = Maybe Natural
a} :: GetEvidenceFoldersByAssessment)

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

-- | The unique identifier for the assessment.
getEvidenceFoldersByAssessment_assessmentId :: Lens.Lens' GetEvidenceFoldersByAssessment Prelude.Text
getEvidenceFoldersByAssessment_assessmentId :: Lens' GetEvidenceFoldersByAssessment Text
getEvidenceFoldersByAssessment_assessmentId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetEvidenceFoldersByAssessment' {Text
assessmentId :: Text
$sel:assessmentId:GetEvidenceFoldersByAssessment' :: GetEvidenceFoldersByAssessment -> Text
assessmentId} -> Text
assessmentId) (\s :: GetEvidenceFoldersByAssessment
s@GetEvidenceFoldersByAssessment' {} Text
a -> GetEvidenceFoldersByAssessment
s {$sel:assessmentId:GetEvidenceFoldersByAssessment' :: Text
assessmentId = Text
a} :: GetEvidenceFoldersByAssessment)

instance
  Core.AWSRequest
    GetEvidenceFoldersByAssessment
  where
  type
    AWSResponse GetEvidenceFoldersByAssessment =
      GetEvidenceFoldersByAssessmentResponse
  request :: (Service -> Service)
-> GetEvidenceFoldersByAssessment
-> Request GetEvidenceFoldersByAssessment
request Service -> Service
overrides =
    forall a. ToRequest a => Service -> a -> Request a
Request.get (Service -> Service
overrides Service
defaultService)
  response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy GetEvidenceFoldersByAssessment
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse (AWSResponse GetEvidenceFoldersByAssessment)))
response =
    forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
      ( \Int
s ResponseHeaders
h Object
x ->
          Maybe [AssessmentEvidenceFolder]
-> Maybe Text -> Int -> GetEvidenceFoldersByAssessmentResponse
GetEvidenceFoldersByAssessmentResponse'
            forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( Object
x
                            forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"evidenceFolders"
                            forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty
                        )
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"nextToken")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
      )

instance
  Prelude.Hashable
    GetEvidenceFoldersByAssessment
  where
  hashWithSalt :: Int -> GetEvidenceFoldersByAssessment -> Int
hashWithSalt
    Int
_salt
    GetEvidenceFoldersByAssessment' {Maybe Natural
Maybe Text
Text
assessmentId :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:assessmentId:GetEvidenceFoldersByAssessment' :: GetEvidenceFoldersByAssessment -> Text
$sel:nextToken:GetEvidenceFoldersByAssessment' :: GetEvidenceFoldersByAssessment -> Maybe Text
$sel:maxResults:GetEvidenceFoldersByAssessment' :: GetEvidenceFoldersByAssessment -> Maybe Natural
..} =
      Int
_salt
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
maxResults
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
nextToken
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
assessmentId

instance
  Prelude.NFData
    GetEvidenceFoldersByAssessment
  where
  rnf :: GetEvidenceFoldersByAssessment -> ()
rnf GetEvidenceFoldersByAssessment' {Maybe Natural
Maybe Text
Text
assessmentId :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:assessmentId:GetEvidenceFoldersByAssessment' :: GetEvidenceFoldersByAssessment -> Text
$sel:nextToken:GetEvidenceFoldersByAssessment' :: GetEvidenceFoldersByAssessment -> Maybe Text
$sel:maxResults:GetEvidenceFoldersByAssessment' :: GetEvidenceFoldersByAssessment -> Maybe Natural
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
maxResults
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
nextToken
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
assessmentId

instance
  Data.ToHeaders
    GetEvidenceFoldersByAssessment
  where
  toHeaders :: GetEvidenceFoldersByAssessment -> ResponseHeaders
toHeaders =
    forall a b. a -> b -> a
Prelude.const
      ( forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ HeaderName
"Content-Type"
              forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"application/x-amz-json-1.1" ::
                          Prelude.ByteString
                      )
          ]
      )

instance Data.ToPath GetEvidenceFoldersByAssessment where
  toPath :: GetEvidenceFoldersByAssessment -> ByteString
toPath GetEvidenceFoldersByAssessment' {Maybe Natural
Maybe Text
Text
assessmentId :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:assessmentId:GetEvidenceFoldersByAssessment' :: GetEvidenceFoldersByAssessment -> Text
$sel:nextToken:GetEvidenceFoldersByAssessment' :: GetEvidenceFoldersByAssessment -> Maybe Text
$sel:maxResults:GetEvidenceFoldersByAssessment' :: GetEvidenceFoldersByAssessment -> Maybe Natural
..} =
    forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"/assessments/",
        forall a. ToByteString a => a -> ByteString
Data.toBS Text
assessmentId,
        ByteString
"/evidenceFolders"
      ]

instance Data.ToQuery GetEvidenceFoldersByAssessment where
  toQuery :: GetEvidenceFoldersByAssessment -> QueryString
toQuery GetEvidenceFoldersByAssessment' {Maybe Natural
Maybe Text
Text
assessmentId :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:assessmentId:GetEvidenceFoldersByAssessment' :: GetEvidenceFoldersByAssessment -> Text
$sel:nextToken:GetEvidenceFoldersByAssessment' :: GetEvidenceFoldersByAssessment -> Maybe Text
$sel:maxResults:GetEvidenceFoldersByAssessment' :: GetEvidenceFoldersByAssessment -> Maybe Natural
..} =
    forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"maxResults" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Natural
maxResults,
        ByteString
"nextToken" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Text
nextToken
      ]

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

-- |
-- Create a value of 'GetEvidenceFoldersByAssessmentResponse' 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:
--
-- 'evidenceFolders', 'getEvidenceFoldersByAssessmentResponse_evidenceFolders' - The list of evidence folders that the @GetEvidenceFoldersByAssessment@
-- API returned.
--
-- 'nextToken', 'getEvidenceFoldersByAssessmentResponse_nextToken' - The pagination token that\'s used to fetch the next set of results.
--
-- 'httpStatus', 'getEvidenceFoldersByAssessmentResponse_httpStatus' - The response's http status code.
newGetEvidenceFoldersByAssessmentResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  GetEvidenceFoldersByAssessmentResponse
newGetEvidenceFoldersByAssessmentResponse :: Int -> GetEvidenceFoldersByAssessmentResponse
newGetEvidenceFoldersByAssessmentResponse
  Int
pHttpStatus_ =
    GetEvidenceFoldersByAssessmentResponse'
      { $sel:evidenceFolders:GetEvidenceFoldersByAssessmentResponse' :: Maybe [AssessmentEvidenceFolder]
evidenceFolders =
          forall a. Maybe a
Prelude.Nothing,
        $sel:nextToken:GetEvidenceFoldersByAssessmentResponse' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
        $sel:httpStatus:GetEvidenceFoldersByAssessmentResponse' :: Int
httpStatus = Int
pHttpStatus_
      }

-- | The list of evidence folders that the @GetEvidenceFoldersByAssessment@
-- API returned.
getEvidenceFoldersByAssessmentResponse_evidenceFolders :: Lens.Lens' GetEvidenceFoldersByAssessmentResponse (Prelude.Maybe [AssessmentEvidenceFolder])
getEvidenceFoldersByAssessmentResponse_evidenceFolders :: Lens'
  GetEvidenceFoldersByAssessmentResponse
  (Maybe [AssessmentEvidenceFolder])
getEvidenceFoldersByAssessmentResponse_evidenceFolders = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetEvidenceFoldersByAssessmentResponse' {Maybe [AssessmentEvidenceFolder]
evidenceFolders :: Maybe [AssessmentEvidenceFolder]
$sel:evidenceFolders:GetEvidenceFoldersByAssessmentResponse' :: GetEvidenceFoldersByAssessmentResponse
-> Maybe [AssessmentEvidenceFolder]
evidenceFolders} -> Maybe [AssessmentEvidenceFolder]
evidenceFolders) (\s :: GetEvidenceFoldersByAssessmentResponse
s@GetEvidenceFoldersByAssessmentResponse' {} Maybe [AssessmentEvidenceFolder]
a -> GetEvidenceFoldersByAssessmentResponse
s {$sel:evidenceFolders:GetEvidenceFoldersByAssessmentResponse' :: Maybe [AssessmentEvidenceFolder]
evidenceFolders = Maybe [AssessmentEvidenceFolder]
a} :: GetEvidenceFoldersByAssessmentResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

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

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

instance
  Prelude.NFData
    GetEvidenceFoldersByAssessmentResponse
  where
  rnf :: GetEvidenceFoldersByAssessmentResponse -> ()
rnf GetEvidenceFoldersByAssessmentResponse' {Int
Maybe [AssessmentEvidenceFolder]
Maybe Text
httpStatus :: Int
nextToken :: Maybe Text
evidenceFolders :: Maybe [AssessmentEvidenceFolder]
$sel:httpStatus:GetEvidenceFoldersByAssessmentResponse' :: GetEvidenceFoldersByAssessmentResponse -> Int
$sel:nextToken:GetEvidenceFoldersByAssessmentResponse' :: GetEvidenceFoldersByAssessmentResponse -> Maybe Text
$sel:evidenceFolders:GetEvidenceFoldersByAssessmentResponse' :: GetEvidenceFoldersByAssessmentResponse
-> Maybe [AssessmentEvidenceFolder]
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe [AssessmentEvidenceFolder]
evidenceFolders
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
nextToken
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus