{-# 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.ListDevicesJobs
-- 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 jobs.
module Amazonka.Panorama.ListDevicesJobs
  ( -- * Creating a Request
    ListDevicesJobs (..),
    newListDevicesJobs,

    -- * Request Lenses
    listDevicesJobs_nextToken,
    listDevicesJobs_deviceId,
    listDevicesJobs_maxResults,

    -- * Destructuring the Response
    ListDevicesJobsResponse (..),
    newListDevicesJobsResponse,

    -- * Response Lenses
    listDevicesJobsResponse_nextToken,
    listDevicesJobsResponse_deviceJobs,
    listDevicesJobsResponse_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

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

-- |
-- Create a value of 'ListDevicesJobs' 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', 'listDevicesJobs_nextToken' - Specify the pagination token from a previous request to retrieve the
-- next page of results.
--
-- 'deviceId', 'listDevicesJobs_deviceId' - Filter results by the job\'s target device ID.
--
-- 'maxResults', 'listDevicesJobs_maxResults' - The maximum number of device jobs to return in one page of results.
newListDevicesJobs ::
  ListDevicesJobs
newListDevicesJobs :: ListDevicesJobs
newListDevicesJobs =
  ListDevicesJobs' :: Maybe Text -> Maybe Text -> Maybe Natural -> ListDevicesJobs
ListDevicesJobs'
    { $sel:nextToken:ListDevicesJobs' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:deviceId:ListDevicesJobs' :: Maybe Text
deviceId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:maxResults:ListDevicesJobs' :: 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.
listDevicesJobs_nextToken :: Lens.Lens' ListDevicesJobs (Prelude.Maybe Prelude.Text)
listDevicesJobs_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListDevicesJobs -> f ListDevicesJobs
listDevicesJobs_nextToken = (ListDevicesJobs -> Maybe Text)
-> (ListDevicesJobs -> Maybe Text -> ListDevicesJobs)
-> Lens ListDevicesJobs ListDevicesJobs (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDevicesJobs' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListDevicesJobs' :: ListDevicesJobs -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListDevicesJobs
s@ListDevicesJobs' {} Maybe Text
a -> ListDevicesJobs
s {$sel:nextToken:ListDevicesJobs' :: Maybe Text
nextToken = Maybe Text
a} :: ListDevicesJobs)

-- | Filter results by the job\'s target device ID.
listDevicesJobs_deviceId :: Lens.Lens' ListDevicesJobs (Prelude.Maybe Prelude.Text)
listDevicesJobs_deviceId :: (Maybe Text -> f (Maybe Text))
-> ListDevicesJobs -> f ListDevicesJobs
listDevicesJobs_deviceId = (ListDevicesJobs -> Maybe Text)
-> (ListDevicesJobs -> Maybe Text -> ListDevicesJobs)
-> Lens ListDevicesJobs ListDevicesJobs (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDevicesJobs' {Maybe Text
deviceId :: Maybe Text
$sel:deviceId:ListDevicesJobs' :: ListDevicesJobs -> Maybe Text
deviceId} -> Maybe Text
deviceId) (\s :: ListDevicesJobs
s@ListDevicesJobs' {} Maybe Text
a -> ListDevicesJobs
s {$sel:deviceId:ListDevicesJobs' :: Maybe Text
deviceId = Maybe Text
a} :: ListDevicesJobs)

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

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

instance Prelude.NFData ListDevicesJobs

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

instance Core.ToQuery ListDevicesJobs where
  toQuery :: ListDevicesJobs -> QueryString
toQuery ListDevicesJobs' {Maybe Natural
Maybe Text
maxResults :: Maybe Natural
deviceId :: Maybe Text
nextToken :: Maybe Text
$sel:maxResults:ListDevicesJobs' :: ListDevicesJobs -> Maybe Natural
$sel:deviceId:ListDevicesJobs' :: ListDevicesJobs -> Maybe Text
$sel:nextToken:ListDevicesJobs' :: ListDevicesJobs -> 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
"DeviceId" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
deviceId,
        ByteString
"MaxResults" ByteString -> Maybe Natural -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Natural
maxResults
      ]

-- | /See:/ 'newListDevicesJobsResponse' smart constructor.
data ListDevicesJobsResponse = ListDevicesJobsResponse'
  { -- | A pagination token that\'s included if more results are available.
    ListDevicesJobsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | A list of jobs.
    ListDevicesJobsResponse -> Maybe [DeviceJob]
deviceJobs :: Prelude.Maybe [DeviceJob],
    -- | The response's http status code.
    ListDevicesJobsResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (ListDevicesJobsResponse -> ListDevicesJobsResponse -> Bool
(ListDevicesJobsResponse -> ListDevicesJobsResponse -> Bool)
-> (ListDevicesJobsResponse -> ListDevicesJobsResponse -> Bool)
-> Eq ListDevicesJobsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListDevicesJobsResponse -> ListDevicesJobsResponse -> Bool
$c/= :: ListDevicesJobsResponse -> ListDevicesJobsResponse -> Bool
== :: ListDevicesJobsResponse -> ListDevicesJobsResponse -> Bool
$c== :: ListDevicesJobsResponse -> ListDevicesJobsResponse -> Bool
Prelude.Eq, ReadPrec [ListDevicesJobsResponse]
ReadPrec ListDevicesJobsResponse
Int -> ReadS ListDevicesJobsResponse
ReadS [ListDevicesJobsResponse]
(Int -> ReadS ListDevicesJobsResponse)
-> ReadS [ListDevicesJobsResponse]
-> ReadPrec ListDevicesJobsResponse
-> ReadPrec [ListDevicesJobsResponse]
-> Read ListDevicesJobsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListDevicesJobsResponse]
$creadListPrec :: ReadPrec [ListDevicesJobsResponse]
readPrec :: ReadPrec ListDevicesJobsResponse
$creadPrec :: ReadPrec ListDevicesJobsResponse
readList :: ReadS [ListDevicesJobsResponse]
$creadList :: ReadS [ListDevicesJobsResponse]
readsPrec :: Int -> ReadS ListDevicesJobsResponse
$creadsPrec :: Int -> ReadS ListDevicesJobsResponse
Prelude.Read, Int -> ListDevicesJobsResponse -> ShowS
[ListDevicesJobsResponse] -> ShowS
ListDevicesJobsResponse -> String
(Int -> ListDevicesJobsResponse -> ShowS)
-> (ListDevicesJobsResponse -> String)
-> ([ListDevicesJobsResponse] -> ShowS)
-> Show ListDevicesJobsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListDevicesJobsResponse] -> ShowS
$cshowList :: [ListDevicesJobsResponse] -> ShowS
show :: ListDevicesJobsResponse -> String
$cshow :: ListDevicesJobsResponse -> String
showsPrec :: Int -> ListDevicesJobsResponse -> ShowS
$cshowsPrec :: Int -> ListDevicesJobsResponse -> ShowS
Prelude.Show, (forall x.
 ListDevicesJobsResponse -> Rep ListDevicesJobsResponse x)
-> (forall x.
    Rep ListDevicesJobsResponse x -> ListDevicesJobsResponse)
-> Generic ListDevicesJobsResponse
forall x. Rep ListDevicesJobsResponse x -> ListDevicesJobsResponse
forall x. ListDevicesJobsResponse -> Rep ListDevicesJobsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListDevicesJobsResponse x -> ListDevicesJobsResponse
$cfrom :: forall x. ListDevicesJobsResponse -> Rep ListDevicesJobsResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListDevicesJobsResponse' 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', 'listDevicesJobsResponse_nextToken' - A pagination token that\'s included if more results are available.
--
-- 'deviceJobs', 'listDevicesJobsResponse_deviceJobs' - A list of jobs.
--
-- 'httpStatus', 'listDevicesJobsResponse_httpStatus' - The response's http status code.
newListDevicesJobsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListDevicesJobsResponse
newListDevicesJobsResponse :: Int -> ListDevicesJobsResponse
newListDevicesJobsResponse Int
pHttpStatus_ =
  ListDevicesJobsResponse' :: Maybe Text -> Maybe [DeviceJob] -> Int -> ListDevicesJobsResponse
ListDevicesJobsResponse'
    { $sel:nextToken:ListDevicesJobsResponse' :: Maybe Text
nextToken =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:deviceJobs:ListDevicesJobsResponse' :: Maybe [DeviceJob]
deviceJobs = Maybe [DeviceJob]
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListDevicesJobsResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

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

-- | A list of jobs.
listDevicesJobsResponse_deviceJobs :: Lens.Lens' ListDevicesJobsResponse (Prelude.Maybe [DeviceJob])
listDevicesJobsResponse_deviceJobs :: (Maybe [DeviceJob] -> f (Maybe [DeviceJob]))
-> ListDevicesJobsResponse -> f ListDevicesJobsResponse
listDevicesJobsResponse_deviceJobs = (ListDevicesJobsResponse -> Maybe [DeviceJob])
-> (ListDevicesJobsResponse
    -> Maybe [DeviceJob] -> ListDevicesJobsResponse)
-> Lens
     ListDevicesJobsResponse
     ListDevicesJobsResponse
     (Maybe [DeviceJob])
     (Maybe [DeviceJob])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDevicesJobsResponse' {Maybe [DeviceJob]
deviceJobs :: Maybe [DeviceJob]
$sel:deviceJobs:ListDevicesJobsResponse' :: ListDevicesJobsResponse -> Maybe [DeviceJob]
deviceJobs} -> Maybe [DeviceJob]
deviceJobs) (\s :: ListDevicesJobsResponse
s@ListDevicesJobsResponse' {} Maybe [DeviceJob]
a -> ListDevicesJobsResponse
s {$sel:deviceJobs:ListDevicesJobsResponse' :: Maybe [DeviceJob]
deviceJobs = Maybe [DeviceJob]
a} :: ListDevicesJobsResponse) ((Maybe [DeviceJob] -> f (Maybe [DeviceJob]))
 -> ListDevicesJobsResponse -> f ListDevicesJobsResponse)
-> ((Maybe [DeviceJob] -> f (Maybe [DeviceJob]))
    -> Maybe [DeviceJob] -> f (Maybe [DeviceJob]))
-> (Maybe [DeviceJob] -> f (Maybe [DeviceJob]))
-> ListDevicesJobsResponse
-> f ListDevicesJobsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [DeviceJob] [DeviceJob] [DeviceJob] [DeviceJob]
-> Iso
     (Maybe [DeviceJob])
     (Maybe [DeviceJob])
     (Maybe [DeviceJob])
     (Maybe [DeviceJob])
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 [DeviceJob] [DeviceJob] [DeviceJob] [DeviceJob]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

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

instance Prelude.NFData ListDevicesJobsResponse