{-# 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.UpdateInputDevice
(
UpdateInputDevice' (..),
newUpdateInputDevice',
updateInputDevice'_hdDeviceSettings,
updateInputDevice'_uhdDeviceSettings,
updateInputDevice'_name,
updateInputDevice'_inputDeviceId,
UpdateInputDeviceResponse (..),
newUpdateInputDeviceResponse,
updateInputDeviceResponse_arn,
updateInputDeviceResponse_macAddress,
updateInputDeviceResponse_hdDeviceSettings,
updateInputDeviceResponse_uhdDeviceSettings,
updateInputDeviceResponse_name,
updateInputDeviceResponse_id,
updateInputDeviceResponse_deviceUpdateStatus,
updateInputDeviceResponse_deviceSettingsSyncState,
updateInputDeviceResponse_type,
updateInputDeviceResponse_serialNumber,
updateInputDeviceResponse_networkSettings,
updateInputDeviceResponse_connectionState,
updateInputDeviceResponse_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 UpdateInputDevice' = UpdateInputDevice''
{
UpdateInputDevice' -> Maybe InputDeviceConfigurableSettings
hdDeviceSettings :: Prelude.Maybe InputDeviceConfigurableSettings,
UpdateInputDevice' -> Maybe InputDeviceConfigurableSettings
uhdDeviceSettings :: Prelude.Maybe InputDeviceConfigurableSettings,
UpdateInputDevice' -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
UpdateInputDevice' -> Text
inputDeviceId :: Prelude.Text
}
deriving (UpdateInputDevice' -> UpdateInputDevice' -> Bool
(UpdateInputDevice' -> UpdateInputDevice' -> Bool)
-> (UpdateInputDevice' -> UpdateInputDevice' -> Bool)
-> Eq UpdateInputDevice'
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateInputDevice' -> UpdateInputDevice' -> Bool
$c/= :: UpdateInputDevice' -> UpdateInputDevice' -> Bool
== :: UpdateInputDevice' -> UpdateInputDevice' -> Bool
$c== :: UpdateInputDevice' -> UpdateInputDevice' -> Bool
Prelude.Eq, ReadPrec [UpdateInputDevice']
ReadPrec UpdateInputDevice'
Int -> ReadS UpdateInputDevice'
ReadS [UpdateInputDevice']
(Int -> ReadS UpdateInputDevice')
-> ReadS [UpdateInputDevice']
-> ReadPrec UpdateInputDevice'
-> ReadPrec [UpdateInputDevice']
-> Read UpdateInputDevice'
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateInputDevice']
$creadListPrec :: ReadPrec [UpdateInputDevice']
readPrec :: ReadPrec UpdateInputDevice'
$creadPrec :: ReadPrec UpdateInputDevice'
readList :: ReadS [UpdateInputDevice']
$creadList :: ReadS [UpdateInputDevice']
readsPrec :: Int -> ReadS UpdateInputDevice'
$creadsPrec :: Int -> ReadS UpdateInputDevice'
Prelude.Read, Int -> UpdateInputDevice' -> ShowS
[UpdateInputDevice'] -> ShowS
UpdateInputDevice' -> String
(Int -> UpdateInputDevice' -> ShowS)
-> (UpdateInputDevice' -> String)
-> ([UpdateInputDevice'] -> ShowS)
-> Show UpdateInputDevice'
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateInputDevice'] -> ShowS
$cshowList :: [UpdateInputDevice'] -> ShowS
show :: UpdateInputDevice' -> String
$cshow :: UpdateInputDevice' -> String
showsPrec :: Int -> UpdateInputDevice' -> ShowS
$cshowsPrec :: Int -> UpdateInputDevice' -> ShowS
Prelude.Show, (forall x. UpdateInputDevice' -> Rep UpdateInputDevice' x)
-> (forall x. Rep UpdateInputDevice' x -> UpdateInputDevice')
-> Generic UpdateInputDevice'
forall x. Rep UpdateInputDevice' x -> UpdateInputDevice'
forall x. UpdateInputDevice' -> Rep UpdateInputDevice' x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep UpdateInputDevice' x -> UpdateInputDevice'
$cfrom :: forall x. UpdateInputDevice' -> Rep UpdateInputDevice' x
Prelude.Generic)
newUpdateInputDevice' ::
Prelude.Text ->
UpdateInputDevice'
newUpdateInputDevice' :: Text -> UpdateInputDevice'
newUpdateInputDevice' Text
pInputDeviceId_ =
UpdateInputDevice'' :: Maybe InputDeviceConfigurableSettings
-> Maybe InputDeviceConfigurableSettings
-> Maybe Text
-> Text
-> UpdateInputDevice'
UpdateInputDevice''
{ $sel:hdDeviceSettings:UpdateInputDevice'' :: Maybe InputDeviceConfigurableSettings
hdDeviceSettings =
Maybe InputDeviceConfigurableSettings
forall a. Maybe a
Prelude.Nothing,
$sel:uhdDeviceSettings:UpdateInputDevice'' :: Maybe InputDeviceConfigurableSettings
uhdDeviceSettings = Maybe InputDeviceConfigurableSettings
forall a. Maybe a
Prelude.Nothing,
$sel:name:UpdateInputDevice'' :: Maybe Text
name = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:inputDeviceId:UpdateInputDevice'' :: Text
inputDeviceId = Text
pInputDeviceId_
}
updateInputDevice'_hdDeviceSettings :: Lens.Lens' UpdateInputDevice' (Prelude.Maybe InputDeviceConfigurableSettings)
updateInputDevice'_hdDeviceSettings :: (Maybe InputDeviceConfigurableSettings
-> f (Maybe InputDeviceConfigurableSettings))
-> UpdateInputDevice' -> f UpdateInputDevice'
updateInputDevice'_hdDeviceSettings = (UpdateInputDevice' -> Maybe InputDeviceConfigurableSettings)
-> (UpdateInputDevice'
-> Maybe InputDeviceConfigurableSettings -> UpdateInputDevice')
-> Lens
UpdateInputDevice'
UpdateInputDevice'
(Maybe InputDeviceConfigurableSettings)
(Maybe InputDeviceConfigurableSettings)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateInputDevice'' {Maybe InputDeviceConfigurableSettings
hdDeviceSettings :: Maybe InputDeviceConfigurableSettings
$sel:hdDeviceSettings:UpdateInputDevice'' :: UpdateInputDevice' -> Maybe InputDeviceConfigurableSettings
hdDeviceSettings} -> Maybe InputDeviceConfigurableSettings
hdDeviceSettings) (\s :: UpdateInputDevice'
s@UpdateInputDevice'' {} Maybe InputDeviceConfigurableSettings
a -> UpdateInputDevice'
s {$sel:hdDeviceSettings:UpdateInputDevice'' :: Maybe InputDeviceConfigurableSettings
hdDeviceSettings = Maybe InputDeviceConfigurableSettings
a} :: UpdateInputDevice')
updateInputDevice'_uhdDeviceSettings :: Lens.Lens' UpdateInputDevice' (Prelude.Maybe InputDeviceConfigurableSettings)
updateInputDevice'_uhdDeviceSettings :: (Maybe InputDeviceConfigurableSettings
-> f (Maybe InputDeviceConfigurableSettings))
-> UpdateInputDevice' -> f UpdateInputDevice'
updateInputDevice'_uhdDeviceSettings = (UpdateInputDevice' -> Maybe InputDeviceConfigurableSettings)
-> (UpdateInputDevice'
-> Maybe InputDeviceConfigurableSettings -> UpdateInputDevice')
-> Lens
UpdateInputDevice'
UpdateInputDevice'
(Maybe InputDeviceConfigurableSettings)
(Maybe InputDeviceConfigurableSettings)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateInputDevice'' {Maybe InputDeviceConfigurableSettings
uhdDeviceSettings :: Maybe InputDeviceConfigurableSettings
$sel:uhdDeviceSettings:UpdateInputDevice'' :: UpdateInputDevice' -> Maybe InputDeviceConfigurableSettings
uhdDeviceSettings} -> Maybe InputDeviceConfigurableSettings
uhdDeviceSettings) (\s :: UpdateInputDevice'
s@UpdateInputDevice'' {} Maybe InputDeviceConfigurableSettings
a -> UpdateInputDevice'
s {$sel:uhdDeviceSettings:UpdateInputDevice'' :: Maybe InputDeviceConfigurableSettings
uhdDeviceSettings = Maybe InputDeviceConfigurableSettings
a} :: UpdateInputDevice')
updateInputDevice'_name :: Lens.Lens' UpdateInputDevice' (Prelude.Maybe Prelude.Text)
updateInputDevice'_name :: (Maybe Text -> f (Maybe Text))
-> UpdateInputDevice' -> f UpdateInputDevice'
updateInputDevice'_name = (UpdateInputDevice' -> Maybe Text)
-> (UpdateInputDevice' -> Maybe Text -> UpdateInputDevice')
-> Lens
UpdateInputDevice' UpdateInputDevice' (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateInputDevice'' {Maybe Text
name :: Maybe Text
$sel:name:UpdateInputDevice'' :: UpdateInputDevice' -> Maybe Text
name} -> Maybe Text
name) (\s :: UpdateInputDevice'
s@UpdateInputDevice'' {} Maybe Text
a -> UpdateInputDevice'
s {$sel:name:UpdateInputDevice'' :: Maybe Text
name = Maybe Text
a} :: UpdateInputDevice')
updateInputDevice'_inputDeviceId :: Lens.Lens' UpdateInputDevice' Prelude.Text
updateInputDevice'_inputDeviceId :: (Text -> f Text) -> UpdateInputDevice' -> f UpdateInputDevice'
updateInputDevice'_inputDeviceId = (UpdateInputDevice' -> Text)
-> (UpdateInputDevice' -> Text -> UpdateInputDevice')
-> Lens UpdateInputDevice' UpdateInputDevice' Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateInputDevice'' {Text
inputDeviceId :: Text
$sel:inputDeviceId:UpdateInputDevice'' :: UpdateInputDevice' -> Text
inputDeviceId} -> Text
inputDeviceId) (\s :: UpdateInputDevice'
s@UpdateInputDevice'' {} Text
a -> UpdateInputDevice'
s {$sel:inputDeviceId:UpdateInputDevice'' :: Text
inputDeviceId = Text
a} :: UpdateInputDevice')
instance Core.AWSRequest UpdateInputDevice' where
type
AWSResponse UpdateInputDevice' =
UpdateInputDeviceResponse
request :: UpdateInputDevice' -> Request UpdateInputDevice'
request = Service -> UpdateInputDevice' -> Request UpdateInputDevice'
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.putJSON Service
defaultService
response :: Logger
-> Service
-> Proxy UpdateInputDevice'
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse UpdateInputDevice')))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse UpdateInputDevice'))
-> Logger
-> Service
-> Proxy UpdateInputDevice'
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse UpdateInputDevice')))
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
-> UpdateInputDeviceResponse
UpdateInputDeviceResponse'
(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
-> UpdateInputDeviceResponse)
-> 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
-> UpdateInputDeviceResponse)
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
-> UpdateInputDeviceResponse)
-> 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
-> UpdateInputDeviceResponse)
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
-> UpdateInputDeviceResponse)
-> 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
-> UpdateInputDeviceResponse)
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
-> UpdateInputDeviceResponse)
-> Either String (Maybe InputDeviceUhdSettings)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe DeviceUpdateStatus
-> Maybe DeviceSettingsSyncState
-> Maybe InputDeviceType
-> Maybe Text
-> Maybe InputDeviceNetworkSettings
-> Maybe InputDeviceConnectionState
-> Int
-> UpdateInputDeviceResponse)
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
-> UpdateInputDeviceResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe DeviceUpdateStatus
-> Maybe DeviceSettingsSyncState
-> Maybe InputDeviceType
-> Maybe Text
-> Maybe InputDeviceNetworkSettings
-> Maybe InputDeviceConnectionState
-> Int
-> UpdateInputDeviceResponse)
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
-> UpdateInputDeviceResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe DeviceUpdateStatus
-> Maybe DeviceSettingsSyncState
-> Maybe InputDeviceType
-> Maybe Text
-> Maybe InputDeviceNetworkSettings
-> Maybe InputDeviceConnectionState
-> Int
-> UpdateInputDeviceResponse)
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
-> UpdateInputDeviceResponse)
-> Either String (Maybe DeviceUpdateStatus)
-> Either
String
(Maybe DeviceSettingsSyncState
-> Maybe InputDeviceType
-> Maybe Text
-> Maybe InputDeviceNetworkSettings
-> Maybe InputDeviceConnectionState
-> Int
-> UpdateInputDeviceResponse)
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
-> UpdateInputDeviceResponse)
-> Either String (Maybe DeviceSettingsSyncState)
-> Either
String
(Maybe InputDeviceType
-> Maybe Text
-> Maybe InputDeviceNetworkSettings
-> Maybe InputDeviceConnectionState
-> Int
-> UpdateInputDeviceResponse)
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
-> UpdateInputDeviceResponse)
-> Either String (Maybe InputDeviceType)
-> Either
String
(Maybe Text
-> Maybe InputDeviceNetworkSettings
-> Maybe InputDeviceConnectionState
-> Int
-> UpdateInputDeviceResponse)
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
-> UpdateInputDeviceResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe InputDeviceNetworkSettings
-> Maybe InputDeviceConnectionState
-> Int
-> UpdateInputDeviceResponse)
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
-> UpdateInputDeviceResponse)
-> Either String (Maybe InputDeviceNetworkSettings)
-> Either
String
(Maybe InputDeviceConnectionState
-> Int -> UpdateInputDeviceResponse)
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 -> UpdateInputDeviceResponse)
-> Either String (Maybe InputDeviceConnectionState)
-> Either String (Int -> UpdateInputDeviceResponse)
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 -> UpdateInputDeviceResponse)
-> Either String Int -> Either String UpdateInputDeviceResponse
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 UpdateInputDevice'
instance Prelude.NFData UpdateInputDevice'
instance Core.ToHeaders UpdateInputDevice' where
toHeaders :: UpdateInputDevice' -> ResponseHeaders
toHeaders =
ResponseHeaders -> UpdateInputDevice' -> 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.ToJSON UpdateInputDevice' where
toJSON :: UpdateInputDevice' -> Value
toJSON UpdateInputDevice'' {Maybe Text
Maybe InputDeviceConfigurableSettings
Text
inputDeviceId :: Text
name :: Maybe Text
uhdDeviceSettings :: Maybe InputDeviceConfigurableSettings
hdDeviceSettings :: Maybe InputDeviceConfigurableSettings
$sel:inputDeviceId:UpdateInputDevice'' :: UpdateInputDevice' -> Text
$sel:name:UpdateInputDevice'' :: UpdateInputDevice' -> Maybe Text
$sel:uhdDeviceSettings:UpdateInputDevice'' :: UpdateInputDevice' -> Maybe InputDeviceConfigurableSettings
$sel:hdDeviceSettings:UpdateInputDevice'' :: UpdateInputDevice' -> Maybe InputDeviceConfigurableSettings
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"hdDeviceSettings" Text -> InputDeviceConfigurableSettings -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(InputDeviceConfigurableSettings -> Pair)
-> Maybe InputDeviceConfigurableSettings -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe InputDeviceConfigurableSettings
hdDeviceSettings,
(Text
"uhdDeviceSettings" Text -> InputDeviceConfigurableSettings -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(InputDeviceConfigurableSettings -> Pair)
-> Maybe InputDeviceConfigurableSettings -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe InputDeviceConfigurableSettings
uhdDeviceSettings,
(Text
"name" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
name
]
)
instance Core.ToPath UpdateInputDevice' where
toPath :: UpdateInputDevice' -> ByteString
toPath UpdateInputDevice'' {Maybe Text
Maybe InputDeviceConfigurableSettings
Text
inputDeviceId :: Text
name :: Maybe Text
uhdDeviceSettings :: Maybe InputDeviceConfigurableSettings
hdDeviceSettings :: Maybe InputDeviceConfigurableSettings
$sel:inputDeviceId:UpdateInputDevice'' :: UpdateInputDevice' -> Text
$sel:name:UpdateInputDevice'' :: UpdateInputDevice' -> Maybe Text
$sel:uhdDeviceSettings:UpdateInputDevice'' :: UpdateInputDevice' -> Maybe InputDeviceConfigurableSettings
$sel:hdDeviceSettings:UpdateInputDevice'' :: UpdateInputDevice' -> Maybe InputDeviceConfigurableSettings
..} =
[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 UpdateInputDevice' where
toQuery :: UpdateInputDevice' -> QueryString
toQuery = QueryString -> UpdateInputDevice' -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data UpdateInputDeviceResponse = UpdateInputDeviceResponse'
{
UpdateInputDeviceResponse -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
UpdateInputDeviceResponse -> Maybe Text
macAddress :: Prelude.Maybe Prelude.Text,
UpdateInputDeviceResponse -> Maybe InputDeviceHdSettings
hdDeviceSettings :: Prelude.Maybe InputDeviceHdSettings,
UpdateInputDeviceResponse -> Maybe InputDeviceUhdSettings
uhdDeviceSettings :: Prelude.Maybe InputDeviceUhdSettings,
UpdateInputDeviceResponse -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
UpdateInputDeviceResponse -> Maybe Text
id :: Prelude.Maybe Prelude.Text,
UpdateInputDeviceResponse -> Maybe DeviceUpdateStatus
deviceUpdateStatus :: Prelude.Maybe DeviceUpdateStatus,
UpdateInputDeviceResponse -> Maybe DeviceSettingsSyncState
deviceSettingsSyncState :: Prelude.Maybe DeviceSettingsSyncState,
UpdateInputDeviceResponse -> Maybe InputDeviceType
type' :: Prelude.Maybe InputDeviceType,
UpdateInputDeviceResponse -> Maybe Text
serialNumber :: Prelude.Maybe Prelude.Text,
UpdateInputDeviceResponse -> Maybe InputDeviceNetworkSettings
networkSettings :: Prelude.Maybe InputDeviceNetworkSettings,
UpdateInputDeviceResponse -> Maybe InputDeviceConnectionState
connectionState :: Prelude.Maybe InputDeviceConnectionState,
UpdateInputDeviceResponse -> Int
httpStatus :: Prelude.Int
}
deriving (UpdateInputDeviceResponse -> UpdateInputDeviceResponse -> Bool
(UpdateInputDeviceResponse -> UpdateInputDeviceResponse -> Bool)
-> (UpdateInputDeviceResponse -> UpdateInputDeviceResponse -> Bool)
-> Eq UpdateInputDeviceResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateInputDeviceResponse -> UpdateInputDeviceResponse -> Bool
$c/= :: UpdateInputDeviceResponse -> UpdateInputDeviceResponse -> Bool
== :: UpdateInputDeviceResponse -> UpdateInputDeviceResponse -> Bool
$c== :: UpdateInputDeviceResponse -> UpdateInputDeviceResponse -> Bool
Prelude.Eq, ReadPrec [UpdateInputDeviceResponse]
ReadPrec UpdateInputDeviceResponse
Int -> ReadS UpdateInputDeviceResponse
ReadS [UpdateInputDeviceResponse]
(Int -> ReadS UpdateInputDeviceResponse)
-> ReadS [UpdateInputDeviceResponse]
-> ReadPrec UpdateInputDeviceResponse
-> ReadPrec [UpdateInputDeviceResponse]
-> Read UpdateInputDeviceResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateInputDeviceResponse]
$creadListPrec :: ReadPrec [UpdateInputDeviceResponse]
readPrec :: ReadPrec UpdateInputDeviceResponse
$creadPrec :: ReadPrec UpdateInputDeviceResponse
readList :: ReadS [UpdateInputDeviceResponse]
$creadList :: ReadS [UpdateInputDeviceResponse]
readsPrec :: Int -> ReadS UpdateInputDeviceResponse
$creadsPrec :: Int -> ReadS UpdateInputDeviceResponse
Prelude.Read, Int -> UpdateInputDeviceResponse -> ShowS
[UpdateInputDeviceResponse] -> ShowS
UpdateInputDeviceResponse -> String
(Int -> UpdateInputDeviceResponse -> ShowS)
-> (UpdateInputDeviceResponse -> String)
-> ([UpdateInputDeviceResponse] -> ShowS)
-> Show UpdateInputDeviceResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateInputDeviceResponse] -> ShowS
$cshowList :: [UpdateInputDeviceResponse] -> ShowS
show :: UpdateInputDeviceResponse -> String
$cshow :: UpdateInputDeviceResponse -> String
showsPrec :: Int -> UpdateInputDeviceResponse -> ShowS
$cshowsPrec :: Int -> UpdateInputDeviceResponse -> ShowS
Prelude.Show, (forall x.
UpdateInputDeviceResponse -> Rep UpdateInputDeviceResponse x)
-> (forall x.
Rep UpdateInputDeviceResponse x -> UpdateInputDeviceResponse)
-> Generic UpdateInputDeviceResponse
forall x.
Rep UpdateInputDeviceResponse x -> UpdateInputDeviceResponse
forall x.
UpdateInputDeviceResponse -> Rep UpdateInputDeviceResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdateInputDeviceResponse x -> UpdateInputDeviceResponse
$cfrom :: forall x.
UpdateInputDeviceResponse -> Rep UpdateInputDeviceResponse x
Prelude.Generic)
newUpdateInputDeviceResponse ::
Prelude.Int ->
UpdateInputDeviceResponse
newUpdateInputDeviceResponse :: Int -> UpdateInputDeviceResponse
newUpdateInputDeviceResponse Int
pHttpStatus_ =
UpdateInputDeviceResponse' :: 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
-> UpdateInputDeviceResponse
UpdateInputDeviceResponse'
{ $sel:arn:UpdateInputDeviceResponse' :: Maybe Text
arn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:macAddress:UpdateInputDeviceResponse' :: Maybe Text
macAddress = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:hdDeviceSettings:UpdateInputDeviceResponse' :: Maybe InputDeviceHdSettings
hdDeviceSettings = Maybe InputDeviceHdSettings
forall a. Maybe a
Prelude.Nothing,
$sel:uhdDeviceSettings:UpdateInputDeviceResponse' :: Maybe InputDeviceUhdSettings
uhdDeviceSettings = Maybe InputDeviceUhdSettings
forall a. Maybe a
Prelude.Nothing,
$sel:name:UpdateInputDeviceResponse' :: Maybe Text
name = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:id:UpdateInputDeviceResponse' :: Maybe Text
id = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:deviceUpdateStatus:UpdateInputDeviceResponse' :: Maybe DeviceUpdateStatus
deviceUpdateStatus = Maybe DeviceUpdateStatus
forall a. Maybe a
Prelude.Nothing,
$sel:deviceSettingsSyncState:UpdateInputDeviceResponse' :: Maybe DeviceSettingsSyncState
deviceSettingsSyncState = Maybe DeviceSettingsSyncState
forall a. Maybe a
Prelude.Nothing,
$sel:type':UpdateInputDeviceResponse' :: Maybe InputDeviceType
type' = Maybe InputDeviceType
forall a. Maybe a
Prelude.Nothing,
$sel:serialNumber:UpdateInputDeviceResponse' :: Maybe Text
serialNumber = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:networkSettings:UpdateInputDeviceResponse' :: Maybe InputDeviceNetworkSettings
networkSettings = Maybe InputDeviceNetworkSettings
forall a. Maybe a
Prelude.Nothing,
$sel:connectionState:UpdateInputDeviceResponse' :: Maybe InputDeviceConnectionState
connectionState = Maybe InputDeviceConnectionState
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:UpdateInputDeviceResponse' :: Int
httpStatus = Int
pHttpStatus_
}
updateInputDeviceResponse_arn :: Lens.Lens' UpdateInputDeviceResponse (Prelude.Maybe Prelude.Text)
updateInputDeviceResponse_arn :: (Maybe Text -> f (Maybe Text))
-> UpdateInputDeviceResponse -> f UpdateInputDeviceResponse
updateInputDeviceResponse_arn = (UpdateInputDeviceResponse -> Maybe Text)
-> (UpdateInputDeviceResponse
-> Maybe Text -> UpdateInputDeviceResponse)
-> Lens
UpdateInputDeviceResponse
UpdateInputDeviceResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateInputDeviceResponse' {Maybe Text
arn :: Maybe Text
$sel:arn:UpdateInputDeviceResponse' :: UpdateInputDeviceResponse -> Maybe Text
arn} -> Maybe Text
arn) (\s :: UpdateInputDeviceResponse
s@UpdateInputDeviceResponse' {} Maybe Text
a -> UpdateInputDeviceResponse
s {$sel:arn:UpdateInputDeviceResponse' :: Maybe Text
arn = Maybe Text
a} :: UpdateInputDeviceResponse)
updateInputDeviceResponse_macAddress :: Lens.Lens' UpdateInputDeviceResponse (Prelude.Maybe Prelude.Text)
updateInputDeviceResponse_macAddress :: (Maybe Text -> f (Maybe Text))
-> UpdateInputDeviceResponse -> f UpdateInputDeviceResponse
updateInputDeviceResponse_macAddress = (UpdateInputDeviceResponse -> Maybe Text)
-> (UpdateInputDeviceResponse
-> Maybe Text -> UpdateInputDeviceResponse)
-> Lens
UpdateInputDeviceResponse
UpdateInputDeviceResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateInputDeviceResponse' {Maybe Text
macAddress :: Maybe Text
$sel:macAddress:UpdateInputDeviceResponse' :: UpdateInputDeviceResponse -> Maybe Text
macAddress} -> Maybe Text
macAddress) (\s :: UpdateInputDeviceResponse
s@UpdateInputDeviceResponse' {} Maybe Text
a -> UpdateInputDeviceResponse
s {$sel:macAddress:UpdateInputDeviceResponse' :: Maybe Text
macAddress = Maybe Text
a} :: UpdateInputDeviceResponse)
updateInputDeviceResponse_hdDeviceSettings :: Lens.Lens' UpdateInputDeviceResponse (Prelude.Maybe InputDeviceHdSettings)
updateInputDeviceResponse_hdDeviceSettings :: (Maybe InputDeviceHdSettings -> f (Maybe InputDeviceHdSettings))
-> UpdateInputDeviceResponse -> f UpdateInputDeviceResponse
updateInputDeviceResponse_hdDeviceSettings = (UpdateInputDeviceResponse -> Maybe InputDeviceHdSettings)
-> (UpdateInputDeviceResponse
-> Maybe InputDeviceHdSettings -> UpdateInputDeviceResponse)
-> Lens
UpdateInputDeviceResponse
UpdateInputDeviceResponse
(Maybe InputDeviceHdSettings)
(Maybe InputDeviceHdSettings)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateInputDeviceResponse' {Maybe InputDeviceHdSettings
hdDeviceSettings :: Maybe InputDeviceHdSettings
$sel:hdDeviceSettings:UpdateInputDeviceResponse' :: UpdateInputDeviceResponse -> Maybe InputDeviceHdSettings
hdDeviceSettings} -> Maybe InputDeviceHdSettings
hdDeviceSettings) (\s :: UpdateInputDeviceResponse
s@UpdateInputDeviceResponse' {} Maybe InputDeviceHdSettings
a -> UpdateInputDeviceResponse
s {$sel:hdDeviceSettings:UpdateInputDeviceResponse' :: Maybe InputDeviceHdSettings
hdDeviceSettings = Maybe InputDeviceHdSettings
a} :: UpdateInputDeviceResponse)
updateInputDeviceResponse_uhdDeviceSettings :: Lens.Lens' UpdateInputDeviceResponse (Prelude.Maybe InputDeviceUhdSettings)
updateInputDeviceResponse_uhdDeviceSettings :: (Maybe InputDeviceUhdSettings -> f (Maybe InputDeviceUhdSettings))
-> UpdateInputDeviceResponse -> f UpdateInputDeviceResponse
updateInputDeviceResponse_uhdDeviceSettings = (UpdateInputDeviceResponse -> Maybe InputDeviceUhdSettings)
-> (UpdateInputDeviceResponse
-> Maybe InputDeviceUhdSettings -> UpdateInputDeviceResponse)
-> Lens
UpdateInputDeviceResponse
UpdateInputDeviceResponse
(Maybe InputDeviceUhdSettings)
(Maybe InputDeviceUhdSettings)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateInputDeviceResponse' {Maybe InputDeviceUhdSettings
uhdDeviceSettings :: Maybe InputDeviceUhdSettings
$sel:uhdDeviceSettings:UpdateInputDeviceResponse' :: UpdateInputDeviceResponse -> Maybe InputDeviceUhdSettings
uhdDeviceSettings} -> Maybe InputDeviceUhdSettings
uhdDeviceSettings) (\s :: UpdateInputDeviceResponse
s@UpdateInputDeviceResponse' {} Maybe InputDeviceUhdSettings
a -> UpdateInputDeviceResponse
s {$sel:uhdDeviceSettings:UpdateInputDeviceResponse' :: Maybe InputDeviceUhdSettings
uhdDeviceSettings = Maybe InputDeviceUhdSettings
a} :: UpdateInputDeviceResponse)
updateInputDeviceResponse_name :: Lens.Lens' UpdateInputDeviceResponse (Prelude.Maybe Prelude.Text)
updateInputDeviceResponse_name :: (Maybe Text -> f (Maybe Text))
-> UpdateInputDeviceResponse -> f UpdateInputDeviceResponse
updateInputDeviceResponse_name = (UpdateInputDeviceResponse -> Maybe Text)
-> (UpdateInputDeviceResponse
-> Maybe Text -> UpdateInputDeviceResponse)
-> Lens
UpdateInputDeviceResponse
UpdateInputDeviceResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateInputDeviceResponse' {Maybe Text
name :: Maybe Text
$sel:name:UpdateInputDeviceResponse' :: UpdateInputDeviceResponse -> Maybe Text
name} -> Maybe Text
name) (\s :: UpdateInputDeviceResponse
s@UpdateInputDeviceResponse' {} Maybe Text
a -> UpdateInputDeviceResponse
s {$sel:name:UpdateInputDeviceResponse' :: Maybe Text
name = Maybe Text
a} :: UpdateInputDeviceResponse)
updateInputDeviceResponse_id :: Lens.Lens' UpdateInputDeviceResponse (Prelude.Maybe Prelude.Text)
updateInputDeviceResponse_id :: (Maybe Text -> f (Maybe Text))
-> UpdateInputDeviceResponse -> f UpdateInputDeviceResponse
updateInputDeviceResponse_id = (UpdateInputDeviceResponse -> Maybe Text)
-> (UpdateInputDeviceResponse
-> Maybe Text -> UpdateInputDeviceResponse)
-> Lens
UpdateInputDeviceResponse
UpdateInputDeviceResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateInputDeviceResponse' {Maybe Text
id :: Maybe Text
$sel:id:UpdateInputDeviceResponse' :: UpdateInputDeviceResponse -> Maybe Text
id} -> Maybe Text
id) (\s :: UpdateInputDeviceResponse
s@UpdateInputDeviceResponse' {} Maybe Text
a -> UpdateInputDeviceResponse
s {$sel:id:UpdateInputDeviceResponse' :: Maybe Text
id = Maybe Text
a} :: UpdateInputDeviceResponse)
updateInputDeviceResponse_deviceUpdateStatus :: Lens.Lens' UpdateInputDeviceResponse (Prelude.Maybe DeviceUpdateStatus)
updateInputDeviceResponse_deviceUpdateStatus :: (Maybe DeviceUpdateStatus -> f (Maybe DeviceUpdateStatus))
-> UpdateInputDeviceResponse -> f UpdateInputDeviceResponse
updateInputDeviceResponse_deviceUpdateStatus = (UpdateInputDeviceResponse -> Maybe DeviceUpdateStatus)
-> (UpdateInputDeviceResponse
-> Maybe DeviceUpdateStatus -> UpdateInputDeviceResponse)
-> Lens
UpdateInputDeviceResponse
UpdateInputDeviceResponse
(Maybe DeviceUpdateStatus)
(Maybe DeviceUpdateStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateInputDeviceResponse' {Maybe DeviceUpdateStatus
deviceUpdateStatus :: Maybe DeviceUpdateStatus
$sel:deviceUpdateStatus:UpdateInputDeviceResponse' :: UpdateInputDeviceResponse -> Maybe DeviceUpdateStatus
deviceUpdateStatus} -> Maybe DeviceUpdateStatus
deviceUpdateStatus) (\s :: UpdateInputDeviceResponse
s@UpdateInputDeviceResponse' {} Maybe DeviceUpdateStatus
a -> UpdateInputDeviceResponse
s {$sel:deviceUpdateStatus:UpdateInputDeviceResponse' :: Maybe DeviceUpdateStatus
deviceUpdateStatus = Maybe DeviceUpdateStatus
a} :: UpdateInputDeviceResponse)
updateInputDeviceResponse_deviceSettingsSyncState :: Lens.Lens' UpdateInputDeviceResponse (Prelude.Maybe DeviceSettingsSyncState)
updateInputDeviceResponse_deviceSettingsSyncState :: (Maybe DeviceSettingsSyncState
-> f (Maybe DeviceSettingsSyncState))
-> UpdateInputDeviceResponse -> f UpdateInputDeviceResponse
updateInputDeviceResponse_deviceSettingsSyncState = (UpdateInputDeviceResponse -> Maybe DeviceSettingsSyncState)
-> (UpdateInputDeviceResponse
-> Maybe DeviceSettingsSyncState -> UpdateInputDeviceResponse)
-> Lens
UpdateInputDeviceResponse
UpdateInputDeviceResponse
(Maybe DeviceSettingsSyncState)
(Maybe DeviceSettingsSyncState)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateInputDeviceResponse' {Maybe DeviceSettingsSyncState
deviceSettingsSyncState :: Maybe DeviceSettingsSyncState
$sel:deviceSettingsSyncState:UpdateInputDeviceResponse' :: UpdateInputDeviceResponse -> Maybe DeviceSettingsSyncState
deviceSettingsSyncState} -> Maybe DeviceSettingsSyncState
deviceSettingsSyncState) (\s :: UpdateInputDeviceResponse
s@UpdateInputDeviceResponse' {} Maybe DeviceSettingsSyncState
a -> UpdateInputDeviceResponse
s {$sel:deviceSettingsSyncState:UpdateInputDeviceResponse' :: Maybe DeviceSettingsSyncState
deviceSettingsSyncState = Maybe DeviceSettingsSyncState
a} :: UpdateInputDeviceResponse)
updateInputDeviceResponse_type :: Lens.Lens' UpdateInputDeviceResponse (Prelude.Maybe InputDeviceType)
updateInputDeviceResponse_type :: (Maybe InputDeviceType -> f (Maybe InputDeviceType))
-> UpdateInputDeviceResponse -> f UpdateInputDeviceResponse
updateInputDeviceResponse_type = (UpdateInputDeviceResponse -> Maybe InputDeviceType)
-> (UpdateInputDeviceResponse
-> Maybe InputDeviceType -> UpdateInputDeviceResponse)
-> Lens
UpdateInputDeviceResponse
UpdateInputDeviceResponse
(Maybe InputDeviceType)
(Maybe InputDeviceType)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateInputDeviceResponse' {Maybe InputDeviceType
type' :: Maybe InputDeviceType
$sel:type':UpdateInputDeviceResponse' :: UpdateInputDeviceResponse -> Maybe InputDeviceType
type'} -> Maybe InputDeviceType
type') (\s :: UpdateInputDeviceResponse
s@UpdateInputDeviceResponse' {} Maybe InputDeviceType
a -> UpdateInputDeviceResponse
s {$sel:type':UpdateInputDeviceResponse' :: Maybe InputDeviceType
type' = Maybe InputDeviceType
a} :: UpdateInputDeviceResponse)
updateInputDeviceResponse_serialNumber :: Lens.Lens' UpdateInputDeviceResponse (Prelude.Maybe Prelude.Text)
updateInputDeviceResponse_serialNumber :: (Maybe Text -> f (Maybe Text))
-> UpdateInputDeviceResponse -> f UpdateInputDeviceResponse
updateInputDeviceResponse_serialNumber = (UpdateInputDeviceResponse -> Maybe Text)
-> (UpdateInputDeviceResponse
-> Maybe Text -> UpdateInputDeviceResponse)
-> Lens
UpdateInputDeviceResponse
UpdateInputDeviceResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateInputDeviceResponse' {Maybe Text
serialNumber :: Maybe Text
$sel:serialNumber:UpdateInputDeviceResponse' :: UpdateInputDeviceResponse -> Maybe Text
serialNumber} -> Maybe Text
serialNumber) (\s :: UpdateInputDeviceResponse
s@UpdateInputDeviceResponse' {} Maybe Text
a -> UpdateInputDeviceResponse
s {$sel:serialNumber:UpdateInputDeviceResponse' :: Maybe Text
serialNumber = Maybe Text
a} :: UpdateInputDeviceResponse)
updateInputDeviceResponse_networkSettings :: Lens.Lens' UpdateInputDeviceResponse (Prelude.Maybe InputDeviceNetworkSettings)
updateInputDeviceResponse_networkSettings :: (Maybe InputDeviceNetworkSettings
-> f (Maybe InputDeviceNetworkSettings))
-> UpdateInputDeviceResponse -> f UpdateInputDeviceResponse
updateInputDeviceResponse_networkSettings = (UpdateInputDeviceResponse -> Maybe InputDeviceNetworkSettings)
-> (UpdateInputDeviceResponse
-> Maybe InputDeviceNetworkSettings -> UpdateInputDeviceResponse)
-> Lens
UpdateInputDeviceResponse
UpdateInputDeviceResponse
(Maybe InputDeviceNetworkSettings)
(Maybe InputDeviceNetworkSettings)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateInputDeviceResponse' {Maybe InputDeviceNetworkSettings
networkSettings :: Maybe InputDeviceNetworkSettings
$sel:networkSettings:UpdateInputDeviceResponse' :: UpdateInputDeviceResponse -> Maybe InputDeviceNetworkSettings
networkSettings} -> Maybe InputDeviceNetworkSettings
networkSettings) (\s :: UpdateInputDeviceResponse
s@UpdateInputDeviceResponse' {} Maybe InputDeviceNetworkSettings
a -> UpdateInputDeviceResponse
s {$sel:networkSettings:UpdateInputDeviceResponse' :: Maybe InputDeviceNetworkSettings
networkSettings = Maybe InputDeviceNetworkSettings
a} :: UpdateInputDeviceResponse)
updateInputDeviceResponse_connectionState :: Lens.Lens' UpdateInputDeviceResponse (Prelude.Maybe InputDeviceConnectionState)
updateInputDeviceResponse_connectionState :: (Maybe InputDeviceConnectionState
-> f (Maybe InputDeviceConnectionState))
-> UpdateInputDeviceResponse -> f UpdateInputDeviceResponse
updateInputDeviceResponse_connectionState = (UpdateInputDeviceResponse -> Maybe InputDeviceConnectionState)
-> (UpdateInputDeviceResponse
-> Maybe InputDeviceConnectionState -> UpdateInputDeviceResponse)
-> Lens
UpdateInputDeviceResponse
UpdateInputDeviceResponse
(Maybe InputDeviceConnectionState)
(Maybe InputDeviceConnectionState)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateInputDeviceResponse' {Maybe InputDeviceConnectionState
connectionState :: Maybe InputDeviceConnectionState
$sel:connectionState:UpdateInputDeviceResponse' :: UpdateInputDeviceResponse -> Maybe InputDeviceConnectionState
connectionState} -> Maybe InputDeviceConnectionState
connectionState) (\s :: UpdateInputDeviceResponse
s@UpdateInputDeviceResponse' {} Maybe InputDeviceConnectionState
a -> UpdateInputDeviceResponse
s {$sel:connectionState:UpdateInputDeviceResponse' :: Maybe InputDeviceConnectionState
connectionState = Maybe InputDeviceConnectionState
a} :: UpdateInputDeviceResponse)
updateInputDeviceResponse_httpStatus :: Lens.Lens' UpdateInputDeviceResponse Prelude.Int
updateInputDeviceResponse_httpStatus :: (Int -> f Int)
-> UpdateInputDeviceResponse -> f UpdateInputDeviceResponse
updateInputDeviceResponse_httpStatus = (UpdateInputDeviceResponse -> Int)
-> (UpdateInputDeviceResponse -> Int -> UpdateInputDeviceResponse)
-> Lens UpdateInputDeviceResponse UpdateInputDeviceResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateInputDeviceResponse' {Int
httpStatus :: Int
$sel:httpStatus:UpdateInputDeviceResponse' :: UpdateInputDeviceResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: UpdateInputDeviceResponse
s@UpdateInputDeviceResponse' {} Int
a -> UpdateInputDeviceResponse
s {$sel:httpStatus:UpdateInputDeviceResponse' :: Int
httpStatus = Int
a} :: UpdateInputDeviceResponse)
instance Prelude.NFData UpdateInputDeviceResponse