{-# 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.MediaLive.Types.InputDeviceSummary
-- 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.MediaLive.Types.InputDeviceSummary where

import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.MediaLive.Types.DeviceSettingsSyncState
import Amazonka.MediaLive.Types.DeviceUpdateStatus
import Amazonka.MediaLive.Types.InputDeviceConnectionState
import Amazonka.MediaLive.Types.InputDeviceHdSettings
import Amazonka.MediaLive.Types.InputDeviceNetworkSettings
import Amazonka.MediaLive.Types.InputDeviceType
import Amazonka.MediaLive.Types.InputDeviceUhdSettings
import qualified Amazonka.Prelude as Prelude

-- | Details of the input device.
--
-- /See:/ 'newInputDeviceSummary' smart constructor.
data InputDeviceSummary = InputDeviceSummary'
  { -- | The unique ARN of the input device.
    InputDeviceSummary -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
    -- | The state of the connection between the input device and AWS.
    InputDeviceSummary -> Maybe InputDeviceConnectionState
connectionState :: Prelude.Maybe InputDeviceConnectionState,
    -- | The status of the action to synchronize the device configuration. If you
    -- change the configuration of the input device (for example, the maximum
    -- bitrate), MediaLive sends the new data to the device. The device might
    -- not update itself immediately. SYNCED means the device has updated its
    -- configuration. SYNCING means that it has not updated its configuration.
    InputDeviceSummary -> Maybe DeviceSettingsSyncState
deviceSettingsSyncState :: Prelude.Maybe DeviceSettingsSyncState,
    -- | The status of software on the input device.
    InputDeviceSummary -> Maybe DeviceUpdateStatus
deviceUpdateStatus :: Prelude.Maybe DeviceUpdateStatus,
    -- | Settings that describe an input device that is type HD.
    InputDeviceSummary -> Maybe InputDeviceHdSettings
hdDeviceSettings :: Prelude.Maybe InputDeviceHdSettings,
    -- | The unique ID of the input device.
    InputDeviceSummary -> Maybe Text
id :: Prelude.Maybe Prelude.Text,
    -- | The network MAC address of the input device.
    InputDeviceSummary -> Maybe Text
macAddress :: Prelude.Maybe Prelude.Text,
    -- | A name that you specify for the input device.
    InputDeviceSummary -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
    -- | Network settings for the input device.
    InputDeviceSummary -> Maybe InputDeviceNetworkSettings
networkSettings :: Prelude.Maybe InputDeviceNetworkSettings,
    -- | The unique serial number of the input device.
    InputDeviceSummary -> Maybe Text
serialNumber :: Prelude.Maybe Prelude.Text,
    -- | The type of the input device.
    InputDeviceSummary -> Maybe InputDeviceType
type' :: Prelude.Maybe InputDeviceType,
    -- | Settings that describe an input device that is type UHD.
    InputDeviceSummary -> Maybe InputDeviceUhdSettings
uhdDeviceSettings :: Prelude.Maybe InputDeviceUhdSettings
  }
  deriving (InputDeviceSummary -> InputDeviceSummary -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: InputDeviceSummary -> InputDeviceSummary -> Bool
$c/= :: InputDeviceSummary -> InputDeviceSummary -> Bool
== :: InputDeviceSummary -> InputDeviceSummary -> Bool
$c== :: InputDeviceSummary -> InputDeviceSummary -> Bool
Prelude.Eq, ReadPrec [InputDeviceSummary]
ReadPrec InputDeviceSummary
Int -> ReadS InputDeviceSummary
ReadS [InputDeviceSummary]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [InputDeviceSummary]
$creadListPrec :: ReadPrec [InputDeviceSummary]
readPrec :: ReadPrec InputDeviceSummary
$creadPrec :: ReadPrec InputDeviceSummary
readList :: ReadS [InputDeviceSummary]
$creadList :: ReadS [InputDeviceSummary]
readsPrec :: Int -> ReadS InputDeviceSummary
$creadsPrec :: Int -> ReadS InputDeviceSummary
Prelude.Read, Int -> InputDeviceSummary -> ShowS
[InputDeviceSummary] -> ShowS
InputDeviceSummary -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [InputDeviceSummary] -> ShowS
$cshowList :: [InputDeviceSummary] -> ShowS
show :: InputDeviceSummary -> String
$cshow :: InputDeviceSummary -> String
showsPrec :: Int -> InputDeviceSummary -> ShowS
$cshowsPrec :: Int -> InputDeviceSummary -> ShowS
Prelude.Show, forall x. Rep InputDeviceSummary x -> InputDeviceSummary
forall x. InputDeviceSummary -> Rep InputDeviceSummary x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep InputDeviceSummary x -> InputDeviceSummary
$cfrom :: forall x. InputDeviceSummary -> Rep InputDeviceSummary x
Prelude.Generic)

-- |
-- Create a value of 'InputDeviceSummary' 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', 'inputDeviceSummary_arn' - The unique ARN of the input device.
--
-- 'connectionState', 'inputDeviceSummary_connectionState' - The state of the connection between the input device and AWS.
--
-- 'deviceSettingsSyncState', 'inputDeviceSummary_deviceSettingsSyncState' - The status of the action to synchronize the device configuration. If you
-- change the configuration of the input device (for example, the maximum
-- bitrate), MediaLive sends the new data to the device. The device might
-- not update itself immediately. SYNCED means the device has updated its
-- configuration. SYNCING means that it has not updated its configuration.
--
-- 'deviceUpdateStatus', 'inputDeviceSummary_deviceUpdateStatus' - The status of software on the input device.
--
-- 'hdDeviceSettings', 'inputDeviceSummary_hdDeviceSettings' - Settings that describe an input device that is type HD.
--
-- 'id', 'inputDeviceSummary_id' - The unique ID of the input device.
--
-- 'macAddress', 'inputDeviceSummary_macAddress' - The network MAC address of the input device.
--
-- 'name', 'inputDeviceSummary_name' - A name that you specify for the input device.
--
-- 'networkSettings', 'inputDeviceSummary_networkSettings' - Network settings for the input device.
--
-- 'serialNumber', 'inputDeviceSummary_serialNumber' - The unique serial number of the input device.
--
-- 'type'', 'inputDeviceSummary_type' - The type of the input device.
--
-- 'uhdDeviceSettings', 'inputDeviceSummary_uhdDeviceSettings' - Settings that describe an input device that is type UHD.
newInputDeviceSummary ::
  InputDeviceSummary
newInputDeviceSummary :: InputDeviceSummary
newInputDeviceSummary =
  InputDeviceSummary'
    { $sel:arn:InputDeviceSummary' :: Maybe Text
arn = forall a. Maybe a
Prelude.Nothing,
      $sel:connectionState:InputDeviceSummary' :: Maybe InputDeviceConnectionState
connectionState = forall a. Maybe a
Prelude.Nothing,
      $sel:deviceSettingsSyncState:InputDeviceSummary' :: Maybe DeviceSettingsSyncState
deviceSettingsSyncState = forall a. Maybe a
Prelude.Nothing,
      $sel:deviceUpdateStatus:InputDeviceSummary' :: Maybe DeviceUpdateStatus
deviceUpdateStatus = forall a. Maybe a
Prelude.Nothing,
      $sel:hdDeviceSettings:InputDeviceSummary' :: Maybe InputDeviceHdSettings
hdDeviceSettings = forall a. Maybe a
Prelude.Nothing,
      $sel:id:InputDeviceSummary' :: Maybe Text
id = forall a. Maybe a
Prelude.Nothing,
      $sel:macAddress:InputDeviceSummary' :: Maybe Text
macAddress = forall a. Maybe a
Prelude.Nothing,
      $sel:name:InputDeviceSummary' :: Maybe Text
name = forall a. Maybe a
Prelude.Nothing,
      $sel:networkSettings:InputDeviceSummary' :: Maybe InputDeviceNetworkSettings
networkSettings = forall a. Maybe a
Prelude.Nothing,
      $sel:serialNumber:InputDeviceSummary' :: Maybe Text
serialNumber = forall a. Maybe a
Prelude.Nothing,
      $sel:type':InputDeviceSummary' :: Maybe InputDeviceType
type' = forall a. Maybe a
Prelude.Nothing,
      $sel:uhdDeviceSettings:InputDeviceSummary' :: Maybe InputDeviceUhdSettings
uhdDeviceSettings = forall a. Maybe a
Prelude.Nothing
    }

-- | The unique ARN of the input device.
inputDeviceSummary_arn :: Lens.Lens' InputDeviceSummary (Prelude.Maybe Prelude.Text)
inputDeviceSummary_arn :: Lens' InputDeviceSummary (Maybe Text)
inputDeviceSummary_arn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\InputDeviceSummary' {Maybe Text
arn :: Maybe Text
$sel:arn:InputDeviceSummary' :: InputDeviceSummary -> Maybe Text
arn} -> Maybe Text
arn) (\s :: InputDeviceSummary
s@InputDeviceSummary' {} Maybe Text
a -> InputDeviceSummary
s {$sel:arn:InputDeviceSummary' :: Maybe Text
arn = Maybe Text
a} :: InputDeviceSummary)

-- | The state of the connection between the input device and AWS.
inputDeviceSummary_connectionState :: Lens.Lens' InputDeviceSummary (Prelude.Maybe InputDeviceConnectionState)
inputDeviceSummary_connectionState :: Lens' InputDeviceSummary (Maybe InputDeviceConnectionState)
inputDeviceSummary_connectionState = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\InputDeviceSummary' {Maybe InputDeviceConnectionState
connectionState :: Maybe InputDeviceConnectionState
$sel:connectionState:InputDeviceSummary' :: InputDeviceSummary -> Maybe InputDeviceConnectionState
connectionState} -> Maybe InputDeviceConnectionState
connectionState) (\s :: InputDeviceSummary
s@InputDeviceSummary' {} Maybe InputDeviceConnectionState
a -> InputDeviceSummary
s {$sel:connectionState:InputDeviceSummary' :: Maybe InputDeviceConnectionState
connectionState = Maybe InputDeviceConnectionState
a} :: InputDeviceSummary)

-- | The status of the action to synchronize the device configuration. If you
-- change the configuration of the input device (for example, the maximum
-- bitrate), MediaLive sends the new data to the device. The device might
-- not update itself immediately. SYNCED means the device has updated its
-- configuration. SYNCING means that it has not updated its configuration.
inputDeviceSummary_deviceSettingsSyncState :: Lens.Lens' InputDeviceSummary (Prelude.Maybe DeviceSettingsSyncState)
inputDeviceSummary_deviceSettingsSyncState :: Lens' InputDeviceSummary (Maybe DeviceSettingsSyncState)
inputDeviceSummary_deviceSettingsSyncState = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\InputDeviceSummary' {Maybe DeviceSettingsSyncState
deviceSettingsSyncState :: Maybe DeviceSettingsSyncState
$sel:deviceSettingsSyncState:InputDeviceSummary' :: InputDeviceSummary -> Maybe DeviceSettingsSyncState
deviceSettingsSyncState} -> Maybe DeviceSettingsSyncState
deviceSettingsSyncState) (\s :: InputDeviceSummary
s@InputDeviceSummary' {} Maybe DeviceSettingsSyncState
a -> InputDeviceSummary
s {$sel:deviceSettingsSyncState:InputDeviceSummary' :: Maybe DeviceSettingsSyncState
deviceSettingsSyncState = Maybe DeviceSettingsSyncState
a} :: InputDeviceSummary)

-- | The status of software on the input device.
inputDeviceSummary_deviceUpdateStatus :: Lens.Lens' InputDeviceSummary (Prelude.Maybe DeviceUpdateStatus)
inputDeviceSummary_deviceUpdateStatus :: Lens' InputDeviceSummary (Maybe DeviceUpdateStatus)
inputDeviceSummary_deviceUpdateStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\InputDeviceSummary' {Maybe DeviceUpdateStatus
deviceUpdateStatus :: Maybe DeviceUpdateStatus
$sel:deviceUpdateStatus:InputDeviceSummary' :: InputDeviceSummary -> Maybe DeviceUpdateStatus
deviceUpdateStatus} -> Maybe DeviceUpdateStatus
deviceUpdateStatus) (\s :: InputDeviceSummary
s@InputDeviceSummary' {} Maybe DeviceUpdateStatus
a -> InputDeviceSummary
s {$sel:deviceUpdateStatus:InputDeviceSummary' :: Maybe DeviceUpdateStatus
deviceUpdateStatus = Maybe DeviceUpdateStatus
a} :: InputDeviceSummary)

-- | Settings that describe an input device that is type HD.
inputDeviceSummary_hdDeviceSettings :: Lens.Lens' InputDeviceSummary (Prelude.Maybe InputDeviceHdSettings)
inputDeviceSummary_hdDeviceSettings :: Lens' InputDeviceSummary (Maybe InputDeviceHdSettings)
inputDeviceSummary_hdDeviceSettings = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\InputDeviceSummary' {Maybe InputDeviceHdSettings
hdDeviceSettings :: Maybe InputDeviceHdSettings
$sel:hdDeviceSettings:InputDeviceSummary' :: InputDeviceSummary -> Maybe InputDeviceHdSettings
hdDeviceSettings} -> Maybe InputDeviceHdSettings
hdDeviceSettings) (\s :: InputDeviceSummary
s@InputDeviceSummary' {} Maybe InputDeviceHdSettings
a -> InputDeviceSummary
s {$sel:hdDeviceSettings:InputDeviceSummary' :: Maybe InputDeviceHdSettings
hdDeviceSettings = Maybe InputDeviceHdSettings
a} :: InputDeviceSummary)

-- | The unique ID of the input device.
inputDeviceSummary_id :: Lens.Lens' InputDeviceSummary (Prelude.Maybe Prelude.Text)
inputDeviceSummary_id :: Lens' InputDeviceSummary (Maybe Text)
inputDeviceSummary_id = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\InputDeviceSummary' {Maybe Text
id :: Maybe Text
$sel:id:InputDeviceSummary' :: InputDeviceSummary -> Maybe Text
id} -> Maybe Text
id) (\s :: InputDeviceSummary
s@InputDeviceSummary' {} Maybe Text
a -> InputDeviceSummary
s {$sel:id:InputDeviceSummary' :: Maybe Text
id = Maybe Text
a} :: InputDeviceSummary)

-- | The network MAC address of the input device.
inputDeviceSummary_macAddress :: Lens.Lens' InputDeviceSummary (Prelude.Maybe Prelude.Text)
inputDeviceSummary_macAddress :: Lens' InputDeviceSummary (Maybe Text)
inputDeviceSummary_macAddress = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\InputDeviceSummary' {Maybe Text
macAddress :: Maybe Text
$sel:macAddress:InputDeviceSummary' :: InputDeviceSummary -> Maybe Text
macAddress} -> Maybe Text
macAddress) (\s :: InputDeviceSummary
s@InputDeviceSummary' {} Maybe Text
a -> InputDeviceSummary
s {$sel:macAddress:InputDeviceSummary' :: Maybe Text
macAddress = Maybe Text
a} :: InputDeviceSummary)

-- | A name that you specify for the input device.
inputDeviceSummary_name :: Lens.Lens' InputDeviceSummary (Prelude.Maybe Prelude.Text)
inputDeviceSummary_name :: Lens' InputDeviceSummary (Maybe Text)
inputDeviceSummary_name = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\InputDeviceSummary' {Maybe Text
name :: Maybe Text
$sel:name:InputDeviceSummary' :: InputDeviceSummary -> Maybe Text
name} -> Maybe Text
name) (\s :: InputDeviceSummary
s@InputDeviceSummary' {} Maybe Text
a -> InputDeviceSummary
s {$sel:name:InputDeviceSummary' :: Maybe Text
name = Maybe Text
a} :: InputDeviceSummary)

-- | Network settings for the input device.
inputDeviceSummary_networkSettings :: Lens.Lens' InputDeviceSummary (Prelude.Maybe InputDeviceNetworkSettings)
inputDeviceSummary_networkSettings :: Lens' InputDeviceSummary (Maybe InputDeviceNetworkSettings)
inputDeviceSummary_networkSettings = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\InputDeviceSummary' {Maybe InputDeviceNetworkSettings
networkSettings :: Maybe InputDeviceNetworkSettings
$sel:networkSettings:InputDeviceSummary' :: InputDeviceSummary -> Maybe InputDeviceNetworkSettings
networkSettings} -> Maybe InputDeviceNetworkSettings
networkSettings) (\s :: InputDeviceSummary
s@InputDeviceSummary' {} Maybe InputDeviceNetworkSettings
a -> InputDeviceSummary
s {$sel:networkSettings:InputDeviceSummary' :: Maybe InputDeviceNetworkSettings
networkSettings = Maybe InputDeviceNetworkSettings
a} :: InputDeviceSummary)

-- | The unique serial number of the input device.
inputDeviceSummary_serialNumber :: Lens.Lens' InputDeviceSummary (Prelude.Maybe Prelude.Text)
inputDeviceSummary_serialNumber :: Lens' InputDeviceSummary (Maybe Text)
inputDeviceSummary_serialNumber = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\InputDeviceSummary' {Maybe Text
serialNumber :: Maybe Text
$sel:serialNumber:InputDeviceSummary' :: InputDeviceSummary -> Maybe Text
serialNumber} -> Maybe Text
serialNumber) (\s :: InputDeviceSummary
s@InputDeviceSummary' {} Maybe Text
a -> InputDeviceSummary
s {$sel:serialNumber:InputDeviceSummary' :: Maybe Text
serialNumber = Maybe Text
a} :: InputDeviceSummary)

-- | The type of the input device.
inputDeviceSummary_type :: Lens.Lens' InputDeviceSummary (Prelude.Maybe InputDeviceType)
inputDeviceSummary_type :: Lens' InputDeviceSummary (Maybe InputDeviceType)
inputDeviceSummary_type = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\InputDeviceSummary' {Maybe InputDeviceType
type' :: Maybe InputDeviceType
$sel:type':InputDeviceSummary' :: InputDeviceSummary -> Maybe InputDeviceType
type'} -> Maybe InputDeviceType
type') (\s :: InputDeviceSummary
s@InputDeviceSummary' {} Maybe InputDeviceType
a -> InputDeviceSummary
s {$sel:type':InputDeviceSummary' :: Maybe InputDeviceType
type' = Maybe InputDeviceType
a} :: InputDeviceSummary)

-- | Settings that describe an input device that is type UHD.
inputDeviceSummary_uhdDeviceSettings :: Lens.Lens' InputDeviceSummary (Prelude.Maybe InputDeviceUhdSettings)
inputDeviceSummary_uhdDeviceSettings :: Lens' InputDeviceSummary (Maybe InputDeviceUhdSettings)
inputDeviceSummary_uhdDeviceSettings = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\InputDeviceSummary' {Maybe InputDeviceUhdSettings
uhdDeviceSettings :: Maybe InputDeviceUhdSettings
$sel:uhdDeviceSettings:InputDeviceSummary' :: InputDeviceSummary -> Maybe InputDeviceUhdSettings
uhdDeviceSettings} -> Maybe InputDeviceUhdSettings
uhdDeviceSettings) (\s :: InputDeviceSummary
s@InputDeviceSummary' {} Maybe InputDeviceUhdSettings
a -> InputDeviceSummary
s {$sel:uhdDeviceSettings:InputDeviceSummary' :: Maybe InputDeviceUhdSettings
uhdDeviceSettings = Maybe InputDeviceUhdSettings
a} :: InputDeviceSummary)

instance Data.FromJSON InputDeviceSummary where
  parseJSON :: Value -> Parser InputDeviceSummary
parseJSON =
    forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
      String
"InputDeviceSummary"
      ( \Object
x ->
          Maybe Text
-> Maybe InputDeviceConnectionState
-> Maybe DeviceSettingsSyncState
-> Maybe DeviceUpdateStatus
-> Maybe InputDeviceHdSettings
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe InputDeviceNetworkSettings
-> Maybe Text
-> Maybe InputDeviceType
-> Maybe InputDeviceUhdSettings
-> InputDeviceSummary
InputDeviceSummary'
            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
"arn")
            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
"connectionState")
            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
"deviceSettingsSyncState")
            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
"deviceUpdateStatus")
            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
"hdDeviceSettings")
            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
"id")
            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
"name")
            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
"networkSettings")
            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
"serialNumber")
            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
"type")
            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
"uhdDeviceSettings")
      )

instance Prelude.Hashable InputDeviceSummary where
  hashWithSalt :: Int -> InputDeviceSummary -> Int
hashWithSalt Int
_salt InputDeviceSummary' {Maybe Text
Maybe DeviceSettingsSyncState
Maybe DeviceUpdateStatus
Maybe InputDeviceConnectionState
Maybe InputDeviceNetworkSettings
Maybe InputDeviceHdSettings
Maybe InputDeviceType
Maybe InputDeviceUhdSettings
uhdDeviceSettings :: Maybe InputDeviceUhdSettings
type' :: Maybe InputDeviceType
serialNumber :: Maybe Text
networkSettings :: Maybe InputDeviceNetworkSettings
name :: Maybe Text
macAddress :: Maybe Text
id :: Maybe Text
hdDeviceSettings :: Maybe InputDeviceHdSettings
deviceUpdateStatus :: Maybe DeviceUpdateStatus
deviceSettingsSyncState :: Maybe DeviceSettingsSyncState
connectionState :: Maybe InputDeviceConnectionState
arn :: Maybe Text
$sel:uhdDeviceSettings:InputDeviceSummary' :: InputDeviceSummary -> Maybe InputDeviceUhdSettings
$sel:type':InputDeviceSummary' :: InputDeviceSummary -> Maybe InputDeviceType
$sel:serialNumber:InputDeviceSummary' :: InputDeviceSummary -> Maybe Text
$sel:networkSettings:InputDeviceSummary' :: InputDeviceSummary -> Maybe InputDeviceNetworkSettings
$sel:name:InputDeviceSummary' :: InputDeviceSummary -> Maybe Text
$sel:macAddress:InputDeviceSummary' :: InputDeviceSummary -> Maybe Text
$sel:id:InputDeviceSummary' :: InputDeviceSummary -> Maybe Text
$sel:hdDeviceSettings:InputDeviceSummary' :: InputDeviceSummary -> Maybe InputDeviceHdSettings
$sel:deviceUpdateStatus:InputDeviceSummary' :: InputDeviceSummary -> Maybe DeviceUpdateStatus
$sel:deviceSettingsSyncState:InputDeviceSummary' :: InputDeviceSummary -> Maybe DeviceSettingsSyncState
$sel:connectionState:InputDeviceSummary' :: InputDeviceSummary -> Maybe InputDeviceConnectionState
$sel:arn:InputDeviceSummary' :: InputDeviceSummary -> Maybe Text
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
arn
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe InputDeviceConnectionState
connectionState
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe DeviceSettingsSyncState
deviceSettingsSyncState
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe DeviceUpdateStatus
deviceUpdateStatus
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe InputDeviceHdSettings
hdDeviceSettings
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
id
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
macAddress
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
name
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe InputDeviceNetworkSettings
networkSettings
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
serialNumber
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe InputDeviceType
type'
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe InputDeviceUhdSettings
uhdDeviceSettings

instance Prelude.NFData InputDeviceSummary where
  rnf :: InputDeviceSummary -> ()
rnf InputDeviceSummary' {Maybe Text
Maybe DeviceSettingsSyncState
Maybe DeviceUpdateStatus
Maybe InputDeviceConnectionState
Maybe InputDeviceNetworkSettings
Maybe InputDeviceHdSettings
Maybe InputDeviceType
Maybe InputDeviceUhdSettings
uhdDeviceSettings :: Maybe InputDeviceUhdSettings
type' :: Maybe InputDeviceType
serialNumber :: Maybe Text
networkSettings :: Maybe InputDeviceNetworkSettings
name :: Maybe Text
macAddress :: Maybe Text
id :: Maybe Text
hdDeviceSettings :: Maybe InputDeviceHdSettings
deviceUpdateStatus :: Maybe DeviceUpdateStatus
deviceSettingsSyncState :: Maybe DeviceSettingsSyncState
connectionState :: Maybe InputDeviceConnectionState
arn :: Maybe Text
$sel:uhdDeviceSettings:InputDeviceSummary' :: InputDeviceSummary -> Maybe InputDeviceUhdSettings
$sel:type':InputDeviceSummary' :: InputDeviceSummary -> Maybe InputDeviceType
$sel:serialNumber:InputDeviceSummary' :: InputDeviceSummary -> Maybe Text
$sel:networkSettings:InputDeviceSummary' :: InputDeviceSummary -> Maybe InputDeviceNetworkSettings
$sel:name:InputDeviceSummary' :: InputDeviceSummary -> Maybe Text
$sel:macAddress:InputDeviceSummary' :: InputDeviceSummary -> Maybe Text
$sel:id:InputDeviceSummary' :: InputDeviceSummary -> Maybe Text
$sel:hdDeviceSettings:InputDeviceSummary' :: InputDeviceSummary -> Maybe InputDeviceHdSettings
$sel:deviceUpdateStatus:InputDeviceSummary' :: InputDeviceSummary -> Maybe DeviceUpdateStatus
$sel:deviceSettingsSyncState:InputDeviceSummary' :: InputDeviceSummary -> Maybe DeviceSettingsSyncState
$sel:connectionState:InputDeviceSummary' :: InputDeviceSummary -> Maybe InputDeviceConnectionState
$sel:arn:InputDeviceSummary' :: InputDeviceSummary -> 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 InputDeviceConnectionState
connectionState
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe DeviceSettingsSyncState
deviceSettingsSyncState
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe DeviceUpdateStatus
deviceUpdateStatus
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe InputDeviceHdSettings
hdDeviceSettings
      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 Maybe Text
macAddress
      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 InputDeviceNetworkSettings
networkSettings
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
serialNumber
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe InputDeviceType
type'
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe InputDeviceUhdSettings
uhdDeviceSettings