{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# 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.Types.TdscdmaObj
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.IoTWireless.Types.TdscdmaObj 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.TdscdmaLocalId
import Amazonka.IoTWireless.Types.TdscdmaNmrObj
import qualified Amazonka.Prelude as Prelude

-- | TD-SCDMA object.
--
-- /See:/ 'newTdscdmaObj' smart constructor.
data TdscdmaObj = TdscdmaObj'
  { -- | Location Area Code.
    TdscdmaObj -> Maybe Natural
lac :: Prelude.Maybe Prelude.Natural,
    -- | Path loss, or path attenuation, is the reduction in power density of an
    -- electromagnetic wave as it propagates through space.
    TdscdmaObj -> Maybe Natural
pathLoss :: Prelude.Maybe Prelude.Natural,
    -- | Signal power of the received signal (Received Signal Code Power),
    -- measured in decibel-milliwatts (dBm).
    TdscdmaObj -> Maybe Int
rscp :: Prelude.Maybe Prelude.Int,
    -- | TD-SCDMA local identification (local ID) information.
    TdscdmaObj -> Maybe TdscdmaLocalId
tdscdmaLocalId :: Prelude.Maybe TdscdmaLocalId,
    -- | TD-SCDMA object for network measurement reports.
    TdscdmaObj -> Maybe (NonEmpty TdscdmaNmrObj)
tdscdmaNmr :: Prelude.Maybe (Prelude.NonEmpty TdscdmaNmrObj),
    -- | TD-SCDMA Timing advance.
    TdscdmaObj -> Maybe Natural
tdscdmaTimingAdvance :: Prelude.Maybe Prelude.Natural,
    -- | Mobile Country Code.
    TdscdmaObj -> Natural
mcc :: Prelude.Natural,
    -- | Mobile Network Code.
    TdscdmaObj -> Natural
mnc :: Prelude.Natural,
    -- | UTRAN (UMTS Terrestrial Radio Access Network) Cell Global Identifier.
    TdscdmaObj -> Natural
utranCid :: Prelude.Natural
  }
  deriving (TdscdmaObj -> TdscdmaObj -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: TdscdmaObj -> TdscdmaObj -> Bool
$c/= :: TdscdmaObj -> TdscdmaObj -> Bool
== :: TdscdmaObj -> TdscdmaObj -> Bool
$c== :: TdscdmaObj -> TdscdmaObj -> Bool
Prelude.Eq, ReadPrec [TdscdmaObj]
ReadPrec TdscdmaObj
Int -> ReadS TdscdmaObj
ReadS [TdscdmaObj]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [TdscdmaObj]
$creadListPrec :: ReadPrec [TdscdmaObj]
readPrec :: ReadPrec TdscdmaObj
$creadPrec :: ReadPrec TdscdmaObj
readList :: ReadS [TdscdmaObj]
$creadList :: ReadS [TdscdmaObj]
readsPrec :: Int -> ReadS TdscdmaObj
$creadsPrec :: Int -> ReadS TdscdmaObj
Prelude.Read, Int -> TdscdmaObj -> ShowS
[TdscdmaObj] -> ShowS
TdscdmaObj -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [TdscdmaObj] -> ShowS
$cshowList :: [TdscdmaObj] -> ShowS
show :: TdscdmaObj -> String
$cshow :: TdscdmaObj -> String
showsPrec :: Int -> TdscdmaObj -> ShowS
$cshowsPrec :: Int -> TdscdmaObj -> ShowS
Prelude.Show, forall x. Rep TdscdmaObj x -> TdscdmaObj
forall x. TdscdmaObj -> Rep TdscdmaObj x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep TdscdmaObj x -> TdscdmaObj
$cfrom :: forall x. TdscdmaObj -> Rep TdscdmaObj x
Prelude.Generic)

-- |
-- Create a value of 'TdscdmaObj' 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:
--
-- 'lac', 'tdscdmaObj_lac' - Location Area Code.
--
-- 'pathLoss', 'tdscdmaObj_pathLoss' - Path loss, or path attenuation, is the reduction in power density of an
-- electromagnetic wave as it propagates through space.
--
-- 'rscp', 'tdscdmaObj_rscp' - Signal power of the received signal (Received Signal Code Power),
-- measured in decibel-milliwatts (dBm).
--
-- 'tdscdmaLocalId', 'tdscdmaObj_tdscdmaLocalId' - TD-SCDMA local identification (local ID) information.
--
-- 'tdscdmaNmr', 'tdscdmaObj_tdscdmaNmr' - TD-SCDMA object for network measurement reports.
--
-- 'tdscdmaTimingAdvance', 'tdscdmaObj_tdscdmaTimingAdvance' - TD-SCDMA Timing advance.
--
-- 'mcc', 'tdscdmaObj_mcc' - Mobile Country Code.
--
-- 'mnc', 'tdscdmaObj_mnc' - Mobile Network Code.
--
-- 'utranCid', 'tdscdmaObj_utranCid' - UTRAN (UMTS Terrestrial Radio Access Network) Cell Global Identifier.
newTdscdmaObj ::
  -- | 'mcc'
  Prelude.Natural ->
  -- | 'mnc'
  Prelude.Natural ->
  -- | 'utranCid'
  Prelude.Natural ->
  TdscdmaObj
newTdscdmaObj :: Natural -> Natural -> Natural -> TdscdmaObj
newTdscdmaObj Natural
pMcc_ Natural
pMnc_ Natural
pUtranCid_ =
  TdscdmaObj'
    { $sel:lac:TdscdmaObj' :: Maybe Natural
lac = forall a. Maybe a
Prelude.Nothing,
      $sel:pathLoss:TdscdmaObj' :: Maybe Natural
pathLoss = forall a. Maybe a
Prelude.Nothing,
      $sel:rscp:TdscdmaObj' :: Maybe Int
rscp = forall a. Maybe a
Prelude.Nothing,
      $sel:tdscdmaLocalId:TdscdmaObj' :: Maybe TdscdmaLocalId
tdscdmaLocalId = forall a. Maybe a
Prelude.Nothing,
      $sel:tdscdmaNmr:TdscdmaObj' :: Maybe (NonEmpty TdscdmaNmrObj)
tdscdmaNmr = forall a. Maybe a
Prelude.Nothing,
      $sel:tdscdmaTimingAdvance:TdscdmaObj' :: Maybe Natural
tdscdmaTimingAdvance = forall a. Maybe a
Prelude.Nothing,
      $sel:mcc:TdscdmaObj' :: Natural
mcc = Natural
pMcc_,
      $sel:mnc:TdscdmaObj' :: Natural
mnc = Natural
pMnc_,
      $sel:utranCid:TdscdmaObj' :: Natural
utranCid = Natural
pUtranCid_
    }

-- | Location Area Code.
tdscdmaObj_lac :: Lens.Lens' TdscdmaObj (Prelude.Maybe Prelude.Natural)
tdscdmaObj_lac :: Lens' TdscdmaObj (Maybe Natural)
tdscdmaObj_lac = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TdscdmaObj' {Maybe Natural
lac :: Maybe Natural
$sel:lac:TdscdmaObj' :: TdscdmaObj -> Maybe Natural
lac} -> Maybe Natural
lac) (\s :: TdscdmaObj
s@TdscdmaObj' {} Maybe Natural
a -> TdscdmaObj
s {$sel:lac:TdscdmaObj' :: Maybe Natural
lac = Maybe Natural
a} :: TdscdmaObj)

-- | Path loss, or path attenuation, is the reduction in power density of an
-- electromagnetic wave as it propagates through space.
tdscdmaObj_pathLoss :: Lens.Lens' TdscdmaObj (Prelude.Maybe Prelude.Natural)
tdscdmaObj_pathLoss :: Lens' TdscdmaObj (Maybe Natural)
tdscdmaObj_pathLoss = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TdscdmaObj' {Maybe Natural
pathLoss :: Maybe Natural
$sel:pathLoss:TdscdmaObj' :: TdscdmaObj -> Maybe Natural
pathLoss} -> Maybe Natural
pathLoss) (\s :: TdscdmaObj
s@TdscdmaObj' {} Maybe Natural
a -> TdscdmaObj
s {$sel:pathLoss:TdscdmaObj' :: Maybe Natural
pathLoss = Maybe Natural
a} :: TdscdmaObj)

-- | Signal power of the received signal (Received Signal Code Power),
-- measured in decibel-milliwatts (dBm).
tdscdmaObj_rscp :: Lens.Lens' TdscdmaObj (Prelude.Maybe Prelude.Int)
tdscdmaObj_rscp :: Lens' TdscdmaObj (Maybe Int)
tdscdmaObj_rscp = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TdscdmaObj' {Maybe Int
rscp :: Maybe Int
$sel:rscp:TdscdmaObj' :: TdscdmaObj -> Maybe Int
rscp} -> Maybe Int
rscp) (\s :: TdscdmaObj
s@TdscdmaObj' {} Maybe Int
a -> TdscdmaObj
s {$sel:rscp:TdscdmaObj' :: Maybe Int
rscp = Maybe Int
a} :: TdscdmaObj)

