{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# 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.DescribeMultiplexProgram
-- 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)
--
-- Get the details for a program in a multiplex.
module Amazonka.MediaLive.DescribeMultiplexProgram
  ( -- * Creating a Request
    DescribeMultiplexProgram (..),
    newDescribeMultiplexProgram,

    -- * Request Lenses
    describeMultiplexProgram_multiplexId,
    describeMultiplexProgram_programName,

    -- * Destructuring the Response
    DescribeMultiplexProgramResponse (..),
    newDescribeMultiplexProgramResponse,

    -- * Response Lenses
    describeMultiplexProgramResponse_packetIdentifiersMap,
    describeMultiplexProgramResponse_pipelineDetails,
    describeMultiplexProgramResponse_programName,
    describeMultiplexProgramResponse_channelId,
    describeMultiplexProgramResponse_multiplexProgramSettings,
    describeMultiplexProgramResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.MediaLive.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response

-- | Placeholder documentation for DescribeMultiplexProgramRequest
--
-- /See:/ 'newDescribeMultiplexProgram' smart constructor.
data DescribeMultiplexProgram = DescribeMultiplexProgram'
  { -- | The ID of the multiplex that the program belongs to.
    DescribeMultiplexProgram -> Text
multiplexId :: Prelude.Text,
    -- | The name of the program.
    DescribeMultiplexProgram -> Text
programName :: Prelude.Text
  }
  deriving (DescribeMultiplexProgram -> DescribeMultiplexProgram -> Bool
(DescribeMultiplexProgram -> DescribeMultiplexProgram -> Bool)
-> (DescribeMultiplexProgram -> DescribeMultiplexProgram -> Bool)
-> Eq DescribeMultiplexProgram
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeMultiplexProgram -> DescribeMultiplexProgram -> Bool
$c/= :: DescribeMultiplexProgram -> DescribeMultiplexProgram -> Bool
== :: DescribeMultiplexProgram -> DescribeMultiplexProgram -> Bool
$c== :: DescribeMultiplexProgram -> DescribeMultiplexProgram -> Bool
Prelude.Eq, ReadPrec [DescribeMultiplexProgram]
ReadPrec DescribeMultiplexProgram
Int -> ReadS DescribeMultiplexProgram
ReadS [DescribeMultiplexProgram]
(Int -> ReadS DescribeMultiplexProgram)
-> ReadS [DescribeMultiplexProgram]
-> ReadPrec DescribeMultiplexProgram
-> ReadPrec [DescribeMultiplexProgram]
-> Read DescribeMultiplexProgram
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeMultiplexProgram]
$creadListPrec :: ReadPrec [DescribeMultiplexProgram]
readPrec :: ReadPrec DescribeMultiplexProgram
$creadPrec :: ReadPrec DescribeMultiplexProgram
readList :: ReadS [DescribeMultiplexProgram]
$creadList :: ReadS [DescribeMultiplexProgram]
readsPrec :: Int -> ReadS DescribeMultiplexProgram
$creadsPrec :: Int -> ReadS DescribeMultiplexProgram
Prelude.Read, Int -> DescribeMultiplexProgram -> ShowS
[DescribeMultiplexProgram] -> ShowS
DescribeMultiplexProgram -> String
(Int -> DescribeMultiplexProgram -> ShowS)
-> (DescribeMultiplexProgram -> String)
-> ([DescribeMultiplexProgram] -> ShowS)
-> Show DescribeMultiplexProgram
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeMultiplexProgram] -> ShowS
$cshowList :: [DescribeMultiplexProgram] -> ShowS
show :: DescribeMultiplexProgram -> String
$cshow :: DescribeMultiplexProgram -> String
showsPrec :: Int -> DescribeMultiplexProgram -> ShowS
$cshowsPrec :: Int -> DescribeMultiplexProgram -> ShowS
Prelude.Show, (forall x.
 DescribeMultiplexProgram -> Rep DescribeMultiplexProgram x)
-> (forall x.
    Rep DescribeMultiplexProgram x -> DescribeMultiplexProgram)
-> Generic DescribeMultiplexProgram
forall x.
Rep DescribeMultiplexProgram x -> DescribeMultiplexProgram
forall x.
DescribeMultiplexProgram -> Rep DescribeMultiplexProgram x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeMultiplexProgram x -> DescribeMultiplexProgram
$cfrom :: forall x.
DescribeMultiplexProgram -> Rep DescribeMultiplexProgram x
Prelude.Generic)

-- |
-- Create a value of 'DescribeMultiplexProgram' 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:
--
-- 'multiplexId', 'describeMultiplexProgram_multiplexId' - The ID of the multiplex that the program belongs to.
--
-- 'programName', 'describeMultiplexProgram_programName' - The name of the program.
newDescribeMultiplexProgram ::
  -- | 'multiplexId'
  Prelude.Text ->
  -- | 'programName'
  Prelude.Text ->
  DescribeMultiplexProgram
newDescribeMultiplexProgram :: Text -> Text -> DescribeMultiplexProgram
newDescribeMultiplexProgram
  Text
pMultiplexId_
  Text
pProgramName_ =
    DescribeMultiplexProgram' :: Text -> Text -> DescribeMultiplexProgram
DescribeMultiplexProgram'
      { $sel:multiplexId:DescribeMultiplexProgram' :: Text
multiplexId =
          Text
pMultiplexId_,
        $sel:programName:DescribeMultiplexProgram' :: Text
programName = Text
pProgramName_
      }

-- | The ID of the multiplex that the program belongs to.
describeMultiplexProgram_multiplexId :: Lens.Lens' DescribeMultiplexProgram Prelude.Text
describeMultiplexProgram_multiplexId :: (Text -> f Text)
-> DescribeMultiplexProgram -> f DescribeMultiplexProgram
describeMultiplexProgram_multiplexId = (DescribeMultiplexProgram -> Text)
-> (DescribeMultiplexProgram -> Text -> DescribeMultiplexProgram)
-> Lens DescribeMultiplexProgram DescribeMultiplexProgram Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeMultiplexProgram' {Text
multiplexId :: Text
$sel:multiplexId:DescribeMultiplexProgram' :: DescribeMultiplexProgram -> Text
multiplexId} -> Text
multiplexId) (\s :: DescribeMultiplexProgram
s@DescribeMultiplexProgram' {} Text
a -> DescribeMultiplexProgram
s {$sel:multiplexId:DescribeMultiplexProgram' :: Text
multiplexId = Text
a} :: DescribeMultiplexProgram)

-- | The name of the program.
describeMultiplexProgram_programName :: Lens.Lens' DescribeMultiplexProgram Prelude.Text
describeMultiplexProgram_programName :: (Text -> f Text)
-> DescribeMultiplexProgram -> f DescribeMultiplexProgram
describeMultiplexProgram_programName = (DescribeMultiplexProgram -> Text)
-> (DescribeMultiplexProgram -> Text -> DescribeMultiplexProgram)
-> Lens DescribeMultiplexProgram DescribeMultiplexProgram Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeMultiplexProgram' {Text
programName :: Text
$sel:programName:DescribeMultiplexProgram' :: DescribeMultiplexProgram -> Text
programName} -> Text
programName) (\s :: DescribeMultiplexProgram
s@DescribeMultiplexProgram' {} Text
a -> DescribeMultiplexProgram
s {$sel:programName:DescribeMultiplexProgram' :: Text
programName = Text
a} :: DescribeMultiplexProgram)

instance Core.AWSRequest DescribeMultiplexProgram where
  type
    AWSResponse DescribeMultiplexProgram =
      DescribeMultiplexProgramResponse
  request :: DescribeMultiplexProgram -> Request DescribeMultiplexProgram
request = Service
-> DescribeMultiplexProgram -> Request DescribeMultiplexProgram
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
  response :: Logger
-> Service
-> Proxy DescribeMultiplexProgram
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse DescribeMultiplexProgram)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse DescribeMultiplexProgram))
-> Logger
-> Service
-> Proxy DescribeMultiplexProgram
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse DescribeMultiplexProgram)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
      ( \Int
s ResponseHeaders
h Object
x ->
          Maybe MultiplexProgramPacketIdentifiersMap
-> Maybe [MultiplexProgramPipelineDetail]
-> Maybe Text
-> Maybe Text
-> Maybe MultiplexProgramSettings
-> Int
-> DescribeMultiplexProgramResponse
DescribeMultiplexProgramResponse'
            (Maybe MultiplexProgramPacketIdentifiersMap
 -> Maybe [MultiplexProgramPipelineDetail]
 -> Maybe Text
 -> Maybe Text
 -> Maybe MultiplexProgramSettings
 -> Int
 -> DescribeMultiplexProgramResponse)
-> Either String (Maybe MultiplexProgramPacketIdentifiersMap)
-> Either
     String
     (Maybe [MultiplexProgramPipelineDetail]
      -> Maybe Text
      -> Maybe Text
      -> Maybe MultiplexProgramSettings
      -> Int
      -> DescribeMultiplexProgramResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object
-> Text
-> Either String (Maybe MultiplexProgramPacketIdentifiersMap)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"packetIdentifiersMap")
            Either
  String
  (Maybe [MultiplexProgramPipelineDetail]
   -> Maybe Text
   -> Maybe Text
   -> Maybe MultiplexProgramSettings
   -> Int
   -> DescribeMultiplexProgramResponse)
-> Either String (Maybe [MultiplexProgramPipelineDetail])
-> Either
     String
     (Maybe Text
      -> Maybe Text
      -> Maybe MultiplexProgramSettings
      -> Int
      -> DescribeMultiplexProgramResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object
-> Text
-> Either String (Maybe (Maybe [MultiplexProgramPipelineDetail]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"pipelineDetails"
                            Either String (Maybe (Maybe [MultiplexProgramPipelineDetail]))
-> Maybe [MultiplexProgramPipelineDetail]
-> Either String (Maybe [MultiplexProgramPipelineDetail])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [MultiplexProgramPipelineDetail]
forall a. Monoid a => a
Prelude.mempty
                        )
            Either
  String
  (Maybe Text
   -> Maybe Text
   -> Maybe MultiplexProgramSettings
   -> Int
   -> DescribeMultiplexProgramResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Text
      -> Maybe MultiplexProgramSettings
      -> Int
      -> DescribeMultiplexProgramResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"programName")
            Either
  String
  (Maybe Text
   -> Maybe MultiplexProgramSettings
   -> Int
   -> DescribeMultiplexProgramResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe MultiplexProgramSettings
      -> Int -> DescribeMultiplexProgramResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"channelId")
            Either
  String
  (Maybe MultiplexProgramSettings
   -> Int -> DescribeMultiplexProgramResponse)
-> Either String (Maybe MultiplexProgramSettings)
-> Either String (Int -> DescribeMultiplexProgramResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe MultiplexProgramSettings)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"multiplexProgramSettings")
            Either String (Int -> DescribeMultiplexProgramResponse)
-> Either String Int
-> Either String DescribeMultiplexProgramResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Int -> Either String Int
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (Int -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
      )

instance Prelude.Hashable DescribeMultiplexProgram

instance Prelude.NFData DescribeMultiplexProgram

instance Core.ToHeaders DescribeMultiplexProgram where
  toHeaders :: DescribeMultiplexProgram -> ResponseHeaders
toHeaders =
    ResponseHeaders -> DescribeMultiplexProgram -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
      ( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ HeaderName
"Content-Type"
              HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
                          Prelude.ByteString
                      )
          ]
      )

