{-# 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.MediaLive.Types.InputDeviceSummary where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
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
data InputDeviceSummary = InputDeviceSummary'
{
InputDeviceSummary -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
InputDeviceSummary -> Maybe Text
macAddress :: Prelude.Maybe Prelude.Text,
InputDeviceSummary -> Maybe InputDeviceHdSettings
hdDeviceSettings :: Prelude.Maybe InputDeviceHdSettings,
InputDeviceSummary -> Maybe InputDeviceUhdSettings
uhdDeviceSettings :: Prelude.Maybe InputDeviceUhdSettings,
InputDeviceSummary -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
InputDeviceSummary -> Maybe Text
id :: Prelude.Maybe Prelude.Text,
InputDeviceSummary -> Maybe DeviceUpdateStatus
deviceUpdateStatus :: Prelude.Maybe DeviceUpdateStatus,
InputDeviceSummary -> Maybe DeviceSettingsSyncState
deviceSettingsSyncState :: Prelude.Maybe DeviceSettingsSyncState,
InputDeviceSummary -> Maybe InputDeviceType
type' :: Prelude.Maybe InputDeviceType,
InputDeviceSummary -> Maybe Text
serialNumber :: Prelude.Maybe Prelude.Text,
InputDeviceSummary -> Maybe InputDeviceNetworkSettings
networkSettings :: Prelude.Maybe InputDeviceNetworkSettings,
InputDeviceSummary -> Maybe InputDeviceConnectionState
connectionState :: Prelude.Maybe InputDeviceConnectionState
}
deriving (InputDeviceSummary -> InputDeviceSummary -> Bool
(InputDeviceSummary -> InputDeviceSummary -> Bool)
-> (InputDeviceSummary -> InputDeviceSummary -> Bool)
-> Eq InputDeviceSummary
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]
(Int -> ReadS InputDeviceSummary)
-> ReadS [InputDeviceSummary]
-> ReadPrec InputDeviceSummary
-> ReadPrec [InputDeviceSummary]
-> Read 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
(Int -> InputDeviceSummary -> ShowS)
-> (InputDeviceSummary -> String)
-> ([InputDeviceSummary] -> ShowS)
-> Show InputDeviceSummary
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. InputDeviceSummary -> Rep InputDeviceSummary x)
-> (forall x. Rep InputDeviceSummary x -> InputDeviceSummary)
-> Generic InputDeviceSummary
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)
newInputDeviceSummary ::
InputDeviceSummary
newInputDeviceSummary :: InputDeviceSummary
newInputDeviceSummary =
InputDeviceSummary' :: Maybe Text
-> Maybe Text
-> Maybe InputDeviceHdSettings
-> Maybe InputDeviceUhdSettings
-> Maybe Text
-> Maybe Text
-> Maybe DeviceUpdateStatus
-> Maybe DeviceSettingsSyncState
-> Maybe InputDeviceType
-> Maybe Text
-> Maybe InputDeviceNetworkSettings
-> Maybe InputDeviceConnectionState
-> InputDeviceSummary
InputDeviceSummary'
{ $sel:arn:InputDeviceSummary' :: Maybe Text
arn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:macAddress:InputDeviceSummary' :: Maybe Text
macAddress = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:hdDeviceSettings:InputDeviceSummary' :: Maybe InputDeviceHdSettings
hdDeviceSettings = Maybe InputDeviceHdSettings
forall a. Maybe a
Prelude.Nothing,
$sel:uhdDeviceSettings:InputDeviceSummary' :: Maybe InputDeviceUhdSettings
uhdDeviceSettings = Maybe InputDeviceUhdSettings
forall a. Maybe a
Prelude.Nothing,
$sel:name:InputDeviceSummary' :: Maybe Text
name = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:id:InputDeviceSummary' :: Maybe Text
id = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:deviceUpdateStatus:InputDeviceSummary' :: Maybe DeviceUpdateStatus
deviceUpdateStatus = Maybe DeviceUpdateStatus
forall a. Maybe a
Prelude.Nothing,
$sel:deviceSettingsSyncState:InputDeviceSummary' :: Maybe DeviceSettingsSyncState
deviceSettingsSyncState = Maybe DeviceSettingsSyncState
forall a. Maybe a
Prelude.Nothing,
$sel:type':InputDeviceSummary' :: Maybe InputDeviceType
type' = Maybe InputDeviceType
forall a. Maybe a
Prelude.Nothing,
$sel:serialNumber:InputDeviceSummary' :: Maybe Text
serialNumber = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:networkSettings:InputDeviceSummary' :: Maybe InputDeviceNetworkSettings
networkSettings = Maybe InputDeviceNetworkSettings
forall a. Maybe a
Prelude.Nothing,
$sel:connectionState:InputDeviceSummary' :: Maybe InputDeviceConnectionState
connectionState = Maybe InputDeviceConnectionState
forall a. Maybe a
Prelude.Nothing
}
inputDeviceSummary_arn :: Lens.Lens' InputDeviceSummary (Prelude.Maybe Prelude.Text)
inputDeviceSummary_arn :: (Maybe Text -> f (Maybe Text))
-> InputDeviceSummary -> f InputDeviceSummary
inputDeviceSummary_arn = (InputDeviceSummary -> Maybe Text)
-> (InputDeviceSummary -> Maybe Text -> InputDeviceSummary)
-> Lens
InputDeviceSummary InputDeviceSummary (Maybe Text) (Maybe Text)
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)
inputDeviceSummary_macAddress :: Lens.Lens' InputDeviceSummary (Prelude.Maybe Prelude.Text)
inputDeviceSummary_macAddress :: (Maybe Text -> f (Maybe Text))
-> InputDeviceSummary -> f InputDeviceSummary
inputDeviceSummary_macAddress = (InputDeviceSummary -> Maybe Text)
-> (InputDeviceSummary -> Maybe Text -> InputDeviceSummary)
-> Lens
InputDeviceSummary InputDeviceSummary (Maybe Text) (Maybe Text)
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)
inputDeviceSummary_hdDeviceSettings :: Lens.Lens' InputDeviceSummary (Prelude.Maybe InputDeviceHdSettings)
inputDeviceSummary_hdDeviceSettings :: (Maybe InputDeviceHdSettings -> f (Maybe InputDeviceHdSettings))
-> InputDeviceSummary -> f InputDeviceSummary
inputDeviceSummary_hdDeviceSettings = (InputDeviceSummary -> Maybe InputDeviceHdSettings)
-> (InputDeviceSummary
-> Maybe InputDeviceHdSettings -> InputDeviceSummary)
-> Lens
InputDeviceSummary
InputDeviceSummary
(Maybe InputDeviceHdSettings)
(Maybe InputDeviceHdSettings)
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)
inputDeviceSummary_uhdDeviceSettings :: Lens.Lens' InputDeviceSummary (Prelude.Maybe InputDeviceUhdSettings)
inputDeviceSummary_uhdDeviceSettings :: (Maybe InputDeviceUhdSettings -> f (Maybe InputDeviceUhdSettings))
-> InputDeviceSummary -> f InputDeviceSummary
inputDeviceSummary_uhdDeviceSettings = (InputDeviceSummary -> Maybe InputDeviceUhdSettings)
-> (InputDeviceSummary
-> Maybe InputDeviceUhdSettings -> InputDeviceSummary)
-> Lens
InputDeviceSummary
InputDeviceSummary
(Maybe InputDeviceUhdSettings)
(Maybe InputDeviceUhdSettings)
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)
inputDeviceSummary_name :: Lens.Lens' InputDeviceSummary (Prelude.Maybe Prelude.Text)
inputDeviceSummary_name :: (Maybe Text -> f (Maybe Text))
-> InputDeviceSummary -> f InputDeviceSummary
inputDeviceSummary_name = (InputDeviceSummary -> Maybe Text)
-> (InputDeviceSummary -> Maybe Text -> InputDeviceSummary)
-> Lens
InputDeviceSummary InputDeviceSummary (Maybe Text) (Maybe Text)
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)
inputDeviceSummary_id :: Lens.Lens' InputDeviceSummary (Prelude.Maybe Prelude.Text)
inputDeviceSummary_id :: (Maybe Text -> f (Maybe Text))
-> InputDeviceSummary -> f InputDeviceSummary
inputDeviceSummary_id = (InputDeviceSummary -> Maybe Text)
-> (InputDeviceSummary -> Maybe Text -> InputDeviceSummary)
-> Lens
InputDeviceSummary InputDeviceSummary (Maybe Text) (Maybe Text)
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)
inputDeviceSummary_deviceUpdateStatus :: Lens.Lens' InputDeviceSummary (Prelude.Maybe DeviceUpdateStatus)
inputDeviceSummary_deviceUpdateStatus :: (Maybe DeviceUpdateStatus -> f (Maybe DeviceUpdateStatus))
-> InputDeviceSummary -> f InputDeviceSummary
inputDeviceSummary_deviceUpdateStatus = (InputDeviceSummary -> Maybe DeviceUpdateStatus)
-> (InputDeviceSummary
-> Maybe DeviceUpdateStatus -> InputDeviceSummary)
-> Lens
InputDeviceSummary
InputDeviceSummary
(Maybe DeviceUpdateStatus)
(Maybe 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)
inputDeviceSummary_deviceSettingsSyncState :: Lens.Lens' InputDeviceSummary (Prelude.Maybe DeviceSettingsSyncState)
inputDeviceSummary_deviceSettingsSyncState :: (Maybe DeviceSettingsSyncState
-> f (Maybe DeviceSettingsSyncState))
-> InputDeviceSummary -> f InputDeviceSummary
inputDeviceSummary_deviceSettingsSyncState = (InputDeviceSummary -> Maybe DeviceSettingsSyncState)
-> (InputDeviceSummary
-> Maybe DeviceSettingsSyncState -> InputDeviceSummary)
-> Lens
InputDeviceSummary
InputDeviceSummary
(Maybe DeviceSettingsSyncState)
(Maybe 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)
inputDeviceSummary_type :: Lens.Lens' InputDeviceSummary (Prelude.Maybe InputDeviceType)
inputDeviceSummary_type :: (Maybe InputDeviceType -> f (Maybe InputDeviceType))
-> InputDeviceSummary -> f InputDeviceSummary
inputDeviceSummary_type = (InputDeviceSummary -> Maybe InputDeviceType)
-> (InputDeviceSummary
-> Maybe InputDeviceType -> InputDeviceSummary)
-> Lens
InputDeviceSummary
InputDeviceSummary
(Maybe InputDeviceType)
(Maybe InputDeviceType)
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)
inputDeviceSummary_serialNumber :: Lens.Lens' InputDeviceSummary (Prelude.Maybe Prelude.Text)
inputDeviceSummary_serialNumber :: (Maybe Text -> f (Maybe Text))
-> InputDeviceSummary -> f InputDeviceSummary
inputDeviceSummary_serialNumber = (InputDeviceSummary -> Maybe Text)
-> (InputDeviceSummary -> Maybe Text -> InputDeviceSummary)
-> Lens
InputDeviceSummary InputDeviceSummary (Maybe Text) (Maybe Text)
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)
inputDeviceSummary_networkSettings :: Lens.Lens' InputDeviceSummary (Prelude.Maybe InputDeviceNetworkSettings)
inputDeviceSummary_networkSettings :: (Maybe InputDeviceNetworkSettings
-> f (Maybe InputDeviceNetworkSettings))
-> InputDeviceSummary -> f InputDeviceSummary
inputDeviceSummary_networkSettings = (InputDeviceSummary -> Maybe InputDeviceNetworkSettings)
-> (InputDeviceSummary
-> Maybe InputDeviceNetworkSettings -> InputDeviceSummary)
-> Lens
InputDeviceSummary
InputDeviceSummary
(Maybe InputDeviceNetworkSettings)
(Maybe InputDeviceNetworkSettings)
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)
inputDeviceSummary_connectionState :: Lens.Lens' InputDeviceSummary (Prelude.Maybe InputDeviceConnectionState)
inputDeviceSummary_connectionState :: (Maybe InputDeviceConnectionState
-> f (Maybe InputDeviceConnectionState))
-> InputDeviceSummary -> f InputDeviceSummary
inputDeviceSummary_connectionState = (InputDeviceSummary -> Maybe InputDeviceConnectionState)
-> (InputDeviceSummary
-> Maybe InputDeviceConnectionState -> InputDeviceSummary)
-> Lens
InputDeviceSummary
InputDeviceSummary
(Maybe InputDeviceConnectionState)
(Maybe InputDeviceConnectionState)
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)
instance Core.FromJSON InputDeviceSummary where
parseJSON :: Value -> Parser InputDeviceSummary
parseJSON =
String
-> (Object -> Parser InputDeviceSummary)
-> Value
-> Parser InputDeviceSummary
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"InputDeviceSummary"
( \Object
x ->
Maybe Text
-> Maybe Text
-> Maybe InputDeviceHdSettings
-> Maybe InputDeviceUhdSettings
-> Maybe Text
-> Maybe Text
-> Maybe DeviceUpdateStatus
-> Maybe DeviceSettingsSyncState
-> Maybe InputDeviceType
-> Maybe Text
-> Maybe InputDeviceNetworkSettings
-> Maybe InputDeviceConnectionState
-> InputDeviceSummary
InputDeviceSummary'
(Maybe Text
-> Maybe Text
-> Maybe InputDeviceHdSettings
-> Maybe InputDeviceUhdSettings
-> Maybe Text
-> Maybe Text
-> Maybe DeviceUpdateStatus
-> Maybe DeviceSettingsSyncState
-> Maybe InputDeviceType
-> Maybe Text
-> Maybe InputDeviceNetworkSettings
-> Maybe InputDeviceConnectionState
-> InputDeviceSummary)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe InputDeviceHdSettings
-> Maybe InputDeviceUhdSettings
-> Maybe Text
-> Maybe Text
-> Maybe DeviceUpdateStatus
-> Maybe DeviceSettingsSyncState
-> Maybe InputDeviceType
-> Maybe Text
-> Maybe InputDeviceNetworkSettings
-> Maybe InputDeviceConnectionState
-> InputDeviceSummary)
forall (f :: * -> *) a b. Functor 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
"arn")
Parser
(Maybe Text
-> Maybe InputDeviceHdSettings
-> Maybe InputDeviceUhdSettings
-> Maybe Text
-> Maybe Text
-> Maybe DeviceUpdateStatus
-> Maybe DeviceSettingsSyncState
-> Maybe InputDeviceType
-> Maybe Text
-> Maybe InputDeviceNetworkSettings
-> Maybe InputDeviceConnectionState
-> InputDeviceSummary)
-> Parser (Maybe Text)
-> Parser
(Maybe InputDeviceHdSettings
-> Maybe InputDeviceUhdSettings
-> Maybe Text
-> Maybe Text
-> Maybe DeviceUpdateStatus
-> Maybe DeviceSettingsSyncState
-> Maybe InputDeviceType
-> Maybe Text
-> Maybe InputDeviceNetworkSettings
-> Maybe InputDeviceConnectionState
-> InputDeviceSummary)
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 InputDeviceHdSettings
-> Maybe InputDeviceUhdSettings
-> Maybe Text
-> Maybe Text
-> Maybe DeviceUpdateStatus
-> Maybe DeviceSettingsSyncState
-> Maybe InputDeviceType
-> Maybe Text
-> Maybe InputDeviceNetworkSettings
-> Maybe InputDeviceConnectionState
-> InputDeviceSummary)
-> Parser (Maybe InputDeviceHdSettings)
-> Parser
(Maybe InputDeviceUhdSettings
-> Maybe Text
-> Maybe Text
-> Maybe DeviceUpdateStatus
-> Maybe DeviceSettingsSyncState
-> Maybe InputDeviceType
-> Maybe Text
-> Maybe InputDeviceNetworkSettings
-> Maybe InputDeviceConnectionState
-> InputDeviceSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe InputDeviceHdSettings)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"hdDeviceSettings")
Parser
(Maybe InputDeviceUhdSettings
-> Maybe Text
-> Maybe Text
-> Maybe DeviceUpdateStatus
-> Maybe DeviceSettingsSyncState
-> Maybe InputDeviceType
-> Maybe Text
-> Maybe InputDeviceNetworkSettings
-> Maybe InputDeviceConnectionState
-> InputDeviceSummary)
-> Parser (Maybe InputDeviceUhdSettings)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe DeviceUpdateStatus
-> Maybe DeviceSettingsSyncState
-> Maybe InputDeviceType
-> Maybe Text
-> Maybe InputDeviceNetworkSettings
-> Maybe InputDeviceConnectionState
-> InputDeviceSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe InputDeviceUhdSettings)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"uhdDeviceSettings")
Parser
(Maybe Text
-> Maybe Text
-> Maybe DeviceUpdateStatus
-> Maybe DeviceSettingsSyncState
-> Maybe InputDeviceType
-> Maybe Text
-> Maybe InputDeviceNetworkSettings
-> Maybe InputDeviceConnectionState
-> InputDeviceSummary)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe DeviceUpdateStatus
-> Maybe DeviceSettingsSyncState
-> Maybe InputDeviceType
-> Maybe Text
-> Maybe InputDeviceNetworkSettings
-> Maybe InputDeviceConnectionState
-> InputDeviceSummary)
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
"name")
Parser
(Maybe Text
-> Maybe DeviceUpdateStatus
-> Maybe DeviceSettingsSyncState
-> Maybe InputDeviceType
-> Maybe Text
-> Maybe InputDeviceNetworkSettings
-> Maybe InputDeviceConnectionState
-> InputDeviceSummary)
-> Parser (Maybe Text)
-> Parser
(Maybe DeviceUpdateStatus
-> Maybe DeviceSettingsSyncState
-> Maybe InputDeviceType
-> Maybe Text
-> Maybe InputDeviceNetworkSettings
-> Maybe InputDeviceConnectionState
-> InputDeviceSummary)
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
"id")
Parser
(Maybe DeviceUpdateStatus
-> Maybe DeviceSettingsSyncState
-> Maybe InputDeviceType
-> Maybe Text
-> Maybe InputDeviceNetworkSettings
-> Maybe InputDeviceConnectionState
-> InputDeviceSummary)
-> Parser (Maybe DeviceUpdateStatus)
-> Parser
(Maybe DeviceSettingsSyncState
-> Maybe InputDeviceType
-> Maybe Text
-> Maybe InputDeviceNetworkSettings
-> Maybe InputDeviceConnectionState
-> InputDeviceSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe DeviceUpdateStatus)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"deviceUpdateStatus")
Parser
(Maybe DeviceSettingsSyncState
-> Maybe InputDeviceType
-> Maybe Text
-> Maybe InputDeviceNetworkSettings
-> Maybe InputDeviceConnectionState
-> InputDeviceSummary)
-> Parser (Maybe DeviceSettingsSyncState)
-> Parser
(Maybe InputDeviceType
-> Maybe Text
-> Maybe InputDeviceNetworkSettings
-> Maybe InputDeviceConnectionState
-> InputDeviceSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe DeviceSettingsSyncState)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"deviceSettingsSyncState")
Parser
(Maybe InputDeviceType
-> Maybe Text
-> Maybe InputDeviceNetworkSettings
-> Maybe InputDeviceConnectionState
-> InputDeviceSummary)
-> Parser (Maybe InputDeviceType)
-> Parser
(Maybe Text
-> Maybe InputDeviceNetworkSettings
-> Maybe InputDeviceConnectionState
-> InputDeviceSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe InputDeviceType)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"type")
Parser
(Maybe Text
-> Maybe InputDeviceNetworkSettings
-> Maybe InputDeviceConnectionState
-> InputDeviceSummary)
-> Parser (Maybe Text)
-> Parser
(Maybe InputDeviceNetworkSettings
-> Maybe InputDeviceConnectionState -> InputDeviceSummary)
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
"serialNumber")
Parser
(Maybe InputDeviceNetworkSettings
-> Maybe InputDeviceConnectionState -> InputDeviceSummary)
-> Parser (Maybe InputDeviceNetworkSettings)
-> Parser (Maybe InputDeviceConnectionState -> InputDeviceSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe InputDeviceNetworkSettings)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"networkSettings")
Parser (Maybe InputDeviceConnectionState -> InputDeviceSummary)
-> Parser (Maybe InputDeviceConnectionState)
-> Parser InputDeviceSummary
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe InputDeviceConnectionState)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"connectionState")
)
instance Prelude.Hashable InputDeviceSummary
instance Prelude.NFData InputDeviceSummary