{-# 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.SearchPlaceIndexForTextSummary
-- 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.SearchPlaceIndexForTextSummary 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 @SearchPlaceIndexForText@.
--
-- /See:/ 'newSearchPlaceIndexForTextSummary' smart constructor.
data SearchPlaceIndexForTextSummary = SearchPlaceIndexForTextSummary'
  { -- | 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@.
    SearchPlaceIndexForTextSummary
-> 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.
    SearchPlaceIndexForTextSummary
-> Maybe (Sensitive (NonEmpty Double))
filterBBox :: Prelude.Maybe (Data.Sensitive (Prelude.NonEmpty Prelude.Double)),
    -- | Contains the optional country filter specified in the request.
    SearchPlaceIndexForTextSummary -> 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.
    SearchPlaceIndexForTextSummary -> Maybe Text
language :: Prelude.Maybe Prelude.Text,
    -- | Contains the optional result count limit specified in the request.
    SearchPlaceIndexForTextSummary -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
    -- | The bounding box that fully contains all search results.
    --
    -- If you specified the optional @FilterBBox@ parameter in the request,
    -- @ResultBBox@ is contained within @FilterBBox@.
    SearchPlaceIndexForTextSummary
-> Maybe (Sensitive (NonEmpty Double))
resultBBox :: Prelude.Maybe (Data.Sensitive (Prelude.NonEmpty Prelude.Double)),
    -- | 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>.
    SearchPlaceIndexForTextSummary -> Text
dataSource :: Prelude.Text,
    -- | The search text specified in the request.
    SearchPlaceIndexForTextSummary -> Sensitive Text
text :: Data.Sensitive Prelude.Text
  }
  deriving (SearchPlaceIndexForTextSummary
-> SearchPlaceIndexForTextSummary -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: SearchPlaceIndexForTextSummary
-> SearchPlaceIndexForTextSummary -> Bool
$c/= :: SearchPlaceIndexForTextSummary
-> SearchPlaceIndexForTextSummary -> Bool
== :: SearchPlaceIndexForTextSummary
-> SearchPlaceIndexForTextSummary -> Bool
$c== :: SearchPlaceIndexForTextSummary
-> SearchPlaceIndexForTextSummary -> Bool
Prelude.Eq, Int -> SearchPlaceIndexForTextSummary -> ShowS
[SearchPlaceIndexForTextSummary] -> ShowS
SearchPlaceIndexForTextSummary -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [SearchPlaceIndexForTextSummary] -> ShowS
$cshowList :: [SearchPlaceIndexForTextSummary] -> ShowS
show :: SearchPlaceIndexForTextSummary -> String
$cshow :: SearchPlaceIndexForTextSummary -> String
showsPrec :: Int -> SearchPlaceIndexForTextSummary -> ShowS
$cshowsPrec :: Int -> SearchPlaceIndexForTextSummary -> ShowS
Prelude.Show, forall x.
Rep SearchPlaceIndexForTextSummary x
-> SearchPlaceIndexForTextSummary
forall x.
SearchPlaceIndexForTextSummary
-> Rep SearchPlaceIndexForTextSummary x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep SearchPlaceIndexForTextSummary x
-> SearchPlaceIndexForTextSummary
$cfrom :: forall x.
SearchPlaceIndexForTextSummary
-> Rep SearchPlaceIndexForTextSummary x
Prelude.Generic)

-- |
-- Create a value of 'SearchPlaceIndexForTextSummary' 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', 'searchPlaceIndexForTextSummary_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', 'searchPlaceIndexForTextSummary_filterBBox' - Contains the coordinates for the optional bounding box specified in the
-- request.
--
-- 'filterCountries', 'searchPlaceIndexForTextSummary_filterCountries' - Contains the optional country filter specified in the request.
--
-- 'language', 'searchPlaceIndexForTextSummary_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', 'searchPlaceIndexForTextSummary_maxResults' - Contains the optional result count limit specified in the request.
--
-- 'resultBBox', 'searchPlaceIndexForTextSummary_resultBBox' - The bounding box that fully contains all search results.
--
-- If you specified the optional @FilterBBox@ parameter in the request,
-- @ResultBBox@ is contained within @FilterBBox@.
--
-- 'dataSource', 'searchPlaceIndexForTextSummary_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', 'searchPlaceIndexForTextSummary_text' - The search text specified in the request.
newSearchPlaceIndexForTextSummary ::
  -- | 'dataSource'
  Prelude.Text ->
  -- | 'text'
  Prelude.Text ->
  SearchPlaceIndexForTextSummary
newSearchPlaceIndexForTextSummary :: Text -> Text -> SearchPlaceIndexForTextSummary
newSearchPlaceIndexForTextSummary Text
pDataSource_ Text
pText_ =
  SearchPlaceIndexForTextSummary'
    { $sel:biasPosition:SearchPlaceIndexForTextSummary' :: Maybe (Sensitive (NonEmpty Double))
biasPosition =
        forall a. Maybe a
Prelude.Nothing,
      $sel:filterBBox:SearchPlaceIndexForTextSummary' :: Maybe (Sensitive (NonEmpty Double))
filterBBox = forall a. Maybe a
Prelude.Nothing,
      $sel:filterCountries:SearchPlaceIndexForTextSummary' :: Maybe (NonEmpty Text)
filterCountries = forall a. Maybe a
Prelude.Nothing,
      $sel:language:SearchPlaceIndexForTextSummary' :: Maybe Text
language = forall a. Maybe a
Prelude.Nothing,
      $sel:maxResults:SearchPlaceIndexForTextSummary' :: Maybe Natural
maxResults = forall a. Maybe a
Prelude.Nothing,
      $sel:resultBBox:SearchPlaceIndexForTextSummary' :: Maybe (Sensitive (NonEmpty Double))
resultBBox = forall a. Maybe a
Prelude.Nothing,
      $sel:dataSource:SearchPlaceIndexForTextSummary' :: Text
dataSource = Text
pDataSource_,
      $sel:text:SearchPlaceIndexForTextSummary' :: 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@.
searchPlaceIndexForTextSummary_biasPosition :: Lens.Lens' SearchPlaceIndexForTextSummary (Prelude.Maybe (Prelude.NonEmpty Prelude.Double))
searchPlaceIndexForTextSummary_biasPosition :: Lens' SearchPlaceIndexForTextSummary (Maybe (NonEmpty Double))
searchPlaceIndexForTextSummary_biasPosition = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SearchPlaceIndexForTextSummary' {Maybe (Sensitive (NonEmpty Double))
biasPosition :: Maybe (Sensitive (NonEmpty Double))
$sel:biasPosition:SearchPlaceIndexForTextSummary' :: SearchPlaceIndexForTextSummary
-> Maybe (Sensitive (NonEmpty Double))
biasPosition} -> Maybe (Sensitive (NonEmpty Double))
biasPosition) (\s :: SearchPlaceIndexForTextSummary
s@SearchPlaceIndexForTextSummary' {} Maybe (Sensitive (NonEmpty Double))
a -> SearchPlaceIndexForTextSummary
s {$sel:biasPosition:SearchPlaceIndexForTextSummary' :: Maybe (Sensitive (NonEmpty Double))
biasPosition = Maybe (Sensitive (NonEmpty Double))
a} :: SearchPlaceIndexForTextSummary) 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.
searchPlaceIndexForTextSummary_filterBBox :: Lens.Lens' SearchPlaceIndexForTextSummary (Prelude.Maybe (Prelude.NonEmpty Prelude.Double))
searchPlaceIndexForTextSummary_filterBBox :: Lens' SearchPlaceIndexForTextSummary (Maybe (NonEmpty Double))
searchPlaceIndexForTextSummary_filterBBox = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SearchPlaceIndexForTextSummary' {Maybe (Sensitive (NonEmpty Double))
filterBBox :: Maybe (Sensitive (NonEmpty Double))
$sel:filterBBox:SearchPlaceIndexForTextSummary' :: SearchPlaceIndexForTextSummary
-> Maybe (Sensitive (NonEmpty Double))
filterBBox} -> Maybe (Sensitive (NonEmpty Double))
filterBBox) (\s :: SearchPlaceIndexForTextSummary
s@SearchPlaceIndexForTextSummary' {} Maybe (Sensitive (NonEmpty Double))
a -> SearchPlaceIndexForTextSummary
s {$sel:filterBBox:SearchPlaceIndexForTextSummary' :: Maybe (Sensitive (NonEmpty Double))
filterBBox = Maybe (Sensitive (NonEmpty Double))
a} :: SearchPlaceIndexForTextSummary) 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.
searchPlaceIndexForTextSummary_filterCountries :: Lens.Lens' SearchPlaceIndexForTextSummary (Prelude.Maybe (Prelude.NonEmpty Prelude.Text))
searchPlaceIndexForTextSummary_filterCountries :: Lens' SearchPlaceIndexForTextSummary (Maybe (NonEmpty Text))
searchPlaceIndexForTextSummary_filterCountries = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SearchPlaceIndexForTextSummary' {Maybe (NonEmpty Text)
filterCountries :: Maybe (NonEmpty Text)
$sel:filterCountries:SearchPlaceIndexForTextSummary' :: SearchPlaceIndexForTextSummary -> Maybe (NonEmpty Text)
filterCountries} -> Maybe (NonEmpty Text)
filterCountries) (\s :: SearchPlaceIndexForTextSummary
s@SearchPlaceIndexForTextSummary' {} Maybe (NonEmpty Text)
a -> SearchPlaceIndexForTextSummary
s {$sel:filterCountries:SearchPlaceIndexForTextSummary' :: Maybe (NonEmpty Text)
filterCountries = Maybe (NonEmpty Text)
a} :: SearchPlaceIndexForTextSummary) 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.
searchPlaceIndexForTextSummary_language :: Lens.Lens' SearchPlaceIndexForTextSummary (Prelude.Maybe Prelude.Text)
searchPlaceIndexForTextSummary_language :: Lens' SearchPlaceIndexForTextSummary (Maybe Text)
searchPlaceIndexForTextSummary_language = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SearchPlaceIndexForTextSummary' {Maybe Text
language :: Maybe Text
$sel:language:SearchPlaceIndexForTextSummary' :: SearchPlaceIndexForTextSummary -> Maybe Text
language} -> Maybe Text
language) (\s :: SearchPlaceIndexForTextSummary
s@SearchPlaceIndexForTextSummary' {} Maybe Text
a -> SearchPlaceIndexForTextSummary
s {$sel:language:SearchPlaceIndexForTextSummary' :: Maybe Text
language = Maybe Text
a} :: SearchPlaceIndexForTextSummary)

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

-- | The bounding box that fully contains all search results.
--
-- If you specified the optional @FilterBBox@ parameter in the request,
-- @ResultBBox@ is contained within @FilterBBox@.
searchPlaceIndexForTextSummary_resultBBox :: Lens.Lens' SearchPlaceIndexForTextSummary (Prelude.Maybe (Prelude.NonEmpty Prelude.Double))
searchPlaceIndexForTextSummary_resultBBox :: Lens' SearchPlaceIndexForTextSummary (Maybe (NonEmpty Double))
searchPlaceIndexForTextSummary_resultBBox = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SearchPlaceIndexForTextSummary' {Maybe (Sensitive (NonEmpty Double))
resultBBox :: Maybe (Sensitive (NonEmpty Double))
$sel:resultBBox:SearchPlaceIndexForTextSummary' :: SearchPlaceIndexForTextSummary
-> Maybe (Sensitive (NonEmpty Double))
resultBBox} -> Maybe (Sensitive (NonEmpty Double))
resultBBox) (\s :: SearchPlaceIndexForTextSummary
s@SearchPlaceIndexForTextSummary' {} Maybe (Sensitive (NonEmpty Double))
a -> SearchPlaceIndexForTextSummary
s {$sel:resultBBox:SearchPlaceIndexForTextSummary' :: Maybe (Sensitive (NonEmpty Double))
resultBBox = Maybe (Sensitive (NonEmpty Double))
a} :: SearchPlaceIndexForTextSummary) 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)

-- | 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>.
searchPlaceIndexForTextSummary_dataSource :: Lens.Lens' SearchPlaceIndexForTextSummary Prelude.Text
searchPlaceIndexForTextSummary_dataSource :: Lens' SearchPlaceIndexForTextSummary Text
searchPlaceIndexForTextSummary_dataSource = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SearchPlaceIndexForTextSummary' {Text
dataSource :: Text
$sel:dataSource:SearchPlaceIndexForTextSummary' :: SearchPlaceIndexForTextSummary -> Text
dataSource} -> Text
dataSource) (\s :: SearchPlaceIndexForTextSummary
s@SearchPlaceIndexForTextSummary' {} Text
a -> SearchPlaceIndexForTextSummary
s {$sel:dataSource:SearchPlaceIndexForTextSummary' :: Text
dataSource = Text
a} :: SearchPlaceIndexForTextSummary)

-- | The search text specified in the request.
searchPlaceIndexForTextSummary_text :: Lens.Lens' SearchPlaceIndexForTextSummary Prelude.Text
searchPlaceIndexForTextSummary_text :: Lens' SearchPlaceIndexForTextSummary Text
searchPlaceIndexForTextSummary_text = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SearchPlaceIndexForTextSummary' {Sensitive Text
text :: Sensitive Text
$sel:text:SearchPlaceIndexForTextSummary' :: SearchPlaceIndexForTextSummary -> Sensitive Text
text} -> Sensitive Text
text) (\s :: SearchPlaceIndexForTextSummary
s@SearchPlaceIndexForTextSummary' {} Sensitive Text
a -> SearchPlaceIndexForTextSummary
s {$sel:text:SearchPlaceIndexForTextSummary' :: Sensitive Text
text = Sensitive Text
a} :: SearchPlaceIndexForTextSummary) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a. Iso' (Sensitive a) a
Data._Sensitive

