{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.MediaLive.DescribeInputDevice
(
DescribeInputDevice (..),
newDescribeInputDevice,
describeInputDevice_inputDeviceId,
DescribeInputDeviceResponse (..),
newDescribeInputDeviceResponse,
describeInputDeviceResponse_arn,
describeInputDeviceResponse_macAddress,
describeInputDeviceResponse_hdDeviceSettings,
describeInputDeviceResponse_uhdDeviceSettings,
describeInputDeviceResponse_name,
describeInputDeviceResponse_id,
describeInputDeviceResponse_deviceUpdateStatus,
describeInputDeviceResponse_deviceSettingsSyncState,
describeInputDeviceResponse_type,
describeInputDeviceResponse_serialNumber,
describeInputDeviceResponse_networkSettings,
describeInputDeviceResponse_connectionState,
describeInputDeviceResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.MediaLive.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data DescribeInputDevice = DescribeInputDevice'
{
DescribeInputDevice -> Text
inputDeviceId :: Prelude.Text
}
deriving (DescribeInputDevice -> DescribeInputDevice -> Bool
(DescribeInputDevice -> DescribeInputDevice -> Bool)
-> (DescribeInputDevice -> DescribeInputDevice -> Bool)
-> Eq DescribeInputDevice
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeInputDevice -> DescribeInputDevice -> Bool
$c/= :: DescribeInputDevice -> DescribeInputDevice -> Bool
== :: DescribeInputDevice -> DescribeInputDevice -> Bool
$c== :: DescribeInputDevice -> DescribeInputDevice -> Bool
Prelude.Eq, ReadPrec [DescribeInputDevice]
ReadPrec DescribeInputDevice
Int -> ReadS DescribeInputDevice
ReadS [DescribeInputDevice]
(Int -> ReadS DescribeInputDevice)
-> ReadS [DescribeInputDevice]
-> ReadPrec DescribeInputDevice
-> ReadPrec [DescribeInputDevice]
-> Read DescribeInputDevice
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeInputDevice]
$creadListPrec :: ReadPrec [DescribeInputDevice]
readPrec :: ReadPrec DescribeInputDevice
$creadPrec :: ReadPrec DescribeInputDevice
readList :: ReadS [DescribeInputDevice]
$creadList :: ReadS [DescribeInputDevice]
readsPrec :: Int -> ReadS DescribeInputDevice
$creadsPrec :: Int -> ReadS DescribeInputDevice
Prelude.Read, Int -> DescribeInputDevice -> ShowS
[DescribeInputDevice] -> ShowS
DescribeInputDevice -> String
(Int -> DescribeInputDevice -> ShowS)
-> (DescribeInputDevice -> String)
-> ([DescribeInputDevice] -> ShowS)
-> Show DescribeInputDevice
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeInputDevice] -> ShowS
$cshowList :: [DescribeInputDevice] -> ShowS
show :: DescribeInputDevice -> String
$cshow :: DescribeInputDevice -> String
showsPrec :: Int -> DescribeInputDevice -> ShowS
$cshowsPrec :: Int -> DescribeInputDevice -> ShowS
Prelude.Show, (forall x. DescribeInputDevice -> Rep DescribeInputDevice x)
-> (forall x. Rep DescribeInputDevice x -> DescribeInputDevice)
-> Generic DescribeInputDevice
forall x. Rep DescribeInputDevice x -> DescribeInputDevice
forall x. DescribeInputDevice -> Rep DescribeInputDevice x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeInputDevice x -> DescribeInputDevice
$cfrom :: forall x. DescribeInputDevice -> Rep DescribeInputDevice x
Prelude.Generic)
newDescribeInputDevice ::
Prelude.Text ->
DescribeInputDevice
newDescribeInputDevice :: Text -> DescribeInputDevice
newDescribeInputDevice Text
pInputDeviceId_ =
DescribeInputDevice' :: Text -> DescribeInputDevice
DescribeInputDevice'
{ $sel:inputDeviceId:DescribeInputDevice' :: Text
inputDeviceId =
Text
pInputDeviceId_
}
describeInputDevice_inputDeviceId :: Lens.Lens' DescribeInputDevice Prelude.Text
describeInputDevice_inputDeviceId :: (Text -> f Text) -> DescribeInputDevice -> f DescribeInputDevice
describeInputDevice_inputDeviceId = (DescribeInputDevice -> Text)
-> (DescribeInputDevice -> Text -> DescribeInputDevice)
-> Lens DescribeInputDevice DescribeInputDevice Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeInputDevice' {Text
inputDeviceId :: Text
$sel:inputDeviceId:DescribeInputDevice' :: DescribeInputDevice -> Text
inputDeviceId} -> Text
inputDeviceId) (\s :: DescribeInputDevice
s@DescribeInputDevice' {} Text
a -> DescribeInputDevice
s {$sel:inputDeviceId:DescribeInputDevice' :: Text
inputDeviceId = Text
a} :: DescribeInputDevice)
instance Core.AWSRequest DescribeInputDevice where
type
AWSResponse DescribeInputDevice =
DescribeInputDeviceResponse
request :: DescribeInputDevice -> Request DescribeInputDevice
request = Service -> DescribeInputDevice -> Request DescribeInputDevice
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy DescribeInputDevice
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeInputDevice)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse DescribeInputDevice))
-> Logger
-> Service
-> Proxy DescribeInputDevice
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeInputDevice)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
( \Int
s ResponseHeaders
h 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
-> Int
-> DescribeInputDeviceResponse
DescribeInputDeviceResponse'
(Maybe Text
-> Maybe Text
-> Maybe InputDeviceHdSettings
-> Maybe InputDeviceUhdSettings
-> Maybe Text
-> Maybe Text
-> Maybe DeviceUpdateStatus
-> Maybe DeviceSettingsSyncState
-> Maybe InputDeviceType
-> Maybe Text
-> Maybe InputDeviceNetworkSettings
-> Maybe InputDeviceConnectionState
-> Int
-> DescribeInputDeviceResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe InputDeviceHdSettings
-> Maybe InputDeviceUhdSettings
-> Maybe Text
-> Maybe Text
-> Maybe DeviceUpdateStatus
-> Maybe DeviceSettingsSyncState
-> Maybe InputDeviceType
-> Maybe Text
-> Maybe InputDeviceNetworkSettings
-> Maybe InputDeviceConnectionState
-> Int
-> DescribeInputDeviceResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"arn")
Either
String
(Maybe Text
-> Maybe InputDeviceHdSettings
-> Maybe InputDeviceUhdSettings
-> Maybe Text
-> Maybe Text
-> Maybe DeviceUpdateStatus
-> Maybe DeviceSettingsSyncState
-> Maybe InputDeviceType
-> Maybe Text
-> Maybe InputDeviceNetworkSettings
-> Maybe InputDeviceConnectionState
-> Int
-> DescribeInputDeviceResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe InputDeviceHdSettings
-> Maybe InputDeviceUhdSettings
-> Maybe Text
-> Maybe Text
-> Maybe DeviceUpdateStatus
-> Maybe DeviceSettingsSyncState
-> Maybe InputDeviceType
-> Maybe Text
-> Maybe InputDeviceNetworkSettings
-> Maybe InputDeviceConnectionState
-> Int
-> DescribeInputDeviceResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"macAddress")
Either
String
(Maybe InputDeviceHdSettings
-> Maybe InputDeviceUhdSettings
-> Maybe Text
-> Maybe Text
-> Maybe DeviceUpdateStatus
-> Maybe DeviceSettingsSyncState
-> Maybe InputDeviceType
-> Maybe Text
-> Maybe InputDeviceNetworkSettings
-> Maybe InputDeviceConnectionState
-> Int
-> DescribeInputDeviceResponse)
-> Either String (Maybe InputDeviceHdSettings)
-> Either
String
(Maybe InputDeviceUhdSettings
-> Maybe Text
-> Maybe Text
-> Maybe DeviceUpdateStatus
-> Maybe DeviceSettingsSyncState
-> Maybe InputDeviceType
-> Maybe Text
-> Maybe InputDeviceNetworkSettings
-> Maybe InputDeviceConnectionState
-> Int
-> DescribeInputDeviceResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe InputDeviceHdSettings)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"hdDeviceSettings")
Either
String
(Maybe InputDeviceUhdSettings
-> Maybe Text
-> Maybe Text
-> Maybe DeviceUpdateStatus
-> Maybe DeviceSettingsSyncState
-> Maybe InputDeviceType
-> Maybe Text
-> Maybe InputDeviceNetworkSettings
-> Maybe InputDeviceConnectionState
-> Int
-> DescribeInputDeviceResponse)
-> Either String (Maybe InputDeviceUhdSettings)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe DeviceUpdateStatus
-> Maybe DeviceSettingsSyncState
-> Maybe InputDeviceType
-> Maybe Text
-> Maybe InputDeviceNetworkSettings
-> Maybe InputDeviceConnectionState
-> Int
-> DescribeInputDeviceResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe InputDeviceUhdSettings)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"uhdDeviceSettings")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe DeviceUpdateStatus
-> Maybe DeviceSettingsSyncState
-> Maybe InputDeviceType
-> Maybe Text
-> Maybe InputDeviceNetworkSettings
-> Maybe InputDeviceConnectionState
-> Int
-> DescribeInputDeviceResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe DeviceUpdateStatus
-> Maybe DeviceSettingsSyncState
-> Maybe InputDeviceType
-> Maybe Text
-> Maybe InputDeviceNetworkSettings
-> Maybe InputDeviceConnectionState
-> Int
-> DescribeInputDeviceResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"name")
Either
String
(Maybe Text
-> Maybe DeviceUpdateStatus
-> Maybe DeviceSettingsSyncState
-> Maybe InputDeviceType
-> Maybe Text
-> Maybe InputDeviceNetworkSettings
-> Maybe InputDeviceConnectionState
-> Int
-> DescribeInputDeviceResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe DeviceUpdateStatus
-> Maybe DeviceSettingsSyncState
-> Maybe InputDeviceType
-> Maybe Text
-> Maybe InputDeviceNetworkSettings
-> Maybe InputDeviceConnectionState
-> Int
-> DescribeInputDeviceResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"id")
Either
String
(Maybe DeviceUpdateStatus
-> Maybe DeviceSettingsSyncState
-> Maybe InputDeviceType
-> Maybe Text
-> Maybe InputDeviceNetworkSettings
-> Maybe InputDeviceConnectionState
-> Int
-> DescribeInputDeviceResponse)
-> Either String (Maybe DeviceUpdateStatus)
-> Either
String
(Maybe DeviceSettingsSyncState
-> Maybe InputDeviceType
-> Maybe Text
-> Maybe InputDeviceNetworkSettings
-> Maybe InputDeviceConnectionState
-> Int
-> DescribeInputDeviceResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe DeviceUpdateStatus)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"deviceUpdateStatus")
Either
String
(Maybe DeviceSettingsSyncState
-> Maybe InputDeviceType
-> Maybe Text
-> Maybe InputDeviceNetworkSettings
-> Maybe InputDeviceConnectionState
-> Int
-> DescribeInputDeviceResponse)
-> Either String (Maybe DeviceSettingsSyncState)
-> Either
String
(Maybe InputDeviceType
-> Maybe Text
-> Maybe InputDeviceNetworkSettings
-> Maybe InputDeviceConnectionState
-> Int
-> DescribeInputDeviceResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe DeviceSettingsSyncState)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"deviceSettingsSyncState")
Either
String
(Maybe InputDeviceType
-> Maybe Text
-> Maybe InputDeviceNetworkSettings
-> Maybe InputDeviceConnectionState
-> Int
-> DescribeInputDeviceResponse)
-> Either String (Maybe InputDeviceType)
-> Either
String
(Maybe Text
-> Maybe InputDeviceNetworkSettings
-> Maybe InputDeviceConnectionState
-> Int
-> DescribeInputDeviceResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe InputDeviceType)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"type")
Either
String
(Maybe Text
-> Maybe InputDeviceNetworkSettings
-> Maybe InputDeviceConnectionState
-> Int
-> DescribeInputDeviceResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe InputDeviceNetworkSettings
-> Maybe InputDeviceConnectionState
-> Int
-> DescribeInputDeviceResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"serialNumber")
Either
String
(Maybe InputDeviceNetworkSettings
-> Maybe InputDeviceConnectionState
-> Int
-> DescribeInputDeviceResponse)
-> Either String (Maybe InputDeviceNetworkSettings)
-> Either
String
(Maybe InputDeviceConnectionState
-> Int -> DescribeInputDeviceResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe InputDeviceNetworkSettings)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"networkSettings")
Either
String
(Maybe InputDeviceConnectionState
-> Int -> DescribeInputDeviceResponse)
-> Either String (Maybe InputDeviceConnectionState)
-> Either String (Int -> DescribeInputDeviceResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe InputDeviceConnectionState)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"connectionState")
Either String (Int -> DescribeInputDeviceResponse)
-> Either String Int -> Either String DescribeInputDeviceResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Int -> Either String Int
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (Int -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
)
instance Prelude.Hashable DescribeInputDevice
instance Prelude.NFData DescribeInputDevice
instance Core.ToHeaders DescribeInputDevice where
toHeaders :: DescribeInputDevice -> ResponseHeaders
toHeaders =
ResponseHeaders -> DescribeInputDevice -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"Content-Type"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Core.ToPath DescribeInputDevice where
toPath :: DescribeInputDevice -> ByteString
toPath DescribeInputDevice' {Text
inputDeviceId :: Text
$sel:inputDeviceId:DescribeInputDevice' :: DescribeInputDevice -> Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ByteString
"/prod/inputDevices/", Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
inputDeviceId]
instance Core.ToQuery DescribeInputDevice where
toQuery :: DescribeInputDevice -> QueryString
toQuery = QueryString -> DescribeInputDevice -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data DescribeInputDeviceResponse = DescribeInputDeviceResponse'
{
DescribeInputDeviceResponse -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
DescribeInputDeviceResponse -> Maybe Text
macAddress :: Prelude.Maybe Prelude.Text,
DescribeInputDeviceResponse -> Maybe InputDeviceHdSettings
hdDeviceSettings :: Prelude.Maybe InputDeviceHdSettings,
DescribeInputDeviceResponse -> Maybe InputDeviceUhdSettings
uhdDeviceSettings :: Prelude.Maybe InputDeviceUhdSettings,
DescribeInputDeviceResponse -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
DescribeInputDeviceResponse -> Maybe Text
id :: Prelude.Maybe Prelude.Text,
DescribeInputDeviceResponse -> Maybe DeviceUpdateStatus
deviceUpdateStatus :: Prelude.Maybe DeviceUpdateStatus,
DescribeInputDeviceResponse -> Maybe DeviceSettingsSyncState
deviceSettingsSyncState :: Prelude.Maybe DeviceSettingsSyncState,
DescribeInputDeviceResponse -> Maybe InputDeviceType
type' :: Prelude.Maybe InputDeviceType,
DescribeInputDeviceResponse -> Maybe Text
serialNumber :: Prelude.Maybe Prelude.Text,
DescribeInputDeviceResponse -> Maybe InputDeviceNetworkSettings
networkSettings :: Prelude.Maybe InputDeviceNetworkSettings,
DescribeInputDeviceResponse -> Maybe InputDeviceConnectionState
connectionState :: Prelude.Maybe InputDeviceConnectionState,
DescribeInputDeviceResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DescribeInputDeviceResponse -> DescribeInputDeviceResponse -> Bool
(DescribeInputDeviceResponse
-> DescribeInputDeviceResponse -> Bool)
-> (DescribeInputDeviceResponse
-> DescribeInputDeviceResponse -> Bool)
-> Eq DescribeInputDeviceResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeInputDeviceResponse -> DescribeInputDeviceResponse -> Bool
$c/= :: DescribeInputDeviceResponse -> DescribeInputDeviceResponse -> Bool
== :: DescribeInputDeviceResponse -> DescribeInputDeviceResponse -> Bool
$c== :: DescribeInputDeviceResponse -> DescribeInputDeviceResponse -> Bool
Prelude.Eq, ReadPrec [DescribeInputDeviceResponse]
ReadPrec DescribeInputDeviceResponse
Int -> ReadS DescribeInputDeviceResponse
ReadS [DescribeInputDeviceResponse]
(Int -> ReadS DescribeInputDeviceResponse)
-> ReadS [DescribeInputDeviceResponse]
-> ReadPrec DescribeInputDeviceResponse
-> ReadPrec [DescribeInputDeviceResponse]
-> Read DescribeInputDeviceResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeInputDeviceResponse]
$creadListPrec :: ReadPrec [DescribeInputDeviceResponse]
readPrec :: ReadPrec DescribeInputDeviceResponse
$creadPrec :: ReadPrec DescribeInputDeviceResponse
readList :: ReadS [DescribeInputDeviceResponse]
$creadList :: ReadS [DescribeInputDeviceResponse]
readsPrec :: Int -> ReadS DescribeInputDeviceResponse
$creadsPrec :: Int -> ReadS DescribeInputDeviceResponse
Prelude.Read, Int -> DescribeInputDeviceResponse -> ShowS
[DescribeInputDeviceResponse] -> ShowS
DescribeInputDeviceResponse -> String
(Int -> DescribeInputDeviceResponse -> ShowS)
-> (DescribeInputDeviceResponse -> String)
-> ([DescribeInputDeviceResponse] -> ShowS)
-> Show DescribeInputDeviceResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeInputDeviceResponse] -> ShowS
$cshowList :: [DescribeInputDeviceResponse] -> ShowS
show :: DescribeInputDeviceResponse -> String
$cshow :: DescribeInputDeviceResponse -> String
showsPrec :: Int -> DescribeInputDeviceResponse -> ShowS
$cshowsPrec :: Int -> DescribeInputDeviceResponse -> ShowS
Prelude.Show, (forall x.
DescribeInputDeviceResponse -> Rep DescribeInputDeviceResponse x)
-> (forall x.
Rep DescribeInputDeviceResponse x -> DescribeInputDeviceResponse)
-> Generic DescribeInputDeviceResponse
forall x.
Rep DescribeInputDeviceResponse x -> DescribeInputDeviceResponse
forall x.
DescribeInputDeviceResponse -> Rep DescribeInputDeviceResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeInputDeviceResponse x -> DescribeInputDeviceResponse
$cfrom :: forall x.
DescribeInputDeviceResponse -> Rep DescribeInputDeviceResponse x
Prelude.Generic)
newDescribeInputDeviceResponse ::
Prelude.Int ->
DescribeInputDeviceResponse
newDescribeInputDeviceResponse :: Int -> DescribeInputDeviceResponse
newDescribeInputDeviceResponse Int
pHttpStatus_ =
DescribeInputDeviceResponse' :: Maybe Text
-> Maybe Text
-> Maybe InputDeviceHdSettings
-> Maybe InputDeviceUhdSettings
-> Maybe Text
-> Maybe Text
-> Maybe DeviceUpdateStatus
-> Maybe DeviceSettingsSyncState
-> Maybe InputDeviceType
-> Maybe Text
-> Maybe InputDeviceNetworkSettings
-> Maybe InputDeviceConnectionState
-> Int
-> DescribeInputDeviceResponse
DescribeInputDeviceResponse'
{ $sel:arn:DescribeInputDeviceResponse' :: Maybe Text
arn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:macAddress:DescribeInputDeviceResponse' :: Maybe Text
macAddress = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:hdDeviceSettings:DescribeInputDeviceResponse' :: Maybe InputDeviceHdSettings
hdDeviceSettings = Maybe InputDeviceHdSettings
forall a. Maybe a
Prelude.Nothing,
$sel:uhdDeviceSettings:DescribeInputDeviceResponse' :: Maybe InputDeviceUhdSettings
uhdDeviceSettings = Maybe InputDeviceUhdSettings
forall a. Maybe a
Prelude.Nothing,
$sel:name:DescribeInputDeviceResponse' :: Maybe Text
name = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:id:DescribeInputDeviceResponse' :: Maybe Text
id = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:deviceUpdateStatus:DescribeInputDeviceResponse' :: Maybe DeviceUpdateStatus
deviceUpdateStatus = Maybe DeviceUpdateStatus
forall a. Maybe a
Prelude.Nothing,
$sel:deviceSettingsSyncState:DescribeInputDeviceResponse' :: Maybe DeviceSettingsSyncState
deviceSettingsSyncState = Maybe DeviceSettingsSyncState
forall a. Maybe a
Prelude.Nothing,
$sel:type':DescribeInputDeviceResponse' :: Maybe InputDeviceType
type' = Maybe InputDeviceType
forall a. Maybe a
Prelude.Nothing,
$sel:serialNumber:DescribeInputDeviceResponse' :: Maybe Text
serialNumber = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:networkSettings:DescribeInputDeviceResponse' :: Maybe InputDeviceNetworkSettings
networkSettings = Maybe InputDeviceNetworkSettings
forall a. Maybe a
Prelude.Nothing,
$sel:connectionState:DescribeInputDeviceResponse' :: Maybe InputDeviceConnectionState
connectionState = Maybe InputDeviceConnectionState
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DescribeInputDeviceResponse' :: Int
httpStatus = Int
pHttpStatus_
}
describeInputDeviceResponse_arn :: Lens.Lens' DescribeInputDeviceResponse (Prelude.Maybe Prelude.Text)
describeInputDeviceResponse_arn :: (Maybe Text -> f (Maybe Text))
-> DescribeInputDeviceResponse -> f DescribeInputDeviceResponse
describeInputDeviceResponse_arn = (DescribeInputDeviceResponse -> Maybe Text)
-> (DescribeInputDeviceResponse
-> Maybe Text -> DescribeInputDeviceResponse)
-> Lens
DescribeInputDeviceResponse
DescribeInputDeviceResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeInputDeviceResponse' {Maybe Text
arn :: Maybe Text
$sel:arn:DescribeInputDeviceResponse' :: DescribeInputDeviceResponse -> Maybe Text
arn} -> Maybe Text
arn) (\s :: DescribeInputDeviceResponse
s@DescribeInputDeviceResponse' {} Maybe Text
a -> DescribeInputDeviceResponse
s {$sel:arn:DescribeInputDeviceResponse' :: Maybe Text
arn = Maybe Text
a} :: DescribeInputDeviceResponse)
describeInputDeviceResponse_macAddress :: Lens.Lens' DescribeInputDeviceResponse (Prelude.Maybe Prelude.Text)
describeInputDeviceResponse_macAddress :: (Maybe Text -> f (Maybe Text))
-> DescribeInputDeviceResponse -> f DescribeInputDeviceResponse
describeInputDeviceResponse_macAddress = (DescribeInputDeviceResponse -> Maybe Text)
-> (DescribeInputDeviceResponse
-> Maybe Text -> DescribeInputDeviceResponse)
-> Lens
DescribeInputDeviceResponse
DescribeInputDeviceResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeInputDeviceResponse' {Maybe Text
macAddress :: Maybe Text
$sel:macAddress:DescribeInputDeviceResponse' :: DescribeInputDeviceResponse -> Maybe Text
macAddress} -> Maybe Text
macAddress) (\s :: DescribeInputDeviceResponse
s@DescribeInputDeviceResponse' {} Maybe Text
a -> DescribeInputDeviceResponse
s {$sel:macAddress:DescribeInputDeviceResponse' :: Maybe Text
macAddress = Maybe Text
a} :: DescribeInputDeviceResponse)
describeInputDeviceResponse_hdDeviceSettings :: Lens.Lens' DescribeInputDeviceResponse (Prelude.Maybe InputDeviceHdSettings)
describeInputDeviceResponse_hdDeviceSettings :: (Maybe InputDeviceHdSettings -> f (Maybe InputDeviceHdSettings))
-> DescribeInputDeviceResponse -> f DescribeInputDeviceResponse
describeInputDeviceResponse_hdDeviceSettings = (DescribeInputDeviceResponse -> Maybe InputDeviceHdSettings)
-> (DescribeInputDeviceResponse
-> Maybe InputDeviceHdSettings -> DescribeInputDeviceResponse)
-> Lens
DescribeInputDeviceResponse
DescribeInputDeviceResponse
(Maybe InputDeviceHdSettings)
(Maybe InputDeviceHdSettings)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeInputDeviceResponse' {Maybe InputDeviceHdSettings
hdDeviceSettings :: Maybe InputDeviceHdSettings
$sel:hdDeviceSettings:DescribeInputDeviceResponse' :: DescribeInputDeviceResponse -> Maybe InputDeviceHdSettings
hdDeviceSettings} -> Maybe InputDeviceHdSettings
hdDeviceSettings) (\s :: DescribeInputDeviceResponse
s@DescribeInputDeviceResponse' {} Maybe InputDeviceHdSettings
a -> DescribeInputDeviceResponse
s {$sel:hdDeviceSettings:DescribeInputDeviceResponse' :: Maybe InputDeviceHdSettings
hdDeviceSettings = Maybe InputDeviceHdSettings
a} :: DescribeInputDeviceResponse)
describeInputDeviceResponse_uhdDeviceSettings :: Lens.Lens' DescribeInputDeviceResponse (Prelude.Maybe InputDeviceUhdSettings)
describeInputDeviceResponse_uhdDeviceSettings :: (Maybe InputDeviceUhdSettings -> f (Maybe InputDeviceUhdSettings))
-> DescribeInputDeviceResponse -> f DescribeInputDeviceResponse
describeInputDeviceResponse_uhdDeviceSettings = (DescribeInputDeviceResponse -> Maybe InputDeviceUhdSettings)
-> (DescribeInputDeviceResponse
-> Maybe InputDeviceUhdSettings -> DescribeInputDeviceResponse)
-> Lens
DescribeInputDeviceResponse
DescribeInputDeviceResponse
(Maybe InputDeviceUhdSettings)
(Maybe InputDeviceUhdSettings)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeInputDeviceResponse' {Maybe InputDeviceUhdSettings
uhdDeviceSettings :: Maybe InputDeviceUhdSettings
$sel:uhdDeviceSettings:DescribeInputDeviceResponse' :: DescribeInputDeviceResponse -> Maybe InputDeviceUhdSettings
uhdDeviceSettings} -> Maybe InputDeviceUhdSettings
uhdDeviceSettings) (\s :: DescribeInputDeviceResponse
s@DescribeInputDeviceResponse' {} Maybe InputDeviceUhdSettings
a -> DescribeInputDeviceResponse
s {$sel:uhdDeviceSettings:DescribeInputDeviceResponse' :: Maybe InputDeviceUhdSettings
uhdDeviceSettings = Maybe InputDeviceUhdSettings
a} :: DescribeInputDeviceResponse)
describeInputDeviceResponse_name :: Lens.Lens' DescribeInputDeviceResponse (Prelude.Maybe Prelude.Text)
describeInputDeviceResponse_name :: (Maybe Text -> f (Maybe Text))
-> DescribeInputDeviceResponse -> f DescribeInputDeviceResponse
describeInputDeviceResponse_name = (DescribeInputDeviceResponse -> Maybe Text)
-> (DescribeInputDeviceResponse
-> Maybe Text -> DescribeInputDeviceResponse)
-> Lens
DescribeInputDeviceResponse
DescribeInputDeviceResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeInputDeviceResponse' {Maybe Text
name :: Maybe Text
$sel:name:DescribeInputDeviceResponse' :: DescribeInputDeviceResponse -> Maybe Text
name} -> Maybe Text
name) (\s :: DescribeInputDeviceResponse
s@DescribeInputDeviceResponse' {} Maybe Text
a -> DescribeInputDeviceResponse
s {$sel:name:DescribeInputDeviceResponse' :: Maybe Text
name = Maybe Text
a} :: DescribeInputDeviceResponse)
describeInputDeviceResponse_id :: Lens.Lens' DescribeInputDeviceResponse (Prelude.Maybe Prelude.Text)
describeInputDeviceResponse_id :: (Maybe Text -> f (Maybe Text))
-> DescribeInputDeviceResponse -> f DescribeInputDeviceResponse
describeInputDeviceResponse_id = (DescribeInputDeviceResponse -> Maybe Text)
-> (DescribeInputDeviceResponse
-> Maybe Text -> DescribeInputDeviceResponse)
-> Lens
DescribeInputDeviceResponse
DescribeInputDeviceResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeInputDeviceResponse' {Maybe Text
id :: Maybe Text
$sel:id:DescribeInputDeviceResponse' :: DescribeInputDeviceResponse -> Maybe Text
id} -> Maybe Text
id) (\s :: DescribeInputDeviceResponse
s@DescribeInputDeviceResponse' {} Maybe Text
a -> DescribeInputDeviceResponse
s {$sel:id:DescribeInputDeviceResponse' :: Maybe Text
id = Maybe Text
a} :: DescribeInputDeviceResponse)
describeInputDeviceResponse_deviceUpdateStatus :: Lens.Lens' DescribeInputDeviceResponse (Prelude.Maybe DeviceUpdateStatus)
describeInputDeviceResponse_deviceUpdateStatus :: (Maybe DeviceUpdateStatus -> f (Maybe DeviceUpdateStatus))
-> DescribeInputDeviceResponse -> f DescribeInputDeviceResponse
describeInputDeviceResponse_deviceUpdateStatus = (DescribeInputDeviceResponse -> Maybe DeviceUpdateStatus)
-> (DescribeInputDeviceResponse
-> Maybe DeviceUpdateStatus -> DescribeInputDeviceResponse)
-> Lens
DescribeInputDeviceResponse
DescribeInputDeviceResponse
(Maybe DeviceUpdateStatus)
(Maybe DeviceUpdateStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeInputDeviceResponse' {Maybe DeviceUpdateStatus
deviceUpdateStatus :: Maybe DeviceUpdateStatus
$sel:deviceUpdateStatus:DescribeInputDeviceResponse' :: DescribeInputDeviceResponse -> Maybe DeviceUpdateStatus
deviceUpdateStatus} -> Maybe DeviceUpdateStatus
deviceUpdateStatus) (\s :: DescribeInputDeviceResponse
s@DescribeInputDeviceResponse' {} Maybe DeviceUpdateStatus
a -> DescribeInputDeviceResponse
s {$sel:deviceUpdateStatus:DescribeInputDeviceResponse' :: Maybe DeviceUpdateStatus
deviceUpdateStatus = Maybe DeviceUpdateStatus
a} :: DescribeInputDeviceResponse)
describeInputDeviceResponse_deviceSettingsSyncState :: Lens.Lens' DescribeInputDeviceResponse (Prelude.Maybe DeviceSettingsSyncState)
describeInputDeviceResponse_deviceSettingsSyncState :: (Maybe DeviceSettingsSyncState
-> f (Maybe DeviceSettingsSyncState))
-> DescribeInputDeviceResponse -> f DescribeInputDeviceResponse
describeInputDeviceResponse_deviceSettingsSyncState = (DescribeInputDeviceResponse -> Maybe DeviceSettingsSyncState)
-> (DescribeInputDeviceResponse
-> Maybe DeviceSettingsSyncState -> DescribeInputDeviceResponse)
-> Lens
DescribeInputDeviceResponse
DescribeInputDeviceResponse
(Maybe DeviceSettingsSyncState)
(Maybe DeviceSettingsSyncState)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeInputDeviceResponse' {Maybe DeviceSettingsSyncState
deviceSettingsSyncState :: Maybe DeviceSettingsSyncState
$sel:deviceSettingsSyncState:DescribeInputDeviceResponse' :: DescribeInputDeviceResponse -> Maybe DeviceSettingsSyncState
deviceSettingsSyncState} -> Maybe DeviceSettingsSyncState
deviceSettingsSyncState) (\s :: DescribeInputDeviceResponse
s@DescribeInputDeviceResponse' {} Maybe DeviceSettingsSyncState
a -> DescribeInputDeviceResponse
s {$sel:deviceSettingsSyncState:DescribeInputDeviceResponse' :: Maybe DeviceSettingsSyncState
deviceSettingsSyncState = Maybe DeviceSettingsSyncState
a} :: DescribeInputDeviceResponse)
describeInputDeviceResponse_type :: Lens.Lens' DescribeInputDeviceResponse (Prelude.Maybe InputDeviceType)
describeInputDeviceResponse_type :: (Maybe InputDeviceType -> f (Maybe InputDeviceType))
-> DescribeInputDeviceResponse -> f DescribeInputDeviceResponse
describeInputDeviceResponse_type = (DescribeInputDeviceResponse -> Maybe InputDeviceType)
-> (DescribeInputDeviceResponse
-> Maybe InputDeviceType -> DescribeInputDeviceResponse)
-> Lens
DescribeInputDeviceResponse
DescribeInputDeviceResponse
(Maybe InputDeviceType)
(Maybe InputDeviceType)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeInputDeviceResponse' {Maybe InputDeviceType
type' :: Maybe InputDeviceType
$sel:type':DescribeInputDeviceResponse' :: DescribeInputDeviceResponse -> Maybe InputDeviceType
type'} -> Maybe InputDeviceType
type') (\s :: DescribeInputDeviceResponse
s@DescribeInputDeviceResponse' {} Maybe InputDeviceType
a -> DescribeInputDeviceResponse
s {$sel:type':DescribeInputDeviceResponse' :: Maybe InputDeviceType
type' = Maybe InputDeviceType
a} :: DescribeInputDeviceResponse)
describeInputDeviceResponse_serialNumber :: Lens.Lens' DescribeInputDeviceResponse (Prelude.Maybe Prelude.Text)
describeInputDeviceResponse_serialNumber :: (Maybe Text -> f (Maybe Text))
-> DescribeInputDeviceResponse -> f DescribeInputDeviceResponse
describeInputDeviceResponse_serialNumber = (DescribeInputDeviceResponse -> Maybe Text)
-> (DescribeInputDeviceResponse
-> Maybe Text -> DescribeInputDeviceResponse)
-> Lens
DescribeInputDeviceResponse
DescribeInputDeviceResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeInputDeviceResponse' {Maybe Text
serialNumber :: Maybe Text
$sel:serialNumber:DescribeInputDeviceResponse' :: DescribeInputDeviceResponse -> Maybe Text
serialNumber} -> Maybe Text
serialNumber) (\s :: DescribeInputDeviceResponse
s@DescribeInputDeviceResponse' {} Maybe Text
a -> DescribeInputDeviceResponse
s {$sel:serialNumber:DescribeInputDeviceResponse' :: Maybe Text
serialNumber = Maybe Text
a} :: DescribeInputDeviceResponse)
describeInputDeviceResponse_networkSettings :: Lens.Lens' DescribeInputDeviceResponse (Prelude.Maybe InputDeviceNetworkSettings)
describeInputDeviceResponse_networkSettings :: (Maybe InputDeviceNetworkSettings
-> f (Maybe InputDeviceNetworkSettings))
-> DescribeInputDeviceResponse -> f DescribeInputDeviceResponse
describeInputDeviceResponse_networkSettings = (DescribeInputDeviceResponse -> Maybe InputDeviceNetworkSettings)
-> (DescribeInputDeviceResponse
-> Maybe InputDeviceNetworkSettings -> DescribeInputDeviceResponse)
-> Lens
DescribeInputDeviceResponse
DescribeInputDeviceResponse
(Maybe InputDeviceNetworkSettings)
(Maybe InputDeviceNetworkSettings)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeInputDeviceResponse' {Maybe InputDeviceNetworkSettings
networkSettings :: Maybe InputDeviceNetworkSettings
$sel:networkSettings:DescribeInputDeviceResponse' :: DescribeInputDeviceResponse -> Maybe InputDeviceNetworkSettings
networkSettings} -> Maybe InputDeviceNetworkSettings
networkSettings) (\s :: DescribeInputDeviceResponse
s@DescribeInputDeviceResponse' {} Maybe InputDeviceNetworkSettings
a -> DescribeInputDeviceResponse
s {$sel:networkSettings:DescribeInputDeviceResponse' :: Maybe InputDeviceNetworkSettings
networkSettings = Maybe InputDeviceNetworkSettings
a} :: DescribeInputDeviceResponse)
describeInputDeviceResponse_connectionState :: Lens.Lens' DescribeInputDeviceResponse (Prelude.Maybe InputDeviceConnectionState)
describeInputDeviceResponse_connectionState :: (Maybe InputDeviceConnectionState
-> f (Maybe InputDeviceConnectionState))
-> DescribeInputDeviceResponse -> f DescribeInputDeviceResponse
describeInputDeviceResponse_connectionState = (DescribeInputDeviceResponse -> Maybe InputDeviceConnectionState)
-> (DescribeInputDeviceResponse
-> Maybe InputDeviceConnectionState -> DescribeInputDeviceResponse)
-> Lens
DescribeInputDeviceResponse
DescribeInputDeviceResponse
(Maybe InputDeviceConnectionState)
(Maybe InputDeviceConnectionState)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeInputDeviceResponse' {Maybe InputDeviceConnectionState
connectionState :: Maybe InputDeviceConnectionState
$sel:connectionState:DescribeInputDeviceResponse' :: DescribeInputDeviceResponse -> Maybe InputDeviceConnectionState
connectionState} -> Maybe InputDeviceConnectionState
connectionState) (\s :: DescribeInputDeviceResponse
s@DescribeInputDeviceResponse' {} Maybe InputDeviceConnectionState
a -> DescribeInputDeviceResponse
s {$sel:connectionState:DescribeInputDeviceResponse' :: Maybe InputDeviceConnectionState
connectionState = Maybe InputDeviceConnectionState
a} :: DescribeInputDeviceResponse)
describeInputDeviceResponse_httpStatus :: Lens.Lens' DescribeInputDeviceResponse Prelude.Int
describeInputDeviceResponse_httpStatus :: (Int -> f Int)
-> DescribeInputDeviceResponse -> f DescribeInputDeviceResponse
describeInputDeviceResponse_httpStatus = (DescribeInputDeviceResponse -> Int)
-> (DescribeInputDeviceResponse
-> Int -> DescribeInputDeviceResponse)
-> Lens
DescribeInputDeviceResponse DescribeInputDeviceResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeInputDeviceResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeInputDeviceResponse' :: DescribeInputDeviceResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeInputDeviceResponse
s@DescribeInputDeviceResponse' {} Int
a -> DescribeInputDeviceResponse
s {$sel:httpStatus:DescribeInputDeviceResponse' :: Int
httpStatus = Int
a} :: DescribeInputDeviceResponse)
instance Prelude.NFData DescribeInputDeviceResponse