{-# 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.AlexaBusiness.ListSkillsStoreCategories
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Lists all categories in the Alexa skill store.
--
-- This operation returns paginated results.
module Amazonka.AlexaBusiness.ListSkillsStoreCategories
  ( -- * Creating a Request
    ListSkillsStoreCategories (..),
    newListSkillsStoreCategories,

    -- * Request Lenses
    listSkillsStoreCategories_maxResults,
    listSkillsStoreCategories_nextToken,

    -- * Destructuring the Response
    ListSkillsStoreCategoriesResponse (..),
    newListSkillsStoreCategoriesResponse,

    -- * Response Lenses
    listSkillsStoreCategoriesResponse_categoryList,
    listSkillsStoreCategoriesResponse_nextToken,
    listSkillsStoreCategoriesResponse_httpStatus,
  )
where

import Amazonka.AlexaBusiness.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:/ 'newListSkillsStoreCategories' smart constructor.
data ListSkillsStoreCategories = ListSkillsStoreCategories'
  { -- | The maximum number of categories returned, per paginated calls.
    ListSkillsStoreCategories -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
    -- | The tokens used for pagination.
    ListSkillsStoreCategories -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text
  }
  deriving (ListSkillsStoreCategories -> ListSkillsStoreCategories -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListSkillsStoreCategories -> ListSkillsStoreCategories -> Bool
$c/= :: ListSkillsStoreCategories -> ListSkillsStoreCategories -> Bool
== :: ListSkillsStoreCategories -> ListSkillsStoreCategories -> Bool
$c== :: ListSkillsStoreCategories -> ListSkillsStoreCategories -> Bool
Prelude.Eq, ReadPrec [ListSkillsStoreCategories]
ReadPrec ListSkillsStoreCategories
Int -> ReadS ListSkillsStoreCategories
ReadS [ListSkillsStoreCategories]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListSkillsStoreCategories]
$creadListPrec :: ReadPrec [ListSkillsStoreCategories]
readPrec :: ReadPrec ListSkillsStoreCategories
$creadPrec :: ReadPrec ListSkillsStoreCategories
readList :: ReadS [ListSkillsStoreCategories]
$creadList :: ReadS [ListSkillsStoreCategories]
readsPrec :: Int -> ReadS ListSkillsStoreCategories
$creadsPrec :: Int -> ReadS ListSkillsStoreCategories
Prelude.Read, Int -> ListSkillsStoreCategories -> ShowS
[ListSkillsStoreCategories] -> ShowS
ListSkillsStoreCategories -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListSkillsStoreCategories] -> ShowS
$cshowList :: [ListSkillsStoreCategories] -> ShowS
show :: ListSkillsStoreCategories -> String
$cshow :: ListSkillsStoreCategories -> String
showsPrec :: Int -> ListSkillsStoreCategories -> ShowS
$cshowsPrec :: Int -> ListSkillsStoreCategories -> ShowS
Prelude.Show, forall x.
Rep ListSkillsStoreCategories x -> ListSkillsStoreCategories
forall x.
ListSkillsStoreCategories -> Rep ListSkillsStoreCategories x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListSkillsStoreCategories x -> ListSkillsStoreCategories
$cfrom :: forall x.
ListSkillsStoreCategories -> Rep ListSkillsStoreCategories x
Prelude.Generic)

-- |
-- Create a value of 'ListSkillsStoreCategories' 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', 'listSkillsStoreCategories_maxResults' - The maximum number of categories returned, per paginated calls.
--
-- 'nextToken', 'listSkillsStoreCategories_nextToken' - The tokens used for pagination.
newListSkillsStoreCategories ::
  ListSkillsStoreCategories
newListSkillsStoreCategories :: ListSkillsStoreCategories
newListSkillsStoreCategories =
  ListSkillsStoreCategories'
    { $sel:maxResults:ListSkillsStoreCategories' :: Maybe Natural
maxResults =
        forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListSkillsStoreCategories' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing
    }

-- | The maximum number of categories returned, per paginated calls.
listSkillsStoreCategories_maxResults :: Lens.Lens' ListSkillsStoreCategories (Prelude.Maybe Prelude.Natural)
listSkillsStoreCategories_maxResults :: Lens' ListSkillsStoreCategories (Maybe Natural)
listSkillsStoreCategories_maxResults = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListSkillsStoreCategories' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListSkillsStoreCategories' :: ListSkillsStoreCategories -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListSkillsStoreCategories
s@ListSkillsStoreCategories' {} Maybe Natural
a -> ListSkillsStoreCategories
s {$sel:maxResults:ListSkillsStoreCategories' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListSkillsStoreCategories)

-- | The tokens used for pagination.
listSkillsStoreCategories_nextToken :: Lens.Lens' ListSkillsStoreCategories (Prelude.Maybe Prelude.Text)
listSkillsStoreCategories_nextToken :: Lens' ListSkillsStoreCategories (Maybe Text)
listSkillsStoreCategories_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListSkillsStoreCategories' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListSkillsStoreCategories' :: ListSkillsStoreCategories -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListSkillsStoreCategories
s@ListSkillsStoreCategories' {} Maybe Text
a -> ListSkillsStoreCategories
s {$sel:nextToken:ListSkillsStoreCategories' :: Maybe Text
nextToken = Maybe Text
a} :: ListSkillsStoreCategories)

instance Core.AWSPager ListSkillsStoreCategories where
  page :: ListSkillsStoreCategories
-> AWSResponse ListSkillsStoreCategories
-> Maybe ListSkillsStoreCategories
page ListSkillsStoreCategories
rq AWSResponse ListSkillsStoreCategories
rs
    | forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse ListSkillsStoreCategories
rs
            forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListSkillsStoreCategoriesResponse (Maybe Text)
listSkillsStoreCategoriesResponse_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 ListSkillsStoreCategories
rs
            forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListSkillsStoreCategoriesResponse (Maybe [Category])
listSkillsStoreCategoriesResponse_categoryList
            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.$ ListSkillsStoreCategories
rq
          forall a b. a -> (a -> b) -> b
Prelude.& Lens' ListSkillsStoreCategories (Maybe Text)
listSkillsStoreCategories_nextToken
          forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListSkillsStoreCategories
rs
          forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListSkillsStoreCategoriesResponse (Maybe Text)
listSkillsStoreCategoriesResponse_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 ListSkillsStoreCategories where
  type
    AWSResponse ListSkillsStoreCategories =
      ListSkillsStoreCategoriesResponse
  request :: (Service -> Service)
-> ListSkillsStoreCategories -> Request ListSkillsStoreCategories
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 ListSkillsStoreCategories
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse ListSkillsStoreCategories)))
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 [Category]
-> Maybe Text -> Int -> ListSkillsStoreCategoriesResponse
ListSkillsStoreCategoriesResponse'
            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
"CategoryList" 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 ListSkillsStoreCategories where
  hashWithSalt :: Int -> ListSkillsStoreCategories -> Int
hashWithSalt Int
_salt ListSkillsStoreCategories' {Maybe Natural
Maybe Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:nextToken:ListSkillsStoreCategories' :: ListSkillsStoreCategories -> Maybe Text
$sel:maxResults:ListSkillsStoreCategories' :: ListSkillsStoreCategories -> 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 ListSkillsStoreCategories where
  rnf :: ListSkillsStoreCategories -> ()
rnf ListSkillsStoreCategories' {Maybe Natural
Maybe Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:nextToken:ListSkillsStoreCategories' :: ListSkillsStoreCategories -> Maybe Text
$sel:maxResults:ListSkillsStoreCategories' :: ListSkillsStoreCategories -> 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 ListSkillsStoreCategories where
  toHeaders :: ListSkillsStoreCategories -> ResponseHeaders
toHeaders =
    forall a b. a -> b -> a
Prelude.const
      ( forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ HeaderName
"X-Amz-Target"
              forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"AlexaForBusiness.ListSkillsStoreCategories" ::
                          Prelude.ByteString
                      ),
            HeaderName
"Content-Type"
              forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"application/x-amz-json-1.1" ::
                          Prelude.ByteString
                      )
          ]
      )

instance Data.ToJSON ListSkillsStoreCategories where
  toJSON :: ListSkillsStoreCategories -> Value
toJSON ListSkillsStoreCategories' {Maybe Natural
Maybe Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:nextToken:ListSkillsStoreCategories' :: ListSkillsStoreCategories -> Maybe Text
$sel:maxResults:ListSkillsStoreCategories' :: ListSkillsStoreCategories -> Maybe Natural
..} =
    [Pair] -> Value
Data.object
      ( forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Key
"MaxResults" 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 Natural
maxResults,
            (Key
"NextToken" 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 Text
nextToken
          ]
      )

instance Data.ToPath ListSkillsStoreCategories where
  toPath :: ListSkillsStoreCategories -> ByteString
toPath = forall a b. a -> b -> a
Prelude.const ByteString
"/"

instance Data.ToQuery ListSkillsStoreCategories where
  toQuery :: ListSkillsStoreCategories -> QueryString
toQuery = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty

-- | /See:/ 'newListSkillsStoreCategoriesResponse' smart constructor.
data ListSkillsStoreCategoriesResponse = ListSkillsStoreCategoriesResponse'
  { -- | The list of categories.
    ListSkillsStoreCategoriesResponse -> Maybe [Category]
categoryList :: Prelude.Maybe [Category],
    -- | The tokens used for pagination.
    ListSkillsStoreCategoriesResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    ListSkillsStoreCategoriesResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (ListSkillsStoreCategoriesResponse
-> ListSkillsStoreCategoriesResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListSkillsStoreCategoriesResponse
-> ListSkillsStoreCategoriesResponse -> Bool
$c/= :: ListSkillsStoreCategoriesResponse
-> ListSkillsStoreCategoriesResponse -> Bool
== :: ListSkillsStoreCategoriesResponse
-> ListSkillsStoreCategoriesResponse -> Bool
$c== :: ListSkillsStoreCategoriesResponse
-> ListSkillsStoreCategoriesResponse -> Bool
Prelude.Eq, ReadPrec [ListSkillsStoreCategoriesResponse]
ReadPrec ListSkillsStoreCategoriesResponse
Int -> ReadS ListSkillsStoreCategoriesResponse
ReadS [ListSkillsStoreCategoriesResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListSkillsStoreCategoriesResponse]
$creadListPrec :: ReadPrec [ListSkillsStoreCategoriesResponse]
readPrec :: ReadPrec ListSkillsStoreCategoriesResponse
$creadPrec :: ReadPrec ListSkillsStoreCategoriesResponse
readList :: ReadS [ListSkillsStoreCategoriesResponse]
$creadList :: ReadS [ListSkillsStoreCategoriesResponse]
readsPrec :: Int -> ReadS ListSkillsStoreCategoriesResponse
$creadsPrec :: Int -> ReadS ListSkillsStoreCategoriesResponse
Prelude.Read, Int -> ListSkillsStoreCategoriesResponse -> ShowS
[ListSkillsStoreCategoriesResponse] -> ShowS
ListSkillsStoreCategoriesResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListSkillsStoreCategoriesResponse] -> ShowS
$cshowList :: [ListSkillsStoreCategoriesResponse] -> ShowS
show :: ListSkillsStoreCategoriesResponse -> String
$cshow :: ListSkillsStoreCategoriesResponse -> String
showsPrec :: Int -> ListSkillsStoreCategoriesResponse -> ShowS
$cshowsPrec :: Int -> ListSkillsStoreCategoriesResponse -> ShowS
Prelude.Show, forall x.
Rep ListSkillsStoreCategoriesResponse x
-> ListSkillsStoreCategoriesResponse
forall x.
ListSkillsStoreCategoriesResponse
-> Rep ListSkillsStoreCategoriesResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListSkillsStoreCategoriesResponse x
-> ListSkillsStoreCategoriesResponse
$cfrom :: forall x.
ListSkillsStoreCategoriesResponse
-> Rep ListSkillsStoreCategoriesResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListSkillsStoreCategoriesResponse' 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:
--
-- 'categoryList', 'listSkillsStoreCategoriesResponse_categoryList' - The list of categories.
--
-- 'nextToken', 'listSkillsStoreCategoriesResponse_nextToken' - The tokens used for pagination.
--
-- 'httpStatus', 'listSkillsStoreCategoriesResponse_httpStatus' - The response's http status code.
newListSkillsStoreCategoriesResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListSkillsStoreCategoriesResponse
newListSkillsStoreCategoriesResponse :: Int -> ListSkillsStoreCategoriesResponse
newListSkillsStoreCategoriesResponse Int
pHttpStatus_ =
  ListSkillsStoreCategoriesResponse'
    { $sel:categoryList:ListSkillsStoreCategoriesResponse' :: Maybe [Category]
categoryList =
        forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListSkillsStoreCategoriesResponse' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListSkillsStoreCategoriesResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | The list of categories.
listSkillsStoreCategoriesResponse_categoryList :: Lens.Lens' ListSkillsStoreCategoriesResponse (Prelude.Maybe [Category])
listSkillsStoreCategoriesResponse_categoryList :: Lens' ListSkillsStoreCategoriesResponse (Maybe [Category])
listSkillsStoreCategoriesResponse_categoryList = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListSkillsStoreCategoriesResponse' {Maybe [Category]
categoryList :: Maybe [Category]
$sel:categoryList:ListSkillsStoreCategoriesResponse' :: ListSkillsStoreCategoriesResponse -> Maybe [Category]
categoryList} -> Maybe [Category]
categoryList) (\s :: ListSkillsStoreCategoriesResponse
s@ListSkillsStoreCategoriesResponse' {} Maybe [Category]
a -> ListSkillsStoreCategoriesResponse
s {$sel:categoryList:ListSkillsStoreCategoriesResponse' :: Maybe [Category]
categoryList = Maybe [Category]
a} :: ListSkillsStoreCategoriesResponse) 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 tokens used for pagination.
listSkillsStoreCategoriesResponse_nextToken :: Lens.Lens' ListSkillsStoreCategoriesResponse (Prelude.Maybe Prelude.Text)
listSkillsStoreCategoriesResponse_nextToken :: Lens' ListSkillsStoreCategoriesResponse (Maybe Text)
listSkillsStoreCategoriesResponse_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListSkillsStoreCategoriesResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListSkillsStoreCategoriesResponse' :: ListSkillsStoreCategoriesResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListSkillsStoreCategoriesResponse
s@ListSkillsStoreCategoriesResponse' {} Maybe Text
a -> ListSkillsStoreCategoriesResponse
s {$sel:nextToken:ListSkillsStoreCategoriesResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListSkillsStoreCategoriesResponse)

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

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