{-# 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.AlexaBusiness.Types.DeviceData
-- 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.AlexaBusiness.Types.DeviceData where

import Amazonka.AlexaBusiness.Types.DeviceStatus
import Amazonka.AlexaBusiness.Types.DeviceStatusInfo
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

-- | Device attributes.
--
-- /See:/ 'newDeviceData' smart constructor.
data DeviceData = DeviceData'
  { -- | The time (in epoch) when the device data was created.
    DeviceData -> Maybe POSIX
createdTime :: Prelude.Maybe Data.POSIX,
    -- | The ARN of a device.
    DeviceData -> Maybe Text
deviceArn :: Prelude.Maybe Prelude.Text,
    -- | The name of a device.
    DeviceData -> Maybe Text
deviceName :: Prelude.Maybe Prelude.Text,
    -- | The serial number of a device.
    DeviceData -> Maybe Text
deviceSerialNumber :: Prelude.Maybe Prelude.Text,
    -- | The status of a device.
    DeviceData -> Maybe DeviceStatus
deviceStatus :: Prelude.Maybe DeviceStatus,
    -- | Detailed information about a device\'s status.
    DeviceData -> Maybe DeviceStatusInfo
deviceStatusInfo :: Prelude.Maybe DeviceStatusInfo,
    -- | The type of a device.
    DeviceData -> Maybe Text
deviceType :: Prelude.Maybe Prelude.Text,
    -- | The MAC address of a device.
    DeviceData -> Maybe Text
macAddress :: Prelude.Maybe Prelude.Text,
    -- | The ARN of the network profile associated with a device.
    DeviceData -> Maybe Text
networkProfileArn :: Prelude.Maybe Prelude.Text,
    -- | The name of the network profile associated with a device.
    DeviceData -> Maybe Text
networkProfileName :: Prelude.Maybe Prelude.Text,
    -- | The room ARN associated with a device.
    DeviceData -> Maybe Text
roomArn :: Prelude.Maybe Prelude.Text,
    -- | The name of the room associated with a device.
    DeviceData -> Maybe Text
roomName :: Prelude.Maybe Prelude.Text,
    -- | The software version of a device.
    DeviceData -> Maybe Text
softwareVersion :: Prelude.Maybe Prelude.Text
  }
  deriving (DeviceData -> DeviceData -> Bool
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]
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
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. 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)

-- |
-- Create a value of 'DeviceData' 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:
--
-- 'createdTime', 'deviceData_createdTime' - The time (in epoch) when the device data was created.
--
-- 'deviceArn', 'deviceData_deviceArn' - The ARN of a device.
--
-- 'deviceName', 'deviceData_deviceName' - The name of a device.
--
-- 'deviceSerialNumber', 'deviceData_deviceSerialNumber' - The serial number of a device.
--
-- 'deviceStatus', 'deviceData_deviceStatus' - The status of a device.
--
-- 'deviceStatusInfo', 'deviceData_deviceStatusInfo' - Detailed information about a device\'s status.
--
-- 'deviceType', 'deviceData_deviceType' - The type of a device.
--
-- 'macAddress', 'deviceData_macAddress' - The MAC address of a device.
--
-- 'networkProfileArn', 'deviceData_networkProfileArn' - The ARN of the network profile associated with a device.
--
-- 'networkProfileName', 'deviceData_networkProfileName' - The name of the network profile associated with a device.
--
-- 'roomArn', 'deviceData_roomArn' - The room ARN associated with a device.
--
-- 'roomName', 'deviceData_roomName' - The name of the room associated with a device.
--
-- 'softwareVersion', 'deviceData_softwareVersion' - The software version of a device.
newDeviceData ::
  DeviceData
newDeviceData :: DeviceData
newDeviceData =
  DeviceData'
    { $sel:createdTime:DeviceData' :: Maybe POSIX
createdTime = forall a. Maybe a
Prelude.Nothing,
      $sel:deviceArn:DeviceData' :: Maybe Text
deviceArn = forall a. Maybe a
Prelude.Nothing,
      $sel:deviceName:DeviceData' :: Maybe Text
deviceName = forall a. Maybe a
Prelude.Nothing,
      $sel:deviceSerialNumber:DeviceData' :: Maybe Text
deviceSerialNumber = forall a. Maybe a
Prelude.Nothing,
      $sel:deviceStatus:DeviceData' :: Maybe DeviceStatus
deviceStatus = forall a. Maybe a
Prelude.Nothing,
      $sel:deviceStatusInfo:DeviceData' :: Maybe DeviceStatusInfo
deviceStatusInfo = forall a. Maybe a
Prelude.Nothing,
      $sel:deviceType:DeviceData' :: Maybe Text
deviceType = forall a. Maybe a
Prelude.Nothing,
      $sel:macAddress:DeviceData' :: Maybe Text
macAddress = forall a. Maybe a
Prelude.Nothing,
      $sel:networkProfileArn:DeviceData' :: Maybe Text
networkProfileArn = forall a. Maybe a
Prelude.Nothing,
      $sel:networkProfileName:DeviceData' :: Maybe Text
networkProfileName = forall a. Maybe a
Prelude.Nothing,
      $sel:roomArn:DeviceData' :: Maybe Text
roomArn = forall a. Maybe a
Prelude.Nothing,
      $sel:roomName:DeviceData' :: Maybe Text
roomName = forall a. Maybe a
Prelude.Nothing,
      $sel:softwareVersion:DeviceData' :: Maybe Text
softwareVersion = forall a. Maybe a
Prelude.Nothing
    }

-- | The time (in epoch) when the device data was created.
deviceData_createdTime :: Lens.Lens' DeviceData (Prelude.Maybe Prelude.UTCTime)
deviceData_createdTime :: Lens' DeviceData (Maybe UTCTime)
deviceData_createdTime = 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) 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 (a :: Format). Iso' (Time a) UTCTime
Data._Time

-- | The ARN of a device.
deviceData_deviceArn :: Lens.Lens' DeviceData (Prelude.Maybe Prelude.Text)
deviceData_deviceArn :: Lens' DeviceData (Maybe Text)
deviceData_deviceArn = 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)

-- | The name of a device.
deviceData_deviceName :: Lens.Lens' DeviceData (Prelude.Maybe Prelude.Text)
deviceData_deviceName :: Lens' DeviceData (Maybe Text)
deviceData_deviceName = 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)

-- | The serial number of a device.
deviceData_deviceSerialNumber :: Lens.Lens' DeviceData (Prelude.Maybe Prelude.Text)
deviceData_deviceSerialNumber :: Lens' DeviceData (Maybe Text)
deviceData_deviceSerialNumber = 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)

-- | The status of a device.
deviceData_deviceStatus :: Lens.Lens' DeviceData (Prelude.Maybe DeviceStatus)
deviceData_deviceStatus :: Lens' DeviceData (Maybe DeviceStatus)
deviceData_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)

-- | Detailed information about a device\'s status.
deviceData_deviceStatusInfo :: Lens.Lens' DeviceData (Prelude.Maybe DeviceStatusInfo)
deviceData_deviceStatusInfo :: Lens' DeviceData (Maybe DeviceStatusInfo)
deviceData_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)

-- | The type of a device.
deviceData_deviceType :: Lens.Lens' DeviceData (Prelude.Maybe Prelude.Text)
deviceData_deviceType :: Lens' DeviceData (Maybe Text)
deviceData_deviceType = 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)

-- | The MAC address of a device.
deviceData_macAddress :: Lens.Lens' DeviceData (Prelude.Maybe Prelude.Text)
deviceData_macAddress :: Lens' DeviceData (Maybe Text)
deviceData_macAddress = 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)

-- | The ARN of the network profile associated with a device.
deviceData_networkProfileArn :: Lens.Lens' DeviceData (Prelude.Maybe Prelude.Text)
deviceData_networkProfileArn :: Lens' DeviceData (Maybe Text)
deviceData_networkProfileArn = 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)

-- | The name of the network profile associated with a device.
deviceData_networkProfileName :: Lens.Lens' DeviceData (Prelude.Maybe Prelude.Text)
deviceData_networkProfileName :: Lens' DeviceData (Maybe Text)
deviceData_networkProfileName = 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)

-- | The room ARN associated with a device.
deviceData_roomArn :: Lens.Lens' DeviceData (Prelude.Maybe Prelude.Text)
deviceData_roomArn :: Lens' DeviceData (Maybe Text)
deviceData_roomArn = 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)

-- | The name of the room associated with a device.
deviceData_roomName :: Lens.Lens' DeviceData (Prelude.Maybe Prelude.Text)
deviceData_roomName :: Lens' DeviceData (Maybe Text)
deviceData_roomName = 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)

-- | The software version of a device.
deviceData_softwareVersion :: Lens.Lens' DeviceData (Prelude.Maybe Prelude.Text)
deviceData_softwareVersion :: Lens' DeviceData (Maybe Text)
deviceData_softwareVersion = 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)

instance Data.FromJSON DeviceData where
  parseJSON :: Value -> Parser DeviceData
parseJSON =
    forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
      String
