{-# 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.ListWirelessDevices
-- 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)
--
-- Lists the wireless devices registered to your AWS account.
module Amazonka.IoTWireless.ListWirelessDevices
  ( -- * Creating a Request
    ListWirelessDevices (..),
    newListWirelessDevices,

    -- * Request Lenses
    listWirelessDevices_serviceProfileId,
    listWirelessDevices_deviceProfileId,
    listWirelessDevices_nextToken,
    listWirelessDevices_wirelessDeviceType,
    listWirelessDevices_destinationName,
    listWirelessDevices_maxResults,

    -- * Destructuring the Response
    ListWirelessDevicesResponse (..),
    newListWirelessDevicesResponse,

    -- * Response Lenses
    listWirelessDevicesResponse_wirelessDeviceList,
    listWirelessDevicesResponse_nextToken,
    listWirelessDevicesResponse_httpStatus,
  )
where

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

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

-- |
-- Create a value of 'ListWirelessDevices' 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:
--
-- 'serviceProfileId', 'listWirelessDevices_serviceProfileId' - A filter to list only the wireless devices that use this service
-- profile.
--
-- 'deviceProfileId', 'listWirelessDevices_deviceProfileId' - A filter to list only the wireless devices that use this device profile.
--
-- 'nextToken', 'listWirelessDevices_nextToken' - To retrieve the next set of results, the @nextToken@ value from a
-- previous response; otherwise __null__ to receive the first set of
-- results.
--
-- 'wirelessDeviceType', 'listWirelessDevices_wirelessDeviceType' - A filter to list only the wireless devices that use this wireless device
-- type.
--
-- 'destinationName', 'listWirelessDevices_destinationName' - A filter to list only the wireless devices that use this destination.
--
-- 'maxResults', 'listWirelessDevices_maxResults' - The maximum number of results to return in this operation.
newListWirelessDevices ::
  ListWirelessDevices
newListWirelessDevices :: ListWirelessDevices
newListWirelessDevices =
  ListWirelessDevices' :: Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe WirelessDeviceType
-> Maybe Text
-> Maybe Natural
-> ListWirelessDevices
ListWirelessDevices'
    { $sel:serviceProfileId:ListWirelessDevices' :: Maybe Text
serviceProfileId =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:deviceProfileId:ListWirelessDevices' :: Maybe Text
deviceProfileId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListWirelessDevices' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:wirelessDeviceType:ListWirelessDevices' :: Maybe WirelessDeviceType
wirelessDeviceType = Maybe WirelessDeviceType
forall a. Maybe a
Prelude.Nothing,
      $sel:destinationName:ListWirelessDevices' :: Maybe Text
destinationName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:maxResults:ListWirelessDevices' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing
    }

-- | A filter to list only the wireless devices that use this service
-- profile.
listWirelessDevices_serviceProfileId :: Lens.Lens' ListWirelessDevices (Prelude.Maybe Prelude.Text)
listWirelessDevices_serviceProfileId :: (Maybe Text -> f (Maybe Text))
-> ListWirelessDevices -> f ListWirelessDevices
listWirelessDevices_serviceProfileId = (ListWirelessDevices -> Maybe Text)
-> (ListWirelessDevices -> Maybe Text -> ListWirelessDevices)
-> Lens
     ListWirelessDevices ListWirelessDevices (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListWirelessDevices' {Maybe Text
serviceProfileId :: Maybe Text
$sel:serviceProfileId:ListWirelessDevices' :: ListWirelessDevices -> Maybe Text
serviceProfileId} -> Maybe Text
serviceProfileId) (\s :: ListWirelessDevices
s@ListWirelessDevices' {} Maybe Text
a -> ListWirelessDevices
s {$sel:serviceProfileId:ListWirelessDevices' :: Maybe Text
serviceProfileId = Maybe Text
a} :: ListWirelessDevices)

-- | A filter to list only the wireless devices that use this device profile.
listWirelessDevices_deviceProfileId :: Lens.Lens' ListWirelessDevices (Prelude.Maybe Prelude.Text)
listWirelessDevices_deviceProfileId :: (Maybe Text -> f (Maybe Text))
-> ListWirelessDevices -> f ListWirelessDevices
listWirelessDevices_deviceProfileId = (ListWirelessDevices -> Maybe Text)
-> (ListWirelessDevices -> Maybe Text -> ListWirelessDevices)
-> Lens
     ListWirelessDevices ListWirelessDevices (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListWirelessDevices' {Maybe Text
deviceProfileId :: Maybe Text
$sel:deviceProfileId:ListWirelessDevices' :: ListWirelessDevices -> Maybe Text
deviceProfileId} -> Maybe Text
deviceProfileId) (\s :: ListWirelessDevices
s@ListWirelessDevices' {} Maybe Text
a -> ListWirelessDevices
s {$sel:deviceProfileId:ListWirelessDevices' :: Maybe Text
deviceProfileId = Maybe Text
a} :: ListWirelessDevices)

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

