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

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

-- |
-- Module      : Amazonka.IoT.ListIndices
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Lists the search indices.
--
-- Requires permission to access the
-- <https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions ListIndices>
-- action.
--
-- This operation returns paginated results.
module Amazonka.IoT.ListIndices
  ( -- * Creating a Request
    ListIndices (..),
    newListIndices,

    -- * Request Lenses
    listIndices_nextToken,
    listIndices_maxResults,

    -- * Destructuring the Response
    ListIndicesResponse (..),
    newListIndicesResponse,

    -- * Response Lenses
    listIndicesResponse_nextToken,
    listIndicesResponse_indexNames,
    listIndicesResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import Amazonka.IoT.Types
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response

-- | /See:/ 'newListIndices' smart constructor.
data ListIndices = ListIndices'
  { -- | The token used to get the next set of results, or @null@ if there are no
    -- additional results.
    ListIndices -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The maximum number of results to return at one time.
    ListIndices -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural
  }
  deriving (ListIndices -> ListIndices -> Bool
(ListIndices -> ListIndices -> Bool)
-> (ListIndices -> ListIndices -> Bool) -> Eq ListIndices
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListIndices -> ListIndices -> Bool
$c/= :: ListIndices -> ListIndices -> Bool
== :: ListIndices -> ListIndices -> Bool
$c== :: ListIndices -> ListIndices -> Bool
Prelude.Eq, ReadPrec [ListIndices]
ReadPrec ListIndices
Int -> ReadS ListIndices
ReadS [ListIndices]
(Int -> ReadS ListIndices)
-> ReadS [ListIndices]
-> ReadPrec ListIndices
-> ReadPrec [ListIndices]
-> Read ListIndices
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListIndices]
$creadListPrec :: ReadPrec [ListIndices]
readPrec :: ReadPrec ListIndices
$creadPrec :: ReadPrec ListIndices
readList :: ReadS [ListIndices]
$creadList :: ReadS [ListIndices]
readsPrec :: Int -> ReadS ListIndices
$creadsPrec :: Int -> ReadS ListIndices
Prelude.Read, Int -> ListIndices -> ShowS
[ListIndices] -> ShowS
ListIndices -> String
(Int -> ListIndices -> ShowS)
-> (ListIndices -> String)
-> ([ListIndices] -> ShowS)
-> Show ListIndices
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListIndices] -> ShowS
$cshowList :: [ListIndices] -> ShowS
show :: ListIndices -> String
$cshow :: ListIndices -> String
showsPrec :: Int -> ListIndices -> ShowS
$cshowsPrec :: Int -> ListIndices -> ShowS
Prelude.Show, (forall x. ListIndices -> Rep ListIndices x)
-> (forall x. Rep ListIndices x -> ListIndices)
-> Generic ListIndices
forall x. Rep ListIndices x -> ListIndices
forall x. ListIndices -> Rep ListIndices x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListIndices x -> ListIndices
$cfrom :: forall x. ListIndices -> Rep ListIndices x
Prelude.Generic)

-- |
-- Create a value of 'ListIndices' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'nextToken', 'listIndices_nextToken' - The token used to get the next set of results, or @null@ if there are no
-- additional results.
--
-- 'maxResults', 'listIndices_maxResults' - The maximum number of results to return at one time.
newListIndices ::
  ListIndices
newListIndices :: ListIndices
newListIndices =
  ListIndices' :: Maybe Text -> Maybe Natural -> ListIndices
ListIndices'
    { $sel:nextToken:ListIndices' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:maxResults:ListIndices' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing
    }

-- | The token used to get the next set of results, or @null@ if there are no
-- additional results.
listIndices_nextToken :: Lens.Lens' ListIndices (Prelude.Maybe Prelude.Text)
listIndices_nextToken :: (Maybe Text -> f (Maybe Text)) -> ListIndices -> f ListIndices
listIndices_nextToken = (ListIndices -> Maybe Text)
-> (ListIndices -> Maybe Text -> ListIndices)
-> Lens ListIndices ListIndices (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListIndices' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListIndices' :: ListIndices -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListIndices
s@ListIndices' {} Maybe Text
a -> ListIndices
s {$sel:nextToken:ListIndices' :: Maybe Text
nextToken = Maybe Text
a} :: ListIndices)

-- | The maximum number of results to return at one time.
listIndices_maxResults :: Lens.Lens' ListIndices (Prelude.Maybe Prelude.Natural)
listIndices_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListIndices -> f ListIndices
listIndices_maxResults = (ListIndices -> Maybe Natural)
-> (ListIndices -> Maybe Natural -> ListIndices)
-> Lens ListIndices ListIndices (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListIndices' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListIndices' :: ListIndices -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListIndices
s@ListIndices' {} Maybe Natural
a -> ListIndices
s {$sel:maxResults:ListIndices' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListIndices)

instance Core.AWSPager ListIndices where
  page :: ListIndices -> AWSResponse ListIndices -> Maybe ListIndices
page ListIndices
rq AWSResponse ListIndices
rs
    | Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse ListIndices
ListIndicesResponse
rs
            ListIndicesResponse
-> Getting (First Text) ListIndicesResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListIndicesResponse -> Const (First Text) ListIndicesResponse
Lens' ListIndicesResponse (Maybe Text)
listIndicesResponse_nextToken ((Maybe Text -> Const (First Text) (Maybe Text))
 -> ListIndicesResponse -> Const (First Text) ListIndicesResponse)
-> ((Text -> Const (First Text) Text)
    -> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListIndicesResponse 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 ListIndices
forall a. Maybe a
Prelude.Nothing
    | Maybe [Text] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse ListIndices
ListIndicesResponse
rs
            ListIndicesResponse
-> Getting (First [Text]) ListIndicesResponse [Text]
-> Maybe [Text]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [Text] -> Const (First [Text]) (Maybe [Text]))
-> ListIndicesResponse -> Const (First [Text]) ListIndicesResponse
Lens' ListIndicesResponse (Maybe [Text])
listIndicesResponse_indexNames ((Maybe [Text] -> Const (First [Text]) (Maybe [Text]))
 -> ListIndicesResponse -> Const (First [Text]) ListIndicesResponse)
-> (([Text] -> Const (First [Text]) [Text])
    -> Maybe [Text] -> Const (First [Text]) (Maybe [Text]))
-> Getting (First [Text]) ListIndicesResponse [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 ListIndices
forall a. Maybe a
Prelude.Nothing
    | Bool
Prelude.otherwise =
      ListIndices -> Maybe ListIndices
forall a. a -> Maybe a
Prelude.Just (ListIndices -> Maybe ListIndices)
-> ListIndices -> Maybe ListIndices
forall a b. (a -> b) -> a -> b
Prelude.$
        ListIndices
rq
          ListIndices -> (ListIndices -> ListIndices) -> ListIndices
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListIndices -> Identity ListIndices
Lens ListIndices ListIndices (Maybe Text) (Maybe Text)
listIndices_nextToken
          ((Maybe Text -> Identity (Maybe Text))
 -> ListIndices -> Identity ListIndices)
-> Maybe Text -> ListIndices -> ListIndices
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListIndices
ListIndicesResponse
rs
          ListIndicesResponse
-> Getting (First Text) ListIndicesResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListIndicesResponse -> Const (First Text) ListIndicesResponse
Lens' ListIndicesResponse (Maybe Text)
listIndicesResponse_nextToken ((Maybe Text -> Const (First Text) (Maybe Text))
 -> ListIndicesResponse -> Const (First Text) ListIndicesResponse)
-> ((Text -> Const (First Text) Text)
    -> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListIndicesResponse 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 ListIndices where
  type AWSResponse ListIndices = ListIndicesResponse
  request :: ListIndices -> Request ListIndices
request = Service -> ListIndices -> Request ListIndices
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
  response :: Logger
-> Service
-> Proxy ListIndices
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListIndices)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse ListIndices))
-> Logger
-> Service
-> Proxy ListIndices
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListIndices)))
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 -> Maybe [Text] -> Int -> ListIndicesResponse
ListIndicesResponse'
            (Maybe Text -> Maybe [Text] -> Int -> ListIndicesResponse)
-> Either String (Maybe Text)
-> Either String (Maybe [Text] -> Int -> ListIndicesResponse)
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 (Maybe [Text] -> Int -> ListIndicesResponse)
-> Either String (Maybe [Text])
-> Either String (Int -> ListIndicesResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Maybe [Text]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"indexNames" Either String (Maybe (Maybe [Text]))
-> Maybe [Text] -> Either String (Maybe [Text])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [Text]
forall a. Monoid a => a
Prelude.mempty)
            Either String (Int -> ListIndicesResponse)
-> Either String Int -> Either String ListIndicesResponse
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))
      )

instance Prelude.Hashable ListIndices

instance Prelude.NFData ListIndices

instance Core.ToHeaders ListIndices where
  toHeaders :: ListIndices -> ResponseHeaders
toHeaders = ResponseHeaders -> ListIndices -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty

instance Core.ToPath ListIndices where
  toPath :: ListIndices -> ByteString
toPath = ByteString -> ListIndices -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/indices"

instance Core.ToQuery ListIndices where
  toQuery :: ListIndices -> QueryString
toQuery ListIndices' {Maybe Natural
Maybe Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
$sel:maxResults:ListIndices' :: ListIndices -> Maybe Natural
$sel:nextToken:ListIndices' :: ListIndices -> Maybe Text
..} =
    [QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"nextToken" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
nextToken,
        ByteString
"maxResults" ByteString -> Maybe Natural -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Natural
maxResults
      ]

-- | /See:/ 'newListIndicesResponse' smart constructor.
data ListIndicesResponse = ListIndicesResponse'
  { -- | The token used to get the next set of results, or @null@ if there are no
    -- additional results.
    ListIndicesResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The index names.
    ListIndicesResponse -> Maybe [Text]
indexNames :: Prelude.Maybe [Prelude.Text],
    -- | The response's http status code.
    ListIndicesResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (ListIndicesResponse -> ListIndicesResponse -> Bool
(ListIndicesResponse -> ListIndicesResponse -> Bool)
-> (ListIndicesResponse -> ListIndicesResponse -> Bool)
-> Eq ListIndicesResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListIndicesResponse -> ListIndicesResponse -> Bool
$c/= :: ListIndicesResponse -> ListIndicesResponse -> Bool
== :: ListIndicesResponse -> ListIndicesResponse -> Bool
$c== :: ListIndicesResponse -> ListIndicesResponse -> Bool
Prelude.Eq, ReadPrec [ListIndicesResponse]
ReadPrec ListIndicesResponse
Int -> ReadS ListIndicesResponse
ReadS [ListIndicesResponse]
(Int -> ReadS ListIndicesResponse)
-> ReadS [ListIndicesResponse]
-> ReadPrec ListIndicesResponse
-> ReadPrec [ListIndicesResponse]
-> Read ListIndicesResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListIndicesResponse]
$creadListPrec :: ReadPrec [ListIndicesResponse]
readPrec :: ReadPrec ListIndicesResponse
$creadPrec :: ReadPrec ListIndicesResponse
readList :: ReadS [ListIndicesResponse]
$creadList :: ReadS [ListIndicesResponse]
readsPrec :: Int -> ReadS ListIndicesResponse
$creadsPrec :: Int -> ReadS ListIndicesResponse
Prelude.Read, Int -> ListIndicesResponse -> ShowS
[ListIndicesResponse] -> ShowS
ListIndicesResponse -> String
(Int -> ListIndicesResponse -> ShowS)
-> (ListIndicesResponse -> String)
-> ([ListIndicesResponse] -> ShowS)
-> Show ListIndicesResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListIndicesResponse] -> ShowS
$cshowList :: [ListIndicesResponse] -> ShowS
show :: ListIndicesResponse -> String
$cshow :: ListIndicesResponse -> String
showsPrec :: Int -> ListIndicesResponse -> ShowS
$cshowsPrec :: Int -> ListIndicesResponse -> ShowS
Prelude.Show, (forall x. ListIndicesResponse -> Rep ListIndicesResponse x)
-> (forall x. Rep ListIndicesResponse x -> ListIndicesResponse)
-> Generic ListIndicesResponse
forall x. Rep ListIndicesResponse x -> ListIndicesResponse
forall x. ListIndicesResponse -> Rep ListIndicesResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListIndicesResponse x -> ListIndicesResponse
$cfrom :: forall x. ListIndicesResponse -> Rep ListIndicesResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListIndicesResponse' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'nextToken', 'listIndicesResponse_nextToken' - The token used to get the next set of results, or @null@ if there are no
-- additional results.
--
-- 'indexNames', 'listIndicesResponse_indexNames' - The index names.
--
-- 'httpStatus', 'listIndicesResponse_httpStatus' - The response's http status code.
newListIndicesResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListIndicesResponse
newListIndicesResponse :: Int -> ListIndicesResponse
newListIndicesResponse Int
pHttpStatus_ =
  ListIndicesResponse' :: Maybe Text -> Maybe [Text] -> Int -> ListIndicesResponse
ListIndicesResponse'
    { $sel:nextToken:ListIndicesResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:indexNames:ListIndicesResponse' :: Maybe [Text]
indexNames = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListIndicesResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | The token used to get the next set of results, or @null@ if there are no
-- additional results.
listIndicesResponse_nextToken :: Lens.Lens' ListIndicesResponse (Prelude.Maybe Prelude.Text)
listIndicesResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListIndicesResponse -> f ListIndicesResponse
listIndicesResponse_nextToken = (ListIndicesResponse -> Maybe Text)
-> (ListIndicesResponse -> Maybe Text -> ListIndicesResponse)
-> Lens' ListIndicesResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListIndicesResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListIndicesResponse' :: ListIndicesResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListIndicesResponse
s@ListIndicesResponse' {} Maybe Text
a -> ListIndicesResponse
s {$sel:nextToken:ListIndicesResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListIndicesResponse)

-- | The index names.
listIndicesResponse_indexNames :: Lens.Lens' ListIndicesResponse (Prelude.Maybe [Prelude.Text])
listIndicesResponse_indexNames :: (Maybe [Text] -> f (Maybe [Text]))
-> ListIndicesResponse -> f ListIndicesResponse
listIndicesResponse_indexNames = (ListIndicesResponse -> Maybe [Text])
-> (ListIndicesResponse -> Maybe [Text] -> ListIndicesResponse)
-> Lens' ListIndicesResponse (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListIndicesResponse' {Maybe [Text]
indexNames :: Maybe [Text]
$sel:indexNames:ListIndicesResponse' :: ListIndicesResponse -> Maybe [Text]
indexNames} -> Maybe [Text]
indexNames) (\s :: ListIndicesResponse
s@ListIndicesResponse' {} Maybe [Text]
a -> ListIndicesResponse
s {$sel:indexNames:ListIndicesResponse' :: Maybe [Text]
indexNames = Maybe [Text]
a} :: ListIndicesResponse) ((Maybe [Text] -> f (Maybe [Text]))
 -> ListIndicesResponse -> f ListIndicesResponse)
-> ((Maybe [Text] -> f (Maybe [Text]))
    -> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> ListIndicesResponse
-> f ListIndicesResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [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 [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

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

instance Prelude.NFData ListIndicesResponse