{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.Location.Types.SearchPlaceIndexForSuggestionsSummary
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.Location.Types.SearchPlaceIndexForSuggestionsSummary 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

-- | A summary of the request sent by using @SearchPlaceIndexForSuggestions@.
--
-- /See:/ 'newSearchPlaceIndexForSuggestionsSummary' smart constructor.
data SearchPlaceIndexForSuggestionsSummary = SearchPlaceIndexForSuggestionsSummary'
  { -- | Contains the coordinates for the optional bias position specified in the
    -- request.
    --
    -- This parameter contains a pair of numbers. The first number represents
    -- the X coordinate, or longitude; the second number represents the Y
    -- coordinate, or latitude.
    --
    -- For example, @[-123.1174, 49.2847]@ represents the position with
    -- longitude @-123.1174@ and latitude @49.2847@.
    SearchPlaceIndexForSuggestionsSummary
-> Maybe (Sensitive (NonEmpty Double))
biasPosition :: Prelude.Maybe (Data.Sensitive (Prelude.NonEmpty Prelude.Double)),
    -- | Contains the coordinates for the optional bounding box specified in the
    -- request.
    SearchPlaceIndexForSuggestionsSummary
-> Maybe (Sensitive (NonEmpty Double))
filterBBox :: Prelude.Maybe (Data.Sensitive (Prelude.NonEmpty Prelude.Double)),
    -- | Contains the optional country filter specified in the request.
    SearchPlaceIndexForSuggestionsSummary -> Maybe (NonEmpty Text)
filterCountries :: Prelude.Maybe (Prelude.NonEmpty Prelude.Text),
    -- | The preferred language used to return results. Matches the language in
    -- the request. The value is a valid
    -- <https://tools.ietf.org/search/bcp47 BCP 47> language tag, for example,
    -- @en@ for English.
    SearchPlaceIndexForSuggestionsSummary -> Maybe Text
language :: Prelude.Maybe Prelude.Text,
    -- | Contains the optional result count limit specified in the request.
    SearchPlaceIndexForSuggestionsSummary -> Maybe Int
maxResults :: Prelude.Maybe Prelude.Int,
    -- | The geospatial data provider attached to the place index resource
    -- specified in the request. Values can be one of the following:
    --
    -- -   Esri
    --
    -- -   Here
    --
    -- For more information about data providers, see
    -- <https://docs.aws.amazon.com/location/latest/developerguide/what-is-data-provider.html Amazon Location Service data providers>.
    SearchPlaceIndexForSuggestionsSummary -> Text
dataSource :: Prelude.Text,
    -- | The free-form partial text input specified in the request.
    SearchPlaceIndexForSuggestionsSummary -> Sensitive Text
text :: Data.Sensitive Prelude.Text
  }
  deriving (SearchPlaceIndexForSuggestionsSummary
-> SearchPlaceIndexForSuggestionsSummary -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: SearchPlaceIndexForSuggestionsSummary
-> SearchPlaceIndexForSuggestionsSummary -> Bool
$c/= :: SearchPlaceIndexForSuggestionsSummary
-> SearchPlaceIndexForSuggestionsSummary -> Bool
== :: SearchPlaceIndexForSuggestionsSummary
-> SearchPlaceIndexForSuggestionsSummary -> Bool
$c== :: SearchPlaceIndexForSuggestionsSummary
-> SearchPlaceIndexForSuggestionsSummary -> Bool
Prelude.Eq, Int -> SearchPlaceIndexForSuggestionsSummary -> ShowS
[SearchPlaceIndexForSuggestionsSummary] -> ShowS
SearchPlaceIndexForSuggestionsSummary -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [SearchPlaceIndexForSuggestionsSummary] -> ShowS
$cshowList :: [SearchPlaceIndexForSuggestionsSummary] -> ShowS
show :: SearchPlaceIndexForSuggestionsSummary -> String
$cshow :: SearchPlaceIndexForSuggestionsSummary -> String
showsPrec :: Int -> SearchPlaceIndexForSuggestionsSummary -> ShowS
$cshowsPrec :: Int -> SearchPlaceIndexForSuggestionsSummary -> ShowS
Prelude.Show, forall x.
Rep SearchPlaceIndexForSuggestionsSummary x
-> SearchPlaceIndexForSuggestionsSummary
forall x.
SearchPlaceIndexForSuggestionsSummary
-> Rep SearchPlaceIndexForSuggestionsSummary x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep SearchPlaceIndexForSuggestionsSummary x
-> SearchPlaceIndexForSuggestionsSummary
$cfrom :: forall x.
SearchPlaceIndexForSuggestionsSummary
-> Rep SearchPlaceIndexForSuggestionsSummary x
Prelude.Generic)

-- |
-- Create a value of 'SearchPlaceIndexForSuggestionsSummary' 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:
--
-- 'biasPosition', 'searchPlaceIndexForSuggestionsSummary_biasPosition' - Contains the coordinates for the optional bias position specified in the
-- request.
--
-- This parameter contains a pair of numbers. The first number represents
-- the X coordinate, or longitude; the second number represents the Y
-- coordinate, or latitude.
--
-- For example, @[-123.1174, 49.2847]@ represents the position with
-- longitude @-123.1174@ and latitude @49.2847@.
--
-- 'filterBBox', 'searchPlaceIndexForSuggestionsSummary_filterBBox' - Contains the coordinates for the optional bounding box specified in the
-- request.
--
-- 'filterCountries', 'searchPlaceIndexForSuggestionsSummary_filterCountries' - Contains the optional country filter specified in the request.
--
-- 'language', 'searchPlaceIndexForSuggestionsSummary_language' - The preferred language used to return results. Matches the language in
-- the request. The value is a valid
-- <https://tools.ietf.org/search/bcp47 BCP 47> language tag, for example,
-- @en@ for English.
--
-- 'maxResults', 'searchPlaceIndexForSuggestionsSummary_maxResults' - Contains the optional result count limit specified in the request.
--
-- 'dataSource', 'searchPlaceIndexForSuggestionsSummary_dataSource' - The geospatial data provider attached to the place index resource
-- specified in the request. Values can be one of the following:
--
-- -   Esri
--
-- -   Here
--
-- For more information about data providers, see
-- <https://docs.aws.amazon.com/location/latest/developerguide/what-is-data-provider.html Amazon Location Service data providers>.
--
-- 'text', 'searchPlaceIndexForSuggestionsSummary_text' - The free-form partial text input specified in the request.
newSearchPlaceIndexForSuggestionsSummary ::
  -- | 'dataSource'
  Prelude.Text ->
  -- | 'text'
  Prelude.Text ->
  SearchPlaceIndexForSuggestionsSummary
newSearchPlaceIndexForSuggestionsSummary :: Text -> Text -> SearchPlaceIndexForSuggestionsSummary
newSearchPlaceIndexForSuggestionsSummary
  Text
pDataSource_
  Text
pText_ =
    SearchPlaceIndexForSuggestionsSummary'
      { $sel:biasPosition:SearchPlaceIndexForSuggestionsSummary' :: Maybe (Sensitive (NonEmpty Double))
biasPosition =
          forall a. Maybe a
Prelude.Nothing,
        $sel:filterBBox:SearchPlaceIndexForSuggestionsSummary' :: Maybe (Sensitive (NonEmpty Double))
filterBBox = forall a. Maybe a
Prelude.Nothing,
        $sel:filterCountries:SearchPlaceIndexForSuggestionsSummary' :: Maybe (NonEmpty Text)
filterCountries = forall a. Maybe a
Prelude.Nothing,
        $sel:language:SearchPlaceIndexForSuggestionsSummary' :: Maybe Text
language = forall a. Maybe a
Prelude.Nothing,
        $sel:maxResults:SearchPlaceIndexForSuggestionsSummary' :: Maybe Int
maxResults = forall a. Maybe a
Prelude.Nothing,
        $sel:dataSource:SearchPlaceIndexForSuggestionsSummary' :: Text
dataSource = Text
pDataSource_,
        $sel:text:SearchPlaceIndexForSuggestionsSummary' :: Sensitive Text
text = forall a. Iso' (Sensitive a) a
Data._Sensitive forall t b. AReview t b -> b -> t
Lens.# Text
pText_
      }

-- | Contains the coordinates for the optional bias position specified in the
-- request.
--
-- This parameter contains a pair of numbers. The first number represents
-- the X coordinate, or longitude; the second number represents the Y
-- coordinate, or latitude.
--
-- For example, @[-123.1174, 49.2847]@ represents the position with
-- longitude @-123.1174@ and latitude @49.2847@.
searchPlaceIndexForSuggestionsSummary_biasPosition :: Lens.Lens' SearchPlaceIndexForSuggestionsSummary (Prelude.Maybe (Prelude.NonEmpty Prelude.Double))
searchPlaceIndexForSuggestionsSummary_biasPosition :: Lens'
  SearchPlaceIndexForSuggestionsSummary (Maybe (NonEmpty Double))
searchPlaceIndexForSuggestionsSummary_biasPosition = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SearchPlaceIndexForSuggestionsSummary' {Maybe (Sensitive (NonEmpty Double))
biasPosition :: Maybe (Sensitive (NonEmpty Double))
$sel:biasPosition:SearchPlaceIndexForSuggestionsSummary' :: SearchPlaceIndexForSuggestionsSummary
-> Maybe (Sensitive (NonEmpty Double))
biasPosition} -> Maybe (Sensitive (NonEmpty Double))
biasPosition) (\s :: SearchPlaceIndexForSuggestionsSummary
s@SearchPlaceIndexForSuggestionsSummary' {} Maybe (Sensitive (NonEmpty Double))
a -> SearchPlaceIndexForSuggestionsSummary
s {$sel:biasPosition:SearchPlaceIndexForSuggestionsSummary' :: Maybe (Sensitive (NonEmpty Double))
biasPosition = Maybe (Sensitive (NonEmpty Double))
a} :: SearchPlaceIndexForSuggestionsSummary) 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 a. Iso' (Sensitive a) a
Data._Sensitive 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)

