{-# 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.Panorama.ListNodeFromTemplateJobs
-- 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)
--
-- Returns a list of camera stream node jobs.
module Amazonka.Panorama.ListNodeFromTemplateJobs
  ( -- * Creating a Request
    ListNodeFromTemplateJobs (..),
    newListNodeFromTemplateJobs,

    -- * Request Lenses
    listNodeFromTemplateJobs_nextToken,
    listNodeFromTemplateJobs_maxResults,

    -- * Destructuring the Response
    ListNodeFromTemplateJobsResponse (..),
    newListNodeFromTemplateJobsResponse,

    -- * Response Lenses
    listNodeFromTemplateJobsResponse_nextToken,
    listNodeFromTemplateJobsResponse_httpStatus,
    listNodeFromTemplateJobsResponse_nodeFromTemplateJobs,
  )
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

-- | /See:/ 'newListNodeFromTemplateJobs' smart constructor.
data ListNodeFromTemplateJobs = ListNodeFromTemplateJobs'
  { -- | Specify the pagination token from a previous request to retrieve the
    -- next page of results.
    ListNodeFromTemplateJobs -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The maximum number of node from template jobs to return in one page of
    -- results.
    ListNodeFromTemplateJobs -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural
  }
  deriving (ListNodeFromTemplateJobs -> ListNodeFromTemplateJobs -> Bool
(ListNodeFromTemplateJobs -> ListNodeFromTemplateJobs -> Bool)
-> (ListNodeFromTemplateJobs -> ListNodeFromTemplateJobs -> Bool)
-> Eq ListNodeFromTemplateJobs
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListNodeFromTemplateJobs -> ListNodeFromTemplateJobs -> Bool
$c/= :: ListNodeFromTemplateJobs -> ListNodeFromTemplateJobs -> Bool
== :: ListNodeFromTemplateJobs -> ListNodeFromTemplateJobs -> Bool
$c== :: ListNodeFromTemplateJobs -> ListNodeFromTemplateJobs -> Bool
Prelude.Eq, ReadPrec [ListNodeFromTemplateJobs]
ReadPrec ListNodeFromTemplateJobs
Int -> ReadS ListNodeFromTemplateJobs
ReadS [ListNodeFromTemplateJobs]
(Int -> ReadS ListNodeFromTemplateJobs)
-> ReadS [ListNodeFromTemplateJobs]
-> ReadPrec ListNodeFromTemplateJobs
-> ReadPrec [ListNodeFromTemplateJobs]
-> Read ListNodeFromTemplateJobs
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListNodeFromTemplateJobs]
$creadListPrec :: ReadPrec [ListNodeFromTemplateJobs]
readPrec :: ReadPrec ListNodeFromTemplateJobs
$creadPrec :: ReadPrec ListNodeFromTemplateJobs
readList :: ReadS [ListNodeFromTemplateJobs]
$creadList :: ReadS [ListNodeFromTemplateJobs]
readsPrec :: Int -> ReadS ListNodeFromTemplateJobs
$creadsPrec :: Int -> ReadS ListNodeFromTemplateJobs
Prelude.Read, Int -> ListNodeFromTemplateJobs -> ShowS
[ListNodeFromTemplateJobs] -> ShowS
ListNodeFromTemplateJobs -> String
(Int -> ListNodeFromTemplateJobs -> ShowS)
-> (ListNodeFromTemplateJobs -> String)
-> ([ListNodeFromTemplateJobs] -> ShowS)
-> Show ListNodeFromTemplateJobs
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListNodeFromTemplateJobs] -> ShowS
$cshowList :: [ListNodeFromTemplateJobs] -> ShowS
show :: ListNodeFromTemplateJobs -> String
$cshow :: ListNodeFromTemplateJobs -> String
showsPrec :: Int -> ListNodeFromTemplateJobs -> ShowS
$cshowsPrec :: Int -> ListNodeFromTemplateJobs -> ShowS
Prelude.Show, (forall x.
 ListNodeFromTemplateJobs -> Rep ListNodeFromTemplateJobs x)
-> (forall x.
    Rep ListNodeFromTemplateJobs x -> ListNodeFromTemplateJobs)
-> Generic ListNodeFromTemplateJobs
forall x.
Rep ListNodeFromTemplateJobs x -> ListNodeFromTemplateJobs
forall x.
ListNodeFromTemplateJobs -> Rep ListNodeFromTemplateJobs x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListNodeFromTemplateJobs x -> ListNodeFromTemplateJobs
$cfrom :: forall x.
ListNodeFromTemplateJobs -> Rep ListNodeFromTemplateJobs x
Prelude.Generic)