-- | A filter to list only the wireless devices that use this wireless device
-- type.
listWirelessDevices_wirelessDeviceType :: Lens.Lens' ListWirelessDevices (Prelude.Maybe WirelessDeviceType)
listWirelessDevices_wirelessDeviceType :: (Maybe WirelessDeviceType -> f (Maybe WirelessDeviceType))
-> ListWirelessDevices -> f ListWirelessDevices
listWirelessDevices_wirelessDeviceType = (ListWirelessDevices -> Maybe WirelessDeviceType)
-> (ListWirelessDevices
    -> Maybe WirelessDeviceType -> ListWirelessDevices)
-> Lens
     ListWirelessDevices
     ListWirelessDevices
     (Maybe WirelessDeviceType)
     (Maybe WirelessDeviceType)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListWirelessDevices' {Maybe WirelessDeviceType
wirelessDeviceType :: Maybe WirelessDeviceType
$sel:wirelessDeviceType:ListWirelessDevices' :: ListWirelessDevices -> Maybe WirelessDeviceType
wirelessDeviceType} -> Maybe WirelessDeviceType
wirelessDeviceType) (\s :: ListWirelessDevices
s@ListWirelessDevices' {} Maybe WirelessDeviceType
a -> ListWirelessDevices
s {$sel:wirelessDeviceType:ListWirelessDevices' :: Maybe WirelessDeviceType
wirelessDeviceType = Maybe WirelessDeviceType
a} :: ListWirelessDevices)

-- | A filter to list only the wireless devices that use this destination.
listWirelessDevices_destinationName :: Lens.Lens' ListWirelessDevices (Prelude.Maybe Prelude.Text)
listWirelessDevices_destinationName :: (Maybe Text -> f (Maybe Text))
-> ListWirelessDevices -> f ListWirelessDevices
listWirelessDevices_destinationName = (ListWirelessDevices -> Maybe Text)
-> (ListWirelessDevices -> Maybe Text -> ListWirelessDevices)
-> Lens
     ListWirelessDevices ListWirelessDevices (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListWirelessDevices' {Maybe Text
destinationName :: Maybe Text
$sel:destinationName:ListWirelessDevices' :: ListWirelessDevices -> Maybe Text
destinationName} -> Maybe Text
destinationName) (\s :: ListWirelessDevices
s@ListWirelessDevices' {} Maybe Text
a -> ListWirelessDevices
s {$sel:destinationName:ListWirelessDevices' :: Maybe Text
destinationName = Maybe Text
a} :: ListWirelessDevices)

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

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

instance Prelude.NFData ListWirelessDevices

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

instance Core.ToPath ListWirelessDevices where
  toPath :: ListWirelessDevices -> ByteString
toPath = ByteString -> ListWirelessDevices -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/wireless-devices"

instance Core.ToQuery ListWirelessDevices where
  toQuery :: ListWirelessDevices -> QueryString
toQuery ListWirelessDevices' {Maybe Natural
Maybe Text
Maybe WirelessDeviceType
maxResults :: Maybe Natural
destinationName :: Maybe Text
wirelessDeviceType :: Maybe WirelessDeviceType
nextToken :: Maybe Text
deviceProfileId :: Maybe Text
serviceProfileId :: Maybe Text
$sel:maxResults:ListWirelessDevices' :: ListWirelessDevices -> Maybe Natural
$sel:destinationName:ListWirelessDevices' :: ListWirelessDevices -> Maybe Text
$sel:wirelessDeviceType:ListWirelessDevices' :: ListWirelessDevices -> Maybe WirelessDeviceType
$sel:nextToken:ListWirelessDevices' :: ListWirelessDevices -> Maybe Text
$sel:deviceProfileId:ListWirelessDevices' :: ListWirelessDevices -> Maybe Text
$sel:serviceProfileId:ListWirelessDevices' :: ListWirelessDevices -> Maybe Text
..} =
    [QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"serviceProfileId" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
serviceProfileId,
        ByteString
"deviceProfileId" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
deviceProfileId,
        ByteString
"nextToken" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
nextToken,
        ByteString
"wirelessDeviceType" ByteString -> Maybe WirelessDeviceType -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe WirelessDeviceType
wirelessDeviceType,
        ByteString
"destinationName" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
destinationName,
        ByteString
"maxResults" ByteString -> Maybe Natural -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Natural
maxResults
      ]

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

-- |
-- Create a value of 'ListWirelessDevicesResponse' 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:
--
-- 'wirelessDeviceList', 'listWirelessDevicesResponse_wirelessDeviceList' - The ID of the wireless device.
--
-- 'nextToken', 'listWirelessDevicesResponse_nextToken' - The token to use to get the next set of results, or __null__ if there
-- are no additional results.
--
-- 'httpStatus', 'listWirelessDevicesResponse_httpStatus' - The response's http status code.
newListWirelessDevicesResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListWirelessDevicesResponse
newListWirelessDevicesResponse :: Int -> ListWirelessDevicesResponse
newListWirelessDevicesResponse Int
pHttpStatus_ =
  ListWirelessDevicesResponse' :: Maybe [WirelessDeviceStatistics]
-> Maybe Text -> Int -> ListWirelessDevicesResponse
ListWirelessDevicesResponse'
    { $sel:wirelessDeviceList:ListWirelessDevicesResponse' :: Maybe [WirelessDeviceStatistics]
wirelessDeviceList =
        Maybe [WirelessDeviceStatistics]
forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListWirelessDevicesResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListWirelessDevicesResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | The ID of the wireless device.
listWirelessDevicesResponse_wirelessDeviceList :: Lens.Lens' ListWirelessDevicesResponse (Prelude.Maybe [WirelessDeviceStatistics])
listWirelessDevicesResponse_wirelessDeviceList :: (Maybe [WirelessDeviceStatistics]
 -> f (Maybe [WirelessDeviceStatistics]))
-> ListWirelessDevicesResponse -> f ListWirelessDevicesResponse
listWirelessDevicesResponse_wirelessDeviceList = (ListWirelessDevicesResponse -> Maybe [WirelessDeviceStatistics])
-> (ListWirelessDevicesResponse
    -> Maybe [WirelessDeviceStatistics] -> ListWirelessDevicesResponse)
-> Lens
     ListWirelessDevicesResponse
     ListWirelessDevicesResponse
     (Maybe [WirelessDeviceStatistics])
     (Maybe [WirelessDeviceStatistics])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListWirelessDevicesResponse' {Maybe [WirelessDeviceStatistics]
wirelessDeviceList :: Maybe [WirelessDeviceStatistics]
$sel:wirelessDeviceList:ListWirelessDevicesResponse' :: ListWirelessDevicesResponse -> Maybe [WirelessDeviceStatistics]
wirelessDeviceList} -> Maybe [WirelessDeviceStatistics]
wirelessDeviceList) (\s :: ListWirelessDevicesResponse
s@ListWirelessDevicesResponse' {} Maybe [WirelessDeviceStatistics]
a -> ListWirelessDevicesResponse
s {$sel:wirelessDeviceList:ListWirelessDevicesResponse' :: Maybe [WirelessDeviceStatistics]
wirelessDeviceList = Maybe [WirelessDeviceStatistics]
a} :: ListWirelessDevicesResponse) ((Maybe [WirelessDeviceStatistics]
  -> f (Maybe [WirelessDeviceStatistics]))
 -> ListWirelessDevicesResponse -> f ListWirelessDevicesResponse)
-> ((Maybe [WirelessDeviceStatistics]
     -> f (Maybe [WirelessDeviceStatistics]))
    -> Maybe [WirelessDeviceStatistics]
    -> f (Maybe [WirelessDeviceStatistics]))
-> (Maybe [WirelessDeviceStatistics]
    -> f (Maybe [WirelessDeviceStatistics]))
-> ListWirelessDevicesResponse
-> f ListWirelessDevicesResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [WirelessDeviceStatistics]
  [WirelessDeviceStatistics]
  [WirelessDeviceStatistics]
  [WirelessDeviceStatistics]
-> Iso
     (Maybe [WirelessDeviceStatistics])
     (Maybe [WirelessDeviceStatistics])
     (Maybe [WirelessDeviceStatistics])
     (Maybe [WirelessDeviceStatistics])
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
  [WirelessDeviceStatistics]
  [WirelessDeviceStatistics]
  [WirelessDeviceStatistics]
  [WirelessDeviceStatistics]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

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

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

instance Prelude.NFData ListWirelessDevicesResponse