{-# 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.Wisdom.QueryAssistant
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Performs a manual search against the specified assistant. To retrieve
-- recommendations for an assistant, use
-- <https://docs.aws.amazon.com/wisdom/latest/APIReference/API_GetRecommendations.html GetRecommendations>.
--
-- This operation returns paginated results.
module Amazonka.Wisdom.QueryAssistant
  ( -- * Creating a Request
    QueryAssistant (..),
    newQueryAssistant,

    -- * Request Lenses
    queryAssistant_maxResults,
    queryAssistant_nextToken,
    queryAssistant_assistantId,
    queryAssistant_queryText,

    -- * Destructuring the Response
    QueryAssistantResponse (..),
    newQueryAssistantResponse,

    -- * Response Lenses
    queryAssistantResponse_nextToken,
    queryAssistantResponse_httpStatus,
    queryAssistantResponse_results,
  )
where

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
import Amazonka.Wisdom.Types

-- | /See:/ 'newQueryAssistant' smart constructor.
data QueryAssistant = QueryAssistant'
  { -- | The maximum number of results to return per page.
    QueryAssistant -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
    -- | The token for the next set of results. Use the value returned in the
    -- previous response in the next request to retrieve the next set of
    -- results.
    QueryAssistant -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The identifier of the Wisdom assistant. Can be either the ID or the ARN.
    -- URLs cannot contain the ARN.
    QueryAssistant -> Text
assistantId :: Prelude.Text,
    -- | The text to search for.
    QueryAssistant -> Sensitive Text
queryText :: Data.Sensitive Prelude.Text
  }
  deriving (QueryAssistant -> QueryAssistant -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: QueryAssistant -> QueryAssistant -> Bool
$c/= :: QueryAssistant -> QueryAssistant -> Bool
== :: QueryAssistant -> QueryAssistant -> Bool
$c== :: QueryAssistant -> QueryAssistant -> Bool
Prelude.Eq, Int -> QueryAssistant -> ShowS
[QueryAssistant] -> ShowS
QueryAssistant -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [QueryAssistant] -> ShowS
$cshowList :: [QueryAssistant] -> ShowS
show :: QueryAssistant -> String
$cshow :: QueryAssistant -> String
showsPrec :: Int -> QueryAssistant -> ShowS
$cshowsPrec :: Int -> QueryAssistant -> ShowS
Prelude.Show, forall x. Rep QueryAssistant x -> QueryAssistant
forall x. QueryAssistant -> Rep QueryAssistant x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep QueryAssistant x -> QueryAssistant
$cfrom :: forall x. QueryAssistant -> Rep QueryAssistant x
Prelude.Generic)

-- |
-- Create a value of 'QueryAssistant' 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', 'queryAssistant_maxResults' - The maximum number of results to return per page.
--
-- 'nextToken', 'queryAssistant_nextToken' - The token for the next set of results. Use the value returned in the
-- previous response in the next request to retrieve the next set of
-- results.
--
-- 'assistantId', 'queryAssistant_assistantId' - The identifier of the Wisdom assistant. Can be either the ID or the ARN.
-- URLs cannot contain the ARN.
--
-- 'queryText', 'queryAssistant_queryText' - The text to search for.
newQueryAssistant ::
  -- | 'assistantId'
  Prelude.Text ->
  -- | 'queryText'
  Prelude.Text ->
  QueryAssistant
newQueryAssistant :: Text -> Text -> QueryAssistant
newQueryAssistant Text
pAssistantId_ Text
pQueryText_ =
  QueryAssistant'
    { $sel:maxResults:QueryAssistant' :: Maybe Natural
maxResults = forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:QueryAssistant' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
      $sel:assistantId:QueryAssistant' :: Text
assistantId = Text
pAssistantId_,
      $sel:queryText:QueryAssistant' :: Sensitive Text
queryText = forall a. Iso' (Sensitive a) a
Data._Sensitive forall t b. AReview t b -> b -> t
Lens.# Text
pQueryText_
    }

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

-- | The token for the next set of results. Use the value returned in the
-- previous response in the next request to retrieve the next set of
-- results.
queryAssistant_nextToken :: Lens.Lens' QueryAssistant (Prelude.Maybe Prelude.Text)
queryAssistant_nextToken :: Lens' QueryAssistant (Maybe Text)
queryAssistant_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\QueryAssistant' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:QueryAssistant' :: QueryAssistant -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: QueryAssistant
s@QueryAssistant' {} Maybe Text
a -> QueryAssistant
s {$sel:nextToken:QueryAssistant' :: Maybe Text
nextToken = Maybe Text
a} :: QueryAssistant)

