{-# 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.MediaConnect.ListEntitlements
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Displays a list of all entitlements that have been granted to this
-- account. This request returns 20 results per page.
--
-- This operation returns paginated results.
module Amazonka.MediaConnect.ListEntitlements
  ( -- * Creating a Request
    ListEntitlements (..),
    newListEntitlements,

    -- * Request Lenses
    listEntitlements_maxResults,
    listEntitlements_nextToken,

    -- * Destructuring the Response
    ListEntitlementsResponse (..),
    newListEntitlementsResponse,

    -- * Response Lenses
    listEntitlementsResponse_entitlements,
    listEntitlementsResponse_nextToken,
    listEntitlementsResponse_httpStatus,
  )
where

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

-- | /See:/ 'newListEntitlements' smart constructor.
data ListEntitlements = ListEntitlements'
  { -- | The maximum number of results to return per API request. For example,
    -- you submit a ListEntitlements request with MaxResults set at 5. Although
    -- 20 items match your request, the service returns no more than the first
    -- 5 items. (The service also returns a NextToken value that you can use to
    -- fetch the next batch of results.) The service might return fewer results
    -- than the MaxResults value. If MaxResults is not included in the request,
    -- the service defaults to pagination with a maximum of 20 results per
    -- page.
    ListEntitlements -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
    -- | The token that identifies which batch of results that you want to see.
    -- For example, you submit a ListEntitlements request with MaxResults set
    -- at 5. The service returns the first batch of results (up to 5) and a
    -- NextToken value. To see the next batch of results, you can submit the
    -- ListEntitlements request a second time and specify the NextToken value.
    ListEntitlements -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text
  }
  deriving (ListEntitlements -> ListEntitlements -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListEntitlements -> ListEntitlements -> Bool
$c/= :: ListEntitlements -> ListEntitlements -> Bool
== :: ListEntitlements -> ListEntitlements -> Bool
$c== :: ListEntitlements -> ListEntitlements -> Bool
Prelude.Eq, ReadPrec [ListEntitlements]
ReadPrec ListEntitlements
Int -> ReadS ListEntitlements
ReadS [ListEntitlements]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListEntitlements]
$creadListPrec :: ReadPrec [ListEntitlements]
readPrec :: ReadPrec ListEntitlements
$creadPrec :: ReadPrec ListEntitlements
readList :: ReadS [ListEntitlements]
$creadList :: ReadS [ListEntitlements]
readsPrec :: Int -> ReadS ListEntitlements
$creadsPrec :: Int -> ReadS ListEntitlements
Prelude.Read, Int -> ListEntitlements -> ShowS
[ListEntitlements] -> ShowS
ListEntitlements -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListEntitlements] -> ShowS
$cshowList :: [ListEntitlements] -> ShowS
show :: ListEntitlements -> String
$cshow :: ListEntitlements -> String
showsPrec :: Int -> ListEntitlements -> ShowS
$cshowsPrec :: Int -> ListEntitlements -> ShowS
Prelude.Show, forall x. Rep ListEntitlements x -> ListEntitlements
forall x. ListEntitlements -> Rep ListEntitlements x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListEntitlements x -> ListEntitlements
$cfrom :: forall x. ListEntitlements -> Rep ListEntitlements x
Prelude.Generic)

-- |
-- Create a value of 'ListEntitlements' 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', 'listEntitlements_maxResults' - The maximum number of results to return per API request. For example,
-- you submit a ListEntitlements request with MaxResults set at 5. Although
-- 20 items match your request, the service returns no more than the first
-- 5 items. (The service also returns a NextToken value that you can use to
-- fetch the next batch of results.) The service might return fewer results
-- than the MaxResults value. If MaxResults is not included in the request,
-- the service defaults to pagination with a maximum of 20 results per
-- page.
--
-- 'nextToken', 'listEntitlements_nextToken' - The token that identifies which batch of results that you want to see.
-- For example, you submit a ListEntitlements request with MaxResults set
-- at 5. The service returns the first batch of results (up to 5) and a
-- NextToken value. To see the next batch of results, you can submit the
-- ListEntitlements request a second time and specify the NextToken value.
newListEntitlements ::
  ListEntitlements
newListEntitlements :: ListEntitlements
newListEntitlements =
  ListEntitlements'
    { $sel:maxResults:ListEntitlements' :: Maybe Natural
maxResults = forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListEntitlements' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing
    }

-- | The maximum number of results to return per API request. For example,
-- you submit a ListEntitlements request with MaxResults set at 5. Although
-- 20 items match your request, the service returns no more than the first
-- 5 items. (The service also returns a NextToken value that you can use to
-- fetch the next batch of results.) The service might return fewer results
-- than the MaxResults value. If MaxResults is not included in the request,
-- the service defaults to pagination with a maximum of 20 results per
-- page.
listEntitlements_maxResults :: Lens.Lens' ListEntitlements (Prelude.Maybe Prelude.Natural)
listEntitlements_maxResults :: Lens' ListEntitlements (Maybe Natural)
listEntitlements_maxResults = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListEntitlements' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListEntitlements' :: ListEntitlements -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListEntitlements
s@ListEntitlements' {} Maybe Natural
a -> ListEntitlements
s {$sel:maxResults:ListEntitlements' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListEntitlements)

-- | The token that identifies which batch of results that you want to see.
-- For example, you submit a ListEntitlements request with MaxResults set
-- at 5. The service returns the first batch of results (up to 5) and a
-- NextToken value. To see the next batch of results, you can submit the
-- ListEntitlements request a second time and specify the NextToken value.
listEntitlements_nextToken :: Lens.Lens' ListEntitlements (Prelude.Maybe Prelude.Text)
listEntitlements_nextToken :: Lens' ListEntitlements (Maybe Text)
listEntitlements_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListEntitlements' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListEntitlements' :: ListEntitlements -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListEntitlements
s@ListEntitlements' {} Maybe Text
a -> ListEntitlements
s {$sel:nextToken:ListEntitlements' :: Maybe Text
nextToken = Maybe Text
a} :: ListEntitlements)

instance Core.AWSPager ListEntitlements where
  page :: ListEntitlements
-> AWSResponse ListEntitlements -> Maybe ListEntitlements
page ListEntitlements
rq AWSResponse ListEntitlements
rs
    | forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse ListEntitlements
rs
            forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListEntitlementsResponse (Maybe Text)
listEntitlementsResponse_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 ListEntitlements
rs
            forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListEntitlementsResponse (Maybe [ListedEntitlement])
listEntitlementsResponse_entitlements
            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
    | Bool
Prelude.otherwise =
        forall a. a -> Maybe a
Prelude.Just
          forall a b. (a -> b) -> a -> b
Prelude.$ ListEntitlements
rq
          forall a b. a -> (a -> b) -> b
Prelude.& Lens' ListEntitlements (Maybe Text)
listEntitlements_nextToken
          forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListEntitlements
rs
          forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListEntitlementsResponse (Maybe Text)
listEntitlementsResponse_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 ListEntitlements where
  type
    AWSResponse ListEntitlements =
      ListEntitlementsResponse
  request :: (Service -> Service)
-> ListEntitlements -> Request ListEntitlements
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 ListEntitlements
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListEntitlements)))
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 [ListedEntitlement]
-> Maybe Text -> Int -> ListEntitlementsResponse
ListEntitlementsResponse'
            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
"entitlements" 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 ListEntitlements where
  hashWithSalt :: Int -> ListEntitlements -> Int
hashWithSalt Int
_salt ListEntitlements' {Maybe Natural
Maybe Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:nextToken:ListEntitlements' :: ListEntitlements -> Maybe Text
$sel:maxResults:ListEntitlements' :: ListEntitlements -> 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

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

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

instance Data.ToQuery ListEntitlements where
  toQuery :: ListEntitlements -> QueryString
