{-# 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.IoTFleetWise.ListSignalCatalogNodes
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Lists of information about the signals (nodes) specified in a signal
-- catalog.
--
-- This API operation uses pagination. Specify the @nextToken@ parameter in
-- the request to return more results.
--
-- This operation returns paginated results.
module Amazonka.IoTFleetWise.ListSignalCatalogNodes
  ( -- * Creating a Request
    ListSignalCatalogNodes (..),
    newListSignalCatalogNodes,

    -- * Request Lenses
    listSignalCatalogNodes_maxResults,
    listSignalCatalogNodes_nextToken,
    listSignalCatalogNodes_name,

    -- * Destructuring the Response
    ListSignalCatalogNodesResponse (..),
    newListSignalCatalogNodesResponse,

    -- * Response Lenses
    listSignalCatalogNodesResponse_nextToken,
    listSignalCatalogNodesResponse_nodes,
    listSignalCatalogNodesResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.IoTFleetWise.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response

-- | /See:/ 'newListSignalCatalogNodes' smart constructor.
data ListSignalCatalogNodes = ListSignalCatalogNodes'
  { -- | The maximum number of items to return, between 1 and 100, inclusive.
    ListSignalCatalogNodes -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
    -- | A pagination token for the next set of results.
    --
    -- If the results of a search are large, only a portion of the results are
    -- returned, and a @nextToken@ pagination token is returned in the
    -- response. To retrieve the next set of results, reissue the search
    -- request and include the returned token. When all results have been
    -- returned, the response does not contain a pagination token value.
    ListSignalCatalogNodes -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The name of the signal catalog to list information about.
    ListSignalCatalogNodes -> Text
name :: Prelude.Text
  }
  deriving (ListSignalCatalogNodes -> ListSignalCatalogNodes -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListSignalCatalogNodes -> ListSignalCatalogNodes -> Bool
$c/= :: ListSignalCatalogNodes -> ListSignalCatalogNodes -> Bool
== :: ListSignalCatalogNodes -> ListSignalCatalogNodes -> Bool
$c== :: ListSignalCatalogNodes -> ListSignalCatalogNodes -> Bool
Prelude.Eq, ReadPrec [ListSignalCatalogNodes]
ReadPrec ListSignalCatalogNodes
Int -> ReadS ListSignalCatalogNodes
ReadS [ListSignalCatalogNodes]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListSignalCatalogNodes]
$creadListPrec :: ReadPrec [ListSignalCatalogNodes]
readPrec :: ReadPrec ListSignalCatalogNodes
$creadPrec :: ReadPrec ListSignalCatalogNodes
readList :: ReadS [ListSignalCatalogNodes]
$creadList :: ReadS [ListSignalCatalogNodes]
readsPrec :: Int -> ReadS ListSignalCatalogNodes
$creadsPrec :: Int -> ReadS ListSignalCatalogNodes
Prelude.Read, Int -> ListSignalCatalogNodes -> ShowS
[ListSignalCatalogNodes] -> ShowS
ListSignalCatalogNodes -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListSignalCatalogNodes] -> ShowS
$cshowList :: [ListSignalCatalogNodes] -> ShowS
show :: ListSignalCatalogNodes -> String
$cshow :: ListSignalCatalogNodes -> String
showsPrec :: Int -> ListSignalCatalogNodes -> ShowS
$cshowsPrec :: Int -> ListSignalCatalogNodes -> ShowS
Prelude.Show, forall x. Rep ListSignalCatalogNodes x -> ListSignalCatalogNodes
forall x. ListSignalCatalogNodes -> Rep ListSignalCatalogNodes x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListSignalCatalogNodes x -> ListSignalCatalogNodes
$cfrom :: forall x. ListSignalCatalogNodes -> Rep ListSignalCatalogNodes x
Prelude.Generic)

