{-# 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.Panorama.ListNodes
(
ListNodes (..),
newListNodes,
listNodes_patchVersion,
listNodes_packageName,
listNodes_packageVersion,
listNodes_category,
listNodes_nextToken,
listNodes_ownerAccount,
listNodes_maxResults,
ListNodesResponse (..),
newListNodesResponse,
listNodesResponse_nextToken,
listNodesResponse_nodes,
listNodesResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.Panorama.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data ListNodes = ListNodes'
{
ListNodes -> Maybe Text
patchVersion :: Prelude.Maybe Prelude.Text,
ListNodes -> Maybe Text
packageName :: Prelude.Maybe Prelude.Text,
ListNodes -> Maybe Text
packageVersion :: Prelude.Maybe Prelude.Text,
ListNodes -> Maybe NodeCategory
category :: Prelude.Maybe NodeCategory,
ListNodes -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListNodes -> Maybe Text
ownerAccount :: Prelude.Maybe Prelude.Text,
ListNodes -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural
}
deriving (ListNodes -> ListNodes -> Bool
(ListNodes -> ListNodes -> Bool)
-> (ListNodes -> ListNodes -> Bool) -> Eq ListNodes
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListNodes -> ListNodes -> Bool
$c/= :: ListNodes -> ListNodes -> Bool
== :: ListNodes -> ListNodes -> Bool
$c== :: ListNodes -> ListNodes -> Bool
Prelude.Eq, ReadPrec [ListNodes]
ReadPrec ListNodes
Int -> ReadS ListNodes
ReadS [ListNodes]
(Int -> ReadS ListNodes)
-> ReadS [ListNodes]
-> ReadPrec ListNodes
-> ReadPrec [ListNodes]
-> Read ListNodes
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListNodes]
$creadListPrec :: ReadPrec [ListNodes]
readPrec :: ReadPrec ListNodes
$creadPrec :: ReadPrec ListNodes
readList :: ReadS [ListNodes]
$creadList :: ReadS [ListNodes]
readsPrec :: Int -> ReadS ListNodes
$creadsPrec :: Int -> ReadS ListNodes
Prelude.Read, Int -> ListNodes -> ShowS
[ListNodes] -> ShowS
ListNodes -> String
(Int -> ListNodes -> ShowS)
-> (ListNodes -> String)
-> ([ListNodes] -> ShowS)
-> Show ListNodes
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListNodes] -> ShowS
$cshowList :: [ListNodes] -> ShowS
show :: ListNodes -> String
$cshow :: ListNodes -> String
showsPrec :: Int -> ListNodes -> ShowS
$cshowsPrec :: Int -> ListNodes -> ShowS
Prelude.Show, (forall x. ListNodes -> Rep ListNodes x)
-> (forall x. Rep ListNodes x -> ListNodes) -> Generic ListNodes
forall x. Rep ListNodes x -> ListNodes
forall x. ListNodes -> Rep ListNodes x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListNodes x -> ListNodes
$cfrom :: forall x. ListNodes -> Rep ListNodes x
Prelude.Generic)
newListNodes ::
ListNodes
newListNodes :: ListNodes
newListNodes =
ListNodes' :: Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe NodeCategory
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> ListNodes
ListNodes'
{ $sel:patchVersion:ListNodes' :: Maybe Text
patchVersion = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:packageName:ListNodes' :: Maybe Text
packageName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:packageVersion:ListNodes' :: Maybe Text
packageVersion = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:category:ListNodes' :: Maybe NodeCategory
category = Maybe NodeCategory
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListNodes' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:ownerAccount:ListNodes' :: Maybe Text
ownerAccount = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListNodes' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing
}
listNodes_patchVersion :: Lens.Lens' ListNodes (Prelude.Maybe Prelude.Text)
listNodes_patchVersion :: (Maybe Text -> f (Maybe Text)) -> ListNodes -> f ListNodes
listNodes_patchVersion = (ListNodes -> Maybe Text)
-> (ListNodes -> Maybe Text -> ListNodes)
-> Lens ListNodes ListNodes (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListNodes' {Maybe Text
patchVersion :: Maybe Text
$sel:patchVersion:ListNodes' :: ListNodes -> Maybe Text
patchVersion} -> Maybe Text
patchVersion) (\s :: ListNodes
s@ListNodes' {} Maybe Text
a -> ListNodes
s {$sel:patchVersion:ListNodes' :: Maybe Text
patchVersion = Maybe Text
a} :: ListNodes)
listNodes_packageName :: Lens.Lens' ListNodes (Prelude.Maybe Prelude.Text)
listNodes_packageName :: (Maybe Text -> f (Maybe Text)) -> ListNodes -> f ListNodes
listNodes_packageName = (ListNodes -> Maybe Text)
-> (ListNodes -> Maybe Text -> ListNodes)
-> Lens ListNodes ListNodes (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListNodes' {Maybe Text
packageName :: Maybe Text
$sel:packageName:ListNodes' :: ListNodes -> Maybe Text
packageName} -> Maybe Text
packageName) (\s :: ListNodes
s@ListNodes' {} Maybe Text
a -> ListNodes
s {$sel:packageName:ListNodes' :: Maybe Text
packageName = Maybe Text
a} :: ListNodes)
listNodes_packageVersion :: Lens.Lens' ListNodes (Prelude.Maybe Prelude.Text)
listNodes_packageVersion :: (Maybe Text -> f (Maybe Text)) -> ListNodes -> f ListNodes
listNodes_packageVersion = (ListNodes -> Maybe Text)
-> (ListNodes -> Maybe Text -> ListNodes)
-> Lens ListNodes ListNodes (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListNodes' {Maybe Text
packageVersion :: Maybe Text
$sel:packageVersion:ListNodes' :: ListNodes -> Maybe Text
packageVersion} -> Maybe Text
packageVersion) (\s :: ListNodes
s@ListNodes' {} Maybe Text
a -> ListNodes
s {$sel:packageVersion:ListNodes' :: Maybe Text
packageVersion = Maybe Text
a} :: ListNodes)
listNodes_category :: Lens.Lens' ListNodes (Prelude.Maybe NodeCategory)
listNodes_category :: (Maybe NodeCategory -> f (Maybe NodeCategory))
-> ListNodes -> f ListNodes
listNodes_category = (ListNodes -> Maybe NodeCategory)
-> (ListNodes -> Maybe NodeCategory -> ListNodes)
-> Lens
ListNodes ListNodes (Maybe NodeCategory) (Maybe NodeCategory)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListNodes' {Maybe NodeCategory
category :: Maybe NodeCategory
$sel:category:ListNodes' :: ListNodes -> Maybe NodeCategory
category} -> Maybe NodeCategory
category) (\s :: ListNodes
s@ListNodes' {} Maybe NodeCategory
a -> ListNodes
s {$sel:category:ListNodes' :: Maybe NodeCategory
category = Maybe NodeCategory
a} :: ListNodes)
listNodes_nextToken :: Lens.Lens' ListNodes (Prelude.Maybe Prelude.Text)
listNodes_nextToken :: (Maybe Text -> f (Maybe Text)) -> ListNodes -> f ListNodes
listNodes_nextToken = (ListNodes -> Maybe Text)
-> (ListNodes -> Maybe Text -> ListNodes)
-> Lens ListNodes ListNodes (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListNodes' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListNodes' :: ListNodes -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListNodes
s@ListNodes' {} Maybe Text
a -> ListNodes
s {$sel:nextToken:ListNodes' :: Maybe Text
nextToken = Maybe Text
a} :: ListNodes)
listNodes_ownerAccount :: Lens.Lens' ListNodes (Prelude.Maybe Prelude.Text)
listNodes_ownerAccount :: (Maybe Text -> f (Maybe Text)) -> ListNodes -> f ListNodes
listNodes_ownerAccount = (ListNodes -> Maybe Text)
-> (ListNodes -> Maybe Text -> ListNodes)
-> Lens ListNodes ListNodes (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListNodes' {Maybe Text
ownerAccount :: Maybe Text
$sel:ownerAccount:ListNodes' :: ListNodes -> Maybe Text
ownerAccount} -> Maybe Text
ownerAccount) (\s :: ListNodes
s@ListNodes' {} Maybe Text
a -> ListNodes
s {$sel:ownerAccount:ListNodes' :: Maybe Text
ownerAccount = Maybe Text
a} :: ListNodes)
listNodes_maxResults :: Lens.Lens' ListNodes (Prelude.Maybe Prelude.Natural)
listNodes_maxResults :: (Maybe Natural -> f (Maybe Natural)) -> ListNodes -> f ListNodes
listNodes_maxResults = (ListNodes -> Maybe Natural)
-> (ListNodes -> Maybe Natural -> ListNodes)
-> Lens ListNodes ListNodes (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListNodes' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListNodes' :: ListNodes -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListNodes
s@ListNodes' {} Maybe Natural
a -> ListNodes
s {$sel:maxResults:ListNodes' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListNodes)
instance Core.AWSRequest ListNodes where
type AWSResponse ListNodes = ListNodesResponse
request :: ListNodes -> Request ListNodes
request = Service -> ListNodes -> Request ListNodes
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy ListNodes
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListNodes)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListNodes))
-> Logger
-> Service
-> Proxy ListNodes
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListNodes)))
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 [Node] -> Int -> ListNodesResponse
ListNodesResponse'
(Maybe Text -> Maybe [Node] -> Int -> ListNodesResponse)
-> Either String (Maybe Text)
-> Either String (Maybe [Node] -> Int -> ListNodesResponse)
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 [Node] -> Int -> ListNodesResponse)
-> Either String (Maybe [Node])
-> Either String (Int -> ListNodesResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Maybe [Node]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Nodes" Either String (Maybe (Maybe [Node]))
-> Maybe [Node] -> Either String (Maybe [Node])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [Node]
forall a. Monoid a => a
Prelude.mempty)
Either String (Int -> ListNodesResponse)
-> Either String Int -> Either String ListNodesResponse
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 ListNodes
instance Prelude.NFData ListNodes
instance Core.ToHeaders ListNodes where
toHeaders :: ListNodes -> ResponseHeaders
toHeaders =
ResponseHeaders -> ListNodes -> 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.ToPath ListNodes where
toPath :: ListNodes -> ByteString
toPath = ByteString -> ListNodes -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/nodes"
instance Core.ToQuery ListNodes where
toQuery :: ListNodes -> QueryString
toQuery ListNodes' {Maybe Natural
Maybe Text
Maybe NodeCategory
maxResults :: Maybe Natural
ownerAccount :: Maybe Text
nextToken :: Maybe Text
category :: Maybe NodeCategory
packageVersion :: Maybe Text
packageName :: Maybe Text
patchVersion :: Maybe Text
$sel:maxResults:ListNodes' :: ListNodes -> Maybe Natural
$sel:ownerAccount:ListNodes' :: ListNodes -> Maybe Text
$sel:nextToken:ListNodes' :: ListNodes -> Maybe Text
$sel:category:ListNodes' :: ListNodes -> Maybe NodeCategory
$sel:packageVersion:ListNodes' :: ListNodes -> Maybe Text
$sel:packageName:ListNodes' :: ListNodes -> Maybe Text
$sel:patchVersion:ListNodes' :: ListNodes -> Maybe Text
..} =
[QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"patchVersion" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
patchVersion,
ByteString
"packageName" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
packageName,
ByteString
"packageVersion" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
packageVersion,
ByteString
"category" ByteString -> Maybe NodeCategory -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe NodeCategory
category,
ByteString
"nextToken" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
nextToken,
ByteString
"ownerAccount" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
ownerAccount,
ByteString
"maxResults" ByteString -> Maybe Natural -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Natural
maxResults
]
data ListNodesResponse = ListNodesResponse'
{
ListNodesResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListNodesResponse -> Maybe [Node]
nodes :: Prelude.Maybe [Node],
ListNodesResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListNodesResponse -> ListNodesResponse -> Bool
(ListNodesResponse -> ListNodesResponse -> Bool)
-> (ListNodesResponse -> ListNodesResponse -> Bool)
-> Eq ListNodesResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListNodesResponse -> ListNodesResponse -> Bool
$c/= :: ListNodesResponse -> ListNodesResponse -> Bool
== :: ListNodesResponse -> ListNodesResponse -> Bool
$c== :: ListNodesResponse -> ListNodesResponse -> Bool
Prelude.Eq, ReadPrec [ListNodesResponse]
ReadPrec ListNodesResponse
Int -> ReadS ListNodesResponse
ReadS [ListNodesResponse]
(Int -> ReadS ListNodesResponse)
-> ReadS [ListNodesResponse]
-> ReadPrec ListNodesResponse
-> ReadPrec [ListNodesResponse]
-> Read ListNodesResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListNodesResponse]
$creadListPrec :: ReadPrec [ListNodesResponse]
readPrec :: ReadPrec ListNodesResponse
$creadPrec :: ReadPrec ListNodesResponse
readList :: ReadS [ListNodesResponse]
$creadList :: ReadS [ListNodesResponse]
readsPrec :: Int -> ReadS ListNodesResponse
$creadsPrec :: Int -> ReadS ListNodesResponse
Prelude.Read, Int -> ListNodesResponse -> ShowS
[ListNodesResponse] -> ShowS
ListNodesResponse -> String
(Int -> ListNodesResponse -> ShowS)
-> (ListNodesResponse -> String)
-> ([ListNodesResponse] -> ShowS)
-> Show ListNodesResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListNodesResponse] -> ShowS
$cshowList :: [ListNodesResponse] -> ShowS
show :: ListNodesResponse -> String
$cshow :: ListNodesResponse -> String
showsPrec :: Int -> ListNodesResponse -> ShowS
$cshowsPrec :: Int -> ListNodesResponse -> ShowS
Prelude.Show, (forall x. ListNodesResponse -> Rep ListNodesResponse x)
-> (forall x. Rep ListNodesResponse x -> ListNodesResponse)
-> Generic ListNodesResponse
forall x. Rep ListNodesResponse x -> ListNodesResponse
forall x. ListNodesResponse -> Rep ListNodesResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListNodesResponse x -> ListNodesResponse
$cfrom :: forall x. ListNodesResponse -> Rep ListNodesResponse x
Prelude.Generic)
newListNodesResponse ::
Prelude.Int ->
ListNodesResponse
newListNodesResponse :: Int -> ListNodesResponse
newListNodesResponse Int
pHttpStatus_ =
ListNodesResponse' :: Maybe Text -> Maybe [Node] -> Int -> ListNodesResponse
ListNodesResponse'
{ $sel:nextToken:ListNodesResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:nodes:ListNodesResponse' :: Maybe [Node]
nodes = Maybe [Node]
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListNodesResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listNodesResponse_nextToken :: Lens.Lens' ListNodesResponse (Prelude.Maybe Prelude.Text)
listNodesResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListNodesResponse -> f ListNodesResponse
listNodesResponse_nextToken = (ListNodesResponse -> Maybe Text)
-> (ListNodesResponse -> Maybe Text -> ListNodesResponse)
-> Lens
ListNodesResponse ListNodesResponse (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListNodesResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListNodesResponse' :: ListNodesResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListNodesResponse
s@ListNodesResponse' {} Maybe Text
a -> ListNodesResponse
s {$sel:nextToken:ListNodesResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListNodesResponse)
listNodesResponse_nodes :: Lens.Lens' ListNodesResponse (Prelude.Maybe [Node])
listNodesResponse_nodes :: (Maybe [Node] -> f (Maybe [Node]))
-> ListNodesResponse -> f ListNodesResponse
listNodesResponse_nodes = (ListNodesResponse -> Maybe [Node])
-> (ListNodesResponse -> Maybe [Node] -> ListNodesResponse)
-> Lens
ListNodesResponse ListNodesResponse (Maybe [Node]) (Maybe [Node])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListNodesResponse' {Maybe [Node]
nodes :: Maybe [Node]
$sel:nodes:ListNodesResponse' :: ListNodesResponse -> Maybe [Node]
nodes} -> Maybe [Node]
nodes) (\s :: ListNodesResponse
s@ListNodesResponse' {} Maybe [Node]
a -> ListNodesResponse
s {$sel:nodes:ListNodesResponse' :: Maybe [Node]
nodes = Maybe [Node]
a} :: ListNodesResponse) ((Maybe [Node] -> f (Maybe [Node]))
-> ListNodesResponse -> f ListNodesResponse)
-> ((Maybe [Node] -> f (Maybe [Node]))
-> Maybe [Node] -> f (Maybe [Node]))
-> (Maybe [Node] -> f (Maybe [Node]))
-> ListNodesResponse
-> f ListNodesResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Node] [Node] [Node] [Node]
-> Iso (Maybe [Node]) (Maybe [Node]) (Maybe [Node]) (Maybe [Node])
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 [Node] [Node] [Node] [Node]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listNodesResponse_httpStatus :: Lens.Lens' ListNodesResponse Prelude.Int
listNodesResponse_httpStatus :: (Int -> f Int) -> ListNodesResponse -> f ListNodesResponse
listNodesResponse_httpStatus = (ListNodesResponse -> Int)
-> (ListNodesResponse -> Int -> ListNodesResponse)
-> Lens ListNodesResponse ListNodesResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListNodesResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListNodesResponse' :: ListNodesResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListNodesResponse
s@ListNodesResponse' {} Int
a -> ListNodesResponse
s {$sel:httpStatus:ListNodesResponse' :: Int
httpStatus = Int
a} :: ListNodesResponse)
instance Prelude.NFData ListNodesResponse