instance Core.ToPath DescribeMultiplexProgram where
  toPath :: DescribeMultiplexProgram -> ByteString
toPath DescribeMultiplexProgram' {Text
programName :: Text
multiplexId :: Text
$sel:programName:DescribeMultiplexProgram' :: DescribeMultiplexProgram -> Text
$sel:multiplexId:DescribeMultiplexProgram' :: DescribeMultiplexProgram -> Text
..} =
    [ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"/prod/multiplexes/",
        Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
multiplexId,
        ByteString
"/programs/",
        Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
programName
      ]

instance Core.ToQuery DescribeMultiplexProgram where
  toQuery :: DescribeMultiplexProgram -> QueryString
toQuery = QueryString -> DescribeMultiplexProgram -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty

-- | Placeholder documentation for DescribeMultiplexProgramResponse
--
-- /See:/ 'newDescribeMultiplexProgramResponse' smart constructor.
data DescribeMultiplexProgramResponse = DescribeMultiplexProgramResponse'
  { -- | The packet identifier map for this multiplex program.
    DescribeMultiplexProgramResponse
-> Maybe MultiplexProgramPacketIdentifiersMap
packetIdentifiersMap :: Prelude.Maybe MultiplexProgramPacketIdentifiersMap,
    -- | Contains information about the current sources for the specified program
    -- in the specified multiplex. Keep in mind that each multiplex pipeline
    -- connects to both pipelines in a given source channel (the channel
    -- identified by the program). But only one of those channel pipelines is
    -- ever active at one time.
    DescribeMultiplexProgramResponse
-> Maybe [MultiplexProgramPipelineDetail]
pipelineDetails :: Prelude.Maybe [MultiplexProgramPipelineDetail],
    -- | The name of the multiplex program.
    DescribeMultiplexProgramResponse -> Maybe Text
programName :: Prelude.Maybe Prelude.Text,
    -- | The MediaLive channel associated with the program.
    DescribeMultiplexProgramResponse -> Maybe Text
channelId :: Prelude.Maybe Prelude.Text,
    -- | The settings for this multiplex program.
    DescribeMultiplexProgramResponse -> Maybe MultiplexProgramSettings
multiplexProgramSettings :: Prelude.Maybe MultiplexProgramSettings,
    -- | The response's http status code.
    DescribeMultiplexProgramResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (DescribeMultiplexProgramResponse
-> DescribeMultiplexProgramResponse -> Bool
(DescribeMultiplexProgramResponse
 -> DescribeMultiplexProgramResponse -> Bool)
-> (DescribeMultiplexProgramResponse
    -> DescribeMultiplexProgramResponse -> Bool)
-> Eq DescribeMultiplexProgramResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeMultiplexProgramResponse
-> DescribeMultiplexProgramResponse -> Bool
$c/= :: DescribeMultiplexProgramResponse
-> DescribeMultiplexProgramResponse -> Bool
== :: DescribeMultiplexProgramResponse
-> DescribeMultiplexProgramResponse -> Bool
$c== :: DescribeMultiplexProgramResponse
-> DescribeMultiplexProgramResponse -> Bool
Prelude.Eq, ReadPrec [DescribeMultiplexProgramResponse]
ReadPrec DescribeMultiplexProgramResponse
Int -> ReadS DescribeMultiplexProgramResponse
ReadS [DescribeMultiplexProgramResponse]
(Int -> ReadS DescribeMultiplexProgramResponse)
-> ReadS [DescribeMultiplexProgramResponse]
-> ReadPrec DescribeMultiplexProgramResponse
-> ReadPrec [DescribeMultiplexProgramResponse]
-> Read DescribeMultiplexProgramResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeMultiplexProgramResponse]
$creadListPrec :: ReadPrec [DescribeMultiplexProgramResponse]
readPrec :: ReadPrec DescribeMultiplexProgramResponse
$creadPrec :: ReadPrec DescribeMultiplexProgramResponse
readList :: ReadS [DescribeMultiplexProgramResponse]
$creadList :: ReadS [DescribeMultiplexProgramResponse]
readsPrec :: Int -> ReadS DescribeMultiplexProgramResponse
$creadsPrec :: Int -> ReadS DescribeMultiplexProgramResponse
Prelude.Read, Int -> DescribeMultiplexProgramResponse -> ShowS
[DescribeMultiplexProgramResponse] -> ShowS
DescribeMultiplexProgramResponse -> String
(Int -> DescribeMultiplexProgramResponse -> ShowS)
-> (DescribeMultiplexProgramResponse -> String)
-> ([DescribeMultiplexProgramResponse] -> ShowS)
-> Show DescribeMultiplexProgramResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeMultiplexProgramResponse] -> ShowS
$cshowList :: [DescribeMultiplexProgramResponse] -> ShowS
show :: DescribeMultiplexProgramResponse -> String
$cshow :: DescribeMultiplexProgramResponse -> String
showsPrec :: Int -> DescribeMultiplexProgramResponse -> ShowS
$cshowsPrec :: Int -> DescribeMultiplexProgramResponse -> ShowS
Prelude.Show, (forall x.
 DescribeMultiplexProgramResponse
 -> Rep DescribeMultiplexProgramResponse x)
