{-# 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.ListAssessmentFrameworkShareRequests
-- 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 a list of sent or received share requests for custom frameworks
-- in Audit Manager.
module Amazonka.AuditManager.ListAssessmentFrameworkShareRequests
  ( -- * Creating a Request
    ListAssessmentFrameworkShareRequests (..),
    newListAssessmentFrameworkShareRequests,

    -- * Request Lenses
    listAssessmentFrameworkShareRequests_maxResults,
    listAssessmentFrameworkShareRequests_nextToken,
    listAssessmentFrameworkShareRequests_requestType,

    -- * Destructuring the Response
    ListAssessmentFrameworkShareRequestsResponse (..),
    newListAssessmentFrameworkShareRequestsResponse,

    -- * Response Lenses
    listAssessmentFrameworkShareRequestsResponse_assessmentFrameworkShareRequests,
    listAssessmentFrameworkShareRequestsResponse_nextToken,
    listAssessmentFrameworkShareRequestsResponse_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:/ 'newListAssessmentFrameworkShareRequests' smart constructor.
data ListAssessmentFrameworkShareRequests = ListAssessmentFrameworkShareRequests'
  { -- | Represents the maximum number of results on a page or for an API request
    -- call.
    ListAssessmentFrameworkShareRequests -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
    -- | The pagination token that\'s used to fetch the next set of results.
    ListAssessmentFrameworkShareRequests -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | Specifies whether the share request is a sent request or a received
    -- request.
    ListAssessmentFrameworkShareRequests -> ShareRequestType
requestType :: ShareRequestType
  }
  deriving (ListAssessmentFrameworkShareRequests
-> ListAssessmentFrameworkShareRequests -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListAssessmentFrameworkShareRequests
-> ListAssessmentFrameworkShareRequests -> Bool
$c/= :: ListAssessmentFrameworkShareRequests
-> ListAssessmentFrameworkShareRequests -> Bool
== :: ListAssessmentFrameworkShareRequests
-> ListAssessmentFrameworkShareRequests -> Bool
$c== :: ListAssessmentFrameworkShareRequests
-> ListAssessmentFrameworkShareRequests -> Bool
Prelude.Eq, ReadPrec [ListAssessmentFrameworkShareRequests]
ReadPrec ListAssessmentFrameworkShareRequests
Int -> ReadS ListAssessmentFrameworkShareRequests
ReadS [ListAssessmentFrameworkShareRequests]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListAssessmentFrameworkShareRequests]
$creadListPrec :: ReadPrec [ListAssessmentFrameworkShareRequests]
readPrec :: ReadPrec ListAssessmentFrameworkShareRequests
$creadPrec :: ReadPrec ListAssessmentFrameworkShareRequests
readList :: ReadS [ListAssessmentFrameworkShareRequests]
$creadList :: ReadS [ListAssessmentFrameworkShareRequests]
readsPrec :: Int -> ReadS ListAssessmentFrameworkShareRequests
$creadsPrec :: Int -> ReadS ListAssessmentFrameworkShareRequests
Prelude.Read, Int -> ListAssessmentFrameworkShareRequests -> ShowS
[ListAssessmentFrameworkShareRequests] -> ShowS
ListAssessmentFrameworkShareRequests -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListAssessmentFrameworkShareRequests] -> ShowS
$cshowList :: [ListAssessmentFrameworkShareRequests] -> ShowS
show :: ListAssessmentFrameworkShareRequests -> String
$cshow :: ListAssessmentFrameworkShareRequests -> String
showsPrec :: Int -> ListAssessmentFrameworkShareRequests -> ShowS
$cshowsPrec :: Int -> ListAssessmentFrameworkShareRequests -> ShowS
Prelude.Show, forall x.
Rep ListAssessmentFrameworkShareRequests x
-> ListAssessmentFrameworkShareRequests
forall x.
ListAssessmentFrameworkShareRequests
-> Rep ListAssessmentFrameworkShareRequests x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListAssessmentFrameworkShareRequests x
-> ListAssessmentFrameworkShareRequests
$cfrom :: forall x.
ListAssessmentFrameworkShareRequests
-> Rep ListAssessmentFrameworkShareRequests x
Prelude.Generic)

-- |
-- Create a value of 'ListAssessmentFrameworkShareRequests' 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', 'listAssessmentFrameworkShareRequests_maxResults' - Represents the maximum number of results on a page or for an API request
-- call.
--
-- 'nextToken', 'listAssessmentFrameworkShareRequests_nextToken' - The pagination token that\'s used to fetch the next set of results.
--
-- 'requestType', 'listAssessmentFrameworkShareRequests_requestType' - Specifies whether the share request is a sent request or a received
-- request.
newListAssessmentFrameworkShareRequests ::
  -- | 'requestType'
  ShareRequestType ->
  ListAssessmentFrameworkShareRequests
