{-# 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.IoTWireless.ListWirelessGatewayTaskDefinitions
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- List the wireless gateway tasks definitions registered to your AWS
-- account.
module Amazonka.IoTWireless.ListWirelessGatewayTaskDefinitions
  ( -- * Creating a Request
    ListWirelessGatewayTaskDefinitions (..),
    newListWirelessGatewayTaskDefinitions,

    -- * Request Lenses
    listWirelessGatewayTaskDefinitions_maxResults,
    listWirelessGatewayTaskDefinitions_nextToken,
    listWirelessGatewayTaskDefinitions_taskDefinitionType,

    -- * Destructuring the Response
    ListWirelessGatewayTaskDefinitionsResponse (..),
    newListWirelessGatewayTaskDefinitionsResponse,

    -- * Response Lenses
    listWirelessGatewayTaskDefinitionsResponse_nextToken,
    listWirelessGatewayTaskDefinitionsResponse_taskDefinitions,
    listWirelessGatewayTaskDefinitionsResponse_httpStatus,
  )
where

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

-- | /See:/ 'newListWirelessGatewayTaskDefinitions' smart constructor.
data ListWirelessGatewayTaskDefinitions = ListWirelessGatewayTaskDefinitions'
  { -- | The maximum number of results to return in this operation.
    ListWirelessGatewayTaskDefinitions -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
    -- | To retrieve the next set of results, the @nextToken@ value from a
    -- previous response; otherwise __null__ to receive the first set of
    -- results.
    ListWirelessGatewayTaskDefinitions -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | A filter to list only the wireless gateway task definitions that use
    -- this task definition type.
    ListWirelessGatewayTaskDefinitions
-> Maybe WirelessGatewayTaskDefinitionType
taskDefinitionType :: Prelude.Maybe WirelessGatewayTaskDefinitionType
  }
  deriving (ListWirelessGatewayTaskDefinitions
-> ListWirelessGatewayTaskDefinitions -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListWirelessGatewayTaskDefinitions
-> ListWirelessGatewayTaskDefinitions -> Bool
$c/= :: ListWirelessGatewayTaskDefinitions
-> ListWirelessGatewayTaskDefinitions -> Bool
== :: ListWirelessGatewayTaskDefinitions
-> ListWirelessGatewayTaskDefinitions -> Bool
$c== :: ListWirelessGatewayTaskDefinitions
-> ListWirelessGatewayTaskDefinitions -> Bool
Prelude.Eq, ReadPrec [ListWirelessGatewayTaskDefinitions]
ReadPrec ListWirelessGatewayTaskDefinitions
Int -> ReadS ListWirelessGatewayTaskDefinitions
ReadS [ListWirelessGatewayTaskDefinitions]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListWirelessGatewayTaskDefinitions]
$creadListPrec :: ReadPrec [ListWirelessGatewayTaskDefinitions]
readPrec :: ReadPrec ListWirelessGatewayTaskDefinitions
$creadPrec :: ReadPrec ListWirelessGatewayTaskDefinitions
readList :: ReadS [ListWirelessGatewayTaskDefinitions]
$creadList :: ReadS [ListWirelessGatewayTaskDefinitions]
readsPrec :: Int -> ReadS ListWirelessGatewayTaskDefinitions
$creadsPrec :: Int -> ReadS ListWirelessGatewayTaskDefinitions
Prelude.Read, Int -> ListWirelessGatewayTaskDefinitions -> ShowS
[ListWirelessGatewayTaskDefinitions] -> ShowS
ListWirelessGatewayTaskDefinitions -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListWirelessGatewayTaskDefinitions] -> ShowS
$cshowList :: [ListWirelessGatewayTaskDefinitions] -> ShowS
show :: ListWirelessGatewayTaskDefinitions -> String
$cshow :: ListWirelessGatewayTaskDefinitions -> String
showsPrec :: Int -> ListWirelessGatewayTaskDefinitions -> ShowS
$cshowsPrec :: Int -> ListWirelessGatewayTaskDefinitions -> ShowS
Prelude.Show, forall x.
Rep ListWirelessGatewayTaskDefinitions x
-> ListWirelessGatewayTaskDefinitions
forall x.
ListWirelessGatewayTaskDefinitions
-> Rep ListWirelessGatewayTaskDefinitions x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListWirelessGatewayTaskDefinitions x
-> ListWirelessGatewayTaskDefinitions
$cfrom :: forall x.
ListWirelessGatewayTaskDefinitions
-> Rep ListWirelessGatewayTaskDefinitions x
Prelude.Generic)

