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