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

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

-- |
-- Module      : Amazonka.MediaLive.Types.MultiplexMediaConnectOutputDestinationSettings
-- 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)
module Amazonka.MediaLive.Types.MultiplexMediaConnectOutputDestinationSettings where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude

-- | Multiplex MediaConnect output destination settings.
--
-- /See:/ 'newMultiplexMediaConnectOutputDestinationSettings' smart constructor.
data MultiplexMediaConnectOutputDestinationSettings = MultiplexMediaConnectOutputDestinationSettings'
  { -- | The MediaConnect entitlement ARN available as a Flow source.
    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)

-- |
-- Create a value of 'MultiplexMediaConnectOutputDestinationSettings' 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:
--
-- 'entitlementArn', 'multiplexMediaConnectOutputDestinationSettings_entitlementArn' - The MediaConnect entitlement ARN available as a Flow source.
newMultiplexMediaConnectOutputDestinationSettings ::
  MultiplexMediaConnectOutputDestinationSettings
newMultiplexMediaConnectOutputDestinationSettings :: MultiplexMediaConnectOutputDestinationSettings
newMultiplexMediaConnectOutputDestinationSettings =
  MultiplexMediaConnectOutputDestinationSettings' :: Maybe Text -> MultiplexMediaConnectOutputDestinationSettings
MultiplexMediaConnectOutputDestinationSettings'
    { $sel:entitlementArn:MultiplexMediaConnectOutputDestinationSettings' :: Maybe Text
entitlementArn =
        Maybe Text
forall a. Maybe a
Prelude.Nothing
    }

-- | The MediaConnect entitlement ARN available as a Flow source.
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