-> (forall x.
    Rep DescribeMultiplexProgramResponse x
    -> DescribeMultiplexProgramResponse)
-> Generic DescribeMultiplexProgramResponse
forall x.
Rep DescribeMultiplexProgramResponse x
-> DescribeMultiplexProgramResponse
forall x.
DescribeMultiplexProgramResponse
-> Rep DescribeMultiplexProgramResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeMultiplexProgramResponse x
-> DescribeMultiplexProgramResponse
$cfrom :: forall x.
DescribeMultiplexProgramResponse
-> Rep DescribeMultiplexProgramResponse x
Prelude.Generic)

-- |
-- Create a value of 'DescribeMultiplexProgramResponse' 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:
--
-- 'packetIdentifiersMap', 'describeMultiplexProgramResponse_packetIdentifiersMap' - The packet identifier map for this multiplex program.
--
-- 'pipelineDetails', 'describeMultiplexProgramResponse_pipelineDetails' - Contains information about the current sources for the specified program
-- in the specified multiplex. Keep in mind that each multiplex pipeline
-- connects to both pipelines in a given source channel (the channel
-- identified by the program). But only one of those channel pipelines is
-- ever active at one time.
--
-- 'programName', 'describeMultiplexProgramResponse_programName' - The name of the multiplex program.
--
-- 'channelId', 'describeMultiplexProgramResponse_channelId' - The MediaLive channel associated with the program.
--
-- 'multiplexProgramSettings', 'describeMultiplexProgramResponse_multiplexProgramSettings' - The settings for this multiplex program.
--
-- 'httpStatus', 'describeMultiplexProgramResponse_httpStatus' - The response's http status code.
newDescribeMultiplexProgramResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  DescribeMultiplexProgramResponse
newDescribeMultiplexProgramResponse :: Int -> DescribeMultiplexProgramResponse
newDescribeMultiplexProgramResponse Int
pHttpStatus_ =
  DescribeMultiplexProgramResponse' :: Maybe MultiplexProgramPacketIdentifiersMap
-> Maybe [MultiplexProgramPipelineDetail]
-> Maybe Text
-> Maybe Text
-> Maybe MultiplexProgramSettings
-> Int
-> DescribeMultiplexProgramResponse
DescribeMultiplexProgramResponse'
    { $sel:packetIdentifiersMap:DescribeMultiplexProgramResponse' :: Maybe MultiplexProgramPacketIdentifiersMap
packetIdentifiersMap =
        Maybe MultiplexProgramPacketIdentifiersMap
forall a. Maybe a
Prelude.Nothing,
      $sel:pipelineDetails:DescribeMultiplexProgramResponse' :: Maybe [MultiplexProgramPipelineDetail]
pipelineDetails = Maybe [MultiplexProgramPipelineDetail]
forall a. Maybe a
Prelude.Nothing,
      $sel:programName:DescribeMultiplexProgramResponse' :: Maybe Text
programName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:channelId:DescribeMultiplexProgramResponse' :: Maybe Text
channelId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:multiplexProgramSettings:DescribeMultiplexProgramResponse' :: Maybe MultiplexProgramSettings
multiplexProgramSettings =
        Maybe MultiplexProgramSettings
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:DescribeMultiplexProgramResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | The packet identifier map for this multiplex program.
describeMultiplexProgramResponse_packetIdentifiersMap :: Lens.Lens' DescribeMultiplexProgramResponse (Prelude.Maybe MultiplexProgramPacketIdentifiersMap)
describeMultiplexProgramResponse_packetIdentifiersMap :: (Maybe MultiplexProgramPacketIdentifiersMap
 -> f (Maybe MultiplexProgramPacketIdentifiersMap))
-> DescribeMultiplexProgramResponse
-> f DescribeMultiplexProgramResponse
describeMultiplexProgramResponse_packetIdentifiersMap = (DescribeMultiplexProgramResponse
 -> Maybe MultiplexProgramPacketIdentifiersMap)
-> (DescribeMultiplexProgramResponse
    -> Maybe MultiplexProgramPacketIdentifiersMap
    -> DescribeMultiplexProgramResponse)
-> Lens
     DescribeMultiplexProgramResponse
     DescribeMultiplexProgramResponse
     (Maybe MultiplexProgramPacketIdentifiersMap)
     (Maybe MultiplexProgramPacketIdentifiersMap)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeMultiplexProgramResponse' {Maybe MultiplexProgramPacketIdentifiersMap
packetIdentifiersMap :: Maybe MultiplexProgramPacketIdentifiersMap
$sel:packetIdentifiersMap:DescribeMultiplexProgramResponse' :: DescribeMultiplexProgramResponse
-> Maybe MultiplexProgramPacketIdentifiersMap
packetIdentifiersMap} -> Maybe MultiplexProgramPacketIdentifiersMap
packetIdentifiersMap) (\s :: DescribeMultiplexProgramResponse
s@DescribeMultiplexProgramResponse' {} Maybe MultiplexProgramPacketIdentifiersMap
a -> DescribeMultiplexProgramResponse
s {$sel:packetIdentifiersMap:DescribeMultiplexProgramResponse' :: Maybe MultiplexProgramPacketIdentifiersMap
packetIdentifiersMap = Maybe MultiplexProgramPacketIdentifiersMap
a} :: DescribeMultiplexProgramResponse)

-- | Contains information about the current sources for the specified program
-- in the specified multiplex. Keep in mind that each multiplex pipeline
-- connects to both pipelines in a given source channel (the channel
-- identified by the program). But only one of those channel pipelines is
-- ever active at one time.
describeMultiplexProgramResponse_pipelineDetails :: Lens.Lens' DescribeMultiplexProgramResponse (Prelude.Maybe [MultiplexProgramPipelineDetail])
describeMultiplexProgramResponse_pipelineDetails :: (Maybe [MultiplexProgramPipelineDetail]
 -> f (Maybe [MultiplexProgramPipelineDetail]))
-> DescribeMultiplexProgramResponse
-> f DescribeMultiplexProgramResponse
describeMultiplexProgramResponse_pipelineDetails = (DescribeMultiplexProgramResponse
 -> Maybe [MultiplexProgramPipelineDetail])
-> (DescribeMultiplexProgramResponse
    -> Maybe [MultiplexProgramPipelineDetail]
    -> DescribeMultiplexProgramResponse)
-> Lens
     DescribeMultiplexProgramResponse
     DescribeMultiplexProgramResponse
     (Maybe [MultiplexProgramPipelineDetail])
     (Maybe [MultiplexProgramPipelineDetail])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeMultiplexProgramResponse' {Maybe [MultiplexProgramPipelineDetail]
pipelineDetails :: Maybe [MultiplexProgramPipelineDetail]
$sel:pipelineDetails:DescribeMultiplexProgramResponse' :: DescribeMultiplexProgramResponse
-> Maybe [MultiplexProgramPipelineDetail]
pipelineDetails} -> Maybe [MultiplexProgramPipelineDetail]
pipelineDetails) (\s :: DescribeMultiplexProgramResponse
s@DescribeMultiplexProgramResponse' {} Maybe [MultiplexProgramPipelineDetail]
a -> DescribeMultiplexProgramResponse
s {$sel:pipelineDetails:DescribeMultiplexProgramResponse' :: Maybe [MultiplexProgramPipelineDetail]
pipelineDetails = Maybe [MultiplexProgramPipelineDetail]
a} :: DescribeMultiplexProgramResponse) ((Maybe [MultiplexProgramPipelineDetail]
  -> f (Maybe [MultiplexProgramPipelineDetail]))
 -> DescribeMultiplexProgramResponse
 -> f DescribeMultiplexProgramResponse)
-> ((Maybe [MultiplexProgramPipelineDetail]
     -> f (Maybe [MultiplexProgramPipelineDetail]))
    -> Maybe [MultiplexProgramPipelineDetail]
    -> f (Maybe [MultiplexProgramPipelineDetail]))
-> (Maybe [MultiplexProgramPipelineDetail]
    -> f (Maybe [MultiplexProgramPipelineDetail]))
-> DescribeMultiplexProgramResponse
-> f DescribeMultiplexProgramResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [MultiplexProgramPipelineDetail]
  [MultiplexProgramPipelineDetail]
  [MultiplexProgramPipelineDetail]
  [MultiplexProgramPipelineDetail]
-> Iso
     (Maybe [MultiplexProgramPipelineDetail])
     (Maybe [MultiplexProgramPipelineDetail])
     (Maybe [MultiplexProgramPipelineDetail])
     (Maybe [MultiplexProgramPipelineDetail])
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso
  [MultiplexProgramPipelineDetail]
  [MultiplexProgramPipelineDetail]
  [MultiplexProgramPipelineDetail]
  [MultiplexProgramPipelineDetail]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The name of the multiplex program.
describeMultiplexProgramResponse_programName :: Lens.Lens' DescribeMultiplexProgramResponse (Prelude.Maybe Prelude.Text)
describeMultiplexProgramResponse_programName :: (Maybe Text -> f (Maybe Text))
-> DescribeMultiplexProgramResponse
-> f DescribeMultiplexProgramResponse
describeMultiplexProgramResponse_programName = (DescribeMultiplexProgramResponse -> Maybe Text)
-> (DescribeMultiplexProgramResponse
    -> Maybe Text -> DescribeMultiplexProgramResponse)
-> Lens
     DescribeMultiplexProgramResponse
     DescribeMultiplexProgramResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeMultiplexProgramResponse' {Maybe Text
programName :: Maybe Text
$sel:programName:DescribeMultiplexProgramResponse' :: DescribeMultiplexProgramResponse -> Maybe Text
programName} -> Maybe Text
programName) (\s :: DescribeMultiplexProgramResponse
s@DescribeMultiplexProgramResponse' {} Maybe Text
a -> DescribeMultiplexProgramResponse
s {$sel:programName:DescribeMultiplexProgramResponse' :: Maybe Text
programName = Maybe Text
a} :: DescribeMultiplexProgramResponse)

-- | The MediaLive channel associated with the program.
describeMultiplexProgramResponse_channelId :: Lens.Lens' DescribeMultiplexProgramResponse (Prelude.Maybe Prelude.Text)
describeMultiplexProgramResponse_channelId :: (Maybe Text -> f (Maybe Text))
-> DescribeMultiplexProgramResponse
-> f DescribeMultiplexProgramResponse
describeMultiplexProgramResponse_channelId = (DescribeMultiplexProgramResponse -> Maybe Text)
-> (DescribeMultiplexProgramResponse
    -> Maybe Text -> DescribeMultiplexProgramResponse)
-> Lens
     DescribeMultiplexProgramResponse
     DescribeMultiplexProgramResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeMultiplexProgramResponse' {Maybe Text
channelId :: Maybe Text
$sel:channelId:DescribeMultiplexProgramResponse' :: DescribeMultiplexProgramResponse -> Maybe Text
channelId} -> Maybe Text
channelId) (\s :: DescribeMultiplexProgramResponse
s@DescribeMultiplexProgramResponse' {} Maybe Text
a -> DescribeMultiplexProgramResponse
s {$sel:channelId:DescribeMultiplexProgramResponse' :: Maybe Text
channelId = Maybe Text
a} :: DescribeMultiplexProgramResponse)

-- | The settings for this multiplex program.
describeMultiplexProgramResponse_multiplexProgramSettings :: Lens.Lens' DescribeMultiplexProgramResponse (Prelude.Maybe MultiplexProgramSettings)
describeMultiplexProgramResponse_multiplexProgramSettings :: (Maybe MultiplexProgramSettings
 -> f (Maybe MultiplexProgramSettings))
-> DescribeMultiplexProgramResponse
-> f DescribeMultiplexProgramResponse
describeMultiplexProgramResponse_multiplexProgramSettings = (DescribeMultiplexProgramResponse
 -> Maybe MultiplexProgramSettings)
-> (DescribeMultiplexProgramResponse
    -> Maybe MultiplexProgramSettings
    -> DescribeMultiplexProgramResponse)
-> Lens
     DescribeMultiplexProgramResponse
     DescribeMultiplexProgramResponse
     (Maybe MultiplexProgramSettings)
     (Maybe MultiplexProgramSettings)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeMultiplexProgramResponse' {Maybe MultiplexProgramSettings
multiplexProgramSettings :: Maybe MultiplexProgramSettings
$sel:multiplexProgramSettings:DescribeMultiplexProgramResponse' :: DescribeMultiplexProgramResponse -> Maybe MultiplexProgramSettings
multiplexProgramSettings} -> Maybe MultiplexProgramSettings
multiplexProgramSettings) (\s :: DescribeMultiplexProgramResponse
s@DescribeMultiplexProgramResponse' {} Maybe MultiplexProgramSettings
a -> DescribeMultiplexProgramResponse
s {$sel:multiplexProgramSettings:DescribeMultiplexProgramResponse' :: Maybe MultiplexProgramSettings
multiplexProgramSettings = Maybe MultiplexProgramSettings
a} :: DescribeMultiplexProgramResponse)

-- | The response's http status code.
describeMultiplexProgramResponse_httpStatus :: Lens.Lens' DescribeMultiplexProgramResponse Prelude.Int
describeMultiplexProgramResponse_httpStatus :: (Int -> f Int)
-> DescribeMultiplexProgramResponse
-> f DescribeMultiplexProgramResponse
describeMultiplexProgramResponse_httpStatus = (DescribeMultiplexProgramResponse -> Int)
-> (DescribeMultiplexProgramResponse
    -> Int -> DescribeMultiplexProgramResponse)
-> Lens
     DescribeMultiplexProgramResponse
     DescribeMultiplexProgramResponse
     Int
     Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeMultiplexProgramResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeMultiplexProgramResponse' :: DescribeMultiplexProgramResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeMultiplexProgramResponse
s@DescribeMultiplexProgramResponse' {} Int
a -> DescribeMultiplexProgramResponse
s {$sel:httpStatus:DescribeMultiplexProgramResponse' :: Int
httpStatus = Int
a} :: DescribeMultiplexProgramResponse)

instance
  Prelude.NFData
    DescribeMultiplexProgramResponse