{-# 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.ListModelManifestNodes
-- 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 information about nodes specified in a vehicle model (model
-- manifest).
--
-- This API operation uses pagination. Specify the @nextToken@ parameter in
-- the request to return more results.
--
-- This operation returns paginated results.
module Amazonka.IoTFleetWise.ListModelManifestNodes
  ( -- * Creating a Request
    ListModelManifestNodes (..),
    newListModelManifestNodes,

    -- * Request Lenses
    listModelManifestNodes_maxResults,
    listModelManifestNodes_nextToken,
    listModelManifestNodes_name,

    -- * Destructuring the Response
    ListModelManifestNodesResponse (..),
    newListModelManifestNodesResponse,

    -- * Response Lenses
    listModelManifestNodesResponse_nextToken,
    listModelManifestNodesResponse_nodes,
    listModelManifestNodesResponse_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:/ 'newListModelManifestNodes' smart constructor.
data ListModelManifestNodes = ListModelManifestNodes'
  { -- | The maximum number of items to return, between 1 and 100, inclusive.
    ListModelManifestNodes -> 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.
    ListModelManifestNodes -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The name of the vehicle model to list information about.
    ListModelManifestNodes -> Text
name :: Prelude.Text
  }
  deriving (ListModelManifestNodes -> ListModelManifestNodes -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListModelManifestNodes -> ListModelManifestNodes -> Bool
$c/= :: ListModelManifestNodes -> ListModelManifestNodes -> Bool
== :: ListModelManifestNodes -> ListModelManifestNodes -> Bool
$c== :: ListModelManifestNodes -> ListModelManifestNodes -> Bool
Prelude.Eq, ReadPrec [ListModelManifestNodes]
ReadPrec ListModelManifestNodes
Int -> ReadS ListModelManifestNodes
ReadS [ListModelManifestNodes]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListModelManifestNodes]
$creadListPrec :: ReadPrec [ListModelManifestNodes]
readPrec :: ReadPrec ListModelManifestNodes
$creadPrec :: ReadPrec ListModelManifestNodes
readList :: ReadS [ListModelManifestNodes]
$creadList :: ReadS [ListModelManifestNodes]
readsPrec :: Int -> ReadS ListModelManifestNodes
$creadsPrec :: Int -> ReadS ListModelManifestNodes
Prelude.Read, Int -> ListModelManifestNodes -> ShowS
[ListModelManifestNodes] -> ShowS
ListModelManifestNodes -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListModelManifestNodes] -> ShowS
$cshowList :: [ListModelManifestNodes] -> ShowS
show :: ListModelManifestNodes -> String
$cshow :: ListModelManifestNodes -> String
showsPrec :: Int -> ListModelManifestNodes -> ShowS
$cshowsPrec :: Int -> ListModelManifestNodes -> ShowS
Prelude.Show, forall x. Rep ListModelManifestNodes x -> ListModelManifestNodes
forall x. ListModelManifestNodes -> Rep ListModelManifestNodes x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListModelManifestNodes x -> ListModelManifestNodes
$cfrom :: forall x. ListModelManifestNodes -> Rep ListModelManifestNodes x
Prelude.Generic)

-- |
-- Create a value of 'ListModelManifestNodes' 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', 'listModelManifestNodes_maxResults' - The maximum number of items to return, between 1 and 100, inclusive.
--
-- 'nextToken', 'listModelManifestNodes_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', 'listModelManifestNodes_name' - The name of the vehicle model to list information about.
newListModelManifestNodes ::
  -- | 'name'
  Prelude.Text ->
  ListModelManifestNodes
newListModelManifestNodes :: Text -> ListModelManifestNodes
newListModelManifestNodes Text
pName_ =
  ListModelManifestNodes'
    { $sel:maxResults:ListModelManifestNodes' :: Maybe Natural
maxResults =
        forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListModelManifestNodes' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
      $sel:name:ListModelManifestNodes' :: Text
name = Text
pName_
    }

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