-- | Contains the coordinates for the optional bounding box specified in the
-- request.
searchPlaceIndexForSuggestionsSummary_filterBBox :: Lens.Lens' SearchPlaceIndexForSuggestionsSummary (Prelude.Maybe (Prelude.NonEmpty Prelude.Double))
searchPlaceIndexForSuggestionsSummary_filterBBox :: Lens'
  SearchPlaceIndexForSuggestionsSummary (Maybe (NonEmpty Double))
searchPlaceIndexForSuggestionsSummary_filterBBox = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SearchPlaceIndexForSuggestionsSummary' {Maybe (Sensitive (NonEmpty Double))
filterBBox :: Maybe (Sensitive (NonEmpty Double))
$sel:filterBBox:SearchPlaceIndexForSuggestionsSummary' :: SearchPlaceIndexForSuggestionsSummary
-> Maybe (Sensitive (NonEmpty Double))
filterBBox} -> Maybe (Sensitive (NonEmpty Double))
filterBBox) (\s :: SearchPlaceIndexForSuggestionsSummary
s@SearchPlaceIndexForSuggestionsSummary' {} Maybe (Sensitive (NonEmpty Double))
a -> SearchPlaceIndexForSuggestionsSummary
s {$sel:filterBBox:SearchPlaceIndexForSuggestionsSummary' :: Maybe (Sensitive (NonEmpty Double))
filterBBox = Maybe (Sensitive (NonEmpty Double))
a} :: SearchPlaceIndexForSuggestionsSummary) 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 a. Iso' (Sensitive a) a
Data._Sensitive 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)

