{-# 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.MultiplexOutputDestination 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.MultiplexMediaConnectOutputDestinationSettings
import qualified Amazonka.Prelude as Prelude
data MultiplexOutputDestination = MultiplexOutputDestination'
{
MultiplexOutputDestination
-> Maybe MultiplexMediaConnectOutputDestinationSettings
mediaConnectSettings :: Prelude.Maybe MultiplexMediaConnectOutputDestinationSettings
}
deriving (MultiplexOutputDestination -> MultiplexOutputDestination -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: MultiplexOutputDestination -> MultiplexOutputDestination -> Bool
$c/= :: MultiplexOutputDestination -> MultiplexOutputDestination -> Bool
== :: MultiplexOutputDestination -> MultiplexOutputDestination -> Bool
$c== :: MultiplexOutputDestination -> MultiplexOutputDestination -> Bool
Prelude.Eq, ReadPrec [MultiplexOutputDestination]
ReadPrec MultiplexOutputDestination
Int -> ReadS MultiplexOutputDestination
ReadS [MultiplexOutputDestination]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [MultiplexOutputDestination]
$creadListPrec :: ReadPrec [MultiplexOutputDestination]
readPrec :: ReadPrec MultiplexOutputDestination
$creadPrec :: ReadPrec MultiplexOutputDestination
readList :: ReadS [MultiplexOutputDestination]
$creadList :: ReadS [MultiplexOutputDestination]
readsPrec :: Int -> ReadS MultiplexOutputDestination
$creadsPrec :: Int -> ReadS MultiplexOutputDestination
Prelude.Read, Int -> MultiplexOutputDestination -> ShowS
[MultiplexOutputDestination] -> ShowS
MultiplexOutputDestination -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [MultiplexOutputDestination] -> ShowS
$cshowList :: [MultiplexOutputDestination] -> ShowS
show :: MultiplexOutputDestination -> String
$cshow :: MultiplexOutputDestination -> String
showsPrec :: Int -> MultiplexOutputDestination -> ShowS
$cshowsPrec :: Int -> MultiplexOutputDestination -> ShowS
Prelude.Show, forall x.
Rep MultiplexOutputDestination x -> MultiplexOutputDestination
forall x.
MultiplexOutputDestination -> Rep MultiplexOutputDestination x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep MultiplexOutputDestination x -> MultiplexOutputDestination
$cfrom :: forall x.
MultiplexOutputDestination -> Rep MultiplexOutputDestination x
Prelude.Generic)
newMultiplexOutputDestination ::
MultiplexOutputDestination
newMultiplexOutputDestination :: MultiplexOutputDestination
newMultiplexOutputDestination =
MultiplexOutputDestination'
{ $sel:mediaConnectSettings:MultiplexOutputDestination' :: Maybe MultiplexMediaConnectOutputDestinationSettings
mediaConnectSettings =
forall a. Maybe a
Prelude.Nothing
}
multiplexOutputDestination_mediaConnectSettings :: Lens.Lens' MultiplexOutputDestination (Prelude.Maybe MultiplexMediaConnectOutputDestinationSettings)
multiplexOutputDestination_mediaConnectSettings :: Lens'
MultiplexOutputDestination
(Maybe MultiplexMediaConnectOutputDestinationSettings)
multiplexOutputDestination_mediaConnectSettings = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MultiplexOutputDestination' {Maybe MultiplexMediaConnectOutputDestinationSettings
mediaConnectSettings :: Maybe MultiplexMediaConnectOutputDestinationSettings
$sel:mediaConnectSettings:MultiplexOutputDestination' :: MultiplexOutputDestination
-> Maybe MultiplexMediaConnectOutputDestinationSettings
mediaConnectSettings} -> Maybe MultiplexMediaConnectOutputDestinationSettings
mediaConnectSettings) (\s :: MultiplexOutputDestination
s@MultiplexOutputDestination' {} Maybe MultiplexMediaConnectOutputDestinationSettings
a -> MultiplexOutputDestination
s {$sel:mediaConnectSettings:MultiplexOutputDestination' :: Maybe MultiplexMediaConnectOutputDestinationSettings
mediaConnectSettings = Maybe MultiplexMediaConnectOutputDestinationSettings
a} :: MultiplexOutputDestination)
instance Data.FromJSON MultiplexOutputDestination where
parseJSON :: Value -> Parser MultiplexOutputDestination
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"MultiplexOutputDestination"
( \Object
x ->
Maybe MultiplexMediaConnectOutputDestinationSettings
-> MultiplexOutputDestination
MultiplexOutputDestination'
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
"mediaConnectSettings")
)
instance Prelude.Hashable MultiplexOutputDestination where
hashWithSalt :: Int -> MultiplexOutputDestination -> Int
hashWithSalt Int
_salt MultiplexOutputDestination' {Maybe MultiplexMediaConnectOutputDestinationSettings
mediaConnectSettings :: Maybe MultiplexMediaConnectOutputDestinationSettings
$sel:mediaConnectSettings:MultiplexOutputDestination' :: MultiplexOutputDestination
-> Maybe MultiplexMediaConnectOutputDestinationSettings
..} =
Int
_salt forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe MultiplexMediaConnectOutputDestinationSettings
mediaConnectSettings
instance Prelude.NFData MultiplexOutputDestination where
rnf :: MultiplexOutputDestination -> ()
rnf MultiplexOutputDestination' {Maybe MultiplexMediaConnectOutputDestinationSettings
mediaConnectSettings :: Maybe MultiplexMediaConnectOutputDestinationSettings
$sel:mediaConnectSettings:MultiplexOutputDestination' :: MultiplexOutputDestination
-> Maybe MultiplexMediaConnectOutputDestinationSettings
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe MultiplexMediaConnectOutputDestinationSettings
mediaConnectSettings