{-# 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-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.MediaLive.Types.MultiplexMediaConnectOutputDestinationSettings where

import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
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
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]
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
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.
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'
    { $sel:entitlementArn:MultiplexMediaConnectOutputDestinationSettings' :: Maybe Text
entitlementArn =
        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 :: Lens' MultiplexMediaConnectOutputDestinationSettings (Maybe Text)
multiplexMediaConnectOutputDestinationSettings_entitlementArn = 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
  Data.FromJSON
    MultiplexMediaConnectOutputDestinationSettings
  where
  parseJSON :: Value -> Parser MultiplexMediaConnectOutputDestinationSettings
parseJSON =
    forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
      String
"MultiplexMediaConnectOutputDestinationSettings"
      ( \Object
x ->
          Maybe Text -> MultiplexMediaConnectOutputDestinationSettings
MultiplexMediaConnectOutputDestinationSettings'
            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
"entitlementArn")
      )

instance
  Prelude.Hashable
    MultiplexMediaConnectOutputDestinationSettings
  where
  hashWithSalt :: Int -> MultiplexMediaConnectOutputDestinationSettings -> Int
hashWithSalt
    Int
_salt
    MultiplexMediaConnectOutputDestinationSettings' {Maybe Text
entitlementArn :: Maybe Text
$sel:entitlementArn:MultiplexMediaConnectOutputDestinationSettings' :: MultiplexMediaConnectOutputDestinationSettings -> Maybe Text
..} =
      Int
_salt forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
entitlementArn

instance
  Prelude.NFData
    MultiplexMediaConnectOutputDestinationSettings
  where
  rnf :: MultiplexMediaConnectOutputDestinationSettings -> ()
rnf
    MultiplexMediaConnectOutputDestinationSettings' {Maybe Text
entitlementArn :: Maybe Text
$sel:entitlementArn:MultiplexMediaConnectOutputDestinationSettings' :: MultiplexMediaConnectOutputDestinationSettings -> Maybe Text
..} =
      forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
entitlementArn