{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.MediaLive.Types.TransferringInputDeviceSummary where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.MediaLive.Types.InputDeviceTransferType
import qualified Amazonka.Prelude as Prelude
data TransferringInputDeviceSummary = TransferringInputDeviceSummary'
{
TransferringInputDeviceSummary -> Maybe Text
id :: Prelude.Maybe Prelude.Text,
TransferringInputDeviceSummary -> Maybe Text
message :: Prelude.Maybe Prelude.Text,
TransferringInputDeviceSummary -> Maybe Text
targetCustomerId :: Prelude.Maybe Prelude.Text,
TransferringInputDeviceSummary -> Maybe InputDeviceTransferType
transferType :: Prelude.Maybe InputDeviceTransferType
}
deriving (TransferringInputDeviceSummary
-> TransferringInputDeviceSummary -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: TransferringInputDeviceSummary
-> TransferringInputDeviceSummary -> Bool
$c/= :: TransferringInputDeviceSummary
-> TransferringInputDeviceSummary -> Bool
== :: TransferringInputDeviceSummary
-> TransferringInputDeviceSummary -> Bool
$c== :: TransferringInputDeviceSummary
-> TransferringInputDeviceSummary -> Bool
Prelude.Eq, ReadPrec [TransferringInputDeviceSummary]
ReadPrec TransferringInputDeviceSummary
Int -> ReadS TransferringInputDeviceSummary
ReadS [TransferringInputDeviceSummary]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [TransferringInputDeviceSummary]
$creadListPrec :: ReadPrec [TransferringInputDeviceSummary]
readPrec :: ReadPrec TransferringInputDeviceSummary
$creadPrec :: ReadPrec TransferringInputDeviceSummary
readList :: ReadS [TransferringInputDeviceSummary]
$creadList :: ReadS [TransferringInputDeviceSummary]
readsPrec :: Int -> ReadS TransferringInputDeviceSummary
$creadsPrec :: Int -> ReadS TransferringInputDeviceSummary
Prelude.Read, Int -> TransferringInputDeviceSummary -> ShowS
[TransferringInputDeviceSummary] -> ShowS
TransferringInputDeviceSummary -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [TransferringInputDeviceSummary] -> ShowS
$cshowList :: [TransferringInputDeviceSummary] -> ShowS
show :: TransferringInputDeviceSummary -> String
$cshow :: TransferringInputDeviceSummary -> String
showsPrec :: Int -> TransferringInputDeviceSummary -> ShowS
$cshowsPrec :: Int -> TransferringInputDeviceSummary -> ShowS
Prelude.Show, forall x.
Rep TransferringInputDeviceSummary x
-> TransferringInputDeviceSummary
forall x.
TransferringInputDeviceSummary
-> Rep TransferringInputDeviceSummary x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep TransferringInputDeviceSummary x
-> TransferringInputDeviceSummary
$cfrom :: forall x.
TransferringInputDeviceSummary
-> Rep TransferringInputDeviceSummary x
Prelude.Generic)
newTransferringInputDeviceSummary ::
TransferringInputDeviceSummary
newTransferringInputDeviceSummary :: TransferringInputDeviceSummary
newTransferringInputDeviceSummary =
TransferringInputDeviceSummary'
{ $sel:id:TransferringInputDeviceSummary' :: Maybe Text
id =
forall a. Maybe a
Prelude.Nothing,
$sel:message:TransferringInputDeviceSummary' :: Maybe Text
message = forall a. Maybe a
Prelude.Nothing,
$sel:targetCustomerId:TransferringInputDeviceSummary' :: Maybe Text
targetCustomerId = forall a. Maybe a
Prelude.Nothing,
$sel:transferType:TransferringInputDeviceSummary' :: Maybe InputDeviceTransferType
transferType = forall a. Maybe a
Prelude.Nothing
}
transferringInputDeviceSummary_id :: Lens.Lens' TransferringInputDeviceSummary (Prelude.Maybe Prelude.Text)
transferringInputDeviceSummary_id :: Lens' TransferringInputDeviceSummary (Maybe Text)
transferringInputDeviceSummary_id = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TransferringInputDeviceSummary' {Maybe Text
id :: Maybe Text
$sel:id:TransferringInputDeviceSummary' :: TransferringInputDeviceSummary -> Maybe Text
id} -> Maybe Text
id) (\s :: TransferringInputDeviceSummary
s@TransferringInputDeviceSummary' {} Maybe Text
a -> TransferringInputDeviceSummary
s {$sel:id:TransferringInputDeviceSummary' :: Maybe Text
id = Maybe Text
a} :: TransferringInputDeviceSummary)
transferringInputDeviceSummary_message :: Lens.Lens' TransferringInputDeviceSummary (Prelude.Maybe Prelude.Text)
transferringInputDeviceSummary_message :: Lens' TransferringInputDeviceSummary (Maybe Text)
transferringInputDeviceSummary_message = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TransferringInputDeviceSummary' {Maybe Text
message :: Maybe Text
$sel:message:TransferringInputDeviceSummary' :: TransferringInputDeviceSummary -> Maybe Text
message} -> Maybe Text
message) (\s :: TransferringInputDeviceSummary
s@TransferringInputDeviceSummary' {} Maybe Text
a -> TransferringInputDeviceSummary
s {$sel:message:TransferringInputDeviceSummary' :: Maybe Text
message = Maybe Text
a} :: TransferringInputDeviceSummary)
transferringInputDeviceSummary_targetCustomerId :: Lens.Lens' TransferringInputDeviceSummary (Prelude.Maybe Prelude.Text)
transferringInputDeviceSummary_targetCustomerId :: Lens' TransferringInputDeviceSummary (Maybe Text)
transferringInputDeviceSummary_targetCustomerId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TransferringInputDeviceSummary' {Maybe Text
targetCustomerId :: Maybe Text
$sel:targetCustomerId:TransferringInputDeviceSummary' :: TransferringInputDeviceSummary -> Maybe Text
targetCustomerId} -> Maybe Text
targetCustomerId) (\s :: TransferringInputDeviceSummary
s@TransferringInputDeviceSummary' {} Maybe Text
a -> TransferringInputDeviceSummary
s {$sel:targetCustomerId:TransferringInputDeviceSummary' :: Maybe Text
targetCustomerId = Maybe Text
a} :: TransferringInputDeviceSummary)
transferringInputDeviceSummary_transferType :: Lens.Lens' TransferringInputDeviceSummary (Prelude.Maybe InputDeviceTransferType)
transferringInputDeviceSummary_transferType :: Lens'
TransferringInputDeviceSummary (Maybe InputDeviceTransferType)
transferringInputDeviceSummary_transferType = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TransferringInputDeviceSummary' {Maybe InputDeviceTransferType
transferType :: Maybe InputDeviceTransferType
$sel:transferType:TransferringInputDeviceSummary' :: TransferringInputDeviceSummary -> Maybe InputDeviceTransferType
transferType} -> Maybe InputDeviceTransferType
transferType) (\s :: TransferringInputDeviceSummary
s@TransferringInputDeviceSummary' {} Maybe InputDeviceTransferType
a -> TransferringInputDeviceSummary
s {$sel:transferType:TransferringInputDeviceSummary' :: Maybe InputDeviceTransferType
transferType = Maybe InputDeviceTransferType
a} :: TransferringInputDeviceSummary)
instance Data.FromJSON TransferringInputDeviceSummary where
parseJSON :: Value -> Parser TransferringInputDeviceSummary
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"TransferringInputDeviceSummary"
( \Object
x ->
Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe InputDeviceTransferType
-> TransferringInputDeviceSummary
TransferringInputDeviceSummary'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"id")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"message")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"targetCustomerId")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"transferType")
)
instance
Prelude.Hashable
TransferringInputDeviceSummary
where
hashWithSalt :: Int -> TransferringInputDeviceSummary -> Int
hashWithSalt
Int
_salt
TransferringInputDeviceSummary' {Maybe Text
Maybe InputDeviceTransferType
transferType :: Maybe InputDeviceTransferType
targetCustomerId :: Maybe Text
message :: Maybe Text
id :: Maybe Text
$sel:transferType:TransferringInputDeviceSummary' :: TransferringInputDeviceSummary -> Maybe InputDeviceTransferType
$sel:targetCustomerId:TransferringInputDeviceSummary' :: TransferringInputDeviceSummary -> Maybe Text
$sel:message:TransferringInputDeviceSummary' :: TransferringInputDeviceSummary -> Maybe Text
$sel:id:TransferringInputDeviceSummary' :: TransferringInputDeviceSummary -> Maybe Text
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
id
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
message
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
targetCustomerId
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe InputDeviceTransferType
transferType
instance
Prelude.NFData
TransferringInputDeviceSummary
where
rnf :: TransferringInputDeviceSummary -> ()
rnf TransferringInputDeviceSummary' {Maybe Text
Maybe InputDeviceTransferType
transferType :: Maybe InputDeviceTransferType
targetCustomerId :: Maybe Text
message :: Maybe Text
id :: Maybe Text
$sel:transferType:TransferringInputDeviceSummary' :: TransferringInputDeviceSummary -> Maybe InputDeviceTransferType
$sel:targetCustomerId:TransferringInputDeviceSummary' :: TransferringInputDeviceSummary -> Maybe Text
$sel:message:TransferringInputDeviceSummary' :: TransferringInputDeviceSummary -> Maybe Text
$sel:id:TransferringInputDeviceSummary' :: TransferringInputDeviceSummary -> Maybe Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
id
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
message
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
targetCustomerId
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe InputDeviceTransferType
transferType