{-# 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.CreateWirelessGateway
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Provisions a wireless gateway.
module Amazonka.IoTWireless.CreateWirelessGateway
  ( -- * Creating a Request
    CreateWirelessGateway (..),
    newCreateWirelessGateway,

    -- * Request Lenses
    createWirelessGateway_clientRequestToken,
    createWirelessGateway_description,
    createWirelessGateway_name,
    createWirelessGateway_tags,
    createWirelessGateway_loRaWAN,

    -- * Destructuring the Response
    CreateWirelessGatewayResponse (..),
    newCreateWirelessGatewayResponse,

    -- * Response Lenses
    createWirelessGatewayResponse_arn,
    createWirelessGatewayResponse_id,
    createWirelessGatewayResponse_httpStatus,
  )
where

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

-- | /See:/ 'newCreateWirelessGateway' smart constructor.
data CreateWirelessGateway = CreateWirelessGateway'
  { -- | Each resource must have a unique client request token. If you try to
    -- create a new resource with the same token as a resource that already
    -- exists, an exception occurs. If you omit this value, AWS SDKs will
    -- automatically generate a unique client request.
    CreateWirelessGateway -> Maybe Text
clientRequestToken :: Prelude.Maybe Prelude.Text,
    -- | The description of the new resource.
    CreateWirelessGateway -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
    -- | The name of the new resource.
    CreateWirelessGateway -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
    -- | The tags to attach to the new wireless gateway. Tags are metadata that
    -- you can use to manage a resource.
    CreateWirelessGateway -> Maybe [Tag]
tags :: Prelude.Maybe [Tag],
    -- | The gateway configuration information to use to create the wireless
    -- gateway.
    CreateWirelessGateway -> LoRaWANGateway
loRaWAN :: LoRaWANGateway
  }
  deriving (CreateWirelessGateway -> CreateWirelessGateway -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateWirelessGateway -> CreateWirelessGateway -> Bool
$c/= :: CreateWirelessGateway -> CreateWirelessGateway -> Bool
== :: CreateWirelessGateway -> CreateWirelessGateway -> Bool
$c== :: CreateWirelessGateway -> CreateWirelessGateway -> Bool
Prelude.Eq, ReadPrec [CreateWirelessGateway]
ReadPrec CreateWirelessGateway
Int -> ReadS CreateWirelessGateway
ReadS [CreateWirelessGateway]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateWirelessGateway]
$creadListPrec :: ReadPrec [CreateWirelessGateway]
readPrec :: ReadPrec CreateWirelessGateway
$creadPrec :: ReadPrec CreateWirelessGateway
readList :: ReadS [CreateWirelessGateway]
$creadList :: ReadS [CreateWirelessGateway]
readsPrec :: Int -> ReadS CreateWirelessGateway
$creadsPrec :: Int -> ReadS CreateWirelessGateway
Prelude.Read, Int -> CreateWirelessGateway -> ShowS
[CreateWirelessGateway] -> ShowS
CreateWirelessGateway -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateWirelessGateway] -> ShowS
$cshowList :: [CreateWirelessGateway] -> ShowS
show :: CreateWirelessGateway -> String
$cshow :: CreateWirelessGateway -> String
showsPrec :: Int -> CreateWirelessGateway -> ShowS
$cshowsPrec :: Int -> CreateWirelessGateway -> ShowS
Prelude.Show, forall x. Rep CreateWirelessGateway x -> CreateWirelessGateway
forall x. CreateWirelessGateway -> Rep CreateWirelessGateway x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CreateWirelessGateway x -> CreateWirelessGateway
$cfrom :: forall x. CreateWirelessGateway -> Rep CreateWirelessGateway x
Prelude.Generic)

-- |
-- Create a value of 'CreateWirelessGateway' 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:
--
-- 'clientRequestToken', 'createWirelessGateway_clientRequestToken' - Each resource must have a unique client request token. If you try to
-- create a new resource with the same token as a resource that already
-- exists, an exception occurs. If you omit this value, AWS SDKs will
-- automatically generate a unique client request.
--
-- 'description', 'createWirelessGateway_description' - The description of the new resource.
--
-- 'name', 'createWirelessGateway_name' - The name of the new resource.
--
-- 'tags', 'createWirelessGateway_tags' - The tags to attach to the new wireless gateway. Tags are metadata that
-- you can use to manage a resource.
--
-- 'loRaWAN', 'createWirelessGateway_loRaWAN' - The gateway configuration information to use to create the wireless
-- gateway.
newCreateWirelessGateway ::
  -- | 'loRaWAN'
  LoRaWANGateway ->
  CreateWirelessGateway
newCreateWirelessGateway :: LoRaWANGateway -> CreateWirelessGateway
newCreateWirelessGateway LoRaWANGateway
pLoRaWAN_ =
  CreateWirelessGateway'
    { $sel:clientRequestToken:CreateWirelessGateway' :: Maybe Text
clientRequestToken =
        forall a. Maybe a
Prelude.Nothing,
      $sel:description:CreateWirelessGateway' :: Maybe Text
description = forall a. Maybe a
Prelude.Nothing,
      $sel:name:CreateWirelessGateway' :: Maybe Text
name = forall a. Maybe a
Prelude.Nothing,
      $sel:tags:CreateWirelessGateway' :: Maybe [Tag]
tags = forall a. Maybe a
Prelude.Nothing,
      $sel:loRaWAN:CreateWirelessGateway' :: LoRaWANGateway
loRaWAN = LoRaWANGateway
pLoRaWAN_
    }

-- | Each resource must have a unique client request token. If you try to
-- create a new resource with the same token as a resource that already
-- exists, an exception occurs. If you omit this value, AWS SDKs will
-- automatically generate a unique client request.
createWirelessGateway_clientRequestToken :: Lens.Lens' CreateWirelessGateway (Prelude.Maybe Prelude.Text)
createWirelessGateway_clientRequestToken :: Lens' CreateWirelessGateway (Maybe Text)
createWirelessGateway_clientRequestToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateWirelessGateway' {Maybe Text
clientRequestToken :: Maybe Text
$sel:clientRequestToken:CreateWirelessGateway' :: CreateWirelessGateway -> Maybe Text
clientRequestToken} -> Maybe Text
clientRequestToken) (\s :: CreateWirelessGateway
s@CreateWirelessGateway' {} Maybe Text
a -> CreateWirelessGateway
s {$sel:clientRequestToken:CreateWirelessGateway' :: Maybe Text
clientRequestToken = Maybe Text
a} :: CreateWirelessGateway)

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

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

-- | The tags to attach to the new wireless gateway. Tags are metadata that
-- you can use to manage a resource.
createWirelessGateway_tags :: Lens.Lens' CreateWirelessGateway (Prelude.Maybe [Tag])
createWirelessGateway_tags :: Lens' CreateWirelessGateway (Maybe [Tag])
createWirelessGateway_tags = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateWirelessGateway' {Maybe [Tag]
tags :: Maybe [Tag]
$sel:tags:CreateWirelessGateway' :: CreateWirelessGateway -> Maybe [Tag]
tags} -> Maybe [Tag]
tags) (\s :: CreateWirelessGateway
s@CreateWirelessGateway' {} Maybe [Tag]
a -> CreateWirelessGateway
s {$sel:tags:CreateWirelessGateway' :: Maybe [Tag]
tags = Maybe [Tag]
a} :: CreateWirelessGateway) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The gateway configuration information to use to create the wireless
-- gateway.
createWirelessGateway_loRaWAN :: Lens.Lens' CreateWirelessGateway LoRaWANGateway
createWirelessGateway_loRaWAN :: Lens' CreateWirelessGateway LoRaWANGateway
createWirelessGateway_loRaWAN = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateWirelessGateway' {LoRaWANGateway
loRaWAN :: LoRaWANGateway
$sel:loRaWAN:CreateWirelessGateway' :: CreateWirelessGateway -> LoRaWANGateway
loRaWAN} -> LoRaWANGateway
loRaWAN) (\s :: CreateWirelessGateway
s@CreateWirelessGateway' {} LoRaWANGateway
a -> CreateWirelessGateway
s {$sel:loRaWAN:CreateWirelessGateway' :: LoRaWANGateway
loRaWAN = LoRaWANGateway
a} :: CreateWirelessGateway)

instance Core.AWSRequest CreateWirelessGateway where
  type
    AWSResponse CreateWirelessGateway =
      CreateWirelessGatewayResponse
  request :: (Service -> Service)
-> CreateWirelessGateway -> Request CreateWirelessGateway
request Service -> Service
overrides =
    forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON (Service -> Service
overrides Service
defaultService)
  response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy CreateWirelessGateway
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse CreateWirelessGateway)))
response =
    forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
      ( \Int
s ResponseHeaders
h Object
x ->
          Maybe Text -> Maybe Text -> Int -> CreateWirelessGatewayResponse
CreateWirelessGatewayResponse'
            forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"Arn")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"Id")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
      )

instance Prelude.Hashable CreateWirelessGateway where
  hashWithSalt :: Int -> CreateWirelessGateway -> Int
hashWithSalt Int
_salt CreateWirelessGateway' {Maybe [Tag]
Maybe Text
LoRaWANGateway
loRaWAN :: LoRaWANGateway
tags :: Maybe [Tag]
name :: Maybe Text
description :: Maybe Text
clientRequestToken :: Maybe Text
$sel:loRaWAN:CreateWirelessGateway' :: CreateWirelessGateway -> LoRaWANGateway
$sel:tags:CreateWirelessGateway' :: CreateWirelessGateway -> Maybe [Tag]
$sel:name:CreateWirelessGateway' :: CreateWirelessGateway -> Maybe Text
$sel:description:CreateWirelessGateway' :: CreateWirelessGateway -> Maybe Text
$sel:clientRequestToken:CreateWirelessGateway' :: CreateWirelessGateway -> Maybe Text
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
clientRequestToken
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
description
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
name
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [Tag]
tags
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` LoRaWANGateway
loRaWAN

instance Prelude.NFData CreateWirelessGateway where
  rnf :: CreateWirelessGateway -> ()
rnf CreateWirelessGateway' {Maybe [Tag]
Maybe Text
LoRaWANGateway
loRaWAN :: LoRaWANGateway
tags :: Maybe [Tag]
name :: Maybe Text
description :: Maybe Text
clientRequestToken :: Maybe Text
$sel:loRaWAN:CreateWirelessGateway' :: CreateWirelessGateway -> LoRaWANGateway
$sel:tags:CreateWirelessGateway' :: CreateWirelessGateway -> Maybe [Tag]
$sel:name:CreateWirelessGateway' :: CreateWirelessGateway -> Maybe Text
$sel:description:CreateWirelessGateway' :: CreateWirelessGateway -> Maybe Text
$sel:clientRequestToken:CreateWirelessGateway' :: CreateWirelessGateway -> Maybe Text
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
clientRequestToken
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
description
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
name
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [Tag]
tags
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf LoRaWANGateway
loRaWAN

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

instance Data.ToJSON CreateWirelessGateway where
  toJSON :: CreateWirelessGateway -> Value
toJSON CreateWirelessGateway' {Maybe [Tag]
Maybe Text
LoRaWANGateway
loRaWAN :: LoRaWANGateway
tags :: Maybe [Tag]
name :: Maybe Text
description :: Maybe Text
clientRequestToken :: Maybe Text
$sel:loRaWAN:CreateWirelessGateway' :: CreateWirelessGateway -> LoRaWANGateway
$sel:tags:CreateWirelessGateway' :: CreateWirelessGateway -> Maybe [Tag]
$sel:name:CreateWirelessGateway' :: CreateWirelessGateway -> Maybe Text
$sel:description:CreateWirelessGateway' :: CreateWirelessGateway -> Maybe Text
$sel:clientRequestToken:CreateWirelessGateway' :: CreateWirelessGateway -> Maybe Text
..} =
    [Pair] -> Value
Data.object
      ( forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Key
"ClientRequestToken" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
clientRequestToken,
            (Key
"Description" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
description,
            (Key
"Name" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
name,
            (Key
"Tags" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags,
            forall a. a -> Maybe a
Prelude.Just (Key
"LoRaWAN" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= LoRaWANGateway
loRaWAN)
          ]
      )

instance Data.ToPath CreateWirelessGateway where
  toPath :: CreateWirelessGateway -> ByteString
toPath = forall a b. a -> b -> a
Prelude.const ByteString
"/wireless-gateways"

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

-- | /See:/ 'newCreateWirelessGatewayResponse' smart constructor.
data CreateWirelessGatewayResponse = CreateWirelessGatewayResponse'
  { -- | The Amazon Resource Name of the new resource.
    CreateWirelessGatewayResponse -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
    -- | The ID of the new wireless gateway.
    CreateWirelessGatewayResponse -> Maybe Text
id :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    CreateWirelessGatewayResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (CreateWirelessGatewayResponse
-> CreateWirelessGatewayResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateWirelessGatewayResponse
-> CreateWirelessGatewayResponse -> Bool
$c/= :: CreateWirelessGatewayResponse
-> CreateWirelessGatewayResponse -> Bool
== :: CreateWirelessGatewayResponse
-> CreateWirelessGatewayResponse -> Bool
$c== :: CreateWirelessGatewayResponse
-> CreateWirelessGatewayResponse -> Bool
Prelude.Eq, ReadPrec [CreateWirelessGatewayResponse]
ReadPrec CreateWirelessGatewayResponse
Int -> ReadS CreateWirelessGatewayResponse
ReadS [CreateWirelessGatewayResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateWirelessGatewayResponse]
$creadListPrec :: ReadPrec [CreateWirelessGatewayResponse]
readPrec :: ReadPrec CreateWirelessGatewayResponse
$creadPrec :: ReadPrec CreateWirelessGatewayResponse
readList :: ReadS [CreateWirelessGatewayResponse]
$creadList :: ReadS [CreateWirelessGatewayResponse]
readsPrec :: Int -> ReadS CreateWirelessGatewayResponse
$creadsPrec :: Int -> ReadS CreateWirelessGatewayResponse
Prelude.Read, Int -> CreateWirelessGatewayResponse -> ShowS
[CreateWirelessGatewayResponse] -> ShowS
CreateWirelessGatewayResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateWirelessGatewayResponse] -> ShowS
$cshowList :: [CreateWirelessGatewayResponse] -> ShowS
show :: CreateWirelessGatewayResponse -> String
$cshow :: CreateWirelessGatewayResponse -> String
showsPrec :: Int -> CreateWirelessGatewayResponse -> ShowS
$cshowsPrec :: Int -> CreateWirelessGatewayResponse -> ShowS
Prelude.Show, forall x.
Rep CreateWirelessGatewayResponse x
-> CreateWirelessGatewayResponse
forall x.
CreateWirelessGatewayResponse
-> Rep CreateWirelessGatewayResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CreateWirelessGatewayResponse x
-> CreateWirelessGatewayResponse
$cfrom :: forall x.
CreateWirelessGatewayResponse
-> Rep CreateWirelessGatewayResponse x
Prelude.Generic)

-- |
-- Create a value of 'CreateWirelessGatewayResponse' 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:
--
-- 'arn', 'createWirelessGatewayResponse_arn' - The Amazon Resource Name of the new resource.
--
-- 'id', 'createWirelessGatewayResponse_id' - The ID of the new wireless gateway.
--
-- 'httpStatus', 'createWirelessGatewayResponse_httpStatus' - The response's http status code.
newCreateWirelessGatewayResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  CreateWirelessGatewayResponse
newCreateWirelessGatewayResponse :: Int -> CreateWirelessGatewayResponse
newCreateWirelessGatewayResponse Int
pHttpStatus_ =
  CreateWirelessGatewayResponse'
    { $sel:arn:CreateWirelessGatewayResponse' :: Maybe Text
arn =
        forall a. Maybe a
Prelude.Nothing,
      $sel:id:CreateWirelessGatewayResponse' :: Maybe Text
id = forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:CreateWirelessGatewayResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | The Amazon Resource Name of the new resource.
createWirelessGatewayResponse_arn :: Lens.Lens' CreateWirelessGatewayResponse (Prelude.Maybe Prelude.Text)
createWirelessGatewayResponse_arn :: Lens' CreateWirelessGatewayResponse (Maybe Text)
createWirelessGatewayResponse_arn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateWirelessGatewayResponse' {Maybe Text
arn :: Maybe Text
$sel:arn:CreateWirelessGatewayResponse' :: CreateWirelessGatewayResponse -> Maybe Text
arn} -> Maybe Text
arn) (\s :: CreateWirelessGatewayResponse
s@CreateWirelessGatewayResponse' {} Maybe Text
a -> CreateWirelessGatewayResponse
s {$sel:arn:CreateWirelessGatewayResponse' :: Maybe Text
arn = Maybe Text
a} :: CreateWirelessGatewayResponse)

-- | The ID of the new wireless gateway.
createWirelessGatewayResponse_id :: Lens.Lens' CreateWirelessGatewayResponse (Prelude.Maybe Prelude.Text)
createWirelessGatewayResponse_id :: Lens' CreateWirelessGatewayResponse (Maybe Text)
createWirelessGatewayResponse_id = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateWirelessGatewayResponse' {Maybe Text
id :: Maybe Text
$sel:id:CreateWirelessGatewayResponse' :: CreateWirelessGatewayResponse -> Maybe Text
id} -> Maybe Text
id) (\s :: CreateWirelessGatewayResponse
s@CreateWirelessGatewayResponse' {} Maybe Text
a -> CreateWirelessGatewayResponse
s {$sel:id:CreateWirelessGatewayResponse' :: Maybe Text
id = Maybe Text
a} :: CreateWirelessGatewayResponse)

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

instance Prelude.NFData CreateWirelessGatewayResponse where
  rnf :: CreateWirelessGatewayResponse -> ()
rnf CreateWirelessGatewayResponse' {Int
Maybe Text
httpStatus :: Int
id :: Maybe Text
arn :: Maybe Text
$sel:httpStatus:CreateWirelessGatewayResponse' :: CreateWirelessGatewayResponse -> Int
$sel:id:CreateWirelessGatewayResponse' :: CreateWirelessGatewayResponse -> Maybe Text
$sel:arn:CreateWirelessGatewayResponse' :: CreateWirelessGatewayResponse -> Maybe Text
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
arn
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
id
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus