{-# 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 #-}
module Amazonka.Location.ListPlaceIndexes
(
ListPlaceIndexes (..),
newListPlaceIndexes,
listPlaceIndexes_nextToken,
listPlaceIndexes_maxResults,
ListPlaceIndexesResponse (..),
newListPlaceIndexesResponse,
listPlaceIndexesResponse_nextToken,
listPlaceIndexesResponse_httpStatus,
listPlaceIndexesResponse_entries,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.Location.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data ListPlaceIndexes = ListPlaceIndexes'
{
ListPlaceIndexes -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListPlaceIndexes -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural
}
deriving (ListPlaceIndexes -> ListPlaceIndexes -> Bool
(ListPlaceIndexes -> ListPlaceIndexes -> Bool)
-> (ListPlaceIndexes -> ListPlaceIndexes -> Bool)
-> Eq ListPlaceIndexes
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListPlaceIndexes -> ListPlaceIndexes -> Bool
$c/= :: ListPlaceIndexes -> ListPlaceIndexes -> Bool
== :: ListPlaceIndexes -> ListPlaceIndexes -> Bool
$c== :: ListPlaceIndexes -> ListPlaceIndexes -> Bool
Prelude.Eq, ReadPrec [ListPlaceIndexes]
ReadPrec ListPlaceIndexes
Int -> ReadS ListPlaceIndexes
ReadS [ListPlaceIndexes]
(Int -> ReadS ListPlaceIndexes)
-> ReadS [ListPlaceIndexes]
-> ReadPrec ListPlaceIndexes
-> ReadPrec [ListPlaceIndexes]
-> Read ListPlaceIndexes
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListPlaceIndexes]
$creadListPrec :: ReadPrec [ListPlaceIndexes]
readPrec :: ReadPrec ListPlaceIndexes
$creadPrec :: ReadPrec ListPlaceIndexes
readList :: ReadS [ListPlaceIndexes]
$creadList :: ReadS [ListPlaceIndexes]
readsPrec :: Int -> ReadS ListPlaceIndexes
$creadsPrec :: Int -> ReadS ListPlaceIndexes
Prelude.Read, Int -> ListPlaceIndexes -> ShowS
[ListPlaceIndexes] -> ShowS
ListPlaceIndexes -> String
(Int -> ListPlaceIndexes -> ShowS)
-> (ListPlaceIndexes -> String)
-> ([ListPlaceIndexes] -> ShowS)
-> Show ListPlaceIndexes
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListPlaceIndexes] -> ShowS
$cshowList :: [ListPlaceIndexes] -> ShowS
show :: ListPlaceIndexes -> String
$cshow :: ListPlaceIndexes -> String
showsPrec :: Int -> ListPlaceIndexes -> ShowS
$cshowsPrec :: Int -> ListPlaceIndexes -> ShowS
Prelude.Show, (forall x. ListPlaceIndexes -> Rep ListPlaceIndexes x)
-> (forall x. Rep ListPlaceIndexes x -> ListPlaceIndexes)
-> Generic ListPlaceIndexes
forall x. Rep ListPlaceIndexes x -> ListPlaceIndexes
forall x. ListPlaceIndexes -> Rep ListPlaceIndexes x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListPlaceIndexes x -> ListPlaceIndexes
$cfrom :: forall x. ListPlaceIndexes -> Rep ListPlaceIndexes x
Prelude.Generic)
newListPlaceIndexes ::
ListPlaceIndexes
newListPlaceIndexes :: ListPlaceIndexes
newListPlaceIndexes =
ListPlaceIndexes' :: Maybe Text -> Maybe Natural -> ListPlaceIndexes
ListPlaceIndexes'
{ $sel:nextToken:ListPlaceIndexes' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListPlaceIndexes' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing
}
listPlaceIndexes_nextToken :: Lens.Lens' ListPlaceIndexes (Prelude.Maybe Prelude.Text)
listPlaceIndexes_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListPlaceIndexes -> f ListPlaceIndexes
listPlaceIndexes_nextToken = (ListPlaceIndexes -> Maybe Text)
-> (ListPlaceIndexes -> Maybe Text -> ListPlaceIndexes)
-> Lens ListPlaceIndexes ListPlaceIndexes (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListPlaceIndexes' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListPlaceIndexes' :: ListPlaceIndexes -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListPlaceIndexes
s@ListPlaceIndexes' {} Maybe Text
a -> ListPlaceIndexes
s {$sel:nextToken:ListPlaceIndexes' :: Maybe Text
nextToken = Maybe Text
a} :: ListPlaceIndexes)
listPlaceIndexes_maxResults :: Lens.Lens' ListPlaceIndexes (Prelude.Maybe Prelude.Natural)
listPlaceIndexes_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListPlaceIndexes -> f ListPlaceIndexes
listPlaceIndexes_maxResults = (ListPlaceIndexes -> Maybe Natural)
-> (ListPlaceIndexes -> Maybe Natural -> ListPlaceIndexes)
-> Lens
ListPlaceIndexes ListPlaceIndexes (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListPlaceIndexes' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListPlaceIndexes' :: ListPlaceIndexes -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListPlaceIndexes
s@ListPlaceIndexes' {} Maybe Natural
a -> ListPlaceIndexes
s {$sel:maxResults:ListPlaceIndexes' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListPlaceIndexes)
instance Core.AWSPager ListPlaceIndexes where
page :: ListPlaceIndexes
-> AWSResponse ListPlaceIndexes -> Maybe ListPlaceIndexes
page ListPlaceIndexes
rq AWSResponse ListPlaceIndexes
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListPlaceIndexes
ListPlaceIndexesResponse
rs
ListPlaceIndexesResponse
-> Getting (First Text) ListPlaceIndexesResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListPlaceIndexesResponse
-> Const (First Text) ListPlaceIndexesResponse
Lens' ListPlaceIndexesResponse (Maybe Text)
listPlaceIndexesResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListPlaceIndexesResponse
-> Const (First Text) ListPlaceIndexesResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListPlaceIndexesResponse Text
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text)
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe ListPlaceIndexes
forall a. Maybe a
Prelude.Nothing
| [ListPlaceIndexesResponseEntry] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
(AWSResponse ListPlaceIndexes
ListPlaceIndexesResponse
rs ListPlaceIndexesResponse
-> Getting
[ListPlaceIndexesResponseEntry]
ListPlaceIndexesResponse
[ListPlaceIndexesResponseEntry]
-> [ListPlaceIndexesResponseEntry]
forall s a. s -> Getting a s a -> a
Lens.^. Getting
[ListPlaceIndexesResponseEntry]
ListPlaceIndexesResponse
[ListPlaceIndexesResponseEntry]
Lens' ListPlaceIndexesResponse [ListPlaceIndexesResponseEntry]
listPlaceIndexesResponse_entries) =
Maybe ListPlaceIndexes
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
ListPlaceIndexes -> Maybe ListPlaceIndexes
forall a. a -> Maybe a
Prelude.Just (ListPlaceIndexes -> Maybe ListPlaceIndexes)
-> ListPlaceIndexes -> Maybe ListPlaceIndexes
forall a b. (a -> b) -> a -> b
Prelude.$
ListPlaceIndexes
rq
ListPlaceIndexes
-> (ListPlaceIndexes -> ListPlaceIndexes) -> ListPlaceIndexes
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListPlaceIndexes -> Identity ListPlaceIndexes
Lens ListPlaceIndexes ListPlaceIndexes (Maybe Text) (Maybe Text)
listPlaceIndexes_nextToken
((Maybe Text -> Identity (Maybe Text))
-> ListPlaceIndexes -> Identity ListPlaceIndexes)
-> Maybe Text -> ListPlaceIndexes -> ListPlaceIndexes
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListPlaceIndexes
ListPlaceIndexesResponse
rs
ListPlaceIndexesResponse
-> Getting (First Text) ListPlaceIndexesResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListPlaceIndexesResponse
-> Const (First Text) ListPlaceIndexesResponse
Lens' ListPlaceIndexesResponse (Maybe Text)
listPlaceIndexesResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListPlaceIndexesResponse
-> Const (First Text) ListPlaceIndexesResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListPlaceIndexesResponse Text
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text)
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
instance Core.AWSRequest ListPlaceIndexes where
type
AWSResponse ListPlaceIndexes =
ListPlaceIndexesResponse
request :: ListPlaceIndexes -> Request ListPlaceIndexes
request = Service -> ListPlaceIndexes -> Request ListPlaceIndexes
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy ListPlaceIndexes
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListPlaceIndexes)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListPlaceIndexes))
-> Logger
-> Service
-> Proxy ListPlaceIndexes
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListPlaceIndexes)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
( \Int
s ResponseHeaders
h Object
x ->
Maybe Text
-> Int
-> [ListPlaceIndexesResponseEntry]
-> ListPlaceIndexesResponse
ListPlaceIndexesResponse'
(Maybe Text
-> Int
-> [ListPlaceIndexesResponseEntry]
-> ListPlaceIndexesResponse)
-> Either String (Maybe Text)
-> Either
String
(Int
-> [ListPlaceIndexesResponseEntry] -> ListPlaceIndexesResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"NextToken")
Either
String
(Int
-> [ListPlaceIndexesResponseEntry] -> ListPlaceIndexesResponse)
-> Either String Int
-> Either
String
([ListPlaceIndexesResponseEntry] -> ListPlaceIndexesResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Int -> Either String Int
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (Int -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
Either
String
([ListPlaceIndexesResponseEntry] -> ListPlaceIndexesResponse)
-> Either String [ListPlaceIndexesResponseEntry]
-> Either String ListPlaceIndexesResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object
-> Text -> Either String (Maybe [ListPlaceIndexesResponseEntry])
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Entries" Either String (Maybe [ListPlaceIndexesResponseEntry])
-> [ListPlaceIndexesResponseEntry]
-> Either String [ListPlaceIndexesResponseEntry]
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ [ListPlaceIndexesResponseEntry]
forall a. Monoid a => a
Prelude.mempty)
)
instance Prelude.Hashable ListPlaceIndexes
instance Prelude.NFData ListPlaceIndexes
instance Core.ToHeaders ListPlaceIndexes where
toHeaders :: ListPlaceIndexes -> ResponseHeaders
toHeaders =
ResponseHeaders -> ListPlaceIndexes -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"Content-Type"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Core.ToJSON ListPlaceIndexes where
toJSON :: ListPlaceIndexes -> Value
toJSON ListPlaceIndexes' {Maybe Natural
Maybe Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
$sel:maxResults:ListPlaceIndexes' :: ListPlaceIndexes -> Maybe Natural
$sel:nextToken:ListPlaceIndexes' :: ListPlaceIndexes -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"NextToken" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
nextToken,
(Text
"MaxResults" Text -> Natural -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Natural -> Pair) -> Maybe Natural -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
maxResults
]
)
instance Core.ToPath ListPlaceIndexes where
toPath :: ListPlaceIndexes -> ByteString
toPath = ByteString -> ListPlaceIndexes -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/places/v0/list-indexes"
instance Core.ToQuery ListPlaceIndexes where
toQuery :: ListPlaceIndexes -> QueryString
toQuery = QueryString -> ListPlaceIndexes -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data ListPlaceIndexesResponse = ListPlaceIndexesResponse'
{
ListPlaceIndexesResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListPlaceIndexesResponse -> Int
httpStatus :: Prelude.Int,
ListPlaceIndexesResponse -> [ListPlaceIndexesResponseEntry]
entries :: [ListPlaceIndexesResponseEntry]
}
deriving (ListPlaceIndexesResponse -> ListPlaceIndexesResponse -> Bool
(ListPlaceIndexesResponse -> ListPlaceIndexesResponse -> Bool)
-> (ListPlaceIndexesResponse -> ListPlaceIndexesResponse -> Bool)
-> Eq ListPlaceIndexesResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListPlaceIndexesResponse -> ListPlaceIndexesResponse -> Bool
$c/= :: ListPlaceIndexesResponse -> ListPlaceIndexesResponse -> Bool
== :: ListPlaceIndexesResponse -> ListPlaceIndexesResponse -> Bool
$c== :: ListPlaceIndexesResponse -> ListPlaceIndexesResponse -> Bool
Prelude.Eq, ReadPrec [ListPlaceIndexesResponse]
ReadPrec ListPlaceIndexesResponse
Int -> ReadS ListPlaceIndexesResponse
ReadS [ListPlaceIndexesResponse]
(Int -> ReadS ListPlaceIndexesResponse)
-> ReadS [ListPlaceIndexesResponse]
-> ReadPrec ListPlaceIndexesResponse
-> ReadPrec [ListPlaceIndexesResponse]
-> Read ListPlaceIndexesResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListPlaceIndexesResponse]
$creadListPrec :: ReadPrec [ListPlaceIndexesResponse]
readPrec :: ReadPrec ListPlaceIndexesResponse
$creadPrec :: ReadPrec ListPlaceIndexesResponse
readList :: ReadS [ListPlaceIndexesResponse]
$creadList :: ReadS [ListPlaceIndexesResponse]
readsPrec :: Int -> ReadS ListPlaceIndexesResponse
$creadsPrec :: Int -> ReadS ListPlaceIndexesResponse
Prelude.Read, Int -> ListPlaceIndexesResponse -> ShowS
[ListPlaceIndexesResponse] -> ShowS
ListPlaceIndexesResponse -> String
(Int -> ListPlaceIndexesResponse -> ShowS)
-> (ListPlaceIndexesResponse -> String)
-> ([ListPlaceIndexesResponse] -> ShowS)
-> Show ListPlaceIndexesResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListPlaceIndexesResponse] -> ShowS
$cshowList :: [ListPlaceIndexesResponse] -> ShowS
show :: ListPlaceIndexesResponse -> String
$cshow :: ListPlaceIndexesResponse -> String
showsPrec :: Int -> ListPlaceIndexesResponse -> ShowS
$cshowsPrec :: Int -> ListPlaceIndexesResponse -> ShowS
Prelude.Show, (forall x.
ListPlaceIndexesResponse -> Rep ListPlaceIndexesResponse x)
-> (forall x.
Rep ListPlaceIndexesResponse x -> ListPlaceIndexesResponse)
-> Generic ListPlaceIndexesResponse
forall x.
Rep ListPlaceIndexesResponse x -> ListPlaceIndexesResponse
forall x.
ListPlaceIndexesResponse -> Rep ListPlaceIndexesResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListPlaceIndexesResponse x -> ListPlaceIndexesResponse
$cfrom :: forall x.
ListPlaceIndexesResponse -> Rep ListPlaceIndexesResponse x
Prelude.Generic)
newListPlaceIndexesResponse ::
Prelude.Int ->
ListPlaceIndexesResponse
newListPlaceIndexesResponse :: Int -> ListPlaceIndexesResponse
newListPlaceIndexesResponse Int
pHttpStatus_ =
ListPlaceIndexesResponse' :: Maybe Text
-> Int
-> [ListPlaceIndexesResponseEntry]
-> ListPlaceIndexesResponse
ListPlaceIndexesResponse'
{ $sel:nextToken:ListPlaceIndexesResponse' :: Maybe Text
nextToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListPlaceIndexesResponse' :: Int
httpStatus = Int
pHttpStatus_,
$sel:entries:ListPlaceIndexesResponse' :: [ListPlaceIndexesResponseEntry]
entries = [ListPlaceIndexesResponseEntry]
forall a. Monoid a => a
Prelude.mempty
}
listPlaceIndexesResponse_nextToken :: Lens.Lens' ListPlaceIndexesResponse (Prelude.Maybe Prelude.Text)
listPlaceIndexesResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListPlaceIndexesResponse -> f ListPlaceIndexesResponse
listPlaceIndexesResponse_nextToken = (ListPlaceIndexesResponse -> Maybe Text)
-> (ListPlaceIndexesResponse
-> Maybe Text -> ListPlaceIndexesResponse)
-> Lens' ListPlaceIndexesResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListPlaceIndexesResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListPlaceIndexesResponse' :: ListPlaceIndexesResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListPlaceIndexesResponse
s@ListPlaceIndexesResponse' {} Maybe Text
a -> ListPlaceIndexesResponse
s {$sel:nextToken:ListPlaceIndexesResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListPlaceIndexesResponse)
listPlaceIndexesResponse_httpStatus :: Lens.Lens' ListPlaceIndexesResponse Prelude.Int
listPlaceIndexesResponse_httpStatus :: (Int -> f Int)
-> ListPlaceIndexesResponse -> f ListPlaceIndexesResponse
listPlaceIndexesResponse_httpStatus = (ListPlaceIndexesResponse -> Int)
-> (ListPlaceIndexesResponse -> Int -> ListPlaceIndexesResponse)
-> Lens ListPlaceIndexesResponse ListPlaceIndexesResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListPlaceIndexesResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListPlaceIndexesResponse' :: ListPlaceIndexesResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListPlaceIndexesResponse
s@ListPlaceIndexesResponse' {} Int
a -> ListPlaceIndexesResponse
s {$sel:httpStatus:ListPlaceIndexesResponse' :: Int
httpStatus = Int
a} :: ListPlaceIndexesResponse)
listPlaceIndexesResponse_entries :: Lens.Lens' ListPlaceIndexesResponse [ListPlaceIndexesResponseEntry]
listPlaceIndexesResponse_entries :: ([ListPlaceIndexesResponseEntry]
-> f [ListPlaceIndexesResponseEntry])
-> ListPlaceIndexesResponse -> f ListPlaceIndexesResponse
listPlaceIndexesResponse_entries = (ListPlaceIndexesResponse -> [ListPlaceIndexesResponseEntry])
-> (ListPlaceIndexesResponse
-> [ListPlaceIndexesResponseEntry] -> ListPlaceIndexesResponse)
-> Lens' ListPlaceIndexesResponse [ListPlaceIndexesResponseEntry]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListPlaceIndexesResponse' {[ListPlaceIndexesResponseEntry]
entries :: [ListPlaceIndexesResponseEntry]
$sel:entries:ListPlaceIndexesResponse' :: ListPlaceIndexesResponse -> [ListPlaceIndexesResponseEntry]
entries} -> [ListPlaceIndexesResponseEntry]
entries) (\s :: ListPlaceIndexesResponse
s@ListPlaceIndexesResponse' {} [ListPlaceIndexesResponseEntry]
a -> ListPlaceIndexesResponse
s {$sel:entries:ListPlaceIndexesResponse' :: [ListPlaceIndexesResponseEntry]
entries = [ListPlaceIndexesResponseEntry]
a} :: ListPlaceIndexesResponse) (([ListPlaceIndexesResponseEntry]
-> f [ListPlaceIndexesResponseEntry])
-> ListPlaceIndexesResponse -> f ListPlaceIndexesResponse)
-> (([ListPlaceIndexesResponseEntry]
-> f [ListPlaceIndexesResponseEntry])
-> [ListPlaceIndexesResponseEntry]
-> f [ListPlaceIndexesResponseEntry])
-> ([ListPlaceIndexesResponseEntry]
-> f [ListPlaceIndexesResponseEntry])
-> ListPlaceIndexesResponse
-> f ListPlaceIndexesResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([ListPlaceIndexesResponseEntry]
-> f [ListPlaceIndexesResponseEntry])
-> [ListPlaceIndexesResponseEntry]
-> f [ListPlaceIndexesResponseEntry]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
instance Prelude.NFData ListPlaceIndexesResponse