{-# 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.GetWirelessGatewayStatistics
-- 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)
--
-- Gets operating information about a wireless gateway.
module Amazonka.IoTWireless.GetWirelessGatewayStatistics
  ( -- * Creating a Request
    GetWirelessGatewayStatistics (..),
    newGetWirelessGatewayStatistics,

    -- * Request Lenses
    getWirelessGatewayStatistics_wirelessGatewayId,

    -- * Destructuring the Response
    GetWirelessGatewayStatisticsResponse (..),
    newGetWirelessGatewayStatisticsResponse,

    -- * Response Lenses
    getWirelessGatewayStatisticsResponse_connectionStatus,
    getWirelessGatewayStatisticsResponse_lastUplinkReceivedAt,
    getWirelessGatewayStatisticsResponse_wirelessGatewayId,
    getWirelessGatewayStatisticsResponse_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:/ 'newGetWirelessGatewayStatistics' smart constructor.
data GetWirelessGatewayStatistics = GetWirelessGatewayStatistics'
  { -- | The ID of the wireless gateway for which to get the data.
    GetWirelessGatewayStatistics -> Text
wirelessGatewayId :: Prelude.Text
  }
  deriving (GetWirelessGatewayStatistics
-> GetWirelessGatewayStatistics -> Bool
(GetWirelessGatewayStatistics
 -> GetWirelessGatewayStatistics -> Bool)
-> (GetWirelessGatewayStatistics
    -> GetWirelessGatewayStatistics -> Bool)
-> Eq GetWirelessGatewayStatistics
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetWirelessGatewayStatistics
-> GetWirelessGatewayStatistics -> Bool
$c/= :: GetWirelessGatewayStatistics
-> GetWirelessGatewayStatistics -> Bool
== :: GetWirelessGatewayStatistics
-> GetWirelessGatewayStatistics -> Bool
$c== :: GetWirelessGatewayStatistics
-> GetWirelessGatewayStatistics -> Bool
Prelude.Eq, ReadPrec [GetWirelessGatewayStatistics]
ReadPrec GetWirelessGatewayStatistics
Int -> ReadS GetWirelessGatewayStatistics
ReadS [GetWirelessGatewayStatistics]
(Int -> ReadS GetWirelessGatewayStatistics)
-> ReadS [GetWirelessGatewayStatistics]
-> ReadPrec GetWirelessGatewayStatistics
-> ReadPrec [GetWirelessGatewayStatistics]
-> Read GetWirelessGatewayStatistics
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetWirelessGatewayStatistics]
$creadListPrec :: ReadPrec [GetWirelessGatewayStatistics]
readPrec :: ReadPrec GetWirelessGatewayStatistics
$creadPrec :: ReadPrec GetWirelessGatewayStatistics
readList :: ReadS [GetWirelessGatewayStatistics]
$creadList :: ReadS [GetWirelessGatewayStatistics]
readsPrec :: Int -> ReadS GetWirelessGatewayStatistics
$creadsPrec :: Int -> ReadS GetWirelessGatewayStatistics
Prelude.Read, Int -> GetWirelessGatewayStatistics -> ShowS
[GetWirelessGatewayStatistics] -> ShowS
GetWirelessGatewayStatistics -> String
(Int -> GetWirelessGatewayStatistics -> ShowS)
-> (GetWirelessGatewayStatistics -> String)
-> ([GetWirelessGatewayStatistics] -> ShowS)
-> Show GetWirelessGatewayStatistics
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetWirelessGatewayStatistics] -> ShowS
$cshowList :: [GetWirelessGatewayStatistics] -> ShowS
show :: GetWirelessGatewayStatistics -> String
$cshow :: GetWirelessGatewayStatistics -> String
showsPrec :: Int -> GetWirelessGatewayStatistics -> ShowS
$cshowsPrec :: Int -> GetWirelessGatewayStatistics -> ShowS
Prelude.Show, (forall x.
 GetWirelessGatewayStatistics -> Rep GetWirelessGatewayStatistics x)
-> (forall x.
    Rep GetWirelessGatewayStatistics x -> GetWirelessGatewayStatistics)