-- | The identifier of the Wisdom assistant. Can be either the ID or the ARN.
-- URLs cannot contain the ARN.
queryAssistant_assistantId :: Lens.Lens' QueryAssistant Prelude.Text
queryAssistant_assistantId :: Lens' QueryAssistant Text
queryAssistant_assistantId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\QueryAssistant' {Text
assistantId :: Text
$sel:assistantId:QueryAssistant' :: QueryAssistant -> Text
assistantId} -> Text
assistantId) (\s :: QueryAssistant
s@QueryAssistant' {} Text
a -> QueryAssistant
s {$sel:assistantId:QueryAssistant' :: Text
assistantId = Text
a} :: QueryAssistant)

-- | The text to search for.
queryAssistant_queryText :: Lens.Lens' QueryAssistant Prelude.Text
queryAssistant_queryText :: Lens' QueryAssistant Text
queryAssistant_queryText = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\QueryAssistant' {Sensitive Text
queryText :: Sensitive Text
$sel:queryText:QueryAssistant' :: QueryAssistant -> Sensitive Text
queryText} -> Sensitive Text
queryText) (\s :: QueryAssistant
s@QueryAssistant' {} Sensitive Text
a -> QueryAssistant
s {$sel:queryText:QueryAssistant' :: Sensitive Text
queryText = Sensitive Text
a} :: QueryAssistant) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a. Iso' (Sensitive a) a
Data._Sensitive

instance Core.AWSPager QueryAssistant where
  page :: QueryAssistant
-> AWSResponse QueryAssistant -> Maybe QueryAssistant
page QueryAssistant
rq AWSResponse QueryAssistant
rs
    | forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse QueryAssistant
rs
            forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' QueryAssistantResponse (Maybe Text)
queryAssistantResponse_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 QueryAssistant
rs forall s a. s -> Getting a s a -> a
Lens.^. Lens' QueryAssistantResponse [ResultData]
queryAssistantResponse_results) =
        forall a. Maybe a
Prelude.Nothing
    | Bool
Prelude.otherwise =
        forall a. a -> Maybe a
Prelude.Just
          forall a b. (a -> b) -> a -> b
Prelude.$ QueryAssistant
rq
          forall a b. a -> (a -> b) -> b
Prelude.& Lens' QueryAssistant (Maybe Text)
queryAssistant_nextToken
          forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse QueryAssistant
rs
          forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' QueryAssistantResponse (Maybe Text)
queryAssistantResponse_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 QueryAssistant where
  type
    AWSResponse QueryAssistant =
      QueryAssistantResponse
  request :: (Service -> Service) -> QueryAssistant -> Request QueryAssistant
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 QueryAssistant
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse QueryAssistant)))
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 -> [ResultData] -> QueryAssistantResponse
QueryAssistantResponse'
            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
"results" forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty)
      )

instance Prelude.Hashable QueryAssistant where
  hashWithSalt :: Int -> QueryAssistant -> Int
hashWithSalt Int
_salt QueryAssistant' {Maybe Natural
Maybe Text
Text
Sensitive Text
queryText :: Sensitive Text
assistantId :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:queryText:QueryAssistant' :: QueryAssistant -> Sensitive Text
$sel:assistantId:QueryAssistant' :: QueryAssistant -> Text
$sel:nextToken:QueryAssistant' :: QueryAssistant -> Maybe Text
$sel:maxResults:QueryAssistant' :: QueryAssistant -> 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
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
assistantId
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Sensitive Text
queryText

instance Prelude.NFData QueryAssistant where
  rnf :: QueryAssistant -> ()
rnf QueryAssistant' {Maybe Natural
Maybe Text
Text
Sensitive Text
queryText :: Sensitive Text
assistantId :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:queryText:QueryAssistant' :: QueryAssistant -> Sensitive Text
$sel:assistantId:QueryAssistant' :: QueryAssistant -> Text
$sel:nextToken:QueryAssistant' :: QueryAssistant -> Maybe Text
$sel:maxResults:QueryAssistant' :: QueryAssistant -> 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
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
assistantId
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Sensitive Text
queryText

instance Data.ToHeaders QueryAssistant where
  toHeaders :: QueryAssistant -> 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 QueryAssistant where
  toJSON :: QueryAssistant -> Value
toJSON QueryAssistant' {Maybe Natural
Maybe Text
Text
Sensitive Text
queryText :: Sensitive Text
assistantId :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:queryText:QueryAssistant' :: QueryAssistant -> Sensitive Text
$sel:assistantId:QueryAssistant' :: QueryAssistant -> Text
$sel:nextToken:QueryAssistant' :: QueryAssistant -> Maybe Text
$sel:maxResults:QueryAssistant' :: QueryAssistant -> 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,
            forall a. a -> Maybe a
Prelude.Just (Key
"queryText" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Sensitive Text
queryText)
          ]
      )

instance Data.ToPath QueryAssistant where
  toPath :: QueryAssistant -> ByteString
toPath QueryAssistant' {Maybe Natural
Maybe Text
Text
Sensitive Text
queryText :: Sensitive Text
assistantId :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:queryText:QueryAssistant' :: QueryAssistant -> Sensitive Text
$sel:assistantId:QueryAssistant' :: QueryAssistant -> Text
$sel:nextToken:QueryAssistant' :: QueryAssistant -> Maybe Text
$sel:maxResults:QueryAssistant' :: QueryAssistant -> Maybe Natural
..} =
    forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ByteString
"/assistants/", forall a. ToByteString a => a -> ByteString
Data.toBS Text
assistantId, ByteString
"/query"]

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

-- | /See:/ 'newQueryAssistantResponse' smart constructor.
data QueryAssistantResponse = QueryAssistantResponse'
  { -- | If there are additional results, this is the token for the next set of
    -- results.
    QueryAssistantResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    QueryAssistantResponse -> Int
httpStatus :: Prelude.Int,
    -- | The results of the query.
    QueryAssistantResponse -> [ResultData]
results :: [ResultData]
  }
  deriving (QueryAssistantResponse -> QueryAssistantResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: QueryAssistantResponse -> QueryAssistantResponse -> Bool
$c/= :: QueryAssistantResponse -> QueryAssistantResponse -> Bool
== :: QueryAssistantResponse -> QueryAssistantResponse -> Bool
$c== :: QueryAssistantResponse -> QueryAssistantResponse -> Bool
Prelude.Eq, Int -> QueryAssistantResponse -> ShowS
[QueryAssistantResponse] -> ShowS
QueryAssistantResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [QueryAssistantResponse] -> ShowS
$cshowList :: [QueryAssistantResponse] -> ShowS
show :: QueryAssistantResponse -> String
$cshow :: QueryAssistantResponse -> String
showsPrec :: Int -> QueryAssistantResponse -> ShowS
$cshowsPrec :: Int -> QueryAssistantResponse -> ShowS
Prelude.Show, forall x. Rep QueryAssistantResponse x -> QueryAssistantResponse
forall x. QueryAssistantResponse -> Rep QueryAssistantResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep QueryAssistantResponse x -> QueryAssistantResponse
$cfrom :: forall x. QueryAssistantResponse -> Rep QueryAssistantResponse x
Prelude.Generic)

-- |
-- Create a value of 'QueryAssistantResponse' 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', 'queryAssistantResponse_nextToken' - If there are additional results, this is the token for the next set of
-- results.
--
-- 'httpStatus', 'queryAssistantResponse_httpStatus' - The response's http status code.
--
-- 'results', 'queryAssistantResponse_results' - The results of the query.
newQueryAssistantResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  QueryAssistantResponse
newQueryAssistantResponse :: Int -> QueryAssistantResponse
newQueryAssistantResponse Int
pHttpStatus_ =
  QueryAssistantResponse'
    { $sel:nextToken:QueryAssistantResponse' :: Maybe Text
nextToken =
        forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:QueryAssistantResponse' :: Int
httpStatus = Int
pHttpStatus_,
      $sel:results:QueryAssistantResponse' :: [ResultData]
results = forall a. Monoid a => a
Prelude.mempty
    }

-- | If there are additional results, this is the token for the next set of
-- results.
queryAssistantResponse_nextToken :: Lens.Lens' QueryAssistantResponse (Prelude.Maybe Prelude.Text)
queryAssistantResponse_nextToken :: Lens' QueryAssistantResponse (Maybe Text)
queryAssistantResponse_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\QueryAssistantResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:QueryAssistantResponse' :: QueryAssistantResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: QueryAssistantResponse
s@QueryAssistantResponse' {} Maybe Text
a -> QueryAssistantResponse
s {$sel:nextToken:QueryAssistantResponse' :: Maybe Text
nextToken = Maybe Text
a} :: QueryAssistantResponse)

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

-- | The results of the query.
queryAssistantResponse_results :: Lens.Lens' QueryAssistantResponse [ResultData]
queryAssistantResponse_results :: Lens' QueryAssistantResponse [ResultData]
queryAssistantResponse_results = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\QueryAssistantResponse' {[ResultData]
results :: [ResultData]
$sel:results:QueryAssistantResponse' :: QueryAssistantResponse -> [ResultData]
results} -> [ResultData]
results) (\s :: QueryAssistantResponse
s@QueryAssistantResponse' {} [ResultData]
a -> QueryAssistantResponse
s {$sel:results:QueryAssistantResponse' :: [ResultData]
results = [ResultData]
a} :: QueryAssistantResponse) 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 QueryAssistantResponse where
  rnf :: QueryAssistantResponse -> ()
rnf QueryAssistantResponse' {Int
[ResultData]
Maybe Text
results :: [ResultData]
httpStatus :: Int
nextToken :: Maybe Text
$sel:results:QueryAssistantResponse' :: QueryAssistantResponse -> [ResultData]
$sel:httpStatus:QueryAssistantResponse' :: QueryAssistantResponse -> Int
$sel:nextToken:QueryAssistantResponse' :: QueryAssistantResponse -> 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 [ResultData]
results