{-# 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 #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.MediaLive.DescribeInputDevice
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Gets the details for the input device
module Amazonka.MediaLive.DescribeInputDevice
  ( -- * Creating a Request
    DescribeInputDevice (..),
    newDescribeInputDevice,

    -- * Request Lenses
    describeInputDevice_inputDeviceId,

    -- * Destructuring the Response
    DescribeInputDeviceResponse (..),
    newDescribeInputDeviceResponse,

    -- * Response Lenses
    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

-- | Placeholder documentation for DescribeInputDeviceRequest
--
-- /See:/ 'newDescribeInputDevice' smart constructor.
data DescribeInputDevice = DescribeInputDevice'
  { -- | The unique ID of this input device. For example, hd-123456789abcdef.
    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)

-- |
-- Create a value of 'DescribeInputDevice' 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:
--
-- 'inputDeviceId', 'describeInputDevice_inputDeviceId' - The unique ID of this input device. For example, hd-123456789abcdef.
newDescribeInputDevice ::
  -- | 'inputDeviceId'
  Prelude.Text ->
  DescribeInputDevice
newDescribeInputDevice :: Text -> DescribeInputDevice
newDescribeInputDevice Text
pInputDeviceId_ =
  DescribeInputDevice' :: Text -> DescribeInputDevice
DescribeInputDevice'
    { $sel:inputDeviceId:DescribeInputDevice' :: Text
inputDeviceId =
        Text
pInputDeviceId_
    }

-- | The unique ID of this input device. For example, hd-123456789abcdef.
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

-- | Placeholder documentation for DescribeInputDeviceResponse
--
-- /See:/ 'newDescribeInputDeviceResponse' smart constructor.
data DescribeInputDeviceResponse = DescribeInputDeviceResponse'
  { -- | The unique ARN of the input device.
    DescribeInputDeviceResponse -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
    -- | The network MAC address of the input device.
    DescribeInputDeviceResponse -> Maybe Text
macAddress :: Prelude.Maybe Prelude.Text,
    -- | Settings that describe an input device that is type HD.
    DescribeInputDeviceResponse -> Maybe InputDeviceHdSettings
hdDeviceSettings :: Prelude.Maybe InputDeviceHdSettings,
    -- | Settings that describe an input device that is type UHD.
    DescribeInputDeviceResponse -> Maybe InputDeviceUhdSettings
uhdDeviceSettings :: Prelude.Maybe InputDeviceUhdSettings,
    -- | A name that you specify for the input device.
    DescribeInputDeviceResponse -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
    -- | The unique ID of the input device.
    DescribeInputDeviceResponse -> Maybe Text
id :: Prelude.Maybe Prelude.Text,
    -- | The status of software on the input device.
    DescribeInputDeviceResponse -> Maybe DeviceUpdateStatus
deviceUpdateStatus :: Prelude.Maybe DeviceUpdateStatus,
    -- | 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.
    DescribeInputDeviceResponse -> Maybe DeviceSettingsSyncState
deviceSettingsSyncState :: Prelude.Maybe DeviceSettingsSyncState,
    -- | The type of the input device.
    DescribeInputDeviceResponse -> Maybe InputDeviceType
type' :: Prelude.Maybe InputDeviceType,
    -- | The unique serial number of the input device.
    DescribeInputDeviceResponse -> Maybe Text
serialNumber :: Prelude.Maybe Prelude.Text,
    -- | The network settings for the input device.
    DescribeInputDeviceResponse -> Maybe InputDeviceNetworkSettings
networkSettings :: Prelude.Maybe InputDeviceNetworkSettings,
    -- | The state of the connection between the input device and AWS.
    DescribeInputDeviceResponse -> Maybe InputDeviceConnectionState
connectionState :: Prelude.Maybe InputDeviceConnectionState,
    -- | The response's http status code.
    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)

-- |
-- Create a value of 'DescribeInputDeviceResponse' 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', 'describeInputDeviceResponse_arn' - The unique ARN of the input device.
--
-- 'macAddress', 'describeInputDeviceResponse_macAddress' - The network MAC address of the input device.
--
-- 'hdDeviceSettings', 'describeInputDeviceResponse_hdDeviceSettings' - Settings that describe an input device that is type HD.
--
-- 'uhdDeviceSettings', 'describeInputDeviceResponse_uhdDeviceSettings' - Settings that describe an input device that is type UHD.
--
-- 'name', 'describeInputDeviceResponse_name' - A name that you specify for the input device.
--
-- 'id', 'describeInputDeviceResponse_id' - The unique ID of the input device.
--
-- 'deviceUpdateStatus', 'describeInputDeviceResponse_deviceUpdateStatus' - The status of software on the input device.
--
-- 'deviceSettingsSyncState', 'describeInputDeviceResponse_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.
--
-- 'type'', 'describeInputDeviceResponse_type' - The type of the input device.
--
-- 'serialNumber', 'describeInputDeviceResponse_serialNumber' - The unique serial number of the input device.
--
-- 'networkSettings', 'describeInputDeviceResponse_networkSettings' - The network settings for the input device.
--
-- 'connectionState', 'describeInputDeviceResponse_connectionState' - The state of the connection between the input device and AWS.
--
-- 'httpStatus', 'describeInputDeviceResponse_httpStatus' - The response's http status code.
newDescribeInputDeviceResponse ::
  -- | 'httpStatus'
  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_
    }

-- | The unique ARN of the input device.
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)

-- | The network MAC address of the input device.
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)

-- | Settings that describe an input device that is type HD.
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)

-- | Settings that describe an input device that is type UHD.
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)

-- | A name that you specify for the input device.
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)

-- | The unique ID of the input device.
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)

-- | The status of software on the input device.
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)

-- | 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.
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)

-- | The type of the input device.
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)

-- | The unique serial number of the input device.
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)

-- | The network settings for the input device.
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)

-- | The state of the connection between the input device and AWS.
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)

-- | The response's http status code.
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