-- |
-- Create a value of 'ListWirelessGatewayTaskDefinitions' 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', 'listWirelessGatewayTaskDefinitions_maxResults' - The maximum number of results to return in this operation.
--
-- 'nextToken', 'listWirelessGatewayTaskDefinitions_nextToken' - To retrieve the next set of results, the @nextToken@ value from a
-- previous response; otherwise __null__ to receive the first set of
-- results.
--
-- 'taskDefinitionType', 'listWirelessGatewayTaskDefinitions_taskDefinitionType' - A filter to list only the wireless gateway task definitions that use
-- this task definition type.
newListWirelessGatewayTaskDefinitions ::
  ListWirelessGatewayTaskDefinitions
newListWirelessGatewayTaskDefinitions :: ListWirelessGatewayTaskDefinitions
newListWirelessGatewayTaskDefinitions =
  ListWirelessGatewayTaskDefinitions'
    { $sel:maxResults:ListWirelessGatewayTaskDefinitions' :: Maybe Natural
maxResults =
        forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListWirelessGatewayTaskDefinitions' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
      $sel:taskDefinitionType:ListWirelessGatewayTaskDefinitions' :: Maybe WirelessGatewayTaskDefinitionType
taskDefinitionType = forall a. Maybe a
Prelude.Nothing
    }

-- | The maximum number of results to return in this operation.
listWirelessGatewayTaskDefinitions_maxResults :: Lens.Lens' ListWirelessGatewayTaskDefinitions (Prelude.Maybe Prelude.Natural)
listWirelessGatewayTaskDefinitions_maxResults :: Lens' ListWirelessGatewayTaskDefinitions (Maybe Natural)
listWirelessGatewayTaskDefinitions_maxResults = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListWirelessGatewayTaskDefinitions' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListWirelessGatewayTaskDefinitions' :: ListWirelessGatewayTaskDefinitions -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListWirelessGatewayTaskDefinitions
s@ListWirelessGatewayTaskDefinitions' {} Maybe Natural
a -> ListWirelessGatewayTaskDefinitions
s {$sel:maxResults:ListWirelessGatewayTaskDefinitions' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListWirelessGatewayTaskDefinitions)

-- | To retrieve the next set of results, the @nextToken@ value from a
-- previous response; otherwise __null__ to receive the first set of
-- results.
listWirelessGatewayTaskDefinitions_nextToken :: Lens.Lens' ListWirelessGatewayTaskDefinitions (Prelude.Maybe Prelude.Text)
listWirelessGatewayTaskDefinitions_nextToken :: Lens' ListWirelessGatewayTaskDefinitions (Maybe Text)
listWirelessGatewayTaskDefinitions_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListWirelessGatewayTaskDefinitions' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListWirelessGatewayTaskDefinitions' :: ListWirelessGatewayTaskDefinitions -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListWirelessGatewayTaskDefinitions
s@ListWirelessGatewayTaskDefinitions' {} Maybe Text
a -> ListWirelessGatewayTaskDefinitions
s {$sel:nextToken:ListWirelessGatewayTaskDefinitions' :: Maybe Text
nextToken = Maybe Text
a} :: ListWirelessGatewayTaskDefinitions)

