{-# 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.Personalize.ListSolutions
-- 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 solutions that use the given dataset group. When a
-- dataset group is not specified, all the solutions associated with the
-- account are listed. The response provides the properties for each
-- solution, including the Amazon Resource Name (ARN). For more information
-- on solutions, see
-- <https://docs.aws.amazon.com/personalize/latest/dg/API_CreateSolution.html CreateSolution>.
--
-- This operation returns paginated results.
module Amazonka.Personalize.ListSolutions
  ( -- * Creating a Request
    ListSolutions (..),
    newListSolutions,

    -- * Request Lenses
    listSolutions_datasetGroupArn,
    listSolutions_maxResults,
    listSolutions_nextToken,

    -- * Destructuring the Response
    ListSolutionsResponse (..),
    newListSolutionsResponse,

    -- * Response Lenses
    listSolutionsResponse_nextToken,
    listSolutionsResponse_solutions,
    listSolutionsResponse_httpStatus,
  )
where

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

-- | /See:/ 'newListSolutions' smart constructor.
data ListSolutions = ListSolutions'
  { -- | The Amazon Resource Name (ARN) of the dataset group.
    ListSolutions -> Maybe Text
datasetGroupArn :: Prelude.Maybe Prelude.Text,
    -- | The maximum number of solutions to return.
    ListSolutions -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
    -- | A token returned from the previous call to @ListSolutions@ for getting
    -- the next set of solutions (if they exist).
    ListSolutions -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text
  }
  deriving (ListSolutions -> ListSolutions -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListSolutions -> ListSolutions -> Bool
$c/= :: ListSolutions -> ListSolutions -> Bool
== :: ListSolutions -> ListSolutions -> Bool
$c== :: ListSolutions -> ListSolutions -> Bool
Prelude.Eq, ReadPrec [ListSolutions]
ReadPrec ListSolutions
Int -> ReadS ListSolutions
ReadS [ListSolutions]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListSolutions]
$creadListPrec :: ReadPrec [ListSolutions]
readPrec :: ReadPrec ListSolutions
$creadPrec :: ReadPrec ListSolutions
readList :: ReadS [ListSolutions]
$creadList :: ReadS [ListSolutions]
readsPrec :: Int -> ReadS ListSolutions
$creadsPrec :: Int -> ReadS ListSolutions
Prelude.Read, Int -> ListSolutions -> ShowS
[ListSolutions] -> ShowS
ListSolutions -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListSolutions] -> ShowS
$cshowList :: [ListSolutions] -> ShowS
show :: ListSolutions -> String
$cshow :: ListSolutions -> String
showsPrec :: Int -> ListSolutions -> ShowS
$cshowsPrec :: Int -> ListSolutions -> ShowS
Prelude.Show, forall x. Rep ListSolutions x -> ListSolutions
forall x. ListSolutions -> Rep ListSolutions x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListSolutions x -> ListSolutions
$cfrom :: forall x. ListSolutions -> Rep ListSolutions x
Prelude.Generic)

-- |
-- Create a value of 'ListSolutions' 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:
--
-- 'datasetGroupArn', 'listSolutions_datasetGroupArn' - The Amazon Resource Name (ARN) of the dataset group.
--
-- 'maxResults', 'listSolutions_maxResults' - The maximum number of solutions to return.
--
-- 'nextToken', 'listSolutions_nextToken' - A token returned from the previous call to @ListSolutions@ for getting
-- the next set of solutions (if they exist).
newListSolutions ::
  ListSolutions
newListSolutions :: ListSolutions
newListSolutions =
  ListSolutions'
    { $sel:datasetGroupArn:ListSolutions' :: Maybe Text
datasetGroupArn = forall a. Maybe a
Prelude.Nothing,
      $sel:maxResults:ListSolutions' :: Maybe Natural
maxResults = forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListSolutions' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing
    }

-- | The Amazon Resource Name (ARN) of the dataset group.
listSolutions_datasetGroupArn :: Lens.Lens' ListSolutions (Prelude.Maybe Prelude.Text)
listSolutions_datasetGroupArn :: Lens' ListSolutions (Maybe Text)
listSolutions_datasetGroupArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListSolutions' {Maybe Text
datasetGroupArn :: Maybe Text
$sel:datasetGroupArn:ListSolutions' :: ListSolutions -> Maybe Text
datasetGroupArn} -> Maybe Text
datasetGroupArn) (\s :: ListSolutions
s@ListSolutions' {} Maybe Text
a -> ListSolutions
s {$sel:datasetGroupArn:ListSolutions' :: Maybe Text
datasetGroupArn = Maybe Text
a} :: ListSolutions)