-- |
-- Create a value of 'ListNodeFromTemplateJobs' 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', 'listNodeFromTemplateJobs_nextToken' - Specify the pagination token from a previous request to retrieve the
-- next page of results.
--
-- 'maxResults', 'listNodeFromTemplateJobs_maxResults' - The maximum number of node from template jobs to return in one page of
-- results.
newListNodeFromTemplateJobs ::
  ListNodeFromTemplateJobs
newListNodeFromTemplateJobs :: ListNodeFromTemplateJobs
newListNodeFromTemplateJobs =
  ListNodeFromTemplateJobs' :: Maybe Text -> Maybe Natural -> ListNodeFromTemplateJobs
ListNodeFromTemplateJobs'
    { $sel:nextToken:ListNodeFromTemplateJobs' :: Maybe Text
nextToken =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:maxResults:ListNodeFromTemplateJobs' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing
    }

-- | Specify the pagination token from a previous request to retrieve the
-- next page of results.
listNodeFromTemplateJobs_nextToken :: Lens.Lens' ListNodeFromTemplateJobs (Prelude.Maybe Prelude.Text)
listNodeFromTemplateJobs_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListNodeFromTemplateJobs -> f ListNodeFromTemplateJobs
listNodeFromTemplateJobs_nextToken = (ListNodeFromTemplateJobs -> Maybe Text)
-> (ListNodeFromTemplateJobs
    -> Maybe Text -> ListNodeFromTemplateJobs)
-> Lens
     ListNodeFromTemplateJobs
     ListNodeFromTemplateJobs
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListNodeFromTemplateJobs' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListNodeFromTemplateJobs' :: ListNodeFromTemplateJobs -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListNodeFromTemplateJobs
s@ListNodeFromTemplateJobs' {} Maybe Text
a -> ListNodeFromTemplateJobs
s {$sel:nextToken:ListNodeFromTemplateJobs' :: Maybe Text
nextToken = Maybe Text
a} :: ListNodeFromTemplateJobs)

-- | The maximum number of node from template jobs to return in one page of
-- results.
listNodeFromTemplateJobs_maxResults :: Lens.Lens' ListNodeFromTemplateJobs (Prelude.Maybe Prelude.Natural)
listNodeFromTemplateJobs_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListNodeFromTemplateJobs -> f ListNodeFromTemplateJobs
listNodeFromTemplateJobs_maxResults = (ListNodeFromTemplateJobs -> Maybe Natural)
-> (ListNodeFromTemplateJobs
    -> Maybe Natural -> ListNodeFromTemplateJobs)