-- | A filter to list only the wireless gateway task definitions that use
-- this task definition type.
listWirelessGatewayTaskDefinitions_taskDefinitionType :: Lens.Lens' ListWirelessGatewayTaskDefinitions (Prelude.Maybe WirelessGatewayTaskDefinitionType)
listWirelessGatewayTaskDefinitions_taskDefinitionType :: Lens'
  ListWirelessGatewayTaskDefinitions
  (Maybe WirelessGatewayTaskDefinitionType)
listWirelessGatewayTaskDefinitions_taskDefinitionType = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListWirelessGatewayTaskDefinitions' {Maybe WirelessGatewayTaskDefinitionType
taskDefinitionType :: Maybe WirelessGatewayTaskDefinitionType
$sel:taskDefinitionType:ListWirelessGatewayTaskDefinitions' :: ListWirelessGatewayTaskDefinitions
-> Maybe WirelessGatewayTaskDefinitionType
taskDefinitionType} -> Maybe WirelessGatewayTaskDefinitionType
taskDefinitionType) (\s :: ListWirelessGatewayTaskDefinitions
s@ListWirelessGatewayTaskDefinitions' {} Maybe WirelessGatewayTaskDefinitionType
a -> ListWirelessGatewayTaskDefinitions
s {$sel:taskDefinitionType:ListWirelessGatewayTaskDefinitions' :: Maybe WirelessGatewayTaskDefinitionType
taskDefinitionType = Maybe WirelessGatewayTaskDefinitionType
a} :: ListWirelessGatewayTaskDefinitions)

instance
  Core.AWSRequest
    ListWirelessGatewayTaskDefinitions
  where
  type
    AWSResponse ListWirelessGatewayTaskDefinitions =
      ListWirelessGatewayTaskDefinitionsResponse
  request :: (Service -> Service)
-> ListWirelessGatewayTaskDefinitions
-> Request ListWirelessGatewayTaskDefinitions
request Service -> Service
overrides =
    forall a. ToRequest a => Service -> a -> Request a
Request.get (Service -> Service
overrides Service
defaultService)
  response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy ListWirelessGatewayTaskDefinitions
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse (AWSResponse ListWirelessGatewayTaskDefinitions)))
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 [UpdateWirelessGatewayTaskEntry]
-> Int
-> ListWirelessGatewayTaskDefinitionsResponse
ListWirelessGatewayTaskDefinitionsResponse'
            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
"TaskDefinitions"
                            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
    ListWirelessGatewayTaskDefinitions
  where
  hashWithSalt :: Int -> ListWirelessGatewayTaskDefinitions -> Int
hashWithSalt
    Int
_salt
    ListWirelessGatewayTaskDefinitions' {Maybe Natural
Maybe Text
Maybe WirelessGatewayTaskDefinitionType
taskDefinitionType :: Maybe WirelessGatewayTaskDefinitionType
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:taskDefinitionType:ListWirelessGatewayTaskDefinitions' :: ListWirelessGatewayTaskDefinitions
-> Maybe WirelessGatewayTaskDefinitionType
$sel:nextToken:ListWirelessGatewayTaskDefinitions' :: ListWirelessGatewayTaskDefinitions -> Maybe Text
$sel:maxResults:ListWirelessGatewayTaskDefinitions' :: ListWirelessGatewayTaskDefinitions -> 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` Maybe WirelessGatewayTaskDefinitionType
taskDefinitionType

instance
  Prelude.NFData
    ListWirelessGatewayTaskDefinitions
  where
  rnf :: ListWirelessGatewayTaskDefinitions -> ()
rnf ListWirelessGatewayTaskDefinitions' {Maybe Natural
Maybe Text
Maybe WirelessGatewayTaskDefinitionType
taskDefinitionType :: Maybe WirelessGatewayTaskDefinitionType
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:taskDefinitionType:ListWirelessGatewayTaskDefinitions' :: ListWirelessGatewayTaskDefinitions
-> Maybe WirelessGatewayTaskDefinitionType
$sel:nextToken:ListWirelessGatewayTaskDefinitions' :: ListWirelessGatewayTaskDefinitions -> Maybe Text
$sel:maxResults:ListWirelessGatewayTaskDefinitions' :: ListWirelessGatewayTaskDefinitions -> 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 Maybe WirelessGatewayTaskDefinitionType
taskDefinitionType

instance
  Data.ToHeaders
    ListWirelessGatewayTaskDefinitions
  where
  toHeaders :: ListWirelessGatewayTaskDefinitions -> ResponseHeaders
toHeaders = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty

instance
  Data.ToPath
    ListWirelessGatewayTaskDefinitions
  where
  toPath :: ListWirelessGatewayTaskDefinitions -> ByteString
toPath =
    forall a b. a -> b -> a
Prelude.const ByteString
"/wireless-gateway-task-definitions"

instance
  Data.ToQuery
    ListWirelessGatewayTaskDefinitions
  where
  toQuery :: ListWirelessGatewayTaskDefinitions -> QueryString
toQuery ListWirelessGatewayTaskDefinitions' {Maybe Natural
Maybe Text
Maybe WirelessGatewayTaskDefinitionType
taskDefinitionType :: Maybe WirelessGatewayTaskDefinitionType
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:taskDefinitionType:ListWirelessGatewayTaskDefinitions' :: ListWirelessGatewayTaskDefinitions
-> Maybe WirelessGatewayTaskDefinitionType
$sel:nextToken:ListWirelessGatewayTaskDefinitions' :: ListWirelessGatewayTaskDefinitions -> Maybe Text
$sel:maxResults:ListWirelessGatewayTaskDefinitions' :: ListWirelessGatewayTaskDefinitions -> Maybe Natural
..} =
    forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"maxResults" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Natural
maxResults,
        ByteString
"nextToken" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Text
nextToken,
        ByteString
"taskDefinitionType" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe WirelessGatewayTaskDefinitionType
taskDefinitionType
      ]