instance Data.FromJSON SearchPlaceIndexForTextSummary where
  parseJSON :: Value -> Parser SearchPlaceIndexForTextSummary
parseJSON =
    forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
      String
"SearchPlaceIndexForTextSummary"
      ( \Object
x ->
          Maybe (Sensitive (NonEmpty Double))
-> Maybe (Sensitive (NonEmpty Double))
-> Maybe (NonEmpty Text)
-> Maybe Text
-> Maybe Natural
-> Maybe (Sensitive (NonEmpty Double))
-> Text
-> Sensitive Text
-> SearchPlaceIndexForTextSummary
SearchPlaceIndexForTextSummary'
            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 (Maybe a)
Data..:? Key
"ResultBBox")
            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
    SearchPlaceIndexForTextSummary
  where
  hashWithSalt :: Int -> SearchPlaceIndexForTextSummary -> Int
hashWithSalt
    Int
_salt
    SearchPlaceIndexForTextSummary' {Maybe Natural
Maybe (NonEmpty Text)
Maybe Text
Maybe (Sensitive (NonEmpty Double))
Text
Sensitive Text
text :: Sensitive Text
dataSource :: Text
resultBBox :: Maybe (Sensitive (NonEmpty Double))
maxResults :: Maybe Natural
language :: Maybe Text
filterCountries :: Maybe (NonEmpty Text)
filterBBox :: Maybe (Sensitive (NonEmpty Double))
biasPosition :: Maybe (Sensitive (NonEmpty Double))
$sel:text:SearchPlaceIndexForTextSummary' :: SearchPlaceIndexForTextSummary -> Sensitive Text
$sel:dataSource:SearchPlaceIndexForTextSummary' :: SearchPlaceIndexForTextSummary -> Text
$sel:resultBBox:SearchPlaceIndexForTextSummary' :: SearchPlaceIndexForTextSummary
-> Maybe (Sensitive (NonEmpty Double))
$sel:maxResults:SearchPlaceIndexForTextSummary' :: SearchPlaceIndexForTextSummary -> Maybe Natural
$sel:language:SearchPlaceIndexForTextSummary' :: SearchPlaceIndexForTextSummary -> Maybe Text
$sel:filterCountries:SearchPlaceIndexForTextSummary' :: SearchPlaceIndexForTextSummary -> Maybe (NonEmpty Text)
$sel:filterBBox:SearchPlaceIndexForTextSummary' :: SearchPlaceIndexForTextSummary
-> Maybe (Sensitive (NonEmpty Double))
$sel:biasPosition:SearchPlaceIndexForTextSummary' :: SearchPlaceIndexForTextSummary
-> 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 Natural
maxResults
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (Sensitive (NonEmpty Double))
resultBBox
        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
    SearchPlaceIndexForTextSummary
  where
  rnf :: SearchPlaceIndexForTextSummary -> ()
rnf SearchPlaceIndexForTextSummary' {Maybe Natural
Maybe (NonEmpty Text)
Maybe Text
Maybe (Sensitive (NonEmpty Double))
Text
Sensitive Text
text :: Sensitive Text
dataSource :: Text
resultBBox :: Maybe (Sensitive (NonEmpty Double))
maxResults :: Maybe Natural
language :: Maybe Text
filterCountries :: Maybe (NonEmpty Text)
filterBBox :: Maybe (Sensitive (NonEmpty Double))
biasPosition :: Maybe (Sensitive (NonEmpty Double))
$sel:text:SearchPlaceIndexForTextSummary' :: SearchPlaceIndexForTextSummary -> Sensitive Text
$sel:dataSource:SearchPlaceIndexForTextSummary' :: SearchPlaceIndexForTextSummary -> Text
$sel:resultBBox:SearchPlaceIndexForTextSummary' :: SearchPlaceIndexForTextSummary
-> Maybe (Sensitive (NonEmpty Double))
$sel:maxResults:SearchPlaceIndexForTextSummary' :: SearchPlaceIndexForTextSummary -> Maybe Natural
$sel:language:SearchPlaceIndexForTextSummary' :: SearchPlaceIndexForTextSummary -> Maybe Text
$sel:filterCountries:SearchPlaceIndexForTextSummary' :: SearchPlaceIndexForTextSummary -> Maybe (NonEmpty Text)
$sel:filterBBox:SearchPlaceIndexForTextSummary' :: SearchPlaceIndexForTextSummary
-> Maybe (Sensitive (NonEmpty Double))
$sel:biasPosition:SearchPlaceIndexForTextSummary' :: SearchPlaceIndexForTextSummary
-> 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 Natural
maxResults
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (Sensitive (NonEmpty Double))
resultBBox
      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