-- | Contains the optional country filter specified in the request.
searchPlaceIndexForSuggestionsSummary_filterCountries :: Lens.Lens' SearchPlaceIndexForSuggestionsSummary (Prelude.Maybe (Prelude.NonEmpty Prelude.Text))
searchPlaceIndexForSuggestionsSummary_filterCountries :: Lens' SearchPlaceIndexForSuggestionsSummary (Maybe (NonEmpty Text))
searchPlaceIndexForSuggestionsSummary_filterCountries = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SearchPlaceIndexForSuggestionsSummary' {Maybe (NonEmpty Text)
filterCountries :: Maybe (NonEmpty Text)
$sel:filterCountries:SearchPlaceIndexForSuggestionsSummary' :: SearchPlaceIndexForSuggestionsSummary -> Maybe (NonEmpty Text)
filterCountries} -> Maybe (NonEmpty Text)
filterCountries) (\s :: SearchPlaceIndexForSuggestionsSummary
s@SearchPlaceIndexForSuggestionsSummary' {} Maybe (NonEmpty Text)
a -> SearchPlaceIndexForSuggestionsSummary
s {$sel:filterCountries:SearchPlaceIndexForSuggestionsSummary' :: Maybe (NonEmpty Text)
filterCountries = Maybe (NonEmpty Text)
a} :: SearchPlaceIndexForSuggestionsSummary) 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 preferred language used to return results. Matches the language in
-- the request. The value is a valid
-- <https://tools.ietf.org/search/bcp47 BCP 47> language tag, for example,
-- @en@ for English.
searchPlaceIndexForSuggestionsSummary_language :: Lens.Lens' SearchPlaceIndexForSuggestionsSummary (Prelude.Maybe Prelude.Text)
searchPlaceIndexForSuggestionsSummary_language :: Lens' SearchPlaceIndexForSuggestionsSummary (Maybe Text)
searchPlaceIndexForSuggestionsSummary_language = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SearchPlaceIndexForSuggestionsSummary' {Maybe Text
language :: Maybe Text
$sel:language:SearchPlaceIndexForSuggestionsSummary' :: SearchPlaceIndexForSuggestionsSummary -> Maybe Text
language} -> Maybe Text
language) (\s :: SearchPlaceIndexForSuggestionsSummary
s@SearchPlaceIndexForSuggestionsSummary' {} Maybe Text
a -> SearchPlaceIndexForSuggestionsSummary
s {$sel:language:SearchPlaceIndexForSuggestionsSummary' :: Maybe Text
language = Maybe Text
a} :: SearchPlaceIndexForSuggestionsSummary)

