{-# 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 #-}
module Amazonka.Location.Types.SearchPlaceIndexForTextSummary where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data SearchPlaceIndexForTextSummary = SearchPlaceIndexForTextSummary'
{
SearchPlaceIndexForTextSummary
-> Maybe (Sensitive (NonEmpty Double))
filterBBox :: Prelude.Maybe (Core.Sensitive (Prelude.NonEmpty Prelude.Double)),
SearchPlaceIndexForTextSummary
-> Maybe (Sensitive (NonEmpty Double))
resultBBox :: Prelude.Maybe (Core.Sensitive (Prelude.NonEmpty Prelude.Double)),
SearchPlaceIndexForTextSummary
-> Maybe (Sensitive (NonEmpty Double))
biasPosition :: Prelude.Maybe (Core.Sensitive (Prelude.NonEmpty Prelude.Double)),
SearchPlaceIndexForTextSummary -> Maybe (NonEmpty Text)
filterCountries :: Prelude.Maybe (Prelude.NonEmpty Prelude.Text),
SearchPlaceIndexForTextSummary -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
SearchPlaceIndexForTextSummary -> Text
dataSource :: Prelude.Text,
SearchPlaceIndexForTextSummary -> Sensitive Text
text :: Core.Sensitive Prelude.Text
}
deriving (SearchPlaceIndexForTextSummary
-> SearchPlaceIndexForTextSummary -> Bool
(SearchPlaceIndexForTextSummary
-> SearchPlaceIndexForTextSummary -> Bool)
-> (SearchPlaceIndexForTextSummary
-> SearchPlaceIndexForTextSummary -> Bool)
-> Eq SearchPlaceIndexForTextSummary
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
(Int -> SearchPlaceIndexForTextSummary -> ShowS)
-> (SearchPlaceIndexForTextSummary -> String)
-> ([SearchPlaceIndexForTextSummary] -> ShowS)
-> Show SearchPlaceIndexForTextSummary
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.
SearchPlaceIndexForTextSummary
-> Rep SearchPlaceIndexForTextSummary x)
-> (forall x.
Rep SearchPlaceIndexForTextSummary x
-> SearchPlaceIndexForTextSummary)
-> Generic SearchPlaceIndexForTextSummary
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)
newSearchPlaceIndexForTextSummary ::
Prelude.Text ->
Prelude.Text ->
SearchPlaceIndexForTextSummary
newSearchPlaceIndexForTextSummary :: Text -> Text -> SearchPlaceIndexForTextSummary
newSearchPlaceIndexForTextSummary Text
pDataSource_ Text
pText_ =
SearchPlaceIndexForTextSummary' :: Maybe (Sensitive (NonEmpty Double))
-> Maybe (Sensitive (NonEmpty Double))
-> Maybe (Sensitive (NonEmpty Double))
-> Maybe (NonEmpty Text)
-> Maybe Natural
-> Text
-> Sensitive Text
-> SearchPlaceIndexForTextSummary
SearchPlaceIndexForTextSummary'
{ $sel:filterBBox:SearchPlaceIndexForTextSummary' :: Maybe (Sensitive (NonEmpty Double))
filterBBox =
Maybe (Sensitive (NonEmpty Double))
forall a. Maybe a
Prelude.Nothing,
$sel:resultBBox:SearchPlaceIndexForTextSummary' :: Maybe (Sensitive (NonEmpty Double))
resultBBox = Maybe (Sensitive (NonEmpty Double))
forall a. Maybe a
Prelude.Nothing,
$sel:biasPosition:SearchPlaceIndexForTextSummary' :: Maybe (Sensitive (NonEmpty Double))
biasPosition = Maybe (Sensitive (NonEmpty Double))
forall a. Maybe a
Prelude.Nothing,
$sel:filterCountries:SearchPlaceIndexForTextSummary' :: Maybe (NonEmpty Text)
filterCountries = Maybe (NonEmpty Text)
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:SearchPlaceIndexForTextSummary' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:dataSource:SearchPlaceIndexForTextSummary' :: Text
dataSource = Text
pDataSource_,
$sel:text:SearchPlaceIndexForTextSummary' :: Sensitive Text
text = Tagged Text (Identity Text)
-> Tagged (Sensitive Text) (Identity (Sensitive Text))
forall a. Iso' (Sensitive a) a
Core._Sensitive (Tagged Text (Identity Text)
-> Tagged (Sensitive Text) (Identity (Sensitive Text)))
-> Text -> Sensitive Text
forall t b. AReview t b -> b -> t
Lens.# Text
pText_
}
searchPlaceIndexForTextSummary_filterBBox :: Lens.Lens' SearchPlaceIndexForTextSummary (Prelude.Maybe (Prelude.NonEmpty Prelude.Double))
searchPlaceIndexForTextSummary_filterBBox :: (Maybe (NonEmpty Double) -> f (Maybe (NonEmpty Double)))
-> SearchPlaceIndexForTextSummary
-> f SearchPlaceIndexForTextSummary
searchPlaceIndexForTextSummary_filterBBox = (SearchPlaceIndexForTextSummary
-> Maybe (Sensitive (NonEmpty Double)))
-> (SearchPlaceIndexForTextSummary
-> Maybe (Sensitive (NonEmpty Double))
-> SearchPlaceIndexForTextSummary)
-> Lens
SearchPlaceIndexForTextSummary
SearchPlaceIndexForTextSummary
(Maybe (Sensitive (NonEmpty Double)))
(Maybe (Sensitive (NonEmpty Double)))
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) ((Maybe (Sensitive (NonEmpty Double))
-> f (Maybe (Sensitive (NonEmpty Double))))
-> SearchPlaceIndexForTextSummary
-> f SearchPlaceIndexForTextSummary)
-> ((Maybe (NonEmpty Double) -> f (Maybe (NonEmpty Double)))
-> Maybe (Sensitive (NonEmpty Double))
-> f (Maybe (Sensitive (NonEmpty Double))))
-> (Maybe (NonEmpty Double) -> f (Maybe (NonEmpty Double)))
-> SearchPlaceIndexForTextSummary
-> f SearchPlaceIndexForTextSummary
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
(Sensitive (NonEmpty Double))
(Sensitive (NonEmpty Double))
(NonEmpty Double)
(NonEmpty Double)
-> Iso
(Maybe (Sensitive (NonEmpty Double)))
(Maybe (Sensitive (NonEmpty Double)))
(Maybe (NonEmpty Double))
(Maybe (NonEmpty Double))
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 (AnIso
(Sensitive (NonEmpty Double))
(Sensitive (NonEmpty Double))
(NonEmpty Double)
(NonEmpty Double)
forall a. Iso' (Sensitive a) a
Core._Sensitive AnIso
(Sensitive (NonEmpty Double))
(Sensitive (NonEmpty Double))
(NonEmpty Double)
(NonEmpty Double)
-> (Exchange
(NonEmpty Double)
(NonEmpty Double)
(NonEmpty Double)
(Identity (NonEmpty Double))
-> Exchange
(NonEmpty Double)
(NonEmpty Double)
(NonEmpty Double)
(Identity (NonEmpty Double)))
-> AnIso
(Sensitive (NonEmpty Double))
(Sensitive (NonEmpty Double))
(NonEmpty Double)
(NonEmpty Double)
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. Exchange
(NonEmpty Double)
(NonEmpty Double)
(NonEmpty Double)
(Identity (NonEmpty Double))
-> Exchange
(NonEmpty Double)
(NonEmpty Double)
(NonEmpty Double)
(Identity (NonEmpty Double))
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced)
searchPlaceIndexForTextSummary_resultBBox :: Lens.Lens' SearchPlaceIndexForTextSummary (Prelude.Maybe (Prelude.NonEmpty Prelude.Double))
searchPlaceIndexForTextSummary_resultBBox :: (Maybe (NonEmpty Double) -> f (Maybe (NonEmpty Double)))
-> SearchPlaceIndexForTextSummary
-> f SearchPlaceIndexForTextSummary
searchPlaceIndexForTextSummary_resultBBox = (SearchPlaceIndexForTextSummary
-> Maybe (Sensitive (NonEmpty Double)))
-> (SearchPlaceIndexForTextSummary
-> Maybe (Sensitive (NonEmpty Double))
-> SearchPlaceIndexForTextSummary)
-> Lens
SearchPlaceIndexForTextSummary
SearchPlaceIndexForTextSummary
(Maybe (Sensitive (NonEmpty Double)))
(Maybe (Sensitive (NonEmpty Double)))
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) ((Maybe (Sensitive (NonEmpty Double))
-> f (Maybe (Sensitive (NonEmpty Double))))
-> SearchPlaceIndexForTextSummary
-> f SearchPlaceIndexForTextSummary)
-> ((Maybe (NonEmpty Double) -> f (Maybe (NonEmpty Double)))
-> Maybe (Sensitive (NonEmpty Double))
-> f (Maybe (Sensitive (NonEmpty Double))))
-> (Maybe (NonEmpty Double) -> f (Maybe (NonEmpty Double)))
-> SearchPlaceIndexForTextSummary
-> f SearchPlaceIndexForTextSummary
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
(Sensitive (NonEmpty Double))
(Sensitive (NonEmpty Double))
(NonEmpty Double)
(NonEmpty Double)
-> Iso
(Maybe (Sensitive (NonEmpty Double)))
(Maybe (Sensitive (NonEmpty Double)))
(Maybe (NonEmpty Double))
(Maybe (NonEmpty Double))
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 (AnIso
(Sensitive (NonEmpty Double))
(Sensitive (NonEmpty Double))
(NonEmpty Double)
(NonEmpty Double)
forall a. Iso' (Sensitive a) a
Core._Sensitive AnIso
(Sensitive (NonEmpty Double))
(Sensitive (NonEmpty Double))
(NonEmpty Double)
(NonEmpty Double)
-> (Exchange
(NonEmpty Double)
(NonEmpty Double)
(NonEmpty Double)
(Identity (NonEmpty Double))
-> Exchange
(NonEmpty Double)
(NonEmpty Double)
(NonEmpty Double)
(Identity (NonEmpty Double)))
-> AnIso
(Sensitive (NonEmpty Double))
(Sensitive (NonEmpty Double))
(NonEmpty Double)
(NonEmpty Double)
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. Exchange
(NonEmpty Double)
(NonEmpty Double)
(NonEmpty Double)
(Identity (NonEmpty Double))
-> Exchange
(NonEmpty Double)
(NonEmpty Double)
(NonEmpty Double)
(Identity (NonEmpty Double))
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced)
searchPlaceIndexForTextSummary_biasPosition :: Lens.Lens' SearchPlaceIndexForTextSummary (Prelude.Maybe (Prelude.NonEmpty Prelude.Double))
searchPlaceIndexForTextSummary_biasPosition :: (Maybe (NonEmpty Double) -> f (Maybe (NonEmpty Double)))
-> SearchPlaceIndexForTextSummary
-> f SearchPlaceIndexForTextSummary
searchPlaceIndexForTextSummary_biasPosition = (SearchPlaceIndexForTextSummary
-> Maybe (Sensitive (NonEmpty Double)))
-> (SearchPlaceIndexForTextSummary
-> Maybe (Sensitive (NonEmpty Double))
-> SearchPlaceIndexForTextSummary)
-> Lens
SearchPlaceIndexForTextSummary
SearchPlaceIndexForTextSummary
(Maybe (Sensitive (NonEmpty Double)))
(Maybe (Sensitive (NonEmpty Double)))
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) ((Maybe (Sensitive (NonEmpty Double))
-> f (Maybe (Sensitive (NonEmpty Double))))
-> SearchPlaceIndexForTextSummary
-> f SearchPlaceIndexForTextSummary)
-> ((Maybe (NonEmpty Double) -> f (Maybe (NonEmpty Double)))
-> Maybe (Sensitive (NonEmpty Double))
-> f (Maybe (Sensitive (NonEmpty Double))))
-> (Maybe (NonEmpty Double) -> f (Maybe (NonEmpty Double)))
-> SearchPlaceIndexForTextSummary
-> f SearchPlaceIndexForTextSummary
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
(Sensitive (NonEmpty Double))
(Sensitive (NonEmpty Double))
(NonEmpty Double)
(NonEmpty Double)
-> Iso
(Maybe (Sensitive (NonEmpty Double)))
(Maybe (Sensitive (NonEmpty Double)))
(Maybe (NonEmpty Double))
(Maybe (NonEmpty Double))
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 (AnIso
(Sensitive (NonEmpty Double))
(Sensitive (NonEmpty Double))
(NonEmpty Double)
(NonEmpty Double)
forall a. Iso' (Sensitive a) a
Core._Sensitive AnIso
(Sensitive (NonEmpty Double))
(Sensitive (NonEmpty Double))
(NonEmpty Double)
(NonEmpty Double)
-> (Exchange
(NonEmpty Double)
(NonEmpty Double)
(NonEmpty Double)
(Identity (NonEmpty Double))
-> Exchange
(NonEmpty Double)
(NonEmpty Double)
(NonEmpty Double)
(Identity (NonEmpty Double)))
-> AnIso
(Sensitive (NonEmpty Double))
(Sensitive (NonEmpty Double))
(NonEmpty Double)
(NonEmpty Double)
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. Exchange
(NonEmpty Double)
(NonEmpty Double)
(NonEmpty Double)
(Identity (NonEmpty Double))
-> Exchange
(NonEmpty Double)
(NonEmpty Double)
(NonEmpty Double)
(Identity (NonEmpty Double))
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced)
searchPlaceIndexForTextSummary_filterCountries :: Lens.Lens' SearchPlaceIndexForTextSummary (Prelude.Maybe (Prelude.NonEmpty Prelude.Text))
searchPlaceIndexForTextSummary_filterCountries :: (Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> SearchPlaceIndexForTextSummary
-> f SearchPlaceIndexForTextSummary
searchPlaceIndexForTextSummary_filterCountries = (SearchPlaceIndexForTextSummary -> Maybe (NonEmpty Text))
-> (SearchPlaceIndexForTextSummary
-> Maybe (NonEmpty Text) -> SearchPlaceIndexForTextSummary)
-> Lens
SearchPlaceIndexForTextSummary
SearchPlaceIndexForTextSummary
(Maybe (NonEmpty Text))
(Maybe (NonEmpty Text))
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) ((Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> SearchPlaceIndexForTextSummary
-> f SearchPlaceIndexForTextSummary)
-> ((Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> (Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> SearchPlaceIndexForTextSummary
-> f SearchPlaceIndexForTextSummary
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
(NonEmpty Text) (NonEmpty Text) (NonEmpty Text) (NonEmpty Text)
-> Iso
(Maybe (NonEmpty Text))
(Maybe (NonEmpty Text))
(Maybe (NonEmpty Text))
(Maybe (NonEmpty Text))
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 AnIso
(NonEmpty Text) (NonEmpty Text) (NonEmpty Text) (NonEmpty Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
searchPlaceIndexForTextSummary_maxResults :: Lens.Lens' SearchPlaceIndexForTextSummary (Prelude.Maybe Prelude.Natural)
searchPlaceIndexForTextSummary_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> SearchPlaceIndexForTextSummary
-> f SearchPlaceIndexForTextSummary
searchPlaceIndexForTextSummary_maxResults = (SearchPlaceIndexForTextSummary -> Maybe Natural)
-> (SearchPlaceIndexForTextSummary
-> Maybe Natural -> SearchPlaceIndexForTextSummary)
-> Lens
SearchPlaceIndexForTextSummary
SearchPlaceIndexForTextSummary
(Maybe Natural)
(Maybe Natural)
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)
searchPlaceIndexForTextSummary_dataSource :: Lens.Lens' SearchPlaceIndexForTextSummary Prelude.Text
searchPlaceIndexForTextSummary_dataSource :: (Text -> f Text)
-> SearchPlaceIndexForTextSummary
-> f SearchPlaceIndexForTextSummary
searchPlaceIndexForTextSummary_dataSource = (SearchPlaceIndexForTextSummary -> Text)
-> (SearchPlaceIndexForTextSummary
-> Text -> SearchPlaceIndexForTextSummary)
-> Lens
SearchPlaceIndexForTextSummary
SearchPlaceIndexForTextSummary
Text
Text
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)
searchPlaceIndexForTextSummary_text :: Lens.Lens' SearchPlaceIndexForTextSummary Prelude.Text
searchPlaceIndexForTextSummary_text :: (Text -> f Text)
-> SearchPlaceIndexForTextSummary
-> f SearchPlaceIndexForTextSummary
searchPlaceIndexForTextSummary_text = (SearchPlaceIndexForTextSummary -> Sensitive Text)
-> (SearchPlaceIndexForTextSummary
-> Sensitive Text -> SearchPlaceIndexForTextSummary)
-> Lens
SearchPlaceIndexForTextSummary
SearchPlaceIndexForTextSummary
(Sensitive Text)
(Sensitive 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) ((Sensitive Text -> f (Sensitive Text))
-> SearchPlaceIndexForTextSummary
-> f SearchPlaceIndexForTextSummary)
-> ((Text -> f Text) -> Sensitive Text -> f (Sensitive Text))
-> (Text -> f Text)
-> SearchPlaceIndexForTextSummary
-> f SearchPlaceIndexForTextSummary
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> f Text) -> Sensitive Text -> f (Sensitive Text)
forall a. Iso' (Sensitive a) a
Core._Sensitive
instance Core.FromJSON SearchPlaceIndexForTextSummary where
parseJSON :: Value -> Parser SearchPlaceIndexForTextSummary
parseJSON =
String
-> (Object -> Parser SearchPlaceIndexForTextSummary)
-> Value
-> Parser SearchPlaceIndexForTextSummary
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"SearchPlaceIndexForTextSummary"
( \Object
x ->
Maybe (Sensitive (NonEmpty Double))
-> Maybe (Sensitive (NonEmpty Double))
-> Maybe (Sensitive (NonEmpty Double))
-> Maybe (NonEmpty Text)
-> Maybe Natural
-> Text
-> Sensitive Text
-> SearchPlaceIndexForTextSummary
SearchPlaceIndexForTextSummary'
(Maybe (Sensitive (NonEmpty Double))
-> Maybe (Sensitive (NonEmpty Double))
-> Maybe (Sensitive (NonEmpty Double))
-> Maybe (NonEmpty Text)
-> Maybe Natural
-> Text
-> Sensitive Text
-> SearchPlaceIndexForTextSummary)
-> Parser (Maybe (Sensitive (NonEmpty Double)))
-> Parser
(Maybe (Sensitive (NonEmpty Double))
-> Maybe (Sensitive (NonEmpty Double))
-> Maybe (NonEmpty Text)
-> Maybe Natural
-> Text
-> Sensitive Text
-> SearchPlaceIndexForTextSummary)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe (Sensitive (NonEmpty Double)))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"FilterBBox")
Parser
(Maybe (Sensitive (NonEmpty Double))
-> Maybe (Sensitive (NonEmpty Double))
-> Maybe (NonEmpty Text)
-> Maybe Natural
-> Text
-> Sensitive Text
-> SearchPlaceIndexForTextSummary)
-> Parser (Maybe (Sensitive (NonEmpty Double)))
-> Parser
(Maybe (Sensitive (NonEmpty Double))
-> Maybe (NonEmpty Text)
-> Maybe Natural
-> Text
-> Sensitive Text
-> SearchPlaceIndexForTextSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe (Sensitive (NonEmpty Double)))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ResultBBox")
Parser
(Maybe (Sensitive (NonEmpty Double))
-> Maybe (NonEmpty Text)
-> Maybe Natural
-> Text
-> Sensitive Text
-> SearchPlaceIndexForTextSummary)
-> Parser (Maybe (Sensitive (NonEmpty Double)))
-> Parser
(Maybe (NonEmpty Text)
-> Maybe Natural
-> Text
-> Sensitive Text
-> SearchPlaceIndexForTextSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe (Sensitive (NonEmpty Double)))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"BiasPosition")
Parser
(Maybe (NonEmpty Text)
-> Maybe Natural
-> Text
-> Sensitive Text
-> SearchPlaceIndexForTextSummary)
-> Parser (Maybe (NonEmpty Text))
-> Parser
(Maybe Natural
-> Text -> Sensitive Text -> SearchPlaceIndexForTextSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe (NonEmpty Text))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"FilterCountries")
Parser
(Maybe Natural
-> Text -> Sensitive Text -> SearchPlaceIndexForTextSummary)
-> Parser (Maybe Natural)
-> Parser
(Text -> Sensitive Text -> SearchPlaceIndexForTextSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Natural)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"MaxResults")
Parser (Text -> Sensitive Text -> SearchPlaceIndexForTextSummary)
-> Parser Text
-> Parser (Sensitive Text -> SearchPlaceIndexForTextSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser Text
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"DataSource")
Parser (Sensitive Text -> SearchPlaceIndexForTextSummary)
-> Parser (Sensitive Text) -> Parser SearchPlaceIndexForTextSummary
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Sensitive Text)
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"Text")
)
instance
Prelude.Hashable
SearchPlaceIndexForTextSummary
instance
Prelude.NFData
SearchPlaceIndexForTextSummary