-- | 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.
listModelManifestNodes_nextToken :: Lens.Lens' ListModelManifestNodes (Prelude.Maybe Prelude.Text)
listModelManifestNodes_nextToken :: Lens' ListModelManifestNodes (Maybe Text)
listModelManifestNodes_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListModelManifestNodes' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListModelManifestNodes' :: ListModelManifestNodes -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListModelManifestNodes
s@ListModelManifestNodes' {} Maybe Text
a -> ListModelManifestNodes
s {$sel:nextToken:ListModelManifestNodes' :: Maybe Text
nextToken = Maybe Text
a} :: ListModelManifestNodes)

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

instance Core.AWSPager ListModelManifestNodes where
  page :: ListModelManifestNodes
-> AWSResponse ListModelManifestNodes
-> Maybe ListModelManifestNodes
page ListModelManifestNodes
rq AWSResponse ListModelManifestNodes
rs
    | forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse ListModelManifestNodes
rs
            forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListModelManifestNodesResponse (Maybe Text)
listModelManifestNodesResponse_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 ListModelManifestNodes
rs
            forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListModelManifestNodesResponse (Maybe [Node])
listModelManifestNodesResponse_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.$ ListModelManifestNodes
rq
          forall a b. a -> (a -> b) -> b
Prelude.& Lens' ListModelManifestNodes (Maybe Text)
listModelManifestNodes_nextToken
          forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListModelManifestNodes
rs
          forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListModelManifestNodesResponse (Maybe Text)
listModelManifestNodesResponse_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 ListModelManifestNodes where
  type
    AWSResponse ListModelManifestNodes =
      ListModelManifestNodesResponse
  request :: (Service -> Service)
-> ListModelManifestNodes -> Request ListModelManifestNodes
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 ListModelManifestNodes
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse ListModelManifestNodes)))
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 -> ListModelManifestNodesResponse
ListModelManifestNodesResponse'
            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 ListModelManifestNodes where
  hashWithSalt :: Int -> ListModelManifestNodes -> Int
hashWithSalt Int
_salt ListModelManifestNodes' {Maybe Natural
Maybe Text
Text
name :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:name:ListModelManifestNodes' :: ListModelManifestNodes -> Text
$sel:nextToken:ListModelManifestNodes' :: ListModelManifestNodes -> Maybe Text
$sel:maxResults:ListModelManifestNodes' :: ListModelManifestNodes -> 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 ListModelManifestNodes where
  rnf :: ListModelManifestNodes -> ()
rnf ListModelManifestNodes' {Maybe Natural
Maybe Text
Text
name :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:name:ListModelManifestNodes' :: ListModelManifestNodes -> Text
$sel:nextToken:ListModelManifestNodes' :: ListModelManifestNodes -> Maybe Text
$sel:maxResults:ListModelManifestNodes' :: ListModelManifestNodes -> 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 ListModelManifestNodes where
  toHeaders :: ListModelManifestNodes -> 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.ListModelManifestNodes" ::
                          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 ListModelManifestNodes where
  toJSON :: ListModelManifestNodes -> Value
toJSON ListModelManifestNodes' {Maybe Natural
Maybe Text
Text
name :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:name:ListModelManifestNodes' :: ListModelManifestNodes -> Text
$sel:nextToken:ListModelManifestNodes' :: ListModelManifestNodes -> Maybe Text
$sel:maxResults:ListModelManifestNodes' :: ListModelManifestNodes -> 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 ListModelManifestNodes where
  toPath :: ListModelManifestNodes -> ByteString
toPath = forall a b. a -> b -> a
Prelude.const ByteString
"/"

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

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

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

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

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

instance
  Prelude.NFData
    ListModelManifestNodesResponse
  where
  rnf :: ListModelManifestNodesResponse -> ()
rnf ListModelManifestNodesResponse' {Int
Maybe [Node]
Maybe Text
httpStatus :: Int
nodes :: Maybe [Node]
nextToken :: Maybe Text
$sel:httpStatus:ListModelManifestNodesResponse' :: ListModelManifestNodesResponse -> Int
$sel:nodes:ListModelManifestNodesResponse' :: ListModelManifestNodesResponse -> Maybe [Node]
$sel:nextToken:ListModelManifestNodesResponse' :: ListModelManifestNodesResponse -> 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