{-# 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.AlexaBusiness.Types.DeviceData where
import Amazonka.AlexaBusiness.Types.DeviceStatus
import Amazonka.AlexaBusiness.Types.DeviceStatusInfo
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data DeviceData = DeviceData'
{
DeviceData -> Maybe DeviceStatus
deviceStatus :: Prelude.Maybe DeviceStatus,
DeviceData -> Maybe Text
networkProfileName :: Prelude.Maybe Prelude.Text,
DeviceData -> Maybe DeviceStatusInfo
deviceStatusInfo :: Prelude.Maybe DeviceStatusInfo,
DeviceData -> Maybe POSIX
createdTime :: Prelude.Maybe Core.POSIX,
DeviceData -> Maybe Text
deviceArn :: Prelude.Maybe Prelude.Text,
DeviceData -> Maybe Text
networkProfileArn :: Prelude.Maybe Prelude.Text,
DeviceData -> Maybe Text
macAddress :: Prelude.Maybe Prelude.Text,
DeviceData -> Maybe Text
deviceName :: Prelude.Maybe Prelude.Text,
DeviceData -> Maybe Text
roomArn :: Prelude.Maybe Prelude.Text,
DeviceData -> Maybe Text
softwareVersion :: Prelude.Maybe Prelude.Text,
DeviceData -> Maybe Text
deviceType :: Prelude.Maybe Prelude.Text,
DeviceData -> Maybe Text
roomName :: Prelude.Maybe Prelude.Text,
DeviceData -> Maybe Text
deviceSerialNumber :: Prelude.Maybe Prelude.Text
}
deriving (DeviceData -> DeviceData -> Bool
(DeviceData -> DeviceData -> Bool)
-> (DeviceData -> DeviceData -> Bool) -> Eq DeviceData
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DeviceData -> DeviceData -> Bool
$c/= :: DeviceData -> DeviceData -> Bool
== :: DeviceData -> DeviceData -> Bool
$c== :: DeviceData -> DeviceData -> Bool
Prelude.Eq, ReadPrec [DeviceData]
ReadPrec DeviceData
Int -> ReadS DeviceData
ReadS [DeviceData]
(Int -> ReadS DeviceData)
-> ReadS [DeviceData]
-> ReadPrec DeviceData
-> ReadPrec [DeviceData]
-> Read DeviceData
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DeviceData]
$creadListPrec :: ReadPrec [DeviceData]
readPrec :: ReadPrec DeviceData
$creadPrec :: ReadPrec DeviceData
readList :: ReadS [DeviceData]
$creadList :: ReadS [DeviceData]
readsPrec :: Int -> ReadS DeviceData
$creadsPrec :: Int -> ReadS DeviceData
Prelude.Read, Int -> DeviceData -> ShowS
[DeviceData] -> ShowS
DeviceData -> String
(Int -> DeviceData -> ShowS)
-> (DeviceData -> String)
-> ([DeviceData] -> ShowS)
-> Show DeviceData
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DeviceData] -> ShowS
$cshowList :: [DeviceData] -> ShowS
show :: DeviceData -> String
$cshow :: DeviceData -> String
showsPrec :: Int -> DeviceData -> ShowS
$cshowsPrec :: Int -> DeviceData -> ShowS
Prelude.Show, (forall x. DeviceData -> Rep DeviceData x)
-> (forall x. Rep DeviceData x -> DeviceData) -> Generic DeviceData
forall x. Rep DeviceData x -> DeviceData
forall x. DeviceData -> Rep DeviceData x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DeviceData x -> DeviceData
$cfrom :: forall x. DeviceData -> Rep DeviceData x
Prelude.Generic)
newDeviceData ::
DeviceData
newDeviceData :: DeviceData
newDeviceData =
DeviceData' :: Maybe DeviceStatus
-> Maybe Text
-> Maybe DeviceStatusInfo
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> DeviceData
DeviceData'
{ $sel:deviceStatus:DeviceData' :: Maybe DeviceStatus
deviceStatus = Maybe DeviceStatus
forall a. Maybe a
Prelude.Nothing,
$sel:networkProfileName:DeviceData' :: Maybe Text
networkProfileName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:deviceStatusInfo:DeviceData' :: Maybe DeviceStatusInfo
deviceStatusInfo = Maybe DeviceStatusInfo
forall a. Maybe a
Prelude.Nothing,
$sel:createdTime:DeviceData' :: Maybe POSIX
createdTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:deviceArn:DeviceData' :: Maybe Text
deviceArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:networkProfileArn:DeviceData' :: Maybe Text
networkProfileArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:macAddress:DeviceData' :: Maybe Text
macAddress = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:deviceName:DeviceData' :: Maybe Text
deviceName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:roomArn:DeviceData' :: Maybe Text
roomArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:softwareVersion:DeviceData' :: Maybe Text
softwareVersion = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:deviceType:DeviceData' :: Maybe Text
deviceType = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:roomName:DeviceData' :: Maybe Text
roomName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:deviceSerialNumber:DeviceData' :: Maybe Text
deviceSerialNumber = Maybe Text
forall a. Maybe a
Prelude.Nothing
}
deviceData_deviceStatus :: Lens.Lens' DeviceData (Prelude.Maybe DeviceStatus)
deviceData_deviceStatus :: (Maybe DeviceStatus -> f (Maybe DeviceStatus))
-> DeviceData -> f DeviceData
deviceData_deviceStatus = (DeviceData -> Maybe DeviceStatus)
-> (DeviceData -> Maybe DeviceStatus -> DeviceData)
-> Lens
DeviceData DeviceData (Maybe DeviceStatus) (Maybe DeviceStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeviceData' {Maybe DeviceStatus
deviceStatus :: Maybe DeviceStatus
$sel:deviceStatus:DeviceData' :: DeviceData -> Maybe DeviceStatus
deviceStatus} -> Maybe DeviceStatus
deviceStatus) (\s :: DeviceData
s@DeviceData' {} Maybe DeviceStatus
a -> DeviceData
s {$sel:deviceStatus:DeviceData' :: Maybe DeviceStatus
deviceStatus = Maybe DeviceStatus
a} :: DeviceData)
deviceData_networkProfileName :: Lens.Lens' DeviceData (Prelude.Maybe Prelude.Text)
deviceData_networkProfileName :: (Maybe Text -> f (Maybe Text)) -> DeviceData -> f DeviceData
deviceData_networkProfileName = (DeviceData -> Maybe Text)
-> (DeviceData -> Maybe Text -> DeviceData)
-> Lens DeviceData DeviceData (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeviceData' {Maybe Text
networkProfileName :: Maybe Text
$sel:networkProfileName:DeviceData' :: DeviceData -> Maybe Text
networkProfileName} -> Maybe Text
networkProfileName) (\s :: DeviceData
s@DeviceData' {} Maybe Text
a -> DeviceData
s {$sel:networkProfileName:DeviceData' :: Maybe Text
networkProfileName = Maybe Text
a} :: DeviceData)
deviceData_deviceStatusInfo :: Lens.Lens' DeviceData (Prelude.Maybe DeviceStatusInfo)
deviceData_deviceStatusInfo :: (Maybe DeviceStatusInfo -> f (Maybe DeviceStatusInfo))
-> DeviceData -> f DeviceData
deviceData_deviceStatusInfo = (DeviceData -> Maybe DeviceStatusInfo)
-> (DeviceData -> Maybe DeviceStatusInfo -> DeviceData)
-> Lens
DeviceData
DeviceData
(Maybe DeviceStatusInfo)
(Maybe DeviceStatusInfo)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeviceData' {Maybe DeviceStatusInfo
deviceStatusInfo :: Maybe DeviceStatusInfo
$sel:deviceStatusInfo:DeviceData' :: DeviceData -> Maybe DeviceStatusInfo
deviceStatusInfo} -> Maybe DeviceStatusInfo
deviceStatusInfo) (\s :: DeviceData
s@DeviceData' {} Maybe DeviceStatusInfo
a -> DeviceData
s {$sel:deviceStatusInfo:DeviceData' :: Maybe DeviceStatusInfo
deviceStatusInfo = Maybe DeviceStatusInfo
a} :: DeviceData)
deviceData_createdTime :: Lens.Lens' DeviceData (Prelude.Maybe Prelude.UTCTime)
deviceData_createdTime :: (Maybe UTCTime -> f (Maybe UTCTime)) -> DeviceData -> f DeviceData
deviceData_createdTime = (DeviceData -> Maybe POSIX)
-> (DeviceData -> Maybe POSIX -> DeviceData)
-> Lens DeviceData DeviceData (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeviceData' {Maybe POSIX
createdTime :: Maybe POSIX
$sel:createdTime:DeviceData' :: DeviceData -> Maybe POSIX
createdTime} -> Maybe POSIX
createdTime) (\s :: DeviceData
s@DeviceData' {} Maybe POSIX
a -> DeviceData
s {$sel:createdTime:DeviceData' :: Maybe POSIX
createdTime = Maybe POSIX
a} :: DeviceData) ((Maybe POSIX -> f (Maybe POSIX)) -> DeviceData -> f DeviceData)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> DeviceData
-> f DeviceData
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
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 POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
deviceData_deviceArn :: Lens.Lens' DeviceData (Prelude.Maybe Prelude.Text)
deviceData_deviceArn :: (Maybe Text -> f (Maybe Text)) -> DeviceData -> f DeviceData
deviceData_deviceArn = (DeviceData -> Maybe Text)
-> (DeviceData -> Maybe Text -> DeviceData)
-> Lens DeviceData DeviceData (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeviceData' {Maybe Text
deviceArn :: Maybe Text
$sel:deviceArn:DeviceData' :: DeviceData -> Maybe Text
deviceArn} -> Maybe Text
deviceArn) (\s :: DeviceData
s@DeviceData' {} Maybe Text
a -> DeviceData
s {$sel:deviceArn:DeviceData' :: Maybe Text
deviceArn = Maybe Text
a} :: DeviceData)
deviceData_networkProfileArn :: Lens.Lens' DeviceData (Prelude.Maybe Prelude.Text)
deviceData_networkProfileArn :: (Maybe Text -> f (Maybe Text)) -> DeviceData -> f DeviceData
deviceData_networkProfileArn = (DeviceData -> Maybe Text)
-> (DeviceData -> Maybe Text -> DeviceData)
-> Lens DeviceData DeviceData (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeviceData' {Maybe Text
networkProfileArn :: Maybe Text
$sel:networkProfileArn:DeviceData' :: DeviceData -> Maybe Text
networkProfileArn} -> Maybe Text
networkProfileArn) (\s :: DeviceData
s@DeviceData' {} Maybe Text
a -> DeviceData
s {$sel:networkProfileArn:DeviceData' :: Maybe Text
networkProfileArn = Maybe Text
a} :: DeviceData)
deviceData_macAddress :: Lens.Lens' DeviceData (Prelude.Maybe Prelude.Text)
deviceData_macAddress :: (Maybe Text -> f (Maybe Text)) -> DeviceData -> f DeviceData
deviceData_macAddress = (DeviceData -> Maybe Text)
-> (DeviceData -> Maybe Text -> DeviceData)
-> Lens DeviceData DeviceData (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeviceData' {Maybe Text
macAddress :: Maybe Text
$sel:macAddress:DeviceData' :: DeviceData -> Maybe Text
macAddress} -> Maybe Text
macAddress) (\s :: DeviceData
s@DeviceData' {} Maybe Text
a -> DeviceData
s {$sel:macAddress:DeviceData' :: Maybe Text
macAddress = Maybe Text
a} :: DeviceData)
deviceData_deviceName :: Lens.Lens' DeviceData (Prelude.Maybe Prelude.Text)
deviceData_deviceName :: (Maybe Text -> f (Maybe Text)) -> DeviceData -> f DeviceData
deviceData_deviceName = (DeviceData -> Maybe Text)
-> (DeviceData -> Maybe Text -> DeviceData)
-> Lens DeviceData DeviceData (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeviceData' {Maybe Text
deviceName :: Maybe Text
$sel:deviceName:DeviceData' :: DeviceData -> Maybe Text
deviceName} -> Maybe Text
deviceName) (\s :: DeviceData
s@DeviceData' {} Maybe Text
a -> DeviceData
s {$sel:deviceName:DeviceData' :: Maybe Text
deviceName = Maybe Text
a} :: DeviceData)
deviceData_roomArn :: Lens.Lens' DeviceData (Prelude.Maybe Prelude.Text)
deviceData_roomArn :: (Maybe Text -> f (Maybe Text)) -> DeviceData -> f DeviceData
deviceData_roomArn = (DeviceData -> Maybe Text)
-> (DeviceData -> Maybe Text -> DeviceData)
-> Lens DeviceData DeviceData (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeviceData' {Maybe Text
roomArn :: Maybe Text
$sel:roomArn:DeviceData' :: DeviceData -> Maybe Text
roomArn} -> Maybe Text
roomArn) (\s :: DeviceData
s@DeviceData' {} Maybe Text
a -> DeviceData
s {$sel:roomArn:DeviceData' :: Maybe Text
roomArn = Maybe Text
a} :: DeviceData)
deviceData_softwareVersion :: Lens.Lens' DeviceData (Prelude.Maybe Prelude.Text)
deviceData_softwareVersion :: (Maybe Text -> f (Maybe Text)) -> DeviceData -> f DeviceData
deviceData_softwareVersion = (DeviceData -> Maybe Text)
-> (DeviceData -> Maybe Text -> DeviceData)
-> Lens DeviceData DeviceData (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeviceData' {Maybe Text
softwareVersion :: Maybe Text
$sel:softwareVersion:DeviceData' :: DeviceData -> Maybe Text
softwareVersion} -> Maybe Text
softwareVersion) (\s :: DeviceData
s@DeviceData' {} Maybe Text
a -> DeviceData
s {$sel:softwareVersion:DeviceData' :: Maybe Text
softwareVersion = Maybe Text
a} :: DeviceData)
deviceData_deviceType :: Lens.Lens' DeviceData (Prelude.Maybe Prelude.Text)
deviceData_deviceType :: (Maybe Text -> f (Maybe Text)) -> DeviceData -> f DeviceData
deviceData_deviceType = (DeviceData -> Maybe Text)
-> (DeviceData -> Maybe Text -> DeviceData)
-> Lens DeviceData DeviceData (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeviceData' {Maybe Text
deviceType :: Maybe Text
$sel:deviceType:DeviceData' :: DeviceData -> Maybe Text
deviceType} -> Maybe Text
deviceType) (\s :: DeviceData
s@DeviceData' {} Maybe Text
a -> DeviceData
s {$sel:deviceType:DeviceData' :: Maybe Text
deviceType = Maybe Text
a} :: DeviceData)
deviceData_roomName :: Lens.Lens' DeviceData (Prelude.Maybe Prelude.Text)
deviceData_roomName :: (Maybe Text -> f (Maybe Text)) -> DeviceData -> f DeviceData
deviceData_roomName = (DeviceData -> Maybe Text)
-> (DeviceData -> Maybe Text -> DeviceData)
-> Lens DeviceData DeviceData (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeviceData' {Maybe Text
roomName :: Maybe Text
$sel:roomName:DeviceData' :: DeviceData -> Maybe Text
roomName} -> Maybe Text
roomName) (\s :: DeviceData
s@DeviceData' {} Maybe Text
a -> DeviceData
s {$sel:roomName:DeviceData' :: Maybe Text
roomName = Maybe Text
a} :: DeviceData)
deviceData_deviceSerialNumber :: Lens.Lens' DeviceData (Prelude.Maybe Prelude.Text)
deviceData_deviceSerialNumber :: (Maybe Text -> f (Maybe Text)) -> DeviceData -> f DeviceData
deviceData_deviceSerialNumber = (DeviceData -> Maybe Text)
-> (DeviceData -> Maybe Text -> DeviceData)
-> Lens DeviceData DeviceData (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeviceData' {Maybe Text
deviceSerialNumber :: Maybe Text
$sel:deviceSerialNumber:DeviceData' :: DeviceData -> Maybe Text
deviceSerialNumber} -> Maybe Text
deviceSerialNumber) (\s :: DeviceData
s@DeviceData' {} Maybe Text
a -> DeviceData
s {$sel:deviceSerialNumber:DeviceData' :: Maybe Text
deviceSerialNumber = Maybe Text
a} :: DeviceData)
instance Core.FromJSON DeviceData where
parseJSON :: Value -> Parser DeviceData
parseJSON =
String
-> (Object -> Parser DeviceData) -> Value -> Parser DeviceData
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"DeviceData"
( \Object
x ->
Maybe DeviceStatus
-> Maybe Text
-> Maybe DeviceStatusInfo
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> DeviceData
DeviceData'
(Maybe DeviceStatus
-> Maybe Text
-> Maybe DeviceStatusInfo
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> DeviceData)
-> Parser (Maybe DeviceStatus)
-> Parser
(Maybe Text
-> Maybe DeviceStatusInfo
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> DeviceData)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe DeviceStatus)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"DeviceStatus")
Parser
(Maybe Text
-> Maybe DeviceStatusInfo
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> DeviceData)
-> Parser (Maybe Text)
-> Parser
(Maybe DeviceStatusInfo
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> DeviceData)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"NetworkProfileName")
Parser
(Maybe DeviceStatusInfo
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> DeviceData)
-> Parser (Maybe DeviceStatusInfo)
-> Parser
(Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> DeviceData)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe DeviceStatusInfo)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"DeviceStatusInfo")
Parser
(Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> DeviceData)
-> Parser (Maybe POSIX)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> DeviceData)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"CreatedTime")
Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> DeviceData)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> DeviceData)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"DeviceArn")
Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> DeviceData)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> DeviceData)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"NetworkProfileArn")
Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> DeviceData)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> DeviceData)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"MacAddress")
Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> DeviceData)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> DeviceData)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"DeviceName")
Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> DeviceData)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text -> Maybe Text -> Maybe Text -> DeviceData)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"RoomArn")
Parser
(Maybe Text
-> Maybe Text -> Maybe Text -> Maybe Text -> DeviceData)
-> Parser (Maybe Text)
-> Parser (Maybe Text -> Maybe Text -> Maybe Text -> DeviceData)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"SoftwareVersion")
Parser (Maybe Text -> Maybe Text -> Maybe Text -> DeviceData)
-> Parser (Maybe Text)
-> Parser (Maybe Text -> Maybe Text -> DeviceData)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"DeviceType")
Parser (Maybe Text -> Maybe Text -> DeviceData)
-> Parser (Maybe Text) -> Parser (Maybe Text -> DeviceData)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"RoomName")
Parser (Maybe Text -> DeviceData)
-> Parser (Maybe Text) -> Parser DeviceData
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"DeviceSerialNumber")
)
instance Prelude.Hashable DeviceData
instance Prelude.NFData DeviceData