-- |
-- Create a value of 'ListSignalCatalogNodes' 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:
--
-- 'maxResults', 'listSignalCatalogNodes_maxResults' - The maximum number of items to return, between 1 and 100, inclusive.
--
-- 'nextToken', 'listSignalCatalogNodes_nextToken' - A pagination token for the next set of results.
--
-- If the results of a search are large, only a portion of the results are
-- returned, and a @nextToken@ pagination token is returned in the
-- response. To retrieve the next set of results, reissue the search
-- request and include the returned token. When all results have been
-- returned, the response does not contain a pagination token value.
--
-- 'name', 'listSignalCatalogNodes_name' - The name of the signal catalog to list information about.
newListSignalCatalogNodes ::
  -- | 'name'
  Prelude.Text ->
  ListSignalCatalogNodes
newListSignalCatalogNodes :: Text -> ListSignalCatalogNodes
newListSignalCatalogNodes Text
pName_ =
  ListSignalCatalogNodes'
    { $sel:maxResults:ListSignalCatalogNodes' :: Maybe Natural
maxResults =
        forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListSignalCatalogNodes' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
      $sel:name:ListSignalCatalogNodes' :: Text
name = Text
pName_
    }

-- | The maximum number of items to return, between 1 and 100, inclusive.
listSignalCatalogNodes_maxResults :: Lens.Lens' ListSignalCatalogNodes (Prelude.Maybe Prelude.Natural)
listSignalCatalogNodes_maxResults :: Lens' ListSignalCatalogNodes (Maybe Natural)
listSignalCatalogNodes_maxResults = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListSignalCatalogNodes' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListSignalCatalogNodes' :: ListSignalCatalogNodes -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListSignalCatalogNodes
s@ListSignalCatalogNodes' {} Maybe Natural
a -> ListSignalCatalogNodes
s {$sel:maxResults:ListSignalCatalogNodes' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListSignalCatalogNodes)

-- | A pagination token for the next set of results.
--
-- If the results of a search are large, only a portion of the results are
-- returned, and a @nextToken@ pagination token is returned in the
-- response. To retrieve the next set of results, reissue the search
-- request and include the returned token. When all results have been
-- returned, the response does not contain a pagination token value.
listSignalCatalogNodes_nextToken :: Lens.Lens' ListSignalCatalogNodes (Prelude.Maybe Prelude.Text)
listSignalCatalogNodes_nextToken :: Lens' ListSignalCatalogNodes (Maybe Text)
listSignalCatalogNodes_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListSignalCatalogNodes' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListSignalCatalogNodes' :: ListSignalCatalogNodes -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListSignalCatalogNodes
s@ListSignalCatalogNodes' {} Maybe Text
a -> ListSignalCatalogNodes
s {$sel:nextToken:ListSignalCatalogNodes' :: Maybe Text
nextToken = Maybe Text
a} :: ListSignalCatalogNodes)

-- | The name of the signal catalog to list information about.
listSignalCatalogNodes_name :: Lens.Lens' ListSignalCatalogNodes Prelude.Text
listSignalCatalogNodes_name :: Lens' ListSignalCatalogNodes Text
listSignalCatalogNodes_name = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListSignalCatalogNodes' {Text
name :: Text
$sel:name:ListSignalCatalogNodes' :: ListSignalCatalogNodes -> Text
name} -> Text
name) (\s :: ListSignalCatalogNodes
s@ListSignalCatalogNodes' {} Text
a -> ListSignalCatalogNodes
s {$sel:name:ListSignalCatalogNodes' :: Text
name = Text
a} :: ListSignalCatalogNodes)

instance Core.AWSPager ListSignalCatalogNodes where
  page :: ListSignalCatalogNodes
-> AWSResponse ListSignalCatalogNodes
-> Maybe ListSignalCatalogNodes
page ListSignalCatalogNodes
rq AWSResponse ListSignalCatalogNodes
rs
    | forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse ListSignalCatalogNodes
rs
            forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListSignalCatalogNodesResponse (Maybe Text)
listSignalCatalogNodesResponse_nextToken
            forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
        ) =
        forall a. Maybe a
Prelude.Nothing
    | forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse ListSignalCatalogNodes
rs
            forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListSignalCatalogNodesResponse (Maybe [Node])
listSignalCatalogNodesResponse_nodes
            forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
        ) =
        forall a. Maybe a
Prelude.Nothing
    | Bool
Prelude.otherwise =
        forall a. a -> Maybe a
Prelude.Just
          forall a b. (a -> b) -> a -> b
Prelude.$ ListSignalCatalogNodes
rq
          forall a b. a -> (a -> b) -> b
Prelude.& Lens' ListSignalCatalogNodes (Maybe Text)
listSignalCatalogNodes_nextToken
          forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListSignalCatalogNodes
rs
          forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListSignalCatalogNodesResponse (Maybe Text)
listSignalCatalogNodesResponse_nextToken
          forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just

instance Core.AWSRequest ListSignalCatalogNodes where
  type
    AWSResponse ListSignalCatalogNodes =
      ListSignalCatalogNodesResponse
  request :: (Service -> Service)
-> ListSignalCatalogNodes -> Request ListSignalCatalogNodes
request Service -> Service
overrides =
    forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON (Service -> Service
overrides Service
defaultService)
  response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy ListSignalCatalogNodes
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse ListSignalCatalogNodes)))
response =
    forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
      ( \Int
s ResponseHeaders
h Object
x ->
          Maybe Text -> Maybe [Node] -> Int -> ListSignalCatalogNodesResponse
ListSignalCatalogNodesResponse'
            forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"nextToken")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"nodes" forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty)
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
      )

instance Prelude.Hashable ListSignalCatalogNodes where
  hashWithSalt :: Int -> ListSignalCatalogNodes -> Int
hashWithSalt Int
_salt ListSignalCatalogNodes' {Maybe Natural
Maybe Text
Text
name :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:name:ListSignalCatalogNodes' :: ListSignalCatalogNodes -> Text
$sel:nextToken:ListSignalCatalogNodes' :: ListSignalCatalogNodes -> Maybe Text
$sel:maxResults:ListSignalCatalogNodes' :: ListSignalCatalogNodes -> Maybe Natural
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
maxResults
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
nextToken
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
name

instance Prelude.NFData ListSignalCatalogNodes where
  rnf :: ListSignalCatalogNodes -> ()
rnf ListSignalCatalogNodes' {Maybe Natural
Maybe Text
Text
name :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:name:ListSignalCatalogNodes' :: ListSignalCatalogNodes -> Text
$sel:nextToken:ListSignalCatalogNodes' :: ListSignalCatalogNodes -> Maybe Text
$sel:maxResults:ListSignalCatalogNodes' :: ListSignalCatalogNodes -> Maybe Natural
..} =
    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 Text
nextToken
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
name

instance Data.ToHeaders ListSignalCatalogNodes where
  toHeaders :: ListSignalCatalogNodes -> ResponseHeaders
toHeaders =
    forall a b. a -> b -> a
Prelude.const
      ( forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ HeaderName
"X-Amz-Target"
              forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"IoTAutobahnControlPlane.ListSignalCatalogNodes" ::
                          Prelude.ByteString
                      ),
            HeaderName
"Content-Type"
              forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"application/x-amz-json-1.0" ::
                          Prelude.ByteString
                      )
          ]
      )

instance Data.ToJSON ListSignalCatalogNodes where
  toJSON :: ListSignalCatalogNodes -> Value
toJSON ListSignalCatalogNodes' {Maybe Natural
Maybe Text
Text
name :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:name:ListSignalCatalogNodes' :: ListSignalCatalogNodes -> Text
$sel:nextToken:ListSignalCatalogNodes' :: ListSignalCatalogNodes -> Maybe Text
$sel:maxResults:ListSignalCatalogNodes' :: ListSignalCatalogNodes -> Maybe Natural
..} =
    [Pair] -> Value
Data.object
      ( forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Key
"maxResults" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
maxResults,
            (Key
"nextToken" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
nextToken,
            forall a. a -> Maybe a
Prelude.Just (Key
"name" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
name)
          ]
      )

instance Data.ToPath ListSignalCatalogNodes where
  toPath :: ListSignalCatalogNodes -> ByteString
toPath = forall a b. a -> b -> a
Prelude.const ByteString
"/"

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

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

-- |
-- Create a value of 'ListSignalCatalogNodesResponse' 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', 'listSignalCatalogNodesResponse_nextToken' - The token to retrieve the next set of results, or @null@ if there are no
-- more results.
--
-- 'nodes', 'listSignalCatalogNodesResponse_nodes' - A list of information about nodes.
--
-- 'httpStatus', 'listSignalCatalogNodesResponse_httpStatus' - The response's http status code.
newListSignalCatalogNodesResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListSignalCatalogNodesResponse
newListSignalCatalogNodesResponse :: Int -> ListSignalCatalogNodesResponse
newListSignalCatalogNodesResponse Int
pHttpStatus_ =
  ListSignalCatalogNodesResponse'
    { $sel:nextToken:ListSignalCatalogNodesResponse' :: Maybe Text
nextToken =
        forall a. Maybe a
Prelude.Nothing,
      $sel:nodes:ListSignalCatalogNodesResponse' :: Maybe [Node]
nodes = forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListSignalCatalogNodesResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

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

-- | A list of information about nodes.
listSignalCatalogNodesResponse_nodes :: Lens.Lens' ListSignalCatalogNodesResponse (Prelude.Maybe [Node])
listSignalCatalogNodesResponse_nodes :: Lens' ListSignalCatalogNodesResponse (Maybe [Node])
listSignalCatalogNodesResponse_nodes = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListSignalCatalogNodesResponse' {Maybe [Node]
nodes :: Maybe [Node]
$sel:nodes:ListSignalCatalogNodesResponse' :: ListSignalCatalogNodesResponse -> Maybe [Node]
nodes} -> Maybe [Node]
nodes) (\s :: ListSignalCatalogNodesResponse
s@ListSignalCatalogNodesResponse' {} Maybe [Node]
a -> ListSignalCatalogNodesResponse
s {$sel:nodes:ListSignalCatalogNodesResponse' :: Maybe [Node]
nodes = Maybe [Node]
a} :: ListSignalCatalogNodesResponse) 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 response's http status code.
listSignalCatalogNodesResponse_httpStatus :: Lens.Lens' ListSignalCatalogNodesResponse Prelude.Int
listSignalCatalogNodesResponse_httpStatus :: Lens' ListSignalCatalogNodesResponse Int
listSignalCatalogNodesResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListSignalCatalogNodesResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListSignalCatalogNodesResponse' :: ListSignalCatalogNodesResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListSignalCatalogNodesResponse
s@ListSignalCatalogNodesResponse' {} Int
a -> ListSignalCatalogNodesResponse
s {$sel:httpStatus:ListSignalCatalogNodesResponse' :: Int
httpStatus = Int
a} :: ListSignalCatalogNodesResponse)

instance
  Prelude.NFData
    ListSignalCatalogNodesResponse
  where
  rnf :: ListSignalCatalogNodesResponse -> ()
rnf ListSignalCatalogNodesResponse' {Int
Maybe [Node]
Maybe Text
httpStatus :: Int
nodes :: Maybe [Node]
nextToken :: Maybe Text
$sel:httpStatus:ListSignalCatalogNodesResponse' :: ListSignalCatalogNodesResponse -> Int
$sel:nodes:ListSignalCatalogNodesResponse' :: ListSignalCatalogNodesResponse -> Maybe [Node]
$sel:nextToken:ListSignalCatalogNodesResponse' :: ListSignalCatalogNodesResponse -> Maybe Text
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
nextToken
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [Node]
nodes
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus