{-# 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.QuickSight.ListFolderMembers
-- 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 all assets (@DASHBOARD@, @ANALYSIS@, and @DATASET@) in a folder.
module Amazonka.QuickSight.ListFolderMembers
  ( -- * Creating a Request
    ListFolderMembers (..),
    newListFolderMembers,

    -- * Request Lenses
    listFolderMembers_nextToken,
    listFolderMembers_maxResults,
    listFolderMembers_awsAccountId,
    listFolderMembers_folderId,

    -- * Destructuring the Response
    ListFolderMembersResponse (..),
    newListFolderMembersResponse,

    -- * Response Lenses
    listFolderMembersResponse_requestId,
    listFolderMembersResponse_folderMemberList,
    listFolderMembersResponse_nextToken,
    listFolderMembersResponse_status,
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import Amazonka.QuickSight.Types
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response

-- | /See:/ 'newListFolderMembers' smart constructor.
data ListFolderMembers = ListFolderMembers'
  { -- | The token for the next set of results, or null if there are no more
    -- results.
    ListFolderMembers -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The maximum number of results to be returned per request.
    ListFolderMembers -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
    -- | The AWS account ID.
    ListFolderMembers -> Text
awsAccountId :: Prelude.Text,
    -- | The folder ID.
    ListFolderMembers -> Text
folderId :: Prelude.Text
  }
  deriving (ListFolderMembers -> ListFolderMembers -> Bool
(ListFolderMembers -> ListFolderMembers -> Bool)
-> (ListFolderMembers -> ListFolderMembers -> Bool)
-> Eq ListFolderMembers
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListFolderMembers -> ListFolderMembers -> Bool
$c/= :: ListFolderMembers -> ListFolderMembers -> Bool
== :: ListFolderMembers -> ListFolderMembers -> Bool
$c== :: ListFolderMembers -> ListFolderMembers -> Bool
Prelude.Eq, ReadPrec [ListFolderMembers]
ReadPrec ListFolderMembers
Int -> ReadS ListFolderMembers
ReadS [ListFolderMembers]
(Int -> ReadS ListFolderMembers)
-> ReadS [ListFolderMembers]
-> ReadPrec ListFolderMembers
-> ReadPrec [ListFolderMembers]
-> Read ListFolderMembers
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListFolderMembers]
$creadListPrec :: ReadPrec [ListFolderMembers]
readPrec :: ReadPrec ListFolderMembers
$creadPrec :: ReadPrec ListFolderMembers
readList :: ReadS [ListFolderMembers]
$creadList :: ReadS [ListFolderMembers]
readsPrec :: Int -> ReadS ListFolderMembers
$creadsPrec :: Int -> ReadS ListFolderMembers
Prelude.Read, Int -> ListFolderMembers -> ShowS
[ListFolderMembers] -> ShowS
ListFolderMembers -> String
(Int -> ListFolderMembers -> ShowS)
-> (ListFolderMembers -> String)
-> ([ListFolderMembers] -> ShowS)
-> Show ListFolderMembers
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListFolderMembers] -> ShowS
$cshowList :: [ListFolderMembers] -> ShowS
show :: ListFolderMembers -> String
$cshow :: ListFolderMembers -> String
showsPrec :: Int -> ListFolderMembers -> ShowS
$cshowsPrec :: Int -> ListFolderMembers -> ShowS
Prelude.Show, (forall x. ListFolderMembers -> Rep ListFolderMembers x)
-> (forall x. Rep ListFolderMembers x -> ListFolderMembers)
-> Generic ListFolderMembers
forall x. Rep ListFolderMembers x -> ListFolderMembers
forall x. ListFolderMembers -> Rep ListFolderMembers x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListFolderMembers x -> ListFolderMembers
$cfrom :: forall x. ListFolderMembers -> Rep ListFolderMembers x
Prelude.Generic)

-- |
-- Create a value of 'ListFolderMembers' 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', 'listFolderMembers_nextToken' - The token for the next set of results, or null if there are no more
-- results.
--
-- 'maxResults', 'listFolderMembers_maxResults' - The maximum number of results to be returned per request.
--
-- 'awsAccountId', 'listFolderMembers_awsAccountId' - The AWS account ID.
--
-- 'folderId', 'listFolderMembers_folderId' - The folder ID.
newListFolderMembers ::
  -- | 'awsAccountId'
  Prelude.Text ->
  -- | 'folderId'
  Prelude.Text ->
  ListFolderMembers
newListFolderMembers :: Text -> Text -> ListFolderMembers
newListFolderMembers Text
pAwsAccountId_ Text
pFolderId_ =
  ListFolderMembers' :: Maybe Text -> Maybe Natural -> Text -> Text -> ListFolderMembers
ListFolderMembers'
    { $sel:nextToken:ListFolderMembers' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:maxResults:ListFolderMembers' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
      $sel:awsAccountId:ListFolderMembers' :: Text
awsAccountId = Text
pAwsAccountId_,
      $sel:folderId:ListFolderMembers' :: Text
folderId = Text
pFolderId_
    }

-- | The token for the next set of results, or null if there are no more
-- results.
listFolderMembers_nextToken :: Lens.Lens' ListFolderMembers (Prelude.Maybe Prelude.Text)
listFolderMembers_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListFolderMembers -> f ListFolderMembers
listFolderMembers_nextToken = (ListFolderMembers -> Maybe Text)
-> (ListFolderMembers -> Maybe Text -> ListFolderMembers)
-> Lens
     ListFolderMembers ListFolderMembers (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListFolderMembers' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListFolderMembers' :: ListFolderMembers -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListFolderMembers
s@ListFolderMembers' {} Maybe Text
a -> ListFolderMembers
s {$sel:nextToken:ListFolderMembers' :: Maybe Text
nextToken = Maybe Text
a} :: ListFolderMembers)

-- | The maximum number of results to be returned per request.
listFolderMembers_maxResults :: Lens.Lens' ListFolderMembers (Prelude.Maybe Prelude.Natural)
listFolderMembers_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListFolderMembers -> f ListFolderMembers
listFolderMembers_maxResults = (ListFolderMembers -> Maybe Natural)
-> (ListFolderMembers -> Maybe Natural -> ListFolderMembers)
-> Lens
     ListFolderMembers ListFolderMembers (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListFolderMembers' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListFolderMembers' :: ListFolderMembers -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListFolderMembers
s@ListFolderMembers' {} Maybe Natural
a -> ListFolderMembers
s {$sel:maxResults:ListFolderMembers' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListFolderMembers)

-- | The AWS account ID.
listFolderMembers_awsAccountId :: Lens.Lens' ListFolderMembers Prelude.Text
listFolderMembers_awsAccountId :: (Text -> f Text) -> ListFolderMembers -> f ListFolderMembers
listFolderMembers_awsAccountId = (ListFolderMembers -> Text)
-> (ListFolderMembers -> Text -> ListFolderMembers)
-> Lens ListFolderMembers ListFolderMembers Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListFolderMembers' {Text
awsAccountId :: Text
$sel:awsAccountId:ListFolderMembers' :: ListFolderMembers -> Text
awsAccountId} -> Text
awsAccountId) (\s :: ListFolderMembers
s@ListFolderMembers' {} Text
a -> ListFolderMembers
s {$sel:awsAccountId:ListFolderMembers' :: Text
awsAccountId = Text
a} :: ListFolderMembers)

-- | The folder ID.
listFolderMembers_folderId :: Lens.Lens' ListFolderMembers Prelude.Text
listFolderMembers_folderId :: (Text -> f Text) -> ListFolderMembers -> f ListFolderMembers
listFolderMembers_folderId = (ListFolderMembers -> Text)
-> (ListFolderMembers -> Text -> ListFolderMembers)
-> Lens ListFolderMembers ListFolderMembers Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListFolderMembers' {Text
folderId :: Text
$sel:folderId:ListFolderMembers' :: ListFolderMembers -> Text
folderId} -> Text
folderId) (\s :: ListFolderMembers
s@ListFolderMembers' {} Text
a -> ListFolderMembers
s {$sel:folderId:ListFolderMembers' :: Text
folderId = Text
a} :: ListFolderMembers)

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

instance Prelude.NFData ListFolderMembers

instance Core.ToHeaders ListFolderMembers where
  toHeaders :: ListFolderMembers -> ResponseHeaders
toHeaders =
    ResponseHeaders -> ListFolderMembers -> 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.0" ::
                          Prelude.ByteString
                      )
          ]
      )

instance Core.ToPath ListFolderMembers where
  toPath :: ListFolderMembers -> ByteString
toPath ListFolderMembers' {Maybe Natural
Maybe Text
Text
folderId :: Text
awsAccountId :: Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
$sel:folderId:ListFolderMembers' :: ListFolderMembers -> Text
$sel:awsAccountId:ListFolderMembers' :: ListFolderMembers -> Text
$sel:maxResults:ListFolderMembers' :: ListFolderMembers -> Maybe Natural
$sel:nextToken:ListFolderMembers' :: ListFolderMembers -> Maybe Text
..} =
    [ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"/accounts/",
        Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
awsAccountId,
        ByteString
"/folders/",
        Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
folderId,
        ByteString
"/members"
      ]

instance Core.ToQuery ListFolderMembers where
  toQuery :: ListFolderMembers -> QueryString
toQuery ListFolderMembers' {Maybe Natural
Maybe Text
Text
folderId :: Text
awsAccountId :: Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
$sel:folderId:ListFolderMembers' :: ListFolderMembers -> Text
$sel:awsAccountId:ListFolderMembers' :: ListFolderMembers -> Text
$sel:maxResults:ListFolderMembers' :: ListFolderMembers -> Maybe Natural
$sel:nextToken:ListFolderMembers' :: ListFolderMembers -> Maybe Text
..} =
    [QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"next-token" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
nextToken,
        ByteString
"max-results" ByteString -> Maybe Natural -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Natural
maxResults
      ]

-- | /See:/ 'newListFolderMembersResponse' smart constructor.
data ListFolderMembersResponse = ListFolderMembersResponse'
  { -- | The request ID.
    ListFolderMembersResponse -> Maybe Text
requestId :: Prelude.Maybe Prelude.Text,
    -- | A structure that contains all of the folder members (dashboards,
    -- analyses, and datasets) in the folder.
    ListFolderMembersResponse -> Maybe [MemberIdArnPair]
folderMemberList :: Prelude.Maybe [MemberIdArnPair],
    -- | The token for the next set of results, or null if there are no more
    -- results.
    ListFolderMembersResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The status. If succeeded, the status is @SC_OK@
    ListFolderMembersResponse -> Int
status :: Prelude.Int
  }
  deriving (ListFolderMembersResponse -> ListFolderMembersResponse -> Bool
(ListFolderMembersResponse -> ListFolderMembersResponse -> Bool)
-> (ListFolderMembersResponse -> ListFolderMembersResponse -> Bool)
-> Eq ListFolderMembersResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListFolderMembersResponse -> ListFolderMembersResponse -> Bool
$c/= :: ListFolderMembersResponse -> ListFolderMembersResponse -> Bool
== :: ListFolderMembersResponse -> ListFolderMembersResponse -> Bool
$c== :: ListFolderMembersResponse -> ListFolderMembersResponse -> Bool
Prelude.Eq, ReadPrec [ListFolderMembersResponse]
ReadPrec ListFolderMembersResponse
Int -> ReadS ListFolderMembersResponse
ReadS [ListFolderMembersResponse]
(Int -> ReadS ListFolderMembersResponse)
-> ReadS [ListFolderMembersResponse]
-> ReadPrec ListFolderMembersResponse
-> ReadPrec [ListFolderMembersResponse]
-> Read ListFolderMembersResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListFolderMembersResponse]
$creadListPrec :: ReadPrec [ListFolderMembersResponse]
readPrec :: ReadPrec ListFolderMembersResponse
$creadPrec :: ReadPrec ListFolderMembersResponse
readList :: ReadS [ListFolderMembersResponse]
$creadList :: ReadS [ListFolderMembersResponse]
readsPrec :: Int -> ReadS ListFolderMembersResponse
$creadsPrec :: Int -> ReadS ListFolderMembersResponse
Prelude.Read, Int -> ListFolderMembersResponse -> ShowS
[ListFolderMembersResponse] -> ShowS
ListFolderMembersResponse -> String
(Int -> ListFolderMembersResponse -> ShowS)
-> (ListFolderMembersResponse -> String)
-> ([ListFolderMembersResponse] -> ShowS)
-> Show ListFolderMembersResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListFolderMembersResponse] -> ShowS
$cshowList :: [ListFolderMembersResponse] -> ShowS
show :: ListFolderMembersResponse -> String
$cshow :: ListFolderMembersResponse -> String
showsPrec :: Int -> ListFolderMembersResponse -> ShowS
$cshowsPrec :: Int -> ListFolderMembersResponse -> ShowS
Prelude.Show, (forall x.
 ListFolderMembersResponse -> Rep ListFolderMembersResponse x)
-> (forall x.
    Rep ListFolderMembersResponse x -> ListFolderMembersResponse)
-> Generic ListFolderMembersResponse
forall x.
Rep ListFolderMembersResponse x -> ListFolderMembersResponse
forall x.
ListFolderMembersResponse -> Rep ListFolderMembersResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListFolderMembersResponse x -> ListFolderMembersResponse
$cfrom :: forall x.
ListFolderMembersResponse -> Rep ListFolderMembersResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListFolderMembersResponse' 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:
--
-- 'requestId', 'listFolderMembersResponse_requestId' - The request ID.
--
-- 'folderMemberList', 'listFolderMembersResponse_folderMemberList' - A structure that contains all of the folder members (dashboards,
-- analyses, and datasets) in the folder.
--
-- 'nextToken', 'listFolderMembersResponse_nextToken' - The token for the next set of results, or null if there are no more
-- results.
--
-- 'status', 'listFolderMembersResponse_status' - The status. If succeeded, the status is @SC_OK@
newListFolderMembersResponse ::
  -- | 'status'
  Prelude.Int ->
  ListFolderMembersResponse
newListFolderMembersResponse :: Int -> ListFolderMembersResponse
newListFolderMembersResponse Int
pStatus_ =
  ListFolderMembersResponse' :: Maybe Text
-> Maybe [MemberIdArnPair]
-> Maybe Text
-> Int
-> ListFolderMembersResponse
ListFolderMembersResponse'
    { $sel:requestId:ListFolderMembersResponse' :: Maybe Text
requestId =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:folderMemberList:ListFolderMembersResponse' :: Maybe [MemberIdArnPair]
folderMemberList = Maybe [MemberIdArnPair]
forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListFolderMembersResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:status:ListFolderMembersResponse' :: Int
status = Int
pStatus_
    }

-- | The request ID.
listFolderMembersResponse_requestId :: Lens.Lens' ListFolderMembersResponse (Prelude.Maybe Prelude.Text)
listFolderMembersResponse_requestId :: (Maybe Text -> f (Maybe Text))
-> ListFolderMembersResponse -> f ListFolderMembersResponse
listFolderMembersResponse_requestId = (ListFolderMembersResponse -> Maybe Text)
-> (ListFolderMembersResponse
    -> Maybe Text -> ListFolderMembersResponse)
-> Lens
     ListFolderMembersResponse
     ListFolderMembersResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListFolderMembersResponse' {Maybe Text
requestId :: Maybe Text
$sel:requestId:ListFolderMembersResponse' :: ListFolderMembersResponse -> Maybe Text
requestId} -> Maybe Text
requestId) (\s :: ListFolderMembersResponse
s@ListFolderMembersResponse' {} Maybe Text
a -> ListFolderMembersResponse
s {$sel:requestId:ListFolderMembersResponse' :: Maybe Text
requestId = Maybe Text
a} :: ListFolderMembersResponse)

-- | A structure that contains all of the folder members (dashboards,
-- analyses, and datasets) in the folder.
listFolderMembersResponse_folderMemberList :: Lens.Lens' ListFolderMembersResponse (Prelude.Maybe [MemberIdArnPair])
listFolderMembersResponse_folderMemberList :: (Maybe [MemberIdArnPair] -> f (Maybe [MemberIdArnPair]))
-> ListFolderMembersResponse -> f ListFolderMembersResponse
listFolderMembersResponse_folderMemberList = (ListFolderMembersResponse -> Maybe [MemberIdArnPair])
-> (ListFolderMembersResponse
    -> Maybe [MemberIdArnPair] -> ListFolderMembersResponse)
-> Lens
     ListFolderMembersResponse
     ListFolderMembersResponse
     (Maybe [MemberIdArnPair])
     (Maybe [MemberIdArnPair])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListFolderMembersResponse' {Maybe [MemberIdArnPair]
folderMemberList :: Maybe [MemberIdArnPair]
$sel:folderMemberList:ListFolderMembersResponse' :: ListFolderMembersResponse -> Maybe [MemberIdArnPair]
folderMemberList} -> Maybe [MemberIdArnPair]
folderMemberList) (\s :: ListFolderMembersResponse
s@ListFolderMembersResponse' {} Maybe [MemberIdArnPair]
a -> ListFolderMembersResponse
s {$sel:folderMemberList:ListFolderMembersResponse' :: Maybe [MemberIdArnPair]
folderMemberList = Maybe [MemberIdArnPair]
a} :: ListFolderMembersResponse) ((Maybe [MemberIdArnPair] -> f (Maybe [MemberIdArnPair]))
 -> ListFolderMembersResponse -> f ListFolderMembersResponse)
-> ((Maybe [MemberIdArnPair] -> f (Maybe [MemberIdArnPair]))
    -> Maybe [MemberIdArnPair] -> f (Maybe [MemberIdArnPair]))
-> (Maybe [MemberIdArnPair] -> f (Maybe [MemberIdArnPair]))
-> ListFolderMembersResponse
-> f ListFolderMembersResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [MemberIdArnPair]
  [MemberIdArnPair]
  [MemberIdArnPair]
  [MemberIdArnPair]
-> Iso
     (Maybe [MemberIdArnPair])
     (Maybe [MemberIdArnPair])
     (Maybe [MemberIdArnPair])
     (Maybe [MemberIdArnPair])
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
  [MemberIdArnPair]
  [MemberIdArnPair]
  [MemberIdArnPair]
  [MemberIdArnPair]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The token for the next set of results, or null if there are no more
-- results.
listFolderMembersResponse_nextToken :: Lens.Lens' ListFolderMembersResponse (Prelude.Maybe Prelude.Text)
listFolderMembersResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListFolderMembersResponse -> f ListFolderMembersResponse
listFolderMembersResponse_nextToken = (ListFolderMembersResponse -> Maybe Text)
-> (ListFolderMembersResponse
    -> Maybe Text -> ListFolderMembersResponse)
-> Lens
     ListFolderMembersResponse
     ListFolderMembersResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListFolderMembersResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListFolderMembersResponse' :: ListFolderMembersResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListFolderMembersResponse
s@ListFolderMembersResponse' {} Maybe Text
a -> ListFolderMembersResponse
s {$sel:nextToken:ListFolderMembersResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListFolderMembersResponse)

-- | The status. If succeeded, the status is @SC_OK@
listFolderMembersResponse_status :: Lens.Lens' ListFolderMembersResponse Prelude.Int
listFolderMembersResponse_status :: (Int -> f Int)
-> ListFolderMembersResponse -> f ListFolderMembersResponse
listFolderMembersResponse_status = (ListFolderMembersResponse -> Int)
-> (ListFolderMembersResponse -> Int -> ListFolderMembersResponse)
-> Lens ListFolderMembersResponse ListFolderMembersResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListFolderMembersResponse' {Int
status :: Int
$sel:status:ListFolderMembersResponse' :: ListFolderMembersResponse -> Int
status} -> Int
status) (\s :: ListFolderMembersResponse
s@ListFolderMembersResponse' {} Int
a -> ListFolderMembersResponse
s {$sel:status:ListFolderMembersResponse' :: Int
status = Int
a} :: ListFolderMembersResponse)

instance Prelude.NFData ListFolderMembersResponse