-- | Contains the optional result count limit specified in the request.
searchPlaceIndexForSuggestionsSummary_maxResults :: Lens.Lens' SearchPlaceIndexForSuggestionsSummary (Prelude.Maybe Prelude.Int)
searchPlaceIndexForSuggestionsSummary_maxResults :: Lens' SearchPlaceIndexForSuggestionsSummary (Maybe Int)
searchPlaceIndexForSuggestionsSummary_maxResults = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SearchPlaceIndexForSuggestionsSummary' {Maybe Int
maxResults :: Maybe Int
$sel:maxResults:SearchPlaceIndexForSuggestionsSummary' :: SearchPlaceIndexForSuggestionsSummary -> Maybe Int
maxResults} -> Maybe Int
maxResults) (\s :: SearchPlaceIndexForSuggestionsSummary
s@SearchPlaceIndexForSuggestionsSummary' {} Maybe Int
a -> SearchPlaceIndexForSuggestionsSummary
s {$sel:maxResults:SearchPlaceIndexForSuggestionsSummary' :: Maybe Int
maxResults = Maybe Int
a} :: SearchPlaceIndexForSuggestionsSummary)

-- | The geospatial data provider attached to the place index resource
-- specified in the request. Values can be one of the following:
--
-- -   Esri
--
-- -   Here
--
-- For more information about data providers, see
-- <https://docs.aws.amazon.com/location/latest/developerguide/what-is-data-provider.html Amazon Location Service data providers>.
searchPlaceIndexForSuggestionsSummary_dataSource :: Lens.Lens' SearchPlaceIndexForSuggestionsSummary Prelude.Text
searchPlaceIndexForSuggestionsSummary_dataSource :: Lens' SearchPlaceIndexForSuggestionsSummary Text
searchPlaceIndexForSuggestionsSummary_dataSource = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SearchPlaceIndexForSuggestionsSummary' {Text
dataSource :: Text
$sel:dataSource:SearchPlaceIndexForSuggestionsSummary' :: SearchPlaceIndexForSuggestionsSummary -> Text
dataSource} -> Text
dataSource) (\s :: SearchPlaceIndexForSuggestionsSummary
s@SearchPlaceIndexForSuggestionsSummary' {} Text
a -> SearchPlaceIndexForSuggestionsSummary
s {$sel:dataSource:SearchPlaceIndexForSuggestionsSummary' :: Text
dataSource = Text
a} :: SearchPlaceIndexForSuggestionsSummary)

-- | The free-form partial text input specified in the request.
searchPlaceIndexForSuggestionsSummary_text :: Lens.Lens' SearchPlaceIndexForSuggestionsSummary Prelude.Text
searchPlaceIndexForSuggestionsSummary_text :: Lens' SearchPlaceIndexForSuggestionsSummary Text
searchPlaceIndexForSuggestionsSummary_text = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SearchPlaceIndexForSuggestionsSummary' {Sensitive Text
text :: Sensitive Text
$sel:text:SearchPlaceIndexForSuggestionsSummary' :: SearchPlaceIndexForSuggestionsSummary -> Sensitive Text
text} -> Sensitive Text
text) (\s :: SearchPlaceIndexForSuggestionsSummary
s@SearchPlaceIndexForSuggestionsSummary' {} Sensitive Text
a -> SearchPlaceIndexForSuggestionsSummary
s {$sel:text:SearchPlaceIndexForSuggestionsSummary' :: Sensitive Text
text = Sensitive Text
a} :: SearchPlaceIndexForSuggestionsSummary) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a. Iso' (Sensitive a) a
Data._Sensitive

instance
  Data.FromJSON
    SearchPlaceIndexForSuggestionsSummary
  where
  parseJSON :: Value -> Parser SearchPlaceIndexForSuggestionsSummary
parseJSON =
    forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
      String
