{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.IoTWireless.ListWirelessDevices
(
ListWirelessDevices (..),
newListWirelessDevices,
listWirelessDevices_serviceProfileId,
listWirelessDevices_deviceProfileId,
listWirelessDevices_nextToken,
listWirelessDevices_wirelessDeviceType,
listWirelessDevices_destinationName,
listWirelessDevices_maxResults,
ListWirelessDevicesResponse (..),
newListWirelessDevicesResponse,
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
data ListWirelessDevices = ListWirelessDevices'
{
ListWirelessDevices -> Maybe Text
serviceProfileId :: Prelude.Maybe Prelude.Text,
ListWirelessDevices -> Maybe Text
deviceProfileId :: Prelude.Maybe Prelude.Text,
ListWirelessDevices -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListWirelessDevices -> Maybe WirelessDeviceType
wirelessDeviceType :: Prelude.Maybe WirelessDeviceType,
ListWirelessDevices -> Maybe Text
destinationName :: Prelude.Maybe Prelude.Text,
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)
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
}
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)
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)
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)
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)
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)
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
]
data ListWirelessDevicesResponse = ListWirelessDevicesResponse'
{
ListWirelessDevicesResponse -> Maybe [WirelessDeviceStatistics]
wirelessDeviceList :: Prelude.Maybe [WirelessDeviceStatistics],
ListWirelessDevicesResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
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)
newListWirelessDevicesResponse ::
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_
}
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
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)
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