{-# 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 #-}
module Amazonka.IoTWireless.Types.WcdmaLocalId where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
data WcdmaLocalId = WcdmaLocalId'
{
WcdmaLocalId -> Natural
uarfcndl :: Prelude.Natural,
WcdmaLocalId -> Natural
psc :: Prelude.Natural
}
deriving (WcdmaLocalId -> WcdmaLocalId -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: WcdmaLocalId -> WcdmaLocalId -> Bool
$c/= :: WcdmaLocalId -> WcdmaLocalId -> Bool
== :: WcdmaLocalId -> WcdmaLocalId -> Bool
$c== :: WcdmaLocalId -> WcdmaLocalId -> Bool
Prelude.Eq, ReadPrec [WcdmaLocalId]
ReadPrec WcdmaLocalId
Int -> ReadS WcdmaLocalId
ReadS [WcdmaLocalId]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [WcdmaLocalId]
$creadListPrec :: ReadPrec [WcdmaLocalId]
readPrec :: ReadPrec WcdmaLocalId
$creadPrec :: ReadPrec WcdmaLocalId
readList :: ReadS [WcdmaLocalId]
$creadList :: ReadS [WcdmaLocalId]
readsPrec :: Int -> ReadS WcdmaLocalId
$creadsPrec :: Int -> ReadS WcdmaLocalId
Prelude.Read, Int -> WcdmaLocalId -> ShowS
[WcdmaLocalId] -> ShowS
WcdmaLocalId -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [WcdmaLocalId] -> ShowS
$cshowList :: [WcdmaLocalId] -> ShowS
show :: WcdmaLocalId -> String
$cshow :: WcdmaLocalId -> String
showsPrec :: Int -> WcdmaLocalId -> ShowS
$cshowsPrec :: Int -> WcdmaLocalId -> ShowS
Prelude.Show, forall x. Rep WcdmaLocalId x -> WcdmaLocalId
forall x. WcdmaLocalId -> Rep WcdmaLocalId x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep WcdmaLocalId x -> WcdmaLocalId
$cfrom :: forall x. WcdmaLocalId -> Rep WcdmaLocalId x
Prelude.Generic)
newWcdmaLocalId ::
Prelude.Natural ->
Prelude.Natural ->
WcdmaLocalId
newWcdmaLocalId :: Natural -> Natural -> WcdmaLocalId
newWcdmaLocalId Natural
pUarfcndl_ Natural
pPsc_ =
WcdmaLocalId' {$sel:uarfcndl:WcdmaLocalId' :: Natural
uarfcndl = Natural
pUarfcndl_, $sel:psc:WcdmaLocalId' :: Natural
psc = Natural
pPsc_}
wcdmaLocalId_uarfcndl :: Lens.Lens' WcdmaLocalId Prelude.Natural
wcdmaLocalId_uarfcndl :: Lens' WcdmaLocalId Natural
wcdmaLocalId_uarfcndl = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\WcdmaLocalId' {Natural
uarfcndl :: Natural
$sel:uarfcndl:WcdmaLocalId' :: WcdmaLocalId -> Natural
uarfcndl} -> Natural
uarfcndl) (\s :: WcdmaLocalId
s@WcdmaLocalId' {} Natural
a -> WcdmaLocalId
s {$sel:uarfcndl:WcdmaLocalId' :: Natural
uarfcndl = Natural
a} :: WcdmaLocalId)
wcdmaLocalId_psc :: Lens.Lens' WcdmaLocalId Prelude.Natural
wcdmaLocalId_psc :: Lens' WcdmaLocalId Natural
wcdmaLocalId_psc = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\WcdmaLocalId' {Natural
psc :: Natural
$sel:psc:WcdmaLocalId' :: WcdmaLocalId -> Natural
psc} -> Natural
psc) (\s :: WcdmaLocalId
s@WcdmaLocalId' {} Natural
a -> WcdmaLocalId
s {$sel:psc:WcdmaLocalId' :: Natural
psc = Natural
a} :: WcdmaLocalId)
instance Prelude.Hashable WcdmaLocalId where
hashWithSalt :: Int -> WcdmaLocalId -> Int
hashWithSalt Int
_salt WcdmaLocalId' {Natural
psc :: Natural
uarfcndl :: Natural
$sel:psc:WcdmaLocalId' :: WcdmaLocalId -> Natural
$sel:uarfcndl:WcdmaLocalId' :: WcdmaLocalId -> Natural
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Natural
uarfcndl
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Natural
psc
instance Prelude.NFData WcdmaLocalId where
rnf :: WcdmaLocalId -> ()
rnf WcdmaLocalId' {Natural
psc :: Natural
uarfcndl :: Natural
$sel:psc:WcdmaLocalId' :: WcdmaLocalId -> Natural
$sel:uarfcndl:WcdmaLocalId' :: WcdmaLocalId -> Natural
..} =
forall a. NFData a => a -> ()
Prelude.rnf Natural
uarfcndl seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Natural
psc
instance Data.ToJSON WcdmaLocalId where
toJSON :: WcdmaLocalId -> Value
toJSON WcdmaLocalId' {Natural
psc :: Natural
uarfcndl :: Natural
$sel:psc:WcdmaLocalId' :: WcdmaLocalId -> Natural
$sel:uarfcndl:WcdmaLocalId' :: WcdmaLocalId -> Natural
..} =
[Pair] -> Value
Data.object
( forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ forall a. a -> Maybe a
Prelude.Just (Key
"Uarfcndl" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Natural
uarfcndl),
forall a. a -> Maybe a
Prelude.Just (Key
"Psc" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Natural
psc)
]
)