-> Generic GetWirelessGatewayStatistics
forall x.
Rep GetWirelessGatewayStatistics x -> GetWirelessGatewayStatistics
forall x.
GetWirelessGatewayStatistics -> Rep GetWirelessGatewayStatistics x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetWirelessGatewayStatistics x -> GetWirelessGatewayStatistics
$cfrom :: forall x.
GetWirelessGatewayStatistics -> Rep GetWirelessGatewayStatistics x
Prelude.Generic)

-- |
-- Create a value of 'GetWirelessGatewayStatistics' 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:
--
-- 'wirelessGatewayId', 'getWirelessGatewayStatistics_wirelessGatewayId' - The ID of the wireless gateway for which to get the data.
newGetWirelessGatewayStatistics ::
  -- | 'wirelessGatewayId'
  Prelude.Text ->
  GetWirelessGatewayStatistics
newGetWirelessGatewayStatistics :: Text -> GetWirelessGatewayStatistics
newGetWirelessGatewayStatistics Text
pWirelessGatewayId_ =
  GetWirelessGatewayStatistics' :: Text -> GetWirelessGatewayStatistics
GetWirelessGatewayStatistics'
    { $sel:wirelessGatewayId:GetWirelessGatewayStatistics' :: Text
wirelessGatewayId =
        Text
pWirelessGatewayId_
    }

-- | The ID of the wireless gateway for which to get the data.
getWirelessGatewayStatistics_wirelessGatewayId :: Lens.Lens' GetWirelessGatewayStatistics Prelude.Text
getWirelessGatewayStatistics_wirelessGatewayId :: (Text -> f Text)
-> GetWirelessGatewayStatistics -> f GetWirelessGatewayStatistics
getWirelessGatewayStatistics_wirelessGatewayId = (GetWirelessGatewayStatistics -> Text)
-> (GetWirelessGatewayStatistics
    -> Text -> GetWirelessGatewayStatistics)
-> Lens
     GetWirelessGatewayStatistics GetWirelessGatewayStatistics Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetWirelessGatewayStatistics' {Text
wirelessGatewayId :: Text
$sel:wirelessGatewayId:GetWirelessGatewayStatistics' :: GetWirelessGatewayStatistics -> Text
wirelessGatewayId} -> Text
wirelessGatewayId) (\s :: GetWirelessGatewayStatistics
s@GetWirelessGatewayStatistics' {} Text
a -> GetWirelessGatewayStatistics
s {$sel:wirelessGatewayId:GetWirelessGatewayStatistics' :: Text
wirelessGatewayId = Text
a} :: GetWirelessGatewayStatistics)

instance Core.AWSRequest GetWirelessGatewayStatistics where
  type
    AWSResponse GetWirelessGatewayStatistics =
      GetWirelessGatewayStatisticsResponse
  request :: GetWirelessGatewayStatistics
-> Request GetWirelessGatewayStatistics
request = Service
-> GetWirelessGatewayStatistics
-> Request GetWirelessGatewayStatistics
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
  response :: Logger
-> Service
-> Proxy GetWirelessGatewayStatistics
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse GetWirelessGatewayStatistics)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse GetWirelessGatewayStatistics))
-> Logger
-> Service
-> Proxy GetWirelessGatewayStatistics
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse GetWirelessGatewayStatistics)))
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 ConnectionStatus
-> Maybe Text
-> Maybe Text
-> Int
-> GetWirelessGatewayStatisticsResponse
GetWirelessGatewayStatisticsResponse'
            (Maybe ConnectionStatus
 -> Maybe Text
 -> Maybe Text
 -> Int
 -> GetWirelessGatewayStatisticsResponse)
-> Either String (Maybe ConnectionStatus)
-> Either
     String
     (Maybe Text
      -> Maybe Text -> Int -> GetWirelessGatewayStatisticsResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe ConnectionStatus)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"ConnectionStatus")
            Either
  String
  (Maybe Text
   -> Maybe Text -> Int -> GetWirelessGatewayStatisticsResponse)
-> Either String (Maybe Text)
-> Either
     String (Maybe Text -> Int -> GetWirelessGatewayStatisticsResponse)
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
"LastUplinkReceivedAt")
            Either
  String (Maybe Text -> Int -> GetWirelessGatewayStatisticsResponse)
-> Either String (Maybe Text)
-> Either String (Int -> GetWirelessGatewayStatisticsResponse)
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
"WirelessGatewayId")
            Either String (Int -> GetWirelessGatewayStatisticsResponse)
-> Either String Int
-> Either String GetWirelessGatewayStatisticsResponse
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
    GetWirelessGatewayStatistics

instance Prelude.NFData GetWirelessGatewayStatistics

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

instance Core.ToPath GetWirelessGatewayStatistics where
  toPath :: GetWirelessGatewayStatistics -> ByteString
toPath GetWirelessGatewayStatistics' {Text
wirelessGatewayId :: Text
$sel:wirelessGatewayId:GetWirelessGatewayStatistics' :: GetWirelessGatewayStatistics -> Text
..} =
    [ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"/wireless-gateways/",
        Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
wirelessGatewayId,
        ByteString
"/statistics"
      ]

instance Core.ToQuery GetWirelessGatewayStatistics where
  toQuery :: GetWirelessGatewayStatistics -> QueryString
toQuery = QueryString -> GetWirelessGatewayStatistics -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty

-- | /See:/ 'newGetWirelessGatewayStatisticsResponse' smart constructor.
data GetWirelessGatewayStatisticsResponse = GetWirelessGatewayStatisticsResponse'
  { -- | The connection status of the wireless gateway.
    GetWirelessGatewayStatisticsResponse -> Maybe ConnectionStatus
connectionStatus :: Prelude.Maybe ConnectionStatus,
    -- | The date and time when the most recent uplink was received.
    GetWirelessGatewayStatisticsResponse -> Maybe Text
lastUplinkReceivedAt :: Prelude.Maybe Prelude.Text,
    -- | The ID of the wireless gateway.
    GetWirelessGatewayStatisticsResponse -> Maybe Text
wirelessGatewayId :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    GetWirelessGatewayStatisticsResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (GetWirelessGatewayStatisticsResponse
-> GetWirelessGatewayStatisticsResponse -> Bool
(GetWirelessGatewayStatisticsResponse
 -> GetWirelessGatewayStatisticsResponse -> Bool)
-> (GetWirelessGatewayStatisticsResponse
    -> GetWirelessGatewayStatisticsResponse -> Bool)
-> Eq GetWirelessGatewayStatisticsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetWirelessGatewayStatisticsResponse
-> GetWirelessGatewayStatisticsResponse -> Bool
$c/= :: GetWirelessGatewayStatisticsResponse
-> GetWirelessGatewayStatisticsResponse -> Bool
== :: GetWirelessGatewayStatisticsResponse
-> GetWirelessGatewayStatisticsResponse -> Bool
$c== :: GetWirelessGatewayStatisticsResponse
-> GetWirelessGatewayStatisticsResponse -> Bool
Prelude.Eq, ReadPrec [GetWirelessGatewayStatisticsResponse]
ReadPrec GetWirelessGatewayStatisticsResponse
Int -> ReadS GetWirelessGatewayStatisticsResponse
ReadS [GetWirelessGatewayStatisticsResponse]
(Int -> ReadS GetWirelessGatewayStatisticsResponse)
-> ReadS [GetWirelessGatewayStatisticsResponse]
-> ReadPrec GetWirelessGatewayStatisticsResponse
-> ReadPrec [GetWirelessGatewayStatisticsResponse]
-> Read GetWirelessGatewayStatisticsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetWirelessGatewayStatisticsResponse]
$creadListPrec :: ReadPrec [GetWirelessGatewayStatisticsResponse]
readPrec :: ReadPrec GetWirelessGatewayStatisticsResponse
$creadPrec :: ReadPrec GetWirelessGatewayStatisticsResponse
readList :: ReadS [GetWirelessGatewayStatisticsResponse]
$creadList :: ReadS [GetWirelessGatewayStatisticsResponse]
readsPrec :: Int -> ReadS GetWirelessGatewayStatisticsResponse
$creadsPrec :: Int -> ReadS GetWirelessGatewayStatisticsResponse
Prelude.Read, Int -> GetWirelessGatewayStatisticsResponse -> ShowS
[GetWirelessGatewayStatisticsResponse] -> ShowS
GetWirelessGatewayStatisticsResponse -> String
(Int -> GetWirelessGatewayStatisticsResponse -> ShowS)
-> (GetWirelessGatewayStatisticsResponse -> String)
-> ([GetWirelessGatewayStatisticsResponse] -> ShowS)
-> Show GetWirelessGatewayStatisticsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetWirelessGatewayStatisticsResponse] -> ShowS
$cshowList :: [GetWirelessGatewayStatisticsResponse] -> ShowS
show :: GetWirelessGatewayStatisticsResponse -> String
$cshow :: GetWirelessGatewayStatisticsResponse -> String
showsPrec :: Int -> GetWirelessGatewayStatisticsResponse -> ShowS
$cshowsPrec :: Int -> GetWirelessGatewayStatisticsResponse -> ShowS
Prelude.Show, (forall x.
 GetWirelessGatewayStatisticsResponse
 -> Rep GetWirelessGatewayStatisticsResponse x)
-> (forall x.
    Rep GetWirelessGatewayStatisticsResponse x
    -> GetWirelessGatewayStatisticsResponse)
-> Generic GetWirelessGatewayStatisticsResponse
forall x.
Rep GetWirelessGatewayStatisticsResponse x
-> GetWirelessGatewayStatisticsResponse
forall x.
GetWirelessGatewayStatisticsResponse
-> Rep GetWirelessGatewayStatisticsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetWirelessGatewayStatisticsResponse x
-> GetWirelessGatewayStatisticsResponse
$cfrom :: forall x.
GetWirelessGatewayStatisticsResponse
-> Rep GetWirelessGatewayStatisticsResponse x
Prelude.Generic)

-- |
-- Create a value of 'GetWirelessGatewayStatisticsResponse' 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:
--
-- 'connectionStatus', 'getWirelessGatewayStatisticsResponse_connectionStatus' - The connection status of the wireless gateway.
--
-- 'lastUplinkReceivedAt', 'getWirelessGatewayStatisticsResponse_lastUplinkReceivedAt' - The date and time when the most recent uplink was received.
--
-- 'wirelessGatewayId', 'getWirelessGatewayStatisticsResponse_wirelessGatewayId' - The ID of the wireless gateway.
--
-- 'httpStatus', 'getWirelessGatewayStatisticsResponse_httpStatus' - The response's http status code.
newGetWirelessGatewayStatisticsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  GetWirelessGatewayStatisticsResponse
newGetWirelessGatewayStatisticsResponse :: Int -> GetWirelessGatewayStatisticsResponse
newGetWirelessGatewayStatisticsResponse Int
pHttpStatus_ =
  GetWirelessGatewayStatisticsResponse' :: Maybe ConnectionStatus
-> Maybe Text
-> Maybe Text
-> Int
-> GetWirelessGatewayStatisticsResponse
GetWirelessGatewayStatisticsResponse'
    { $sel:connectionStatus:GetWirelessGatewayStatisticsResponse' :: Maybe ConnectionStatus
connectionStatus =
        Maybe ConnectionStatus
forall a. Maybe a
Prelude.Nothing,
      $sel:lastUplinkReceivedAt:GetWirelessGatewayStatisticsResponse' :: Maybe Text
lastUplinkReceivedAt =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:wirelessGatewayId:GetWirelessGatewayStatisticsResponse' :: Maybe Text
wirelessGatewayId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:GetWirelessGatewayStatisticsResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | The connection status of the wireless gateway.
getWirelessGatewayStatisticsResponse_connectionStatus :: Lens.Lens' GetWirelessGatewayStatisticsResponse (Prelude.Maybe ConnectionStatus)
getWirelessGatewayStatisticsResponse_connectionStatus :: (Maybe ConnectionStatus -> f (Maybe ConnectionStatus))
-> GetWirelessGatewayStatisticsResponse
-> f GetWirelessGatewayStatisticsResponse
getWirelessGatewayStatisticsResponse_connectionStatus = (GetWirelessGatewayStatisticsResponse -> Maybe ConnectionStatus)
-> (GetWirelessGatewayStatisticsResponse
    -> Maybe ConnectionStatus -> GetWirelessGatewayStatisticsResponse)
-> Lens
     GetWirelessGatewayStatisticsResponse
     GetWirelessGatewayStatisticsResponse
     (Maybe ConnectionStatus)
     (Maybe ConnectionStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetWirelessGatewayStatisticsResponse' {Maybe ConnectionStatus
connectionStatus :: Maybe ConnectionStatus
$sel:connectionStatus:GetWirelessGatewayStatisticsResponse' :: GetWirelessGatewayStatisticsResponse -> Maybe ConnectionStatus
connectionStatus} -> Maybe ConnectionStatus
connectionStatus) (\s :: GetWirelessGatewayStatisticsResponse
s@GetWirelessGatewayStatisticsResponse' {} Maybe ConnectionStatus
a -> GetWirelessGatewayStatisticsResponse
s {$sel:connectionStatus:GetWirelessGatewayStatisticsResponse' :: Maybe ConnectionStatus
connectionStatus = Maybe ConnectionStatus
a} :: GetWirelessGatewayStatisticsResponse)

-- | The date and time when the most recent uplink was received.
getWirelessGatewayStatisticsResponse_lastUplinkReceivedAt :: Lens.Lens' GetWirelessGatewayStatisticsResponse (Prelude.Maybe Prelude.Text)
getWirelessGatewayStatisticsResponse_lastUplinkReceivedAt :: (Maybe Text -> f (Maybe Text))
-> GetWirelessGatewayStatisticsResponse
-> f GetWirelessGatewayStatisticsResponse
getWirelessGatewayStatisticsResponse_lastUplinkReceivedAt = (GetWirelessGatewayStatisticsResponse -> Maybe Text)
-> (GetWirelessGatewayStatisticsResponse
    -> Maybe Text -> GetWirelessGatewayStatisticsResponse)
-> Lens
     GetWirelessGatewayStatisticsResponse
     GetWirelessGatewayStatisticsResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetWirelessGatewayStatisticsResponse' {Maybe Text
lastUplinkReceivedAt :: Maybe Text
$sel:lastUplinkReceivedAt:GetWirelessGatewayStatisticsResponse' :: GetWirelessGatewayStatisticsResponse -> Maybe Text
lastUplinkReceivedAt} -> Maybe Text
lastUplinkReceivedAt) (\s :: GetWirelessGatewayStatisticsResponse
s@GetWirelessGatewayStatisticsResponse' {} Maybe Text
a -> GetWirelessGatewayStatisticsResponse
s {$sel:lastUplinkReceivedAt:GetWirelessGatewayStatisticsResponse' :: Maybe Text
lastUplinkReceivedAt = Maybe Text
a} :: GetWirelessGatewayStatisticsResponse)

-- | The ID of the wireless gateway.
getWirelessGatewayStatisticsResponse_wirelessGatewayId :: Lens.Lens' GetWirelessGatewayStatisticsResponse (Prelude.Maybe Prelude.Text)
getWirelessGatewayStatisticsResponse_wirelessGatewayId :: (Maybe Text -> f (Maybe Text))
-> GetWirelessGatewayStatisticsResponse
-> f GetWirelessGatewayStatisticsResponse
getWirelessGatewayStatisticsResponse_wirelessGatewayId = (GetWirelessGatewayStatisticsResponse -> Maybe Text)
-> (GetWirelessGatewayStatisticsResponse
    -> Maybe Text -> GetWirelessGatewayStatisticsResponse)
-> Lens
     GetWirelessGatewayStatisticsResponse
     GetWirelessGatewayStatisticsResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetWirelessGatewayStatisticsResponse' {Maybe Text
wirelessGatewayId :: Maybe Text
$sel:wirelessGatewayId:GetWirelessGatewayStatisticsResponse' :: GetWirelessGatewayStatisticsResponse -> Maybe Text
wirelessGatewayId} -> Maybe Text
wirelessGatewayId) (\s :: GetWirelessGatewayStatisticsResponse
s@GetWirelessGatewayStatisticsResponse' {} Maybe Text
a -> GetWirelessGatewayStatisticsResponse
s {$sel:wirelessGatewayId:GetWirelessGatewayStatisticsResponse' :: Maybe Text
wirelessGatewayId = Maybe Text
a} :: GetWirelessGatewayStatisticsResponse)

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

instance
  Prelude.NFData
    GetWirelessGatewayStatisticsResponse