"DeviceData"
      ( \Object
x ->
          Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe DeviceStatus
-> Maybe DeviceStatusInfo
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> DeviceData
DeviceData'
            forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"CreatedTime")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"DeviceArn")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"DeviceName")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"DeviceSerialNumber")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"DeviceStatus")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"DeviceStatusInfo")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"DeviceType")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"MacAddress")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"NetworkProfileArn")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"NetworkProfileName")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"RoomArn")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"RoomName")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"SoftwareVersion")
      )

instance Prelude.Hashable DeviceData where
  hashWithSalt :: Int -> DeviceData -> Int
hashWithSalt Int
_salt DeviceData' {Maybe Text
Maybe POSIX
Maybe DeviceStatus
Maybe DeviceStatusInfo
softwareVersion :: Maybe Text
roomName :: Maybe Text
roomArn :: Maybe Text
networkProfileName :: Maybe Text
networkProfileArn :: Maybe Text
macAddress :: Maybe Text
deviceType :: Maybe Text
deviceStatusInfo :: Maybe DeviceStatusInfo
deviceStatus :: Maybe DeviceStatus
deviceSerialNumber :: Maybe Text
deviceName :: Maybe Text
deviceArn :: Maybe Text
createdTime :: Maybe POSIX
$sel:softwareVersion:DeviceData' :: DeviceData -> Maybe Text
$sel:roomName:DeviceData' :: DeviceData -> Maybe Text
$sel:roomArn:DeviceData' :: DeviceData -> Maybe Text
$sel:networkProfileName:DeviceData' :: DeviceData -> Maybe Text
$sel:networkProfileArn:DeviceData' :: DeviceData -> Maybe Text
$sel:macAddress:DeviceData' :: DeviceData -> Maybe Text
$sel:deviceType:DeviceData' :: DeviceData -> Maybe Text
$sel:deviceStatusInfo:DeviceData' :: DeviceData -> Maybe DeviceStatusInfo
$sel:deviceStatus:DeviceData' :: DeviceData -> Maybe DeviceStatus
$sel:deviceSerialNumber:DeviceData' :: DeviceData -> Maybe Text
$sel:deviceName:DeviceData' :: DeviceData -> Maybe Text
$sel:deviceArn:DeviceData' :: DeviceData -> Maybe Text
$sel:createdTime:DeviceData' :: DeviceData -> Maybe POSIX
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe POSIX
createdTime
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
deviceArn
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
deviceName
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
deviceSerialNumber
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe DeviceStatus
deviceStatus
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe DeviceStatusInfo
deviceStatusInfo
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
deviceType
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
macAddress
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
networkProfileArn
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
networkProfileName
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
roomArn
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
roomName
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
softwareVersion

instance Prelude.NFData DeviceData where
  rnf :: DeviceData -> ()
rnf DeviceData' {Maybe Text
Maybe POSIX
Maybe DeviceStatus
Maybe DeviceStatusInfo
softwareVersion :: Maybe Text
roomName :: Maybe Text
roomArn :: Maybe Text
networkProfileName :: Maybe Text
networkProfileArn :: Maybe Text
macAddress :: Maybe Text
deviceType :: Maybe Text
deviceStatusInfo :: Maybe DeviceStatusInfo
deviceStatus :: Maybe DeviceStatus
deviceSerialNumber :: Maybe Text
deviceName :: Maybe Text
deviceArn :: Maybe Text
createdTime :: Maybe POSIX
$sel:softwareVersion:DeviceData' :: DeviceData -> Maybe Text
$sel:roomName:DeviceData' :: DeviceData -> Maybe Text
$sel:roomArn:DeviceData' :: DeviceData -> Maybe Text
$sel:networkProfileName:DeviceData' :: DeviceData -> Maybe Text
$sel:networkProfileArn:DeviceData' :: DeviceData -> Maybe Text
$sel:macAddress:DeviceData' :: DeviceData -> Maybe Text
$sel:deviceType:DeviceData' :: DeviceData -> Maybe Text
$sel:deviceStatusInfo:DeviceData' :: DeviceData -> Maybe DeviceStatusInfo
$sel:deviceStatus:DeviceData' :: DeviceData -> Maybe DeviceStatus
$sel:deviceSerialNumber:DeviceData' :: DeviceData -> Maybe Text
$sel:deviceName:DeviceData' :: DeviceData -> Maybe Text
$sel:deviceArn:DeviceData' :: DeviceData -> Maybe Text
$sel:createdTime:DeviceData' :: DeviceData -> Maybe POSIX
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
createdTime
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
deviceArn
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
deviceName
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
deviceSerialNumber
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe DeviceStatus
deviceStatus
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe DeviceStatusInfo
deviceStatusInfo
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
deviceType
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
macAddress
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
networkProfileArn
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
networkProfileName
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
roomArn
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
roomName
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
softwareVersion