{-# 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.UpdateWirelessGateway
-- 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)
--
-- Updates properties of a wireless gateway.
module Amazonka.IoTWireless.UpdateWirelessGateway
  ( -- * Creating a Request
    UpdateWirelessGateway (..),
    newUpdateWirelessGateway,

    -- * Request Lenses
    updateWirelessGateway_name,
    updateWirelessGateway_joinEuiFilters,
    updateWirelessGateway_description,
    updateWirelessGateway_netIdFilters,
    updateWirelessGateway_id,

    -- * Destructuring the Response
    UpdateWirelessGatewayResponse (..),
    newUpdateWirelessGatewayResponse,

    -- * Response Lenses
    updateWirelessGatewayResponse_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:/ 'newUpdateWirelessGateway' smart constructor.
data UpdateWirelessGateway = UpdateWirelessGateway'
  { -- | The new name of the resource.
    UpdateWirelessGateway -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
    UpdateWirelessGateway -> Maybe [NonEmpty Text]
joinEuiFilters :: Prelude.Maybe [Prelude.NonEmpty Prelude.Text],
    -- | A new description of the resource.
    UpdateWirelessGateway -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
    UpdateWirelessGateway -> Maybe [Text]
netIdFilters :: Prelude.Maybe [Prelude.Text],
    -- | The ID of the resource to update.
    UpdateWirelessGateway -> Text
id :: Prelude.Text
  }
  deriving (UpdateWirelessGateway -> UpdateWirelessGateway -> Bool
(UpdateWirelessGateway -> UpdateWirelessGateway -> Bool)
-> (UpdateWirelessGateway -> UpdateWirelessGateway -> Bool)
-> Eq UpdateWirelessGateway
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateWirelessGateway -> UpdateWirelessGateway -> Bool
$c/= :: UpdateWirelessGateway -> UpdateWirelessGateway -> Bool
== :: UpdateWirelessGateway -> UpdateWirelessGateway -> Bool
$c== :: UpdateWirelessGateway -> UpdateWirelessGateway -> Bool
Prelude.Eq, ReadPrec [UpdateWirelessGateway]
ReadPrec UpdateWirelessGateway
Int -> ReadS UpdateWirelessGateway
ReadS [UpdateWirelessGateway]
(Int -> ReadS UpdateWirelessGateway)
-> ReadS [UpdateWirelessGateway]
-> ReadPrec UpdateWirelessGateway
-> ReadPrec [UpdateWirelessGateway]
-> Read UpdateWirelessGateway
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateWirelessGateway]
$creadListPrec :: ReadPrec [UpdateWirelessGateway]
readPrec :: ReadPrec UpdateWirelessGateway
$creadPrec :: ReadPrec UpdateWirelessGateway
readList :: ReadS [UpdateWirelessGateway]
$creadList :: ReadS [UpdateWirelessGateway]
readsPrec :: Int -> ReadS UpdateWirelessGateway
$creadsPrec :: Int -> ReadS UpdateWirelessGateway
Prelude.Read, Int -> UpdateWirelessGateway -> ShowS
[UpdateWirelessGateway] -> ShowS
UpdateWirelessGateway -> String
(Int -> UpdateWirelessGateway -> ShowS)
-> (UpdateWirelessGateway -> String)
-> ([UpdateWirelessGateway] -> ShowS)
-> Show UpdateWirelessGateway
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateWirelessGateway] -> ShowS
$cshowList :: [UpdateWirelessGateway] -> ShowS
show :: UpdateWirelessGateway -> String
$cshow :: UpdateWirelessGateway -> String
showsPrec :: Int -> UpdateWirelessGateway -> ShowS
$cshowsPrec :: Int -> UpdateWirelessGateway -> ShowS
Prelude.Show, (forall x. UpdateWirelessGateway -> Rep UpdateWirelessGateway x)
-> (forall x. Rep UpdateWirelessGateway x -> UpdateWirelessGateway)
-> Generic UpdateWirelessGateway
forall x. Rep UpdateWirelessGateway x -> UpdateWirelessGateway
forall x. UpdateWirelessGateway -> Rep UpdateWirelessGateway x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep UpdateWirelessGateway x -> UpdateWirelessGateway
$cfrom :: forall x. UpdateWirelessGateway -> Rep UpdateWirelessGateway x
Prelude.Generic)

-- |
-- Create a value of 'UpdateWirelessGateway' 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:
--
-- 'name', 'updateWirelessGateway_name' - The new name of the resource.
--
-- 'joinEuiFilters', 'updateWirelessGateway_joinEuiFilters' - Undocumented member.
--
-- 'description', 'updateWirelessGateway_description' - A new description of the resource.
--
-- 'netIdFilters', 'updateWirelessGateway_netIdFilters' - Undocumented member.
--
-- 'id', 'updateWirelessGateway_id' - The ID of the resource to update.
newUpdateWirelessGateway ::
  -- | 'id'
  Prelude.Text ->
  UpdateWirelessGateway
newUpdateWirelessGateway :: Text -> UpdateWirelessGateway
newUpdateWirelessGateway Text
pId_ =
  UpdateWirelessGateway' :: Maybe Text
-> Maybe [NonEmpty Text]
-> Maybe Text
-> Maybe [Text]
-> Text
-> UpdateWirelessGateway
UpdateWirelessGateway'
    { $sel:name:UpdateWirelessGateway' :: Maybe Text
name = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:joinEuiFilters:UpdateWirelessGateway' :: Maybe [NonEmpty Text]
joinEuiFilters = Maybe [NonEmpty Text]
forall a. Maybe a
Prelude.Nothing,
      $sel:description:UpdateWirelessGateway' :: Maybe Text
description = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:netIdFilters:UpdateWirelessGateway' :: Maybe [Text]
netIdFilters = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
      $sel:id:UpdateWirelessGateway' :: Text
id = Text
pId_
    }

-- | The new name of the resource.
updateWirelessGateway_name :: Lens.Lens' UpdateWirelessGateway (Prelude.Maybe Prelude.Text)
updateWirelessGateway_name :: (Maybe Text -> f (Maybe Text))
-> UpdateWirelessGateway -> f UpdateWirelessGateway
updateWirelessGateway_name = (UpdateWirelessGateway -> Maybe Text)
-> (UpdateWirelessGateway -> Maybe Text -> UpdateWirelessGateway)
-> Lens
     UpdateWirelessGateway
     UpdateWirelessGateway
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateWirelessGateway' {Maybe Text
name :: Maybe Text
$sel:name:UpdateWirelessGateway' :: UpdateWirelessGateway -> Maybe Text
name} -> Maybe Text
name) (\s :: UpdateWirelessGateway
s@UpdateWirelessGateway' {} Maybe Text
a -> UpdateWirelessGateway
s {$sel:name:UpdateWirelessGateway' :: Maybe Text
name = Maybe Text
a} :: UpdateWirelessGateway)

-- | Undocumented member.
updateWirelessGateway_joinEuiFilters :: Lens.Lens' UpdateWirelessGateway (Prelude.Maybe [Prelude.NonEmpty Prelude.Text])
updateWirelessGateway_joinEuiFilters :: (Maybe [NonEmpty Text] -> f (Maybe [NonEmpty Text]))
-> UpdateWirelessGateway -> f UpdateWirelessGateway
updateWirelessGateway_joinEuiFilters = (UpdateWirelessGateway -> Maybe [NonEmpty Text])
-> (UpdateWirelessGateway
    -> Maybe [NonEmpty Text] -> UpdateWirelessGateway)
-> Lens
     UpdateWirelessGateway
     UpdateWirelessGateway
     (Maybe [NonEmpty Text])
     (Maybe [NonEmpty Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateWirelessGateway' {Maybe [NonEmpty Text]
joinEuiFilters :: Maybe [NonEmpty Text]
$sel:joinEuiFilters:UpdateWirelessGateway' :: UpdateWirelessGateway -> Maybe [NonEmpty Text]
joinEuiFilters} -> Maybe [NonEmpty Text]
joinEuiFilters) (\s :: UpdateWirelessGateway
s@UpdateWirelessGateway' {} Maybe [NonEmpty Text]
a -> UpdateWirelessGateway
s {$sel:joinEuiFilters:UpdateWirelessGateway' :: Maybe [NonEmpty Text]
joinEuiFilters = Maybe [NonEmpty Text]
a} :: UpdateWirelessGateway) ((Maybe [NonEmpty Text] -> f (Maybe [NonEmpty Text]))
 -> UpdateWirelessGateway -> f UpdateWirelessGateway)
-> ((Maybe [NonEmpty Text] -> f (Maybe [NonEmpty Text]))
    -> Maybe [NonEmpty Text] -> f (Maybe [NonEmpty Text]))
-> (Maybe [NonEmpty Text] -> f (Maybe [NonEmpty Text]))
-> UpdateWirelessGateway
-> f UpdateWirelessGateway
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [NonEmpty Text] [NonEmpty Text] [NonEmpty Text] [NonEmpty Text]
-> Iso
     (Maybe [NonEmpty Text])
     (Maybe [NonEmpty Text])
     (Maybe [NonEmpty Text])
     (Maybe [NonEmpty Text])
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
  [NonEmpty Text] [NonEmpty Text] [NonEmpty Text] [NonEmpty Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | A new description of the resource.
updateWirelessGateway_description :: Lens.Lens' UpdateWirelessGateway (Prelude.Maybe Prelude.Text)
updateWirelessGateway_description :: (Maybe Text -> f (Maybe Text))
-> UpdateWirelessGateway -> f UpdateWirelessGateway
updateWirelessGateway_description = (UpdateWirelessGateway -> Maybe Text)
-> (UpdateWirelessGateway -> Maybe Text -> UpdateWirelessGateway)
-> Lens
     UpdateWirelessGateway
     UpdateWirelessGateway
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateWirelessGateway' {Maybe Text
description :: Maybe Text
$sel:description:UpdateWirelessGateway' :: UpdateWirelessGateway -> Maybe Text
description} -> Maybe Text
description) (\s :: UpdateWirelessGateway
s@UpdateWirelessGateway' {} Maybe Text
a -> UpdateWirelessGateway
s {$sel:description:UpdateWirelessGateway' :: Maybe Text
description = Maybe Text
a} :: UpdateWirelessGateway)

-- | Undocumented member.
updateWirelessGateway_netIdFilters :: Lens.Lens' UpdateWirelessGateway (Prelude.Maybe [Prelude.Text])
updateWirelessGateway_netIdFilters :: (Maybe [Text] -> f (Maybe [Text]))
-> UpdateWirelessGateway -> f UpdateWirelessGateway
updateWirelessGateway_netIdFilters = (UpdateWirelessGateway -> Maybe [Text])
-> (UpdateWirelessGateway -> Maybe [Text] -> UpdateWirelessGateway)
-> Lens
     UpdateWirelessGateway
     UpdateWirelessGateway
     (Maybe [Text])
     (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateWirelessGateway' {Maybe [Text]
netIdFilters :: Maybe [Text]
$sel:netIdFilters:UpdateWirelessGateway' :: UpdateWirelessGateway -> Maybe [Text]
netIdFilters} -> Maybe [Text]
netIdFilters) (\s :: UpdateWirelessGateway
s@UpdateWirelessGateway' {} Maybe [Text]
a -> UpdateWirelessGateway
s {$sel:netIdFilters:UpdateWirelessGateway' :: Maybe [Text]
netIdFilters = Maybe [Text]
a} :: UpdateWirelessGateway) ((Maybe [Text] -> f (Maybe [Text]))
 -> UpdateWirelessGateway -> f UpdateWirelessGateway)
-> ((Maybe [Text] -> f (Maybe [Text]))
    -> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> UpdateWirelessGateway
-> f UpdateWirelessGateway
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [Text])
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 [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The ID of the resource to update.
updateWirelessGateway_id :: Lens.Lens' UpdateWirelessGateway Prelude.Text
updateWirelessGateway_id :: (Text -> f Text)
-> UpdateWirelessGateway -> f UpdateWirelessGateway
updateWirelessGateway_id = (UpdateWirelessGateway -> Text)
-> (UpdateWirelessGateway -> Text -> UpdateWirelessGateway)
-> Lens UpdateWirelessGateway UpdateWirelessGateway Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateWirelessGateway' {Text
id :: Text
$sel:id:UpdateWirelessGateway' :: UpdateWirelessGateway -> Text
id} -> Text
id) (\s :: UpdateWirelessGateway
s@UpdateWirelessGateway' {} Text
a -> UpdateWirelessGateway
s {$sel:id:UpdateWirelessGateway' :: Text
id = Text
a} :: UpdateWirelessGateway)

instance Core.AWSRequest UpdateWirelessGateway where
  type
    AWSResponse UpdateWirelessGateway =
      UpdateWirelessGatewayResponse
  request :: UpdateWirelessGateway -> Request UpdateWirelessGateway
request = Service -> UpdateWirelessGateway -> Request UpdateWirelessGateway
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.patchJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy UpdateWirelessGateway
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse UpdateWirelessGateway)))
response =
    (Int
 -> ResponseHeaders
 -> ()
 -> Either String (AWSResponse UpdateWirelessGateway))
-> Logger
-> Service
-> Proxy UpdateWirelessGateway
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse UpdateWirelessGateway)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> () -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveEmpty
      ( \Int
s ResponseHeaders
h ()
x ->
          Int -> UpdateWirelessGatewayResponse
UpdateWirelessGatewayResponse'
            (Int -> UpdateWirelessGatewayResponse)
-> Either String Int -> Either String UpdateWirelessGatewayResponse
forall (f :: * -> *) a b. Functor 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 UpdateWirelessGateway

instance Prelude.NFData UpdateWirelessGateway

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

instance Core.ToJSON UpdateWirelessGateway where
  toJSON :: UpdateWirelessGateway -> Value
toJSON UpdateWirelessGateway' {Maybe [NonEmpty Text]
Maybe [Text]
Maybe Text
Text
id :: Text
netIdFilters :: Maybe [Text]
description :: Maybe Text
joinEuiFilters :: Maybe [NonEmpty Text]
name :: Maybe Text
$sel:id:UpdateWirelessGateway' :: UpdateWirelessGateway -> Text
$sel:netIdFilters:UpdateWirelessGateway' :: UpdateWirelessGateway -> Maybe [Text]
$sel:description:UpdateWirelessGateway' :: UpdateWirelessGateway -> Maybe Text
$sel:joinEuiFilters:UpdateWirelessGateway' :: UpdateWirelessGateway -> Maybe [NonEmpty Text]
$sel:name:UpdateWirelessGateway' :: UpdateWirelessGateway -> Maybe Text
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Text
"Name" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
name,
            (Text
"JoinEuiFilters" Text -> [NonEmpty Text] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              ([NonEmpty Text] -> Pair) -> Maybe [NonEmpty Text] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [NonEmpty Text]
joinEuiFilters,
            (Text
"Description" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
description,
            (Text
"NetIdFilters" Text -> [Text] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) ([Text] -> Pair) -> Maybe [Text] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Text]
netIdFilters
          ]
      )

instance Core.ToPath UpdateWirelessGateway where
  toPath :: UpdateWirelessGateway -> ByteString
toPath UpdateWirelessGateway' {Maybe [NonEmpty Text]
Maybe [Text]
Maybe Text
Text
id :: Text
netIdFilters :: Maybe [Text]
description :: Maybe Text
joinEuiFilters :: Maybe [NonEmpty Text]
name :: Maybe Text
$sel:id:UpdateWirelessGateway' :: UpdateWirelessGateway -> Text
$sel:netIdFilters:UpdateWirelessGateway' :: UpdateWirelessGateway -> Maybe [Text]
$sel:description:UpdateWirelessGateway' :: UpdateWirelessGateway -> Maybe Text
$sel:joinEuiFilters:UpdateWirelessGateway' :: UpdateWirelessGateway -> Maybe [NonEmpty Text]
$sel:name:UpdateWirelessGateway' :: UpdateWirelessGateway -> Maybe 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
id]

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

-- | /See:/ 'newUpdateWirelessGatewayResponse' smart constructor.
data UpdateWirelessGatewayResponse = UpdateWirelessGatewayResponse'
  { -- | The response's http status code.
    UpdateWirelessGatewayResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (UpdateWirelessGatewayResponse
-> UpdateWirelessGatewayResponse -> Bool
(UpdateWirelessGatewayResponse
 -> UpdateWirelessGatewayResponse -> Bool)
-> (UpdateWirelessGatewayResponse
    -> UpdateWirelessGatewayResponse -> Bool)
-> Eq UpdateWirelessGatewayResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateWirelessGatewayResponse
-> UpdateWirelessGatewayResponse -> Bool
$c/= :: UpdateWirelessGatewayResponse
-> UpdateWirelessGatewayResponse -> Bool
== :: UpdateWirelessGatewayResponse
-> UpdateWirelessGatewayResponse -> Bool
$c== :: UpdateWirelessGatewayResponse
-> UpdateWirelessGatewayResponse -> Bool
Prelude.Eq, ReadPrec [UpdateWirelessGatewayResponse]
ReadPrec UpdateWirelessGatewayResponse
Int -> ReadS UpdateWirelessGatewayResponse
ReadS [UpdateWirelessGatewayResponse]
(Int -> ReadS UpdateWirelessGatewayResponse)
-> ReadS [UpdateWirelessGatewayResponse]
-> ReadPrec UpdateWirelessGatewayResponse
-> ReadPrec [UpdateWirelessGatewayResponse]
-> Read UpdateWirelessGatewayResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateWirelessGatewayResponse]
$creadListPrec :: ReadPrec [UpdateWirelessGatewayResponse]
readPrec :: ReadPrec UpdateWirelessGatewayResponse
$creadPrec :: ReadPrec UpdateWirelessGatewayResponse
readList :: ReadS [UpdateWirelessGatewayResponse]
$creadList :: ReadS [UpdateWirelessGatewayResponse]
readsPrec :: Int -> ReadS UpdateWirelessGatewayResponse
$creadsPrec :: Int -> ReadS UpdateWirelessGatewayResponse
Prelude.Read, Int -> UpdateWirelessGatewayResponse -> ShowS
[UpdateWirelessGatewayResponse] -> ShowS
UpdateWirelessGatewayResponse -> String
(Int -> UpdateWirelessGatewayResponse -> ShowS)
-> (UpdateWirelessGatewayResponse -> String)
-> ([UpdateWirelessGatewayResponse] -> ShowS)
-> Show UpdateWirelessGatewayResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateWirelessGatewayResponse] -> ShowS
$cshowList :: [UpdateWirelessGatewayResponse] -> ShowS
show :: UpdateWirelessGatewayResponse -> String
$cshow :: UpdateWirelessGatewayResponse -> String
showsPrec :: Int -> UpdateWirelessGatewayResponse -> ShowS
$cshowsPrec :: Int -> UpdateWirelessGatewayResponse -> ShowS
Prelude.Show, (forall x.
 UpdateWirelessGatewayResponse
 -> Rep UpdateWirelessGatewayResponse x)
-> (forall x.
    Rep UpdateWirelessGatewayResponse x
    -> UpdateWirelessGatewayResponse)
-> Generic UpdateWirelessGatewayResponse
forall x.
Rep UpdateWirelessGatewayResponse x
-> UpdateWirelessGatewayResponse
forall x.
UpdateWirelessGatewayResponse
-> Rep UpdateWirelessGatewayResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdateWirelessGatewayResponse x
-> UpdateWirelessGatewayResponse
$cfrom :: forall x.
UpdateWirelessGatewayResponse
-> Rep UpdateWirelessGatewayResponse x
Prelude.Generic)

-- |
-- Create a value of 'UpdateWirelessGatewayResponse' 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:
--
-- 'httpStatus', 'updateWirelessGatewayResponse_httpStatus' - The response's http status code.
newUpdateWirelessGatewayResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  UpdateWirelessGatewayResponse
newUpdateWirelessGatewayResponse :: Int -> UpdateWirelessGatewayResponse
newUpdateWirelessGatewayResponse Int
pHttpStatus_ =
  UpdateWirelessGatewayResponse' :: Int -> UpdateWirelessGatewayResponse
UpdateWirelessGatewayResponse'
    { $sel:httpStatus:UpdateWirelessGatewayResponse' :: Int
httpStatus =
        Int
pHttpStatus_
    }

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

instance Prelude.NFData UpdateWirelessGatewayResponse