-- | TD-SCDMA local identification (local ID) information.
tdscdmaObj_tdscdmaLocalId :: Lens.Lens' TdscdmaObj (Prelude.Maybe TdscdmaLocalId)
tdscdmaObj_tdscdmaLocalId :: Lens' TdscdmaObj (Maybe TdscdmaLocalId)
tdscdmaObj_tdscdmaLocalId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TdscdmaObj' {Maybe TdscdmaLocalId
tdscdmaLocalId :: Maybe TdscdmaLocalId
$sel:tdscdmaLocalId:TdscdmaObj' :: TdscdmaObj -> Maybe TdscdmaLocalId
tdscdmaLocalId} -> Maybe TdscdmaLocalId
tdscdmaLocalId) (\s :: TdscdmaObj
s@TdscdmaObj' {} Maybe TdscdmaLocalId
a -> TdscdmaObj
s {$sel:tdscdmaLocalId:TdscdmaObj' :: Maybe TdscdmaLocalId
tdscdmaLocalId = Maybe TdscdmaLocalId
a} :: TdscdmaObj)

-- | TD-SCDMA object for network measurement reports.
tdscdmaObj_tdscdmaNmr :: Lens.Lens' TdscdmaObj (Prelude.Maybe (Prelude.NonEmpty TdscdmaNmrObj))
tdscdmaObj_tdscdmaNmr :: Lens' TdscdmaObj (Maybe (NonEmpty TdscdmaNmrObj))
tdscdmaObj_tdscdmaNmr = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TdscdmaObj' {Maybe (NonEmpty TdscdmaNmrObj)
tdscdmaNmr :: Maybe (NonEmpty TdscdmaNmrObj)
$sel:tdscdmaNmr:TdscdmaObj' :: TdscdmaObj -> Maybe (NonEmpty TdscdmaNmrObj)
tdscdmaNmr} -> Maybe (NonEmpty TdscdmaNmrObj)
tdscdmaNmr) (\s :: TdscdmaObj
s@TdscdmaObj' {} Maybe (NonEmpty TdscdmaNmrObj)
a -> TdscdmaObj
s {$sel:tdscdmaNmr:TdscdmaObj' :: Maybe (NonEmpty TdscdmaNmrObj)
tdscdmaNmr = Maybe (NonEmpty TdscdmaNmrObj)
a} :: TdscdmaObj) 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

-- | TD-SCDMA Timing advance.
tdscdmaObj_tdscdmaTimingAdvance :: Lens.Lens' TdscdmaObj (Prelude.Maybe Prelude.Natural)
tdscdmaObj_tdscdmaTimingAdvance :: Lens' TdscdmaObj (Maybe Natural)
tdscdmaObj_tdscdmaTimingAdvance = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TdscdmaObj' {Maybe Natural
tdscdmaTimingAdvance :: Maybe Natural
$sel:tdscdmaTimingAdvance:TdscdmaObj' :: TdscdmaObj -> Maybe Natural
tdscdmaTimingAdvance} -> Maybe Natural
tdscdmaTimingAdvance) (\s :: TdscdmaObj
s@TdscdmaObj' {} Maybe Natural
a -> TdscdmaObj
s {$sel:tdscdmaTimingAdvance:TdscdmaObj' :: Maybe Natural
tdscdmaTimingAdvance = Maybe Natural
a} :: TdscdmaObj)