"SearchPlaceIndexForSuggestionsSummary"
      ( \Object
x ->
          Maybe (Sensitive (NonEmpty Double))
-> Maybe (Sensitive (NonEmpty Double))
-> Maybe (NonEmpty Text)
-> Maybe Text
-> Maybe Int
-> Text
-> Sensitive Text
-> SearchPlaceIndexForSuggestionsSummary
SearchPlaceIndexForSuggestionsSummary'
            forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"BiasPosition")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"FilterBBox")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"FilterCountries")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"Language")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"MaxResults")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"DataSource")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"Text")
      )

instance
  Prelude.Hashable
    SearchPlaceIndexForSuggestionsSummary
  where
  hashWithSalt :: Int -> SearchPlaceIndexForSuggestionsSummary -> Int
hashWithSalt
    Int
_salt
    SearchPlaceIndexForSuggestionsSummary' {Maybe Int
Maybe (NonEmpty Text)
Maybe Text
Maybe (Sensitive (NonEmpty Double))
Text
Sensitive Text
text :: Sensitive Text
dataSource :: Text
maxResults :: Maybe Int
language :: Maybe Text
filterCountries :: Maybe (NonEmpty Text)
filterBBox :: Maybe (Sensitive (NonEmpty Double))
biasPosition :: Maybe (Sensitive (NonEmpty Double))
$sel:text:SearchPlaceIndexForSuggestionsSummary' :: SearchPlaceIndexForSuggestionsSummary -> Sensitive Text
$sel:dataSource:SearchPlaceIndexForSuggestionsSummary' :: SearchPlaceIndexForSuggestionsSummary -> Text
$sel:maxResults:SearchPlaceIndexForSuggestionsSummary' :: SearchPlaceIndexForSuggestionsSummary -> Maybe Int
$sel:language:SearchPlaceIndexForSuggestionsSummary' :: SearchPlaceIndexForSuggestionsSummary -> Maybe Text
$sel:filterCountries:SearchPlaceIndexForSuggestionsSummary' :: SearchPlaceIndexForSuggestionsSummary -> Maybe (NonEmpty Text)
$sel:filterBBox:SearchPlaceIndexForSuggestionsSummary' :: SearchPlaceIndexForSuggestionsSummary
-> Maybe (Sensitive (NonEmpty Double))
$sel:biasPosition:SearchPlaceIndexForSuggestionsSummary' :: SearchPlaceIndexForSuggestionsSummary
-> Maybe (Sensitive (NonEmpty Double))
..} =
      Int
_salt
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (Sensitive (NonEmpty Double))
biasPosition
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (Sensitive (NonEmpty Double))
filterBBox
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (NonEmpty Text)
filterCountries
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
language
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Int
maxResults
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
dataSource
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Sensitive Text
text

instance
  Prelude.NFData
    SearchPlaceIndexForSuggestionsSummary
  where
  rnf :: SearchPlaceIndexForSuggestionsSummary -> ()
rnf SearchPlaceIndexForSuggestionsSummary' {Maybe Int
Maybe (NonEmpty Text)
Maybe Text
Maybe (Sensitive (NonEmpty Double))
Text
Sensitive Text
text :: Sensitive Text
dataSource :: Text
maxResults :: Maybe Int
language :: Maybe Text
filterCountries :: Maybe (NonEmpty Text)
filterBBox :: Maybe (Sensitive (NonEmpty Double))
biasPosition :: Maybe (Sensitive (NonEmpty Double))
$sel:text:SearchPlaceIndexForSuggestionsSummary' :: SearchPlaceIndexForSuggestionsSummary -> Sensitive Text
$sel:dataSource:SearchPlaceIndexForSuggestionsSummary' :: SearchPlaceIndexForSuggestionsSummary -> Text
$sel:maxResults:SearchPlaceIndexForSuggestionsSummary' :: SearchPlaceIndexForSuggestionsSummary -> Maybe Int
$sel:language:SearchPlaceIndexForSuggestionsSummary' :: SearchPlaceIndexForSuggestionsSummary -> Maybe Text
$sel:filterCountries:SearchPlaceIndexForSuggestionsSummary' :: SearchPlaceIndexForSuggestionsSummary -> Maybe (NonEmpty Text)
$sel:filterBBox:SearchPlaceIndexForSuggestionsSummary' :: SearchPlaceIndexForSuggestionsSummary
-> Maybe (Sensitive (NonEmpty Double))
$sel:biasPosition:SearchPlaceIndexForSuggestionsSummary' :: SearchPlaceIndexForSuggestionsSummary
-> Maybe (Sensitive (NonEmpty Double))
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe (Sensitive (NonEmpty Double))
biasPosition
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (Sensitive (NonEmpty Double))
filterBBox
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (NonEmpty Text)
filterCountries
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
language
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Int
maxResults
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
dataSource
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Sensitive Text
text