{-# 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.IoTEvents.ListInputRoutings
-- 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 one or more input routings.
module Amazonka.IoTEvents.ListInputRoutings
  ( -- * Creating a Request
    ListInputRoutings (..),
    newListInputRoutings,

    -- * Request Lenses
    listInputRoutings_nextToken,
    listInputRoutings_maxResults,
    listInputRoutings_inputIdentifier,

    -- * Destructuring the Response
    ListInputRoutingsResponse (..),
    newListInputRoutingsResponse,

    -- * Response Lenses
    listInputRoutingsResponse_routedResources,
    listInputRoutingsResponse_nextToken,
    listInputRoutingsResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import Amazonka.IoTEvents.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:/ 'newListInputRoutings' smart constructor.
data ListInputRoutings = ListInputRoutings'
  { -- | The token that you can use to return the next set of results.
    ListInputRoutings -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The maximum number of results to be returned per request.
    ListInputRoutings -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
    -- | The identifer of the routed input.
    ListInputRoutings -> InputIdentifier
inputIdentifier :: InputIdentifier
  }
  deriving (ListInputRoutings -> ListInputRoutings -> Bool
(ListInputRoutings -> ListInputRoutings -> Bool)
-> (ListInputRoutings -> ListInputRoutings -> Bool)
-> Eq ListInputRoutings
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListInputRoutings -> ListInputRoutings -> Bool
$c/= :: ListInputRoutings -> ListInputRoutings -> Bool
== :: ListInputRoutings -> ListInputRoutings -> Bool
$c== :: ListInputRoutings -> ListInputRoutings -> Bool
Prelude.Eq, ReadPrec [ListInputRoutings]
ReadPrec ListInputRoutings
Int -> ReadS ListInputRoutings
ReadS [ListInputRoutings]
(Int -> ReadS ListInputRoutings)
-> ReadS [ListInputRoutings]
-> ReadPrec ListInputRoutings
-> ReadPrec [ListInputRoutings]
-> Read ListInputRoutings
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListInputRoutings]
$creadListPrec :: ReadPrec [ListInputRoutings]
readPrec :: ReadPrec ListInputRoutings
$creadPrec :: ReadPrec ListInputRoutings
readList :: ReadS [ListInputRoutings]
$creadList :: ReadS [ListInputRoutings]
readsPrec :: Int -> ReadS ListInputRoutings
$creadsPrec :: Int -> ReadS ListInputRoutings
Prelude.Read, Int -> ListInputRoutings -> ShowS
[ListInputRoutings] -> ShowS
ListInputRoutings -> String
(Int -> ListInputRoutings -> ShowS)
-> (ListInputRoutings -> String)
-> ([ListInputRoutings] -> ShowS)
-> Show ListInputRoutings
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListInputRoutings] -> ShowS
$cshowList :: [ListInputRoutings] -> ShowS
show :: ListInputRoutings -> String
$cshow :: ListInputRoutings -> String
showsPrec :: Int -> ListInputRoutings -> ShowS
$cshowsPrec :: Int -> ListInputRoutings -> ShowS
Prelude.Show, (forall x. ListInputRoutings -> Rep ListInputRoutings x)
-> (forall x. Rep ListInputRoutings x -> ListInputRoutings)
-> Generic ListInputRoutings
forall x. Rep ListInputRoutings x -> ListInputRoutings
forall x. ListInputRoutings -> Rep ListInputRoutings x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListInputRoutings x -> ListInputRoutings
$cfrom :: forall x. ListInputRoutings -> Rep ListInputRoutings x
Prelude.Generic)

-- |
-- Create a value of 'ListInputRoutings' 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', 'listInputRoutings_nextToken' - The token that you can use to return the next set of results.
--
-- 'maxResults', 'listInputRoutings_maxResults' - The maximum number of results to be returned per request.
--
-- 'inputIdentifier', 'listInputRoutings_inputIdentifier' - The identifer of the routed input.
newListInputRoutings ::
  -- | 'inputIdentifier'
  InputIdentifier ->
  ListInputRoutings
newListInputRoutings :: InputIdentifier -> ListInputRoutings
newListInputRoutings InputIdentifier
pInputIdentifier_ =
  ListInputRoutings' :: Maybe Text -> Maybe Natural -> InputIdentifier -> ListInputRoutings
ListInputRoutings'
    { $sel:nextToken:ListInputRoutings' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:maxResults:ListInputRoutings' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
      $sel:inputIdentifier:ListInputRoutings' :: InputIdentifier
inputIdentifier = InputIdentifier
pInputIdentifier_
    }

-- | The token that you can use to return the next set of results.
listInputRoutings_nextToken :: Lens.Lens' ListInputRoutings (Prelude.Maybe Prelude.Text)
listInputRoutings_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListInputRoutings -> f ListInputRoutings
listInputRoutings_nextToken = (ListInputRoutings -> Maybe Text)
-> (ListInputRoutings -> Maybe Text -> ListInputRoutings)
-> Lens
     ListInputRoutings ListInputRoutings (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListInputRoutings' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListInputRoutings' :: ListInputRoutings -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListInputRoutings
s@ListInputRoutings' {} Maybe Text
a -> ListInputRoutings
s {$sel:nextToken:ListInputRoutings' :: Maybe Text
nextToken = Maybe Text
a} :: ListInputRoutings)

-- | The maximum number of results to be returned per request.
listInputRoutings_maxResults :: Lens.Lens' ListInputRoutings (Prelude.Maybe Prelude.Natural)
listInputRoutings_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListInputRoutings -> f ListInputRoutings
listInputRoutings_maxResults = (ListInputRoutings -> Maybe Natural)
-> (ListInputRoutings -> Maybe Natural -> ListInputRoutings)
-> Lens
     ListInputRoutings ListInputRoutings (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListInputRoutings' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListInputRoutings' :: ListInputRoutings -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListInputRoutings
s@ListInputRoutings' {} Maybe Natural
a -> ListInputRoutings
s {$sel:maxResults:ListInputRoutings' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListInputRoutings)

-- | The identifer of the routed input.
listInputRoutings_inputIdentifier :: Lens.Lens' ListInputRoutings InputIdentifier
listInputRoutings_inputIdentifier :: (InputIdentifier -> f InputIdentifier)
-> ListInputRoutings -> f ListInputRoutings
listInputRoutings_inputIdentifier = (ListInputRoutings -> InputIdentifier)
-> (ListInputRoutings -> InputIdentifier -> ListInputRoutings)
-> Lens
     ListInputRoutings ListInputRoutings InputIdentifier InputIdentifier
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListInputRoutings' {InputIdentifier
inputIdentifier :: InputIdentifier
$sel:inputIdentifier:ListInputRoutings' :: ListInputRoutings -> InputIdentifier
inputIdentifier} -> InputIdentifier
inputIdentifier) (\s :: ListInputRoutings
s@ListInputRoutings' {} InputIdentifier
a -> ListInputRoutings
s {$sel:inputIdentifier:ListInputRoutings' :: InputIdentifier
inputIdentifier = InputIdentifier
a} :: ListInputRoutings)

instance Core.AWSRequest ListInputRoutings where
  type
    AWSResponse ListInputRoutings =
      ListInputRoutingsResponse
  request :: ListInputRoutings -> Request ListInputRoutings
request = Service -> ListInputRoutings -> Request ListInputRoutings
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy ListInputRoutings
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse ListInputRoutings)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse ListInputRoutings))
-> Logger
-> Service
-> Proxy ListInputRoutings
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse ListInputRoutings)))
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 [RoutedResource]
-> Maybe Text -> Int -> ListInputRoutingsResponse
ListInputRoutingsResponse'
            (Maybe [RoutedResource]
 -> Maybe Text -> Int -> ListInputRoutingsResponse)
-> Either String (Maybe [RoutedResource])
-> Either String (Maybe Text -> Int -> ListInputRoutingsResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( Object
x Object -> Text -> Either String (Maybe (Maybe [RoutedResource]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"routedResources"
                            Either String (Maybe (Maybe [RoutedResource]))
-> Maybe [RoutedResource] -> Either String (Maybe [RoutedResource])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [RoutedResource]
forall a. Monoid a => a
Prelude.mempty
                        )
            Either String (Maybe Text -> Int -> ListInputRoutingsResponse)
-> Either String (Maybe Text)
-> Either String (Int -> ListInputRoutingsResponse)
forall (f :: * -> *) a b. Applicative f => 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 -> ListInputRoutingsResponse)
-> Either String Int -> Either String ListInputRoutingsResponse
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 ListInputRoutings

instance Prelude.NFData ListInputRoutings

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

instance Core.ToJSON ListInputRoutings where
  toJSON :: ListInputRoutings -> Value
toJSON ListInputRoutings' {Maybe Natural
Maybe Text
InputIdentifier
inputIdentifier :: InputIdentifier
maxResults :: Maybe Natural
nextToken :: Maybe Text
$sel:inputIdentifier:ListInputRoutings' :: ListInputRoutings -> InputIdentifier
$sel:maxResults:ListInputRoutings' :: ListInputRoutings -> Maybe Natural
$sel:nextToken:ListInputRoutings' :: ListInputRoutings -> 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,
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
              (Text
"inputIdentifier" Text -> InputIdentifier -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= InputIdentifier
inputIdentifier)
          ]
      )

instance Core.ToPath ListInputRoutings where
  toPath :: ListInputRoutings -> ByteString
toPath = ByteString -> ListInputRoutings -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/input-routings"

instance Core.ToQuery ListInputRoutings where
  toQuery :: ListInputRoutings -> QueryString
toQuery = QueryString -> ListInputRoutings -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty

-- | /See:/ 'newListInputRoutingsResponse' smart constructor.
data ListInputRoutingsResponse = ListInputRoutingsResponse'
  { -- | Summary information about the routed resources.
    ListInputRoutingsResponse -> Maybe [RoutedResource]
routedResources :: Prelude.Maybe [RoutedResource],
    -- | The token that you can use to return the next set of results, or @null@
    -- if there are no more results.
    ListInputRoutingsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    ListInputRoutingsResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (ListInputRoutingsResponse -> ListInputRoutingsResponse -> Bool
(ListInputRoutingsResponse -> ListInputRoutingsResponse -> Bool)
-> (ListInputRoutingsResponse -> ListInputRoutingsResponse -> Bool)
-> Eq ListInputRoutingsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListInputRoutingsResponse -> ListInputRoutingsResponse -> Bool
$c/= :: ListInputRoutingsResponse -> ListInputRoutingsResponse -> Bool
== :: ListInputRoutingsResponse -> ListInputRoutingsResponse -> Bool
$c== :: ListInputRoutingsResponse -> ListInputRoutingsResponse -> Bool
Prelude.Eq, ReadPrec [ListInputRoutingsResponse]
ReadPrec ListInputRoutingsResponse
Int -> ReadS ListInputRoutingsResponse
ReadS [ListInputRoutingsResponse]
(Int -> ReadS ListInputRoutingsResponse)
-> ReadS [ListInputRoutingsResponse]
-> ReadPrec ListInputRoutingsResponse
-> ReadPrec [ListInputRoutingsResponse]
-> Read ListInputRoutingsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListInputRoutingsResponse]
$creadListPrec :: ReadPrec [ListInputRoutingsResponse]
readPrec :: ReadPrec ListInputRoutingsResponse
$creadPrec :: ReadPrec ListInputRoutingsResponse
readList :: ReadS [ListInputRoutingsResponse]
$creadList :: ReadS [ListInputRoutingsResponse]
readsPrec :: Int -> ReadS ListInputRoutingsResponse
$creadsPrec :: Int -> ReadS ListInputRoutingsResponse
Prelude.Read, Int -> ListInputRoutingsResponse -> ShowS
[ListInputRoutingsResponse] -> ShowS
ListInputRoutingsResponse -> String
(Int -> ListInputRoutingsResponse -> ShowS)
-> (ListInputRoutingsResponse -> String)
-> ([ListInputRoutingsResponse] -> ShowS)
-> Show ListInputRoutingsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListInputRoutingsResponse] -> ShowS
$cshowList :: [ListInputRoutingsResponse] -> ShowS
show :: ListInputRoutingsResponse -> String
$cshow :: ListInputRoutingsResponse -> String
showsPrec :: Int -> ListInputRoutingsResponse -> ShowS
$cshowsPrec :: Int -> ListInputRoutingsResponse -> ShowS
Prelude.Show, (forall x.
 ListInputRoutingsResponse -> Rep ListInputRoutingsResponse x)
-> (forall x.
    Rep ListInputRoutingsResponse x -> ListInputRoutingsResponse)
-> Generic ListInputRoutingsResponse
forall x.
Rep ListInputRoutingsResponse x -> ListInputRoutingsResponse
forall x.
ListInputRoutingsResponse -> Rep ListInputRoutingsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListInputRoutingsResponse x -> ListInputRoutingsResponse
$cfrom :: forall x.
ListInputRoutingsResponse -> Rep ListInputRoutingsResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListInputRoutingsResponse' 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:
--
-- 'routedResources', 'listInputRoutingsResponse_routedResources' - Summary information about the routed resources.
--
-- 'nextToken', 'listInputRoutingsResponse_nextToken' - The token that you can use to return the next set of results, or @null@
-- if there are no more results.
--
-- 'httpStatus', 'listInputRoutingsResponse_httpStatus' - The response's http status code.
newListInputRoutingsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListInputRoutingsResponse
newListInputRoutingsResponse :: Int -> ListInputRoutingsResponse
newListInputRoutingsResponse Int
pHttpStatus_ =
  ListInputRoutingsResponse' :: Maybe [RoutedResource]
-> Maybe Text -> Int -> ListInputRoutingsResponse
ListInputRoutingsResponse'
    { $sel:routedResources:ListInputRoutingsResponse' :: Maybe [RoutedResource]
routedResources =
        Maybe [RoutedResource]
forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListInputRoutingsResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListInputRoutingsResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | Summary information about the routed resources.
listInputRoutingsResponse_routedResources :: Lens.Lens' ListInputRoutingsResponse (Prelude.Maybe [RoutedResource])
listInputRoutingsResponse_routedResources :: (Maybe [RoutedResource] -> f (Maybe [RoutedResource]))
-> ListInputRoutingsResponse -> f ListInputRoutingsResponse
listInputRoutingsResponse_routedResources = (ListInputRoutingsResponse -> Maybe [RoutedResource])
-> (ListInputRoutingsResponse
    -> Maybe [RoutedResource] -> ListInputRoutingsResponse)
-> Lens
     ListInputRoutingsResponse
     ListInputRoutingsResponse
     (Maybe [RoutedResource])
     (Maybe [RoutedResource])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListInputRoutingsResponse' {Maybe [RoutedResource]
routedResources :: Maybe [RoutedResource]
$sel:routedResources:ListInputRoutingsResponse' :: ListInputRoutingsResponse -> Maybe [RoutedResource]
routedResources} -> Maybe [RoutedResource]
routedResources) (\s :: ListInputRoutingsResponse
s@ListInputRoutingsResponse' {} Maybe [RoutedResource]
a -> ListInputRoutingsResponse
s {$sel:routedResources:ListInputRoutingsResponse' :: Maybe [RoutedResource]
routedResources = Maybe [RoutedResource]
a} :: ListInputRoutingsResponse) ((Maybe [RoutedResource] -> f (Maybe [RoutedResource]))
 -> ListInputRoutingsResponse -> f ListInputRoutingsResponse)
-> ((Maybe [RoutedResource] -> f (Maybe [RoutedResource]))
    -> Maybe [RoutedResource] -> f (Maybe [RoutedResource]))
-> (Maybe [RoutedResource] -> f (Maybe [RoutedResource]))
-> ListInputRoutingsResponse
-> f ListInputRoutingsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [RoutedResource] [RoutedResource] [RoutedResource] [RoutedResource]
-> Iso
     (Maybe [RoutedResource])
     (Maybe [RoutedResource])
     (Maybe [RoutedResource])
     (Maybe [RoutedResource])
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
  [RoutedResource] [RoutedResource] [RoutedResource] [RoutedResource]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The token that you can use to return the next set of results, or @null@
-- if there are no more results.
listInputRoutingsResponse_nextToken :: Lens.Lens' ListInputRoutingsResponse (Prelude.Maybe Prelude.Text)
listInputRoutingsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListInputRoutingsResponse -> f ListInputRoutingsResponse
listInputRoutingsResponse_nextToken = (ListInputRoutingsResponse -> Maybe Text)
-> (ListInputRoutingsResponse
    -> Maybe Text -> ListInputRoutingsResponse)
-> Lens
     ListInputRoutingsResponse
     ListInputRoutingsResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListInputRoutingsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListInputRoutingsResponse' :: ListInputRoutingsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListInputRoutingsResponse
s@ListInputRoutingsResponse' {} Maybe Text
a -> ListInputRoutingsResponse
s {$sel:nextToken:ListInputRoutingsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListInputRoutingsResponse)

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

instance Prelude.NFData ListInputRoutingsResponse