newListAssessmentFrameworkShareRequests :: ShareRequestType -> ListAssessmentFrameworkShareRequests
newListAssessmentFrameworkShareRequests ShareRequestType
pRequestType_ =
  ListAssessmentFrameworkShareRequests'
    { $sel:maxResults:ListAssessmentFrameworkShareRequests' :: Maybe Natural
maxResults =
        forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListAssessmentFrameworkShareRequests' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
      $sel:requestType:ListAssessmentFrameworkShareRequests' :: ShareRequestType
requestType = ShareRequestType
pRequestType_
    }

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

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

-- | Specifies whether the share request is a sent request or a received
-- request.
listAssessmentFrameworkShareRequests_requestType :: Lens.Lens' ListAssessmentFrameworkShareRequests ShareRequestType
listAssessmentFrameworkShareRequests_requestType :: Lens' ListAssessmentFrameworkShareRequests ShareRequestType
listAssessmentFrameworkShareRequests_requestType = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAssessmentFrameworkShareRequests' {ShareRequestType
requestType :: ShareRequestType
$sel:requestType:ListAssessmentFrameworkShareRequests' :: ListAssessmentFrameworkShareRequests -> ShareRequestType
requestType} -> ShareRequestType
requestType) (\s :: ListAssessmentFrameworkShareRequests
s@ListAssessmentFrameworkShareRequests' {} ShareRequestType
a -> ListAssessmentFrameworkShareRequests
s {$sel:requestType:ListAssessmentFrameworkShareRequests' :: ShareRequestType
requestType = ShareRequestType
a} :: ListAssessmentFrameworkShareRequests)

instance
  Core.AWSRequest
    ListAssessmentFrameworkShareRequests
  where
  type
    AWSResponse ListAssessmentFrameworkShareRequests =
      ListAssessmentFrameworkShareRequestsResponse
  request :: (Service -> Service)
-> ListAssessmentFrameworkShareRequests
-> Request ListAssessmentFrameworkShareRequests
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 ListAssessmentFrameworkShareRequests
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse
           (AWSResponse ListAssessmentFrameworkShareRequests)))
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 [AssessmentFrameworkShareRequest]
-> Maybe Text
-> Int
-> ListAssessmentFrameworkShareRequestsResponse
ListAssessmentFrameworkShareRequestsResponse'
            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
"assessmentFrameworkShareRequests"
                            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
    ListAssessmentFrameworkShareRequests
  where
  hashWithSalt :: Int -> ListAssessmentFrameworkShareRequests -> Int
hashWithSalt
    Int
_salt
    ListAssessmentFrameworkShareRequests' {Maybe Natural
Maybe Text
ShareRequestType
requestType :: ShareRequestType
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:requestType:ListAssessmentFrameworkShareRequests' :: ListAssessmentFrameworkShareRequests -> ShareRequestType
$sel:nextToken:ListAssessmentFrameworkShareRequests' :: ListAssessmentFrameworkShareRequests -> Maybe Text
$sel:maxResults:ListAssessmentFrameworkShareRequests' :: ListAssessmentFrameworkShareRequests -> 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` ShareRequestType
requestType

instance
  Prelude.NFData
    ListAssessmentFrameworkShareRequests
  where
  rnf :: ListAssessmentFrameworkShareRequests -> ()
rnf ListAssessmentFrameworkShareRequests' {Maybe Natural
Maybe Text
ShareRequestType
requestType :: ShareRequestType
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:requestType:ListAssessmentFrameworkShareRequests' :: ListAssessmentFrameworkShareRequests -> ShareRequestType
$sel:nextToken:ListAssessmentFrameworkShareRequests' :: ListAssessmentFrameworkShareRequests -> Maybe Text
$sel:maxResults:ListAssessmentFrameworkShareRequests' :: ListAssessmentFrameworkShareRequests -> 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 ShareRequestType
requestType

instance
  Data.ToHeaders
    ListAssessmentFrameworkShareRequests
  where
  toHeaders :: ListAssessmentFrameworkShareRequests -> 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
    ListAssessmentFrameworkShareRequests
  where
  toPath :: ListAssessmentFrameworkShareRequests -> ByteString
toPath =
    forall a b. a -> b -> a
Prelude.const ByteString
"/assessmentFrameworkShareRequests"

instance
  Data.ToQuery
    ListAssessmentFrameworkShareRequests
  where
  toQuery :: ListAssessmentFrameworkShareRequests -> QueryString
toQuery ListAssessmentFrameworkShareRequests' {Maybe Natural
Maybe Text
ShareRequestType
requestType :: ShareRequestType
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:requestType:ListAssessmentFrameworkShareRequests' :: ListAssessmentFrameworkShareRequests -> ShareRequestType
$sel:nextToken:ListAssessmentFrameworkShareRequests' :: ListAssessmentFrameworkShareRequests -> Maybe Text
$sel:maxResults:ListAssessmentFrameworkShareRequests' :: ListAssessmentFrameworkShareRequests -> 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,
        ByteString
"requestType" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: ShareRequestType
requestType
      ]

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