toQuery ListEntitlements' {Maybe Natural
Maybe Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:nextToken:ListEntitlements' :: ListEntitlements -> Maybe Text
$sel:maxResults:ListEntitlements' :: ListEntitlements -> 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:/ 'newListEntitlementsResponse' smart constructor.
data ListEntitlementsResponse = ListEntitlementsResponse'
  { -- | A list of entitlements that have been granted to you from other AWS
    -- accounts.
    ListEntitlementsResponse -> Maybe [ListedEntitlement]
entitlements :: Prelude.Maybe [ListedEntitlement],
    -- | The token that identifies which batch of results that you want to see.
    -- For example, you submit a ListEntitlements request with MaxResults set
    -- at 5. The service returns the first batch of results (up to 5) and a
    -- NextToken value. To see the next batch of results, you can submit the
    -- ListEntitlements request a second time and specify the NextToken value.
    ListEntitlementsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    ListEntitlementsResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (ListEntitlementsResponse -> ListEntitlementsResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListEntitlementsResponse -> ListEntitlementsResponse -> Bool
$c/= :: ListEntitlementsResponse -> ListEntitlementsResponse -> Bool
== :: ListEntitlementsResponse -> ListEntitlementsResponse -> Bool
$c== :: ListEntitlementsResponse -> ListEntitlementsResponse -> Bool
Prelude.Eq, ReadPrec [ListEntitlementsResponse]
ReadPrec ListEntitlementsResponse
Int -> ReadS ListEntitlementsResponse
ReadS [ListEntitlementsResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListEntitlementsResponse]
$creadListPrec :: ReadPrec [ListEntitlementsResponse]
readPrec :: ReadPrec ListEntitlementsResponse
$creadPrec :: ReadPrec ListEntitlementsResponse
readList :: ReadS [ListEntitlementsResponse]
$creadList :: ReadS [ListEntitlementsResponse]
readsPrec :: Int -> ReadS ListEntitlementsResponse
$creadsPrec :: Int -> ReadS ListEntitlementsResponse
Prelude.Read, Int -> ListEntitlementsResponse -> ShowS
[ListEntitlementsResponse] -> ShowS
ListEntitlementsResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListEntitlementsResponse] -> ShowS
$cshowList :: [ListEntitlementsResponse] -> ShowS
show :: ListEntitlementsResponse -> String
$cshow :: ListEntitlementsResponse -> String
showsPrec :: Int -> ListEntitlementsResponse -> ShowS
$cshowsPrec :: Int -> ListEntitlementsResponse -> ShowS
Prelude.Show, forall x.
Rep ListEntitlementsResponse x -> ListEntitlementsResponse
forall x.
ListEntitlementsResponse -> Rep ListEntitlementsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListEntitlementsResponse x -> ListEntitlementsResponse
$cfrom :: forall x.
ListEntitlementsResponse -> Rep ListEntitlementsResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListEntitlementsResponse' 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:
--
-- 'entitlements', 'listEntitlementsResponse_entitlements' - A list of entitlements that have been granted to you from other AWS
-- accounts.
--
-- 'nextToken', 'listEntitlementsResponse_nextToken' - The token that identifies which batch of results that you want to see.
-- For example, you submit a ListEntitlements request with MaxResults set
-- at 5. The service returns the first batch of results (up to 5) and a
-- NextToken value. To see the next batch of results, you can submit the
-- ListEntitlements request a second time and specify the NextToken value.
--
-- 'httpStatus', 'listEntitlementsResponse_httpStatus' - The response's http status code.
newListEntitlementsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListEntitlementsResponse
newListEntitlementsResponse :: Int -> ListEntitlementsResponse
newListEntitlementsResponse Int
pHttpStatus_ =
  ListEntitlementsResponse'
    { $sel:entitlements:ListEntitlementsResponse' :: Maybe [ListedEntitlement]
entitlements =
        forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListEntitlementsResponse' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListEntitlementsResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | A list of entitlements that have been granted to you from other AWS
-- accounts.
listEntitlementsResponse_entitlements :: Lens.Lens' ListEntitlementsResponse (Prelude.Maybe [ListedEntitlement])
listEntitlementsResponse_entitlements :: Lens' ListEntitlementsResponse (Maybe [ListedEntitlement])
listEntitlementsResponse_entitlements = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListEntitlementsResponse' {Maybe [ListedEntitlement]
entitlements :: Maybe [ListedEntitlement]
$sel:entitlements:ListEntitlementsResponse' :: ListEntitlementsResponse -> Maybe [ListedEntitlement]
entitlements} -> Maybe [ListedEntitlement]
entitlements) (\s :: ListEntitlementsResponse
s@ListEntitlementsResponse' {} Maybe [ListedEntitlement]
a -> ListEntitlementsResponse
s {$sel:entitlements:ListEntitlementsResponse' :: Maybe [ListedEntitlement]
entitlements = Maybe [ListedEntitlement]
a} :: ListEntitlementsResponse) 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 token that identifies which batch of results that you want to see.
-- For example, you submit a ListEntitlements request with MaxResults set
-- at 5. The service returns the first batch of results (up to 5) and a
-- NextToken value. To see the next batch of results, you can submit the
-- ListEntitlements request a second time and specify the NextToken value.
listEntitlementsResponse_nextToken :: Lens.Lens' ListEntitlementsResponse (Prelude.Maybe Prelude.Text)
listEntitlementsResponse_nextToken :: Lens' ListEntitlementsResponse (Maybe Text)
listEntitlementsResponse_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListEntitlementsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListEntitlementsResponse' :: ListEntitlementsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListEntitlementsResponse
s@ListEntitlementsResponse' {} Maybe Text
a -> ListEntitlementsResponse
s {$sel:nextToken:ListEntitlementsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListEntitlementsResponse)

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

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