{-# 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.Omics.ListReadSets
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Retrieves a list of read sets.
--
-- This operation returns paginated results.
module Amazonka.Omics.ListReadSets
  ( -- * Creating a Request
    ListReadSets (..),
    newListReadSets,

    -- * Request Lenses
    listReadSets_filter,
    listReadSets_maxResults,
    listReadSets_nextToken,
    listReadSets_sequenceStoreId,

    -- * Destructuring the Response
    ListReadSetsResponse (..),
    newListReadSetsResponse,

    -- * Response Lenses
    listReadSetsResponse_nextToken,
    listReadSetsResponse_httpStatus,
    listReadSetsResponse_readSets,
  )
where

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

-- | /See:/ 'newListReadSets' smart constructor.
data ListReadSets = ListReadSets'
  { -- | A filter to apply to the list.
    ListReadSets -> Maybe ReadSetFilter
filter' :: Prelude.Maybe ReadSetFilter,
    -- | The maximum number of read sets to return in one page of results.
    ListReadSets -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
    -- | Specify the pagination token from a previous request to retrieve the
    -- next page of results.
    ListReadSets -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The jobs\' sequence store ID.
    ListReadSets -> Text
sequenceStoreId :: Prelude.Text
  }
  deriving (ListReadSets -> ListReadSets -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListReadSets -> ListReadSets -> Bool
$c/= :: ListReadSets -> ListReadSets -> Bool
== :: ListReadSets -> ListReadSets -> Bool
$c== :: ListReadSets -> ListReadSets -> Bool
Prelude.Eq, ReadPrec [ListReadSets]
ReadPrec ListReadSets
Int -> ReadS ListReadSets
ReadS [ListReadSets]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListReadSets]
$creadListPrec :: ReadPrec [ListReadSets]
readPrec :: ReadPrec ListReadSets
$creadPrec :: ReadPrec ListReadSets
readList :: ReadS [ListReadSets]
$creadList :: ReadS [ListReadSets]
readsPrec :: Int -> ReadS ListReadSets
$creadsPrec :: Int -> ReadS ListReadSets
Prelude.Read, Int -> ListReadSets -> ShowS
[ListReadSets] -> ShowS
ListReadSets -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListReadSets] -> ShowS
$cshowList :: [ListReadSets] -> ShowS
show :: ListReadSets -> String
$cshow :: ListReadSets -> String
showsPrec :: Int -> ListReadSets -> ShowS
$cshowsPrec :: Int -> ListReadSets -> ShowS
Prelude.Show, forall x. Rep ListReadSets x -> ListReadSets
forall x. ListReadSets -> Rep ListReadSets x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListReadSets x -> ListReadSets
$cfrom :: forall x. ListReadSets -> Rep ListReadSets x
Prelude.Generic)

-- |
-- Create a value of 'ListReadSets' 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:
--
-- 'filter'', 'listReadSets_filter' - A filter to apply to the list.
--
-- 'maxResults', 'listReadSets_maxResults' - The maximum number of read sets to return in one page of results.
--
-- 'nextToken', 'listReadSets_nextToken' - Specify the pagination token from a previous request to retrieve the
-- next page of results.
--
-- 'sequenceStoreId', 'listReadSets_sequenceStoreId' - The jobs\' sequence store ID.
newListReadSets ::
  -- | 'sequenceStoreId'
  Prelude.Text ->
  ListReadSets
newListReadSets :: Text -> ListReadSets
newListReadSets Text
pSequenceStoreId_ =
  ListReadSets'
    { $sel:filter':ListReadSets' :: Maybe ReadSetFilter
filter' = forall a. Maybe a
Prelude.Nothing,
      $sel:maxResults:ListReadSets' :: Maybe Natural
maxResults = forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListReadSets' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
      $sel:sequenceStoreId:ListReadSets' :: Text
sequenceStoreId = Text
pSequenceStoreId_
    }

-- | A filter to apply to the list.
listReadSets_filter :: Lens.Lens' ListReadSets (Prelude.Maybe ReadSetFilter)
listReadSets_filter :: Lens' ListReadSets (Maybe ReadSetFilter)
listReadSets_filter = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListReadSets' {Maybe ReadSetFilter
filter' :: Maybe ReadSetFilter
$sel:filter':ListReadSets' :: ListReadSets -> Maybe ReadSetFilter
filter'} -> Maybe ReadSetFilter
filter') (\s :: ListReadSets
s@ListReadSets' {} Maybe ReadSetFilter
a -> ListReadSets
s {$sel:filter':ListReadSets' :: Maybe ReadSetFilter
filter' = Maybe ReadSetFilter
a} :: ListReadSets)

-- | The maximum number of read sets to return in one page of results.
listReadSets_maxResults :: Lens.Lens' ListReadSets (Prelude.Maybe Prelude.Natural)
listReadSets_maxResults :: Lens' ListReadSets (Maybe Natural)
listReadSets_maxResults = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListReadSets' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListReadSets' :: ListReadSets -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListReadSets
s@ListReadSets' {} Maybe Natural
a -> ListReadSets
s {$sel:maxResults:ListReadSets' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListReadSets)

-- | Specify the pagination token from a previous request to retrieve the
-- next page of results.
listReadSets_nextToken :: Lens.Lens' ListReadSets (Prelude.Maybe Prelude.Text)
listReadSets_nextToken :: Lens' ListReadSets (Maybe Text)
listReadSets_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListReadSets' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListReadSets' :: ListReadSets -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListReadSets
s@ListReadSets' {} Maybe Text
a -> ListReadSets
s {$sel:nextToken:ListReadSets' :: Maybe Text
nextToken = Maybe Text
a} :: ListReadSets)

-- | The jobs\' sequence store ID.
listReadSets_sequenceStoreId :: Lens.Lens' ListReadSets Prelude.Text
listReadSets_sequenceStoreId :: Lens' ListReadSets Text
listReadSets_sequenceStoreId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListReadSets' {Text
sequenceStoreId :: Text
$sel:sequenceStoreId:ListReadSets' :: ListReadSets -> Text
sequenceStoreId} -> Text
sequenceStoreId) (\s :: ListReadSets
s@ListReadSets' {} Text
a -> ListReadSets
s {$sel:sequenceStoreId:ListReadSets' :: Text
sequenceStoreId = Text
a} :: ListReadSets)

instance Core.AWSPager ListReadSets where
  page :: ListReadSets -> AWSResponse ListReadSets -> Maybe ListReadSets
page ListReadSets
rq AWSResponse ListReadSets
rs
    | forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse ListReadSets
rs
            forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListReadSetsResponse (Maybe Text)
listReadSetsResponse_nextToken
            forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
        ) =
        forall a. Maybe a
Prelude.Nothing
    | forall a. AWSTruncated a => a -> Bool
Core.stop
        (AWSResponse ListReadSets
rs forall s a. s -> Getting a s a -> a
Lens.^. Lens' ListReadSetsResponse [ReadSetListItem]
listReadSetsResponse_readSets) =
        forall a. Maybe a
Prelude.Nothing
    | Bool
Prelude.otherwise =
        forall a. a -> Maybe a
Prelude.Just
          forall a b. (a -> b) -> a -> b
Prelude.$ ListReadSets
rq
          forall a b. a -> (a -> b) -> b
Prelude.& Lens' ListReadSets (Maybe Text)
listReadSets_nextToken
          forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListReadSets
rs
          forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListReadSetsResponse (Maybe Text)
listReadSetsResponse_nextToken
          forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just

instance Core.AWSRequest ListReadSets where
  type AWSResponse ListReadSets = ListReadSetsResponse
  request :: (Service -> Service) -> ListReadSets -> Request ListReadSets
request Service -> Service
overrides =
    forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON (Service -> Service
overrides Service
defaultService)
  response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy ListReadSets
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListReadSets)))
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 Text -> Int -> [ReadSetListItem] -> ListReadSetsResponse
ListReadSetsResponse'
            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
"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))
            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
"readSets" forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty)
      )

instance Prelude.Hashable ListReadSets where
  hashWithSalt :: Int -> ListReadSets -> Int
hashWithSalt Int
_salt ListReadSets' {Maybe Natural
Maybe Text
Maybe ReadSetFilter
Text
sequenceStoreId :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
filter' :: Maybe ReadSetFilter
$sel:sequenceStoreId:ListReadSets' :: ListReadSets -> Text
$sel:nextToken:ListReadSets' :: ListReadSets -> Maybe Text
$sel:maxResults:ListReadSets' :: ListReadSets -> Maybe Natural
$sel:filter':ListReadSets' :: ListReadSets -> Maybe ReadSetFilter
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ReadSetFilter
filter'
      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
sequenceStoreId

instance Prelude.NFData ListReadSets where
  rnf :: ListReadSets -> ()
rnf ListReadSets' {Maybe Natural
Maybe Text
Maybe ReadSetFilter
Text
sequenceStoreId :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
filter' :: Maybe ReadSetFilter
$sel:sequenceStoreId:ListReadSets' :: ListReadSets -> Text
$sel:nextToken:ListReadSets' :: ListReadSets -> Maybe Text
$sel:maxResults:ListReadSets' :: ListReadSets -> Maybe Natural
$sel:filter':ListReadSets' :: ListReadSets -> Maybe ReadSetFilter
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe ReadSetFilter
filter'
      seq :: forall a b. a -> b -> b
`Prelude.seq` 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
sequenceStoreId

instance Data.ToHeaders ListReadSets where
  toHeaders :: ListReadSets -> 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.ToJSON ListReadSets where
  toJSON :: ListReadSets -> Value
toJSON ListReadSets' {Maybe Natural
Maybe Text
Maybe ReadSetFilter
Text
sequenceStoreId :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
filter' :: Maybe ReadSetFilter
$sel:sequenceStoreId:ListReadSets' :: ListReadSets -> Text
$sel:nextToken:ListReadSets' :: ListReadSets -> Maybe Text
$sel:maxResults:ListReadSets' :: ListReadSets -> Maybe Natural
$sel:filter':ListReadSets' :: ListReadSets -> Maybe ReadSetFilter
..} =
    [Pair] -> Value
Data.object
      ( forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [(Key
"filter" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ReadSetFilter
filter']
      )

instance Data.ToPath ListReadSets where
  toPath :: ListReadSets -> ByteString
toPath ListReadSets' {Maybe Natural
Maybe Text
Maybe ReadSetFilter
Text
sequenceStoreId :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
filter' :: Maybe ReadSetFilter
$sel:sequenceStoreId:ListReadSets' :: ListReadSets -> Text
$sel:nextToken:ListReadSets' :: ListReadSets -> Maybe Text
$sel:maxResults:ListReadSets' :: ListReadSets -> Maybe Natural
$sel:filter':ListReadSets' :: ListReadSets -> Maybe ReadSetFilter
..} =
    forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"/sequencestore/",
        forall a. ToByteString a => a -> ByteString
Data.toBS Text
sequenceStoreId,
        ByteString
"/readsets"
      ]

instance Data.ToQuery ListReadSets where
  toQuery :: ListReadSets -> QueryString
toQuery ListReadSets' {Maybe Natural
Maybe Text
Maybe ReadSetFilter
Text
sequenceStoreId :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
filter' :: Maybe ReadSetFilter
$sel:sequenceStoreId:ListReadSets' :: ListReadSets -> Text
$sel:nextToken:ListReadSets' :: ListReadSets -> Maybe Text
$sel:maxResults:ListReadSets' :: ListReadSets -> Maybe Natural
$sel:filter':ListReadSets' :: ListReadSets -> Maybe ReadSetFilter
..} =
    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:/ 'newListReadSetsResponse' smart constructor.
data ListReadSetsResponse = ListReadSetsResponse'
  { -- | A pagination token that\'s included if more results are available.
    ListReadSetsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    ListReadSetsResponse -> Int
httpStatus :: Prelude.Int,
    -- | A list of read sets.
    ListReadSetsResponse -> [ReadSetListItem]
readSets :: [ReadSetListItem]
  }
  deriving (ListReadSetsResponse -> ListReadSetsResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListReadSetsResponse -> ListReadSetsResponse -> Bool
$c/= :: ListReadSetsResponse -> ListReadSetsResponse -> Bool
== :: ListReadSetsResponse -> ListReadSetsResponse -> Bool
$c== :: ListReadSetsResponse -> ListReadSetsResponse -> Bool
Prelude.Eq, ReadPrec [ListReadSetsResponse]
ReadPrec ListReadSetsResponse
Int -> ReadS ListReadSetsResponse
ReadS [ListReadSetsResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListReadSetsResponse]
$creadListPrec :: ReadPrec [ListReadSetsResponse]
readPrec :: ReadPrec ListReadSetsResponse
$creadPrec :: ReadPrec ListReadSetsResponse
readList :: ReadS [ListReadSetsResponse]
$creadList :: ReadS [ListReadSetsResponse]
readsPrec :: Int -> ReadS ListReadSetsResponse
$creadsPrec :: Int -> ReadS ListReadSetsResponse
Prelude.Read, Int -> ListReadSetsResponse -> ShowS
[ListReadSetsResponse] -> ShowS
ListReadSetsResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListReadSetsResponse] -> ShowS
$cshowList :: [ListReadSetsResponse] -> ShowS
show :: ListReadSetsResponse -> String
$cshow :: ListReadSetsResponse -> String
showsPrec :: Int -> ListReadSetsResponse -> ShowS
$cshowsPrec :: Int -> ListReadSetsResponse -> ShowS
Prelude.Show, forall x. Rep ListReadSetsResponse x -> ListReadSetsResponse
forall x. ListReadSetsResponse -> Rep ListReadSetsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListReadSetsResponse x -> ListReadSetsResponse
$cfrom :: forall x. ListReadSetsResponse -> Rep ListReadSetsResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListReadSetsResponse' 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', 'listReadSetsResponse_nextToken' - A pagination token that\'s included if more results are available.
--
-- 'httpStatus', 'listReadSetsResponse_httpStatus' - The response's http status code.
--
-- 'readSets', 'listReadSetsResponse_readSets' - A list of read sets.
newListReadSetsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListReadSetsResponse
newListReadSetsResponse :: Int -> ListReadSetsResponse
newListReadSetsResponse Int
pHttpStatus_ =
  ListReadSetsResponse'
    { $sel:nextToken:ListReadSetsResponse' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListReadSetsResponse' :: Int
httpStatus = Int
pHttpStatus_,
      $sel:readSets:ListReadSetsResponse' :: [ReadSetListItem]
readSets = forall a. Monoid a => a
Prelude.mempty
    }

-- | A pagination token that\'s included if more results are available.
listReadSetsResponse_nextToken :: Lens.Lens' ListReadSetsResponse (Prelude.Maybe Prelude.Text)
listReadSetsResponse_nextToken :: Lens' ListReadSetsResponse (Maybe Text)
listReadSetsResponse_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListReadSetsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListReadSetsResponse' :: ListReadSetsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListReadSetsResponse
s@ListReadSetsResponse' {} Maybe Text
a -> ListReadSetsResponse
s {$sel:nextToken:ListReadSetsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListReadSetsResponse)

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

-- | A list of read sets.
listReadSetsResponse_readSets :: Lens.Lens' ListReadSetsResponse [ReadSetListItem]
listReadSetsResponse_readSets :: Lens' ListReadSetsResponse [ReadSetListItem]
listReadSetsResponse_readSets = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListReadSetsResponse' {[ReadSetListItem]
readSets :: [ReadSetListItem]
$sel:readSets:ListReadSetsResponse' :: ListReadSetsResponse -> [ReadSetListItem]
readSets} -> [ReadSetListItem]
readSets) (\s :: ListReadSetsResponse
s@ListReadSetsResponse' {} [ReadSetListItem]
a -> ListReadSetsResponse
s {$sel:readSets:ListReadSetsResponse' :: [ReadSetListItem]
readSets = [ReadSetListItem]
a} :: ListReadSetsResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

instance Prelude.NFData ListReadSetsResponse where
  rnf :: ListReadSetsResponse -> ()
rnf ListReadSetsResponse' {Int
[ReadSetListItem]
Maybe Text
readSets :: [ReadSetListItem]
httpStatus :: Int
nextToken :: Maybe Text
$sel:readSets:ListReadSetsResponse' :: ListReadSetsResponse -> [ReadSetListItem]
$sel:httpStatus:ListReadSetsResponse' :: ListReadSetsResponse -> Int
$sel:nextToken:ListReadSetsResponse' :: ListReadSetsResponse -> Maybe Text
..} =
    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
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf [ReadSetListItem]
readSets