-- | The maximum number of solutions to return.
listSolutions_maxResults :: Lens.Lens' ListSolutions (Prelude.Maybe Prelude.Natural)
listSolutions_maxResults :: Lens' ListSolutions (Maybe Natural)
listSolutions_maxResults = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListSolutions' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListSolutions' :: ListSolutions -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListSolutions
s@ListSolutions' {} Maybe Natural
a -> ListSolutions
s {$sel:maxResults:ListSolutions' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListSolutions)

-- | A token returned from the previous call to @ListSolutions@ for getting
-- the next set of solutions (if they exist).
listSolutions_nextToken :: Lens.Lens' ListSolutions (Prelude.Maybe Prelude.Text)
listSolutions_nextToken :: Lens' ListSolutions (Maybe Text)
listSolutions_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListSolutions' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListSolutions' :: ListSolutions -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListSolutions
s@ListSolutions' {} Maybe Text
a -> ListSolutions
s {$sel:nextToken:ListSolutions' :: Maybe Text
nextToken = Maybe Text
a} :: ListSolutions)

instance Core.AWSPager ListSolutions where
  page :: ListSolutions -> AWSResponse ListSolutions -> Maybe ListSolutions
page ListSolutions
rq AWSResponse ListSolutions
rs
    | forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse ListSolutions
rs
            forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListSolutionsResponse (Maybe Text)
listSolutionsResponse_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 ListSolutions
rs
            forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListSolutionsResponse (Maybe [SolutionSummary])
listSolutionsResponse_solutions
            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.$ ListSolutions
rq
          forall a b. a -> (a -> b) -> b
Prelude.& Lens' ListSolutions (Maybe Text)
listSolutions_nextToken
          forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListSolutions
rs
          forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListSolutionsResponse (Maybe Text)
listSolutionsResponse_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 ListSolutions where
  type
    AWSResponse ListSolutions =
      ListSolutionsResponse
  request :: (Service -> Service) -> ListSolutions -> Request ListSolutions
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 ListSolutions
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListSolutions)))
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
-> Maybe [SolutionSummary] -> Int -> ListSolutionsResponse
ListSolutionsResponse'
            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.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"solutions" 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.<*> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
      )

instance Prelude.Hashable ListSolutions where
  hashWithSalt :: Int -> ListSolutions -> Int
hashWithSalt Int
_salt ListSolutions' {Maybe Natural
Maybe Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
datasetGroupArn :: Maybe Text
$sel:nextToken:ListSolutions' :: ListSolutions -> Maybe Text
$sel:maxResults:ListSolutions' :: ListSolutions -> Maybe Natural
$sel:datasetGroupArn:ListSolutions' :: ListSolutions -> Maybe Text
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
datasetGroupArn
      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 ListSolutions where
  rnf :: ListSolutions -> ()
rnf ListSolutions' {Maybe Natural
Maybe Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
datasetGroupArn :: Maybe Text
$sel:nextToken:ListSolutions' :: ListSolutions -> Maybe Text
$sel:maxResults:ListSolutions' :: ListSolutions -> Maybe Natural
$sel:datasetGroupArn:ListSolutions' :: ListSolutions -> Maybe Text
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
datasetGroupArn
      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

instance Data.ToHeaders ListSolutions where
  toHeaders :: ListSolutions -> 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
"AmazonPersonalize.ListSolutions" ::
                          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 ListSolutions where
  toJSON :: ListSolutions -> Value
toJSON ListSolutions' {Maybe Natural
Maybe Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
datasetGroupArn :: Maybe Text
$sel:nextToken:ListSolutions' :: ListSolutions -> Maybe Text
$sel:maxResults:ListSolutions' :: ListSolutions -> Maybe Natural
$sel:datasetGroupArn:ListSolutions' :: ListSolutions -> Maybe Text
..} =
    [Pair] -> Value
Data.object
      ( forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Key
"datasetGroupArn" 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
datasetGroupArn,
            (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 ListSolutions where
  toPath :: ListSolutions -> ByteString
toPath = forall a b. a -> b -> a
Prelude.const ByteString
"/"

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

-- | /See:/ 'newListSolutionsResponse' smart constructor.
data ListSolutionsResponse = ListSolutionsResponse'
  { -- | A token for getting the next set of solutions (if they exist).
    ListSolutionsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | A list of the current solutions.
    ListSolutionsResponse -> Maybe [SolutionSummary]
solutions :: Prelude.Maybe [SolutionSummary],
    -- | The response's http status code.
    ListSolutionsResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (ListSolutionsResponse -> ListSolutionsResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListSolutionsResponse -> ListSolutionsResponse -> Bool
$c/= :: ListSolutionsResponse -> ListSolutionsResponse -> Bool
== :: ListSolutionsResponse -> ListSolutionsResponse -> Bool
$c== :: ListSolutionsResponse -> ListSolutionsResponse -> Bool
Prelude.Eq, ReadPrec [ListSolutionsResponse]
ReadPrec ListSolutionsResponse
Int -> ReadS ListSolutionsResponse
ReadS [ListSolutionsResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListSolutionsResponse]
$creadListPrec :: ReadPrec [ListSolutionsResponse]
readPrec :: ReadPrec ListSolutionsResponse
$creadPrec :: ReadPrec ListSolutionsResponse
readList :: ReadS [ListSolutionsResponse]
$creadList :: ReadS [ListSolutionsResponse]
readsPrec :: Int -> ReadS ListSolutionsResponse
$creadsPrec :: Int -> ReadS ListSolutionsResponse
Prelude.Read, Int -> ListSolutionsResponse -> ShowS
[ListSolutionsResponse] -> ShowS
ListSolutionsResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListSolutionsResponse] -> ShowS
$cshowList :: [ListSolutionsResponse] -> ShowS
show :: ListSolutionsResponse -> String
$cshow :: ListSolutionsResponse -> String
showsPrec :: Int -> ListSolutionsResponse -> ShowS
$cshowsPrec :: Int -> ListSolutionsResponse -> ShowS
Prelude.Show, forall x. Rep ListSolutionsResponse x -> ListSolutionsResponse
forall x. ListSolutionsResponse -> Rep ListSolutionsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListSolutionsResponse x -> ListSolutionsResponse
$cfrom :: forall x. ListSolutionsResponse -> Rep ListSolutionsResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListSolutionsResponse' 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', 'listSolutionsResponse_nextToken' - A token for getting the next set of solutions (if they exist).
--
-- 'solutions', 'listSolutionsResponse_solutions' - A list of the current solutions.
--
-- 'httpStatus', 'listSolutionsResponse_httpStatus' - The response's http status code.
newListSolutionsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListSolutionsResponse
newListSolutionsResponse :: Int -> ListSolutionsResponse
newListSolutionsResponse Int
pHttpStatus_ =
  ListSolutionsResponse'
    { $sel:nextToken:ListSolutionsResponse' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
      $sel:solutions:ListSolutionsResponse' :: Maybe [SolutionSummary]
solutions = forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListSolutionsResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | A token for getting the next set of solutions (if they exist).
listSolutionsResponse_nextToken :: Lens.Lens' ListSolutionsResponse (Prelude.Maybe Prelude.Text)
listSolutionsResponse_nextToken :: Lens' ListSolutionsResponse (Maybe Text)
listSolutionsResponse_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListSolutionsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListSolutionsResponse' :: ListSolutionsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListSolutionsResponse
s@ListSolutionsResponse' {} Maybe Text
a -> ListSolutionsResponse
s {$sel:nextToken:ListSolutionsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListSolutionsResponse)

-- | A list of the current solutions.
listSolutionsResponse_solutions :: Lens.Lens' ListSolutionsResponse (Prelude.Maybe [SolutionSummary])
listSolutionsResponse_solutions :: Lens' ListSolutionsResponse (Maybe [SolutionSummary])
listSolutionsResponse_solutions = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListSolutionsResponse' {Maybe [SolutionSummary]
solutions :: Maybe [SolutionSummary]
$sel:solutions:ListSolutionsResponse' :: ListSolutionsResponse -> Maybe [SolutionSummary]
solutions} -> Maybe [SolutionSummary]
solutions) (\s :: ListSolutionsResponse
s@ListSolutionsResponse' {} Maybe [SolutionSummary]
a -> ListSolutionsResponse
s {$sel:solutions:ListSolutionsResponse' :: Maybe [SolutionSummary]
solutions = Maybe [SolutionSummary]
a} :: ListSolutionsResponse) 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 response's http status code.
listSolutionsResponse_httpStatus :: Lens.Lens' ListSolutionsResponse Prelude.Int
listSolutionsResponse_httpStatus :: Lens' ListSolutionsResponse Int
listSolutionsResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListSolutionsResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListSolutionsResponse' :: ListSolutionsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListSolutionsResponse
s@ListSolutionsResponse' {} Int
a -> ListSolutionsResponse
s {$sel:httpStatus:ListSolutionsResponse' :: Int
httpStatus = Int
a} :: ListSolutionsResponse)

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