-- |
-- Create a value of 'ListAssessmentFrameworkShareRequestsResponse' 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:
--
-- 'assessmentFrameworkShareRequests', 'listAssessmentFrameworkShareRequestsResponse_assessmentFrameworkShareRequests' - The list of share requests that the
-- @ListAssessmentFrameworkShareRequests@ API returned.
--
-- 'nextToken', 'listAssessmentFrameworkShareRequestsResponse_nextToken' - The pagination token that\'s used to fetch the next set of results.
--
-- 'httpStatus', 'listAssessmentFrameworkShareRequestsResponse_httpStatus' - The response's http status code.
newListAssessmentFrameworkShareRequestsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListAssessmentFrameworkShareRequestsResponse
newListAssessmentFrameworkShareRequestsResponse :: Int -> ListAssessmentFrameworkShareRequestsResponse
newListAssessmentFrameworkShareRequestsResponse
  Int
pHttpStatus_ =
    ListAssessmentFrameworkShareRequestsResponse'
      { $sel:assessmentFrameworkShareRequests:ListAssessmentFrameworkShareRequestsResponse' :: Maybe [AssessmentFrameworkShareRequest]
assessmentFrameworkShareRequests =
          forall a. Maybe a
Prelude.Nothing,
        $sel:nextToken:ListAssessmentFrameworkShareRequestsResponse' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
        $sel:httpStatus:ListAssessmentFrameworkShareRequestsResponse' :: Int
httpStatus = Int
pHttpStatus_
      }

-- | The list of share requests that the
-- @ListAssessmentFrameworkShareRequests@ API returned.
listAssessmentFrameworkShareRequestsResponse_assessmentFrameworkShareRequests :: Lens.Lens' ListAssessmentFrameworkShareRequestsResponse (Prelude.Maybe [AssessmentFrameworkShareRequest])
listAssessmentFrameworkShareRequestsResponse_assessmentFrameworkShareRequests :: Lens'
  ListAssessmentFrameworkShareRequestsResponse
  (Maybe [AssessmentFrameworkShareRequest])
listAssessmentFrameworkShareRequestsResponse_assessmentFrameworkShareRequests = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAssessmentFrameworkShareRequestsResponse' {Maybe [AssessmentFrameworkShareRequest]
assessmentFrameworkShareRequests :: Maybe [AssessmentFrameworkShareRequest]
$sel:assessmentFrameworkShareRequests:ListAssessmentFrameworkShareRequestsResponse' :: ListAssessmentFrameworkShareRequestsResponse
-> Maybe [AssessmentFrameworkShareRequest]
assessmentFrameworkShareRequests} -> Maybe [AssessmentFrameworkShareRequest]
assessmentFrameworkShareRequests) (\s :: ListAssessmentFrameworkShareRequestsResponse
s@ListAssessmentFrameworkShareRequestsResponse' {} Maybe [AssessmentFrameworkShareRequest]
a -> ListAssessmentFrameworkShareRequestsResponse
s {$sel:assessmentFrameworkShareRequests:ListAssessmentFrameworkShareRequestsResponse' :: Maybe [AssessmentFrameworkShareRequest]
assessmentFrameworkShareRequests = Maybe [AssessmentFrameworkShareRequest]
a} :: ListAssessmentFrameworkShareRequestsResponse) 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.
listAssessmentFrameworkShareRequestsResponse_nextToken :: Lens.Lens' ListAssessmentFrameworkShareRequestsResponse (Prelude.Maybe Prelude.Text)
listAssessmentFrameworkShareRequestsResponse_nextToken :: Lens' ListAssessmentFrameworkShareRequestsResponse (Maybe Text)
listAssessmentFrameworkShareRequestsResponse_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAssessmentFrameworkShareRequestsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListAssessmentFrameworkShareRequestsResponse' :: ListAssessmentFrameworkShareRequestsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListAssessmentFrameworkShareRequestsResponse
s@ListAssessmentFrameworkShareRequestsResponse' {} Maybe Text
a -> ListAssessmentFrameworkShareRequestsResponse
s {$sel:nextToken:ListAssessmentFrameworkShareRequestsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListAssessmentFrameworkShareRequestsResponse)

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

instance
  Prelude.NFData
    ListAssessmentFrameworkShareRequestsResponse
  where
  rnf :: ListAssessmentFrameworkShareRequestsResponse -> ()
rnf ListAssessmentFrameworkShareRequestsResponse' {Int
Maybe [AssessmentFrameworkShareRequest]
Maybe Text
httpStatus :: Int
nextToken :: Maybe Text
assessmentFrameworkShareRequests :: Maybe [AssessmentFrameworkShareRequest]
$sel:httpStatus:ListAssessmentFrameworkShareRequestsResponse' :: ListAssessmentFrameworkShareRequestsResponse -> Int
$sel:nextToken:ListAssessmentFrameworkShareRequestsResponse' :: ListAssessmentFrameworkShareRequestsResponse -> Maybe Text
$sel:assessmentFrameworkShareRequests:ListAssessmentFrameworkShareRequestsResponse' :: ListAssessmentFrameworkShareRequestsResponse
-> Maybe [AssessmentFrameworkShareRequest]
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe [AssessmentFrameworkShareRequest]
assessmentFrameworkShareRequests
      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