-> Lens
     ListNodeFromTemplateJobs
     ListNodeFromTemplateJobs
     (Maybe Natural)
     (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListNodeFromTemplateJobs' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListNodeFromTemplateJobs' :: ListNodeFromTemplateJobs -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListNodeFromTemplateJobs
s@ListNodeFromTemplateJobs' {} Maybe Natural
a -> ListNodeFromTemplateJobs
s {$sel:maxResults:ListNodeFromTemplateJobs' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListNodeFromTemplateJobs)

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

instance Prelude.Hashable ListNodeFromTemplateJobs

instance Prelude.NFData ListNodeFromTemplateJobs

instance Core.ToHeaders ListNodeFromTemplateJobs where
  toHeaders :: ListNodeFromTemplateJobs -> ResponseHeaders
toHeaders =
    ResponseHeaders -> ListNodeFromTemplateJobs -> 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 ListNodeFromTemplateJobs where
  toPath :: ListNodeFromTemplateJobs -> ByteString
toPath = ByteString -> ListNodeFromTemplateJobs -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/packages/template-job"

instance Core.ToQuery ListNodeFromTemplateJobs where
  toQuery :: ListNodeFromTemplateJobs -> QueryString
toQuery ListNodeFromTemplateJobs' {Maybe Natural
Maybe Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
$sel:maxResults:ListNodeFromTemplateJobs' :: ListNodeFromTemplateJobs -> Maybe Natural
$sel:nextToken:ListNodeFromTemplateJobs' :: ListNodeFromTemplateJobs -> 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:/ 'newListNodeFromTemplateJobsResponse' smart constructor.
data ListNodeFromTemplateJobsResponse = ListNodeFromTemplateJobsResponse'
  { -- | A pagination token that\'s included if more results are available.
    ListNodeFromTemplateJobsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    ListNodeFromTemplateJobsResponse -> Int
httpStatus :: Prelude.Int,
    -- | A list of jobs.
    ListNodeFromTemplateJobsResponse -> [NodeFromTemplateJob]
nodeFromTemplateJobs :: [NodeFromTemplateJob]
  }
  deriving (ListNodeFromTemplateJobsResponse
-> ListNodeFromTemplateJobsResponse -> Bool
(ListNodeFromTemplateJobsResponse
 -> ListNodeFromTemplateJobsResponse -> Bool)
-> (ListNodeFromTemplateJobsResponse
    -> ListNodeFromTemplateJobsResponse -> Bool)
-> Eq ListNodeFromTemplateJobsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListNodeFromTemplateJobsResponse
-> ListNodeFromTemplateJobsResponse -> Bool
$c/= :: ListNodeFromTemplateJobsResponse
-> ListNodeFromTemplateJobsResponse -> Bool
== :: ListNodeFromTemplateJobsResponse
-> ListNodeFromTemplateJobsResponse -> Bool
$c== :: ListNodeFromTemplateJobsResponse
-> ListNodeFromTemplateJobsResponse -> Bool
Prelude.Eq, ReadPrec [ListNodeFromTemplateJobsResponse]
ReadPrec ListNodeFromTemplateJobsResponse
Int -> ReadS ListNodeFromTemplateJobsResponse
ReadS [ListNodeFromTemplateJobsResponse]
(Int -> ReadS ListNodeFromTemplateJobsResponse)
-> ReadS [ListNodeFromTemplateJobsResponse]
-> ReadPrec ListNodeFromTemplateJobsResponse
-> ReadPrec [ListNodeFromTemplateJobsResponse]
-> Read ListNodeFromTemplateJobsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListNodeFromTemplateJobsResponse]
$creadListPrec :: ReadPrec [ListNodeFromTemplateJobsResponse]
readPrec :: ReadPrec ListNodeFromTemplateJobsResponse
$creadPrec :: ReadPrec ListNodeFromTemplateJobsResponse
readList :: ReadS [ListNodeFromTemplateJobsResponse]
$creadList :: ReadS [ListNodeFromTemplateJobsResponse]
readsPrec :: Int -> ReadS ListNodeFromTemplateJobsResponse
$creadsPrec :: Int -> ReadS ListNodeFromTemplateJobsResponse
Prelude.Read, Int -> ListNodeFromTemplateJobsResponse -> ShowS
[ListNodeFromTemplateJobsResponse] -> ShowS
ListNodeFromTemplateJobsResponse -> String
(Int -> ListNodeFromTemplateJobsResponse -> ShowS)
-> (ListNodeFromTemplateJobsResponse -> String)
-> ([ListNodeFromTemplateJobsResponse] -> ShowS)
-> Show ListNodeFromTemplateJobsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListNodeFromTemplateJobsResponse] -> ShowS
$cshowList :: [ListNodeFromTemplateJobsResponse] -> ShowS
show :: ListNodeFromTemplateJobsResponse -> String
$cshow :: ListNodeFromTemplateJobsResponse -> String
showsPrec :: Int -> ListNodeFromTemplateJobsResponse -> ShowS
$cshowsPrec :: Int -> ListNodeFromTemplateJobsResponse -> ShowS
Prelude.Show, (forall x.
 ListNodeFromTemplateJobsResponse
 -> Rep ListNodeFromTemplateJobsResponse x)
-> (forall x.
    Rep ListNodeFromTemplateJobsResponse x
    -> ListNodeFromTemplateJobsResponse)
-> Generic ListNodeFromTemplateJobsResponse
forall x.
Rep ListNodeFromTemplateJobsResponse x
-> ListNodeFromTemplateJobsResponse
forall x.
ListNodeFromTemplateJobsResponse
-> Rep ListNodeFromTemplateJobsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListNodeFromTemplateJobsResponse x
-> ListNodeFromTemplateJobsResponse
$cfrom :: forall x.
ListNodeFromTemplateJobsResponse
-> Rep ListNodeFromTemplateJobsResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListNodeFromTemplateJobsResponse' 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', 'listNodeFromTemplateJobsResponse_nextToken' - A pagination token that\'s included if more results are available.
--
-- 'httpStatus', 'listNodeFromTemplateJobsResponse_httpStatus' - The response's http status code.
--
-- 'nodeFromTemplateJobs', 'listNodeFromTemplateJobsResponse_nodeFromTemplateJobs' - A list of jobs.
newListNodeFromTemplateJobsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListNodeFromTemplateJobsResponse
newListNodeFromTemplateJobsResponse :: Int -> ListNodeFromTemplateJobsResponse
newListNodeFromTemplateJobsResponse Int
pHttpStatus_ =
  ListNodeFromTemplateJobsResponse' :: Maybe Text
-> Int -> [NodeFromTemplateJob] -> ListNodeFromTemplateJobsResponse
ListNodeFromTemplateJobsResponse'
    { $sel:nextToken:ListNodeFromTemplateJobsResponse' :: Maybe Text
nextToken =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListNodeFromTemplateJobsResponse' :: Int
httpStatus = Int
pHttpStatus_,
      $sel:nodeFromTemplateJobs:ListNodeFromTemplateJobsResponse' :: [NodeFromTemplateJob]
nodeFromTemplateJobs = [NodeFromTemplateJob]
forall a. Monoid a => a
Prelude.mempty
    }

-- | A pagination token that\'s included if more results are available.
listNodeFromTemplateJobsResponse_nextToken :: Lens.Lens' ListNodeFromTemplateJobsResponse (Prelude.Maybe Prelude.Text)
listNodeFromTemplateJobsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListNodeFromTemplateJobsResponse
-> f ListNodeFromTemplateJobsResponse
listNodeFromTemplateJobsResponse_nextToken = (ListNodeFromTemplateJobsResponse -> Maybe Text)
-> (ListNodeFromTemplateJobsResponse
    -> Maybe Text -> ListNodeFromTemplateJobsResponse)
-> Lens
     ListNodeFromTemplateJobsResponse
     ListNodeFromTemplateJobsResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListNodeFromTemplateJobsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListNodeFromTemplateJobsResponse' :: ListNodeFromTemplateJobsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListNodeFromTemplateJobsResponse
s@ListNodeFromTemplateJobsResponse' {} Maybe Text
a -> ListNodeFromTemplateJobsResponse
s {$sel:nextToken:ListNodeFromTemplateJobsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListNodeFromTemplateJobsResponse)

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

-- | A list of jobs.
listNodeFromTemplateJobsResponse_nodeFromTemplateJobs :: Lens.Lens' ListNodeFromTemplateJobsResponse [NodeFromTemplateJob]
listNodeFromTemplateJobsResponse_nodeFromTemplateJobs :: ([NodeFromTemplateJob] -> f [NodeFromTemplateJob])
-> ListNodeFromTemplateJobsResponse
-> f ListNodeFromTemplateJobsResponse
listNodeFromTemplateJobsResponse_nodeFromTemplateJobs = (ListNodeFromTemplateJobsResponse -> [NodeFromTemplateJob])
-> (ListNodeFromTemplateJobsResponse
    -> [NodeFromTemplateJob] -> ListNodeFromTemplateJobsResponse)
-> Lens
     ListNodeFromTemplateJobsResponse
     ListNodeFromTemplateJobsResponse
     [NodeFromTemplateJob]
     [NodeFromTemplateJob]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListNodeFromTemplateJobsResponse' {[NodeFromTemplateJob]
nodeFromTemplateJobs :: [NodeFromTemplateJob]
$sel:nodeFromTemplateJobs:ListNodeFromTemplateJobsResponse' :: ListNodeFromTemplateJobsResponse -> [NodeFromTemplateJob]
nodeFromTemplateJobs} -> [NodeFromTemplateJob]
nodeFromTemplateJobs) (\s :: ListNodeFromTemplateJobsResponse
s@ListNodeFromTemplateJobsResponse' {} [NodeFromTemplateJob]
a -> ListNodeFromTemplateJobsResponse
s {$sel:nodeFromTemplateJobs:ListNodeFromTemplateJobsResponse' :: [NodeFromTemplateJob]
nodeFromTemplateJobs = [NodeFromTemplateJob]
a} :: ListNodeFromTemplateJobsResponse) (([NodeFromTemplateJob] -> f [NodeFromTemplateJob])
 -> ListNodeFromTemplateJobsResponse
 -> f ListNodeFromTemplateJobsResponse)
-> (([NodeFromTemplateJob] -> f [NodeFromTemplateJob])
    -> [NodeFromTemplateJob] -> f [NodeFromTemplateJob])
-> ([NodeFromTemplateJob] -> f [NodeFromTemplateJob])
-> ListNodeFromTemplateJobsResponse
-> f ListNodeFromTemplateJobsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([NodeFromTemplateJob] -> f [NodeFromTemplateJob])
-> [NodeFromTemplateJob] -> f [NodeFromTemplateJob]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

instance
  Prelude.NFData
    ListNodeFromTemplateJobsResponse