-- | Mobile Country Code.
tdscdmaObj_mcc :: Lens.Lens' TdscdmaObj Prelude.Natural
tdscdmaObj_mcc :: Lens' TdscdmaObj Natural
tdscdmaObj_mcc = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TdscdmaObj' {Natural
mcc :: Natural
$sel:mcc:TdscdmaObj' :: TdscdmaObj -> Natural
mcc} -> Natural
mcc) (\s :: TdscdmaObj
s@TdscdmaObj' {} Natural
a -> TdscdmaObj
s {$sel:mcc:TdscdmaObj' :: Natural
mcc = Natural
a} :: TdscdmaObj)

-- | Mobile Network Code.
tdscdmaObj_mnc :: Lens.Lens' TdscdmaObj Prelude.Natural
tdscdmaObj_mnc :: Lens' TdscdmaObj Natural
tdscdmaObj_mnc = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TdscdmaObj' {Natural
mnc :: Natural
$sel:mnc:TdscdmaObj' :: TdscdmaObj -> Natural
mnc} -> Natural
mnc) (\s :: TdscdmaObj
s@TdscdmaObj' {} Natural
a -> TdscdmaObj
s {$sel:mnc:TdscdmaObj' :: Natural
mnc = Natural
a} :: TdscdmaObj)

-- | UTRAN (UMTS Terrestrial Radio Access Network) Cell Global Identifier.
tdscdmaObj_utranCid :: Lens.Lens' TdscdmaObj Prelude.Natural
tdscdmaObj_utranCid :: Lens' TdscdmaObj Natural
tdscdmaObj_utranCid = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TdscdmaObj' {Natural
utranCid :: Natural
$sel:utranCid:TdscdmaObj' :: TdscdmaObj -> Natural
utranCid} -> Natural
utranCid) (\s :: TdscdmaObj
s@TdscdmaObj' {} Natural
a -> TdscdmaObj
s {$sel:utranCid:TdscdmaObj' :: Natural
utranCid = Natural
a} :: TdscdmaObj)

instance Prelude.Hashable TdscdmaObj where
  hashWithSalt :: Int -> TdscdmaObj -> Int
hashWithSalt Int
_salt TdscdmaObj' {Natural
Maybe Int
Maybe Natural
Maybe (NonEmpty TdscdmaNmrObj)
Maybe TdscdmaLocalId
utranCid :: Natural
mnc :: Natural
mcc :: Natural
tdscdmaTimingAdvance :: Maybe Natural
tdscdmaNmr :: Maybe (NonEmpty TdscdmaNmrObj)
tdscdmaLocalId :: Maybe TdscdmaLocalId
rscp :: Maybe Int
pathLoss :: Maybe Natural
lac :: Maybe Natural
$sel:utranCid:TdscdmaObj' :: TdscdmaObj -> Natural
$sel:mnc:TdscdmaObj' :: TdscdmaObj -> Natural
$sel:mcc:TdscdmaObj' :: TdscdmaObj -> Natural
$sel:tdscdmaTimingAdvance:TdscdmaObj' :: TdscdmaObj -> Maybe Natural
$sel:tdscdmaNmr:TdscdmaObj' :: TdscdmaObj -> Maybe (NonEmpty TdscdmaNmrObj)
$sel:tdscdmaLocalId:TdscdmaObj' :: TdscdmaObj -> Maybe TdscdmaLocalId
$sel:rscp:TdscdmaObj' :: TdscdmaObj -> Maybe Int
$sel:pathLoss:TdscdmaObj' :: TdscdmaObj -> Maybe Natural
$sel:lac:TdscdmaObj' :: TdscdmaObj -> Maybe Natural
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
lac
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
pathLoss
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Int
rscp
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe TdscdmaLocalId
tdscdmaLocalId
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (NonEmpty TdscdmaNmrObj)
tdscdmaNmr
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
tdscdmaTimingAdvance
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Natural
mcc
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Natural
mnc
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Natural
utranCid

instance Prelude.NFData TdscdmaObj where
  rnf :: TdscdmaObj -> ()
rnf TdscdmaObj' {Natural
Maybe Int
Maybe Natural
Maybe (NonEmpty TdscdmaNmrObj)
Maybe TdscdmaLocalId
utranCid :: Natural
mnc :: Natural
mcc :: Natural
tdscdmaTimingAdvance :: Maybe Natural
tdscdmaNmr :: Maybe (NonEmpty TdscdmaNmrObj)
tdscdmaLocalId :: Maybe TdscdmaLocalId
rscp :: Maybe Int
pathLoss :: Maybe Natural
lac :: Maybe Natural
$sel:utranCid:TdscdmaObj' :: TdscdmaObj -> Natural
$sel:mnc:TdscdmaObj' :: TdscdmaObj -> Natural
$sel:mcc:TdscdmaObj' :: TdscdmaObj -> Natural
$sel:tdscdmaTimingAdvance:TdscdmaObj' :: TdscdmaObj -> Maybe Natural
$sel:tdscdmaNmr:TdscdmaObj' :: TdscdmaObj -> Maybe (NonEmpty TdscdmaNmrObj)
$sel:tdscdmaLocalId:TdscdmaObj' :: TdscdmaObj -> Maybe TdscdmaLocalId
$sel:rscp:TdscdmaObj' :: TdscdmaObj -> Maybe Int
$sel:pathLoss:TdscdmaObj' :: TdscdmaObj -> Maybe Natural
$sel:lac:TdscdmaObj' :: TdscdmaObj -> Maybe Natural
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
lac
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
pathLoss
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Int
rscp
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe TdscdmaLocalId
tdscdmaLocalId
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (NonEmpty TdscdmaNmrObj)
tdscdmaNmr
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
tdscdmaTimingAdvance
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Natural
mcc
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Natural
mnc
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Natural
utranCid

instance Data.ToJSON TdscdmaObj where
  toJSON :: TdscdmaObj -> Value
toJSON TdscdmaObj' {Natural
Maybe Int
Maybe Natural
Maybe (NonEmpty TdscdmaNmrObj)
Maybe TdscdmaLocalId
utranCid :: Natural
mnc :: Natural
mcc :: Natural
tdscdmaTimingAdvance :: Maybe Natural
tdscdmaNmr :: Maybe (NonEmpty TdscdmaNmrObj)
tdscdmaLocalId :: Maybe TdscdmaLocalId
rscp :: Maybe Int
pathLoss :: Maybe Natural
lac :: Maybe Natural
$sel:utranCid:TdscdmaObj' :: TdscdmaObj -> Natural
$sel:mnc:TdscdmaObj' :: TdscdmaObj -> Natural
$sel:mcc:TdscdmaObj' :: TdscdmaObj -> Natural
$sel:tdscdmaTimingAdvance:TdscdmaObj' :: TdscdmaObj -> Maybe Natural
$sel:tdscdmaNmr:TdscdmaObj' :: TdscdmaObj -> Maybe (NonEmpty TdscdmaNmrObj)
$sel:tdscdmaLocalId:TdscdmaObj' :: TdscdmaObj -> Maybe TdscdmaLocalId
$sel:rscp:TdscdmaObj' :: TdscdmaObj -> Maybe Int
$sel:pathLoss:TdscdmaObj' :: TdscdmaObj -> Maybe Natural
$sel:lac:TdscdmaObj' :: TdscdmaObj -> Maybe Natural
..} =
    [Pair] -> Value
Data.object
      ( forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Key
"Lac" 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 Natural
lac,
            (Key
"PathLoss" 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 Natural
pathLoss,
            (Key
"Rscp" 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 Int
rscp,
            (Key
"TdscdmaLocalId" 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 TdscdmaLocalId
tdscdmaLocalId,
            (Key
"TdscdmaNmr" 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 (NonEmpty TdscdmaNmrObj)
tdscdmaNmr,
            (Key
"TdscdmaTimingAdvance" 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 Natural
tdscdmaTimingAdvance,
            forall a. a -> Maybe a
Prelude.Just (Key
"Mcc" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Natural
mcc),
            forall a. a -> Maybe a
Prelude.Just (Key
"Mnc" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Natural
mnc),
            forall a. a -> Maybe a
Prelude.Just (Key
"UtranCid" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Natural
utranCid)
          ]
      )