-- | /See:/ 'newListWirelessGatewayTaskDefinitionsResponse' smart constructor.
data ListWirelessGatewayTaskDefinitionsResponse = ListWirelessGatewayTaskDefinitionsResponse'
  { -- | The token to use to get the next set of results, or __null__ if there
    -- are no additional results.
    ListWirelessGatewayTaskDefinitionsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The list of task definitions.
    ListWirelessGatewayTaskDefinitionsResponse
-> Maybe [UpdateWirelessGatewayTaskEntry]
taskDefinitions :: Prelude.Maybe [UpdateWirelessGatewayTaskEntry],
    -- | The response's http status code.
    ListWirelessGatewayTaskDefinitionsResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (ListWirelessGatewayTaskDefinitionsResponse
-> ListWirelessGatewayTaskDefinitionsResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListWirelessGatewayTaskDefinitionsResponse
-> ListWirelessGatewayTaskDefinitionsResponse -> Bool
$c/= :: ListWirelessGatewayTaskDefinitionsResponse
-> ListWirelessGatewayTaskDefinitionsResponse -> Bool
== :: ListWirelessGatewayTaskDefinitionsResponse
-> ListWirelessGatewayTaskDefinitionsResponse -> Bool
$c== :: ListWirelessGatewayTaskDefinitionsResponse
-> ListWirelessGatewayTaskDefinitionsResponse -> Bool
Prelude.Eq, ReadPrec [ListWirelessGatewayTaskDefinitionsResponse]
ReadPrec ListWirelessGatewayTaskDefinitionsResponse
Int -> ReadS ListWirelessGatewayTaskDefinitionsResponse
ReadS [ListWirelessGatewayTaskDefinitionsResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListWirelessGatewayTaskDefinitionsResponse]
$creadListPrec :: ReadPrec [ListWirelessGatewayTaskDefinitionsResponse]
readPrec :: ReadPrec ListWirelessGatewayTaskDefinitionsResponse
$creadPrec :: ReadPrec ListWirelessGatewayTaskDefinitionsResponse
readList :: ReadS [ListWirelessGatewayTaskDefinitionsResponse]
$creadList :: ReadS [ListWirelessGatewayTaskDefinitionsResponse]
readsPrec :: Int -> ReadS ListWirelessGatewayTaskDefinitionsResponse
$creadsPrec :: Int -> ReadS ListWirelessGatewayTaskDefinitionsResponse
Prelude.Read, Int -> ListWirelessGatewayTaskDefinitionsResponse -> ShowS
[ListWirelessGatewayTaskDefinitionsResponse] -> ShowS
ListWirelessGatewayTaskDefinitionsResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListWirelessGatewayTaskDefinitionsResponse] -> ShowS
$cshowList :: [ListWirelessGatewayTaskDefinitionsResponse] -> ShowS
show :: ListWirelessGatewayTaskDefinitionsResponse -> String
$cshow :: ListWirelessGatewayTaskDefinitionsResponse -> String
showsPrec :: Int -> ListWirelessGatewayTaskDefinitionsResponse -> ShowS
$cshowsPrec :: Int -> ListWirelessGatewayTaskDefinitionsResponse -> ShowS
Prelude.Show, forall x.
Rep ListWirelessGatewayTaskDefinitionsResponse x
-> ListWirelessGatewayTaskDefinitionsResponse
forall x.
ListWirelessGatewayTaskDefinitionsResponse
-> Rep ListWirelessGatewayTaskDefinitionsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListWirelessGatewayTaskDefinitionsResponse x
-> ListWirelessGatewayTaskDefinitionsResponse
$cfrom :: forall x.
ListWirelessGatewayTaskDefinitionsResponse
-> Rep ListWirelessGatewayTaskDefinitionsResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListWirelessGatewayTaskDefinitionsResponse' 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', 'listWirelessGatewayTaskDefinitionsResponse_nextToken' - The token to use to get the next set of results, or __null__ if there
-- are no additional results.
--
-- 'taskDefinitions', 'listWirelessGatewayTaskDefinitionsResponse_taskDefinitions' - The list of task definitions.
--
-- 'httpStatus', 'listWirelessGatewayTaskDefinitionsResponse_httpStatus' - The response's http status code.
newListWirelessGatewayTaskDefinitionsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListWirelessGatewayTaskDefinitionsResponse
newListWirelessGatewayTaskDefinitionsResponse :: Int -> ListWirelessGatewayTaskDefinitionsResponse
newListWirelessGatewayTaskDefinitionsResponse
  Int
pHttpStatus_ =
    ListWirelessGatewayTaskDefinitionsResponse'
      { $sel:nextToken:ListWirelessGatewayTaskDefinitionsResponse' :: Maybe Text
nextToken =
          forall a. Maybe a
Prelude.Nothing,
        $sel:taskDefinitions:ListWirelessGatewayTaskDefinitionsResponse' :: Maybe [UpdateWirelessGatewayTaskEntry]
taskDefinitions =
          forall a. Maybe a
Prelude.Nothing,
        $sel:httpStatus:ListWirelessGatewayTaskDefinitionsResponse' :: Int
httpStatus = Int
pHttpStatus_
      }

-- | The token to use to get the next set of results, or __null__ if there
-- are no additional results.
listWirelessGatewayTaskDefinitionsResponse_nextToken :: Lens.Lens' ListWirelessGatewayTaskDefinitionsResponse (Prelude.Maybe Prelude.Text)
listWirelessGatewayTaskDefinitionsResponse_nextToken :: Lens' ListWirelessGatewayTaskDefinitionsResponse (Maybe Text)
listWirelessGatewayTaskDefinitionsResponse_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListWirelessGatewayTaskDefinitionsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListWirelessGatewayTaskDefinitionsResponse' :: ListWirelessGatewayTaskDefinitionsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListWirelessGatewayTaskDefinitionsResponse
s@ListWirelessGatewayTaskDefinitionsResponse' {} Maybe Text
a -> ListWirelessGatewayTaskDefinitionsResponse
s {$sel:nextToken:ListWirelessGatewayTaskDefinitionsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListWirelessGatewayTaskDefinitionsResponse)

-- | The list of task definitions.
listWirelessGatewayTaskDefinitionsResponse_taskDefinitions :: Lens.Lens' ListWirelessGatewayTaskDefinitionsResponse (Prelude.Maybe [UpdateWirelessGatewayTaskEntry])
listWirelessGatewayTaskDefinitionsResponse_taskDefinitions :: Lens'
  ListWirelessGatewayTaskDefinitionsResponse
  (Maybe [UpdateWirelessGatewayTaskEntry])
listWirelessGatewayTaskDefinitionsResponse_taskDefinitions = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListWirelessGatewayTaskDefinitionsResponse' {Maybe [UpdateWirelessGatewayTaskEntry]
taskDefinitions :: Maybe [UpdateWirelessGatewayTaskEntry]
$sel:taskDefinitions:ListWirelessGatewayTaskDefinitionsResponse' :: ListWirelessGatewayTaskDefinitionsResponse
-> Maybe [UpdateWirelessGatewayTaskEntry]
taskDefinitions} -> Maybe [UpdateWirelessGatewayTaskEntry]
taskDefinitions) (\s :: ListWirelessGatewayTaskDefinitionsResponse
s@ListWirelessGatewayTaskDefinitionsResponse' {} Maybe [UpdateWirelessGatewayTaskEntry]
a -> ListWirelessGatewayTaskDefinitionsResponse
s {$sel:taskDefinitions:ListWirelessGatewayTaskDefinitionsResponse' :: Maybe [UpdateWirelessGatewayTaskEntry]
taskDefinitions = Maybe [UpdateWirelessGatewayTaskEntry]
a} :: ListWirelessGatewayTaskDefinitionsResponse) 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.
listWirelessGatewayTaskDefinitionsResponse_httpStatus :: Lens.Lens' ListWirelessGatewayTaskDefinitionsResponse Prelude.Int
listWirelessGatewayTaskDefinitionsResponse_httpStatus :: Lens' ListWirelessGatewayTaskDefinitionsResponse Int
listWirelessGatewayTaskDefinitionsResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListWirelessGatewayTaskDefinitionsResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListWirelessGatewayTaskDefinitionsResponse' :: ListWirelessGatewayTaskDefinitionsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListWirelessGatewayTaskDefinitionsResponse
s@ListWirelessGatewayTaskDefinitionsResponse' {} Int
a -> ListWirelessGatewayTaskDefinitionsResponse
s {$sel:httpStatus:ListWirelessGatewayTaskDefinitionsResponse' :: Int
httpStatus = Int
a} :: ListWirelessGatewayTaskDefinitionsResponse)

instance
  Prelude.NFData
    ListWirelessGatewayTaskDefinitionsResponse
  where
  rnf :: ListWirelessGatewayTaskDefinitionsResponse -> ()
rnf ListWirelessGatewayTaskDefinitionsResponse' {Int
Maybe [UpdateWirelessGatewayTaskEntry]
Maybe Text
httpStatus :: Int
taskDefinitions :: Maybe [UpdateWirelessGatewayTaskEntry]
nextToken :: Maybe Text
$sel:httpStatus:ListWirelessGatewayTaskDefinitionsResponse' :: ListWirelessGatewayTaskDefinitionsResponse -> Int
$sel:taskDefinitions:ListWirelessGatewayTaskDefinitionsResponse' :: ListWirelessGatewayTaskDefinitionsResponse
-> Maybe [UpdateWirelessGatewayTaskEntry]
$sel:nextToken:ListWirelessGatewayTaskDefinitionsResponse' :: ListWirelessGatewayTaskDefinitionsResponse -> 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 [UpdateWirelessGatewayTaskEntry]
taskDefinitions
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus