{-# 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.MediaTailor.DescribeVodSource
-- 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)
--
-- Provides details about a specific VOD source in a specific source
-- location.
module Amazonka.MediaTailor.DescribeVodSource
  ( -- * Creating a Request
    DescribeVodSource (..),
    newDescribeVodSource,

    -- * Request Lenses
    describeVodSource_sourceLocationName,
    describeVodSource_vodSourceName,

    -- * Destructuring the Response
    DescribeVodSourceResponse (..),
    newDescribeVodSourceResponse,

    -- * Response Lenses
    describeVodSourceResponse_creationTime,
    describeVodSourceResponse_sourceLocationName,
    describeVodSourceResponse_arn,
    describeVodSourceResponse_lastModifiedTime,
    describeVodSourceResponse_httpPackageConfigurations,
    describeVodSourceResponse_vodSourceName,
    describeVodSourceResponse_tags,
    describeVodSourceResponse_httpStatus,
  )
where

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

-- | /See:/ 'newDescribeVodSource' smart constructor.
data DescribeVodSource = DescribeVodSource'
  { -- | The identifier for the source location you are working on.
    DescribeVodSource -> Text
sourceLocationName :: Prelude.Text,
    -- | The identifier for the VOD source you are working on.
    DescribeVodSource -> Text
vodSourceName :: Prelude.Text
  }
  deriving (DescribeVodSource -> DescribeVodSource -> Bool
(DescribeVodSource -> DescribeVodSource -> Bool)
-> (DescribeVodSource -> DescribeVodSource -> Bool)
-> Eq DescribeVodSource
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeVodSource -> DescribeVodSource -> Bool
$c/= :: DescribeVodSource -> DescribeVodSource -> Bool
== :: DescribeVodSource -> DescribeVodSource -> Bool
$c== :: DescribeVodSource -> DescribeVodSource -> Bool
Prelude.Eq, ReadPrec [DescribeVodSource]
ReadPrec DescribeVodSource
Int -> ReadS DescribeVodSource
ReadS [DescribeVodSource]
(Int -> ReadS DescribeVodSource)
-> ReadS [DescribeVodSource]
-> ReadPrec DescribeVodSource
-> ReadPrec [DescribeVodSource]
-> Read DescribeVodSource
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeVodSource]
$creadListPrec :: ReadPrec [DescribeVodSource]
readPrec :: ReadPrec DescribeVodSource
$creadPrec :: ReadPrec DescribeVodSource
readList :: ReadS [DescribeVodSource]
$creadList :: ReadS [DescribeVodSource]
readsPrec :: Int -> ReadS DescribeVodSource
$creadsPrec :: Int -> ReadS DescribeVodSource
Prelude.Read, Int -> DescribeVodSource -> ShowS
[DescribeVodSource] -> ShowS
DescribeVodSource -> String
(Int -> DescribeVodSource -> ShowS)
-> (DescribeVodSource -> String)
-> ([DescribeVodSource] -> ShowS)
-> Show DescribeVodSource
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeVodSource] -> ShowS
$cshowList :: [DescribeVodSource] -> ShowS
show :: DescribeVodSource -> String
$cshow :: DescribeVodSource -> String
showsPrec :: Int -> DescribeVodSource -> ShowS
$cshowsPrec :: Int -> DescribeVodSource -> ShowS
Prelude.Show, (forall x. DescribeVodSource -> Rep DescribeVodSource x)
-> (forall x. Rep DescribeVodSource x -> DescribeVodSource)
-> Generic DescribeVodSource
forall x. Rep DescribeVodSource x -> DescribeVodSource
forall x. DescribeVodSource -> Rep DescribeVodSource x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeVodSource x -> DescribeVodSource
$cfrom :: forall x. DescribeVodSource -> Rep DescribeVodSource x
Prelude.Generic)

-- |
-- Create a value of 'DescribeVodSource' 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:
--
-- 'sourceLocationName', 'describeVodSource_sourceLocationName' - The identifier for the source location you are working on.
--
-- 'vodSourceName', 'describeVodSource_vodSourceName' - The identifier for the VOD source you are working on.
newDescribeVodSource ::
  -- | 'sourceLocationName'
  Prelude.Text ->
  -- | 'vodSourceName'
  Prelude.Text ->
  DescribeVodSource
newDescribeVodSource :: Text -> Text -> DescribeVodSource
newDescribeVodSource
  Text
pSourceLocationName_
  Text
pVodSourceName_ =
    DescribeVodSource' :: Text -> Text -> DescribeVodSource
DescribeVodSource'
      { $sel:sourceLocationName:DescribeVodSource' :: Text
sourceLocationName =
          Text
pSourceLocationName_,
        $sel:vodSourceName:DescribeVodSource' :: Text
vodSourceName = Text
pVodSourceName_
      }

-- | The identifier for the source location you are working on.
describeVodSource_sourceLocationName :: Lens.Lens' DescribeVodSource Prelude.Text
describeVodSource_sourceLocationName :: (Text -> f Text) -> DescribeVodSource -> f DescribeVodSource
describeVodSource_sourceLocationName = (DescribeVodSource -> Text)
-> (DescribeVodSource -> Text -> DescribeVodSource)
-> Lens DescribeVodSource DescribeVodSource Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeVodSource' {Text
sourceLocationName :: Text
$sel:sourceLocationName:DescribeVodSource' :: DescribeVodSource -> Text
sourceLocationName} -> Text
sourceLocationName) (\s :: DescribeVodSource
s@DescribeVodSource' {} Text
a -> DescribeVodSource
s {$sel:sourceLocationName:DescribeVodSource' :: Text
sourceLocationName = Text
a} :: DescribeVodSource)

-- | The identifier for the VOD source you are working on.
describeVodSource_vodSourceName :: Lens.Lens' DescribeVodSource Prelude.Text
describeVodSource_vodSourceName :: (Text -> f Text) -> DescribeVodSource -> f DescribeVodSource
describeVodSource_vodSourceName = (DescribeVodSource -> Text)
-> (DescribeVodSource -> Text -> DescribeVodSource)
-> Lens DescribeVodSource DescribeVodSource Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeVodSource' {Text
vodSourceName :: Text
$sel:vodSourceName:DescribeVodSource' :: DescribeVodSource -> Text
vodSourceName} -> Text
vodSourceName) (\s :: DescribeVodSource
s@DescribeVodSource' {} Text
a -> DescribeVodSource
s {$sel:vodSourceName:DescribeVodSource' :: Text
vodSourceName = Text
a} :: DescribeVodSource)

instance Core.AWSRequest DescribeVodSource where
  type
    AWSResponse DescribeVodSource =
      DescribeVodSourceResponse
  request :: DescribeVodSource -> Request DescribeVodSource
request = Service -> DescribeVodSource -> Request DescribeVodSource
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
  response :: Logger
-> Service
-> Proxy DescribeVodSource
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse DescribeVodSource)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse DescribeVodSource))
-> Logger
-> Service
-> Proxy DescribeVodSource
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse DescribeVodSource)))
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 POSIX
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe [HttpPackageConfiguration]
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> DescribeVodSourceResponse
DescribeVodSourceResponse'
            (Maybe POSIX
 -> Maybe Text
 -> Maybe Text
 -> Maybe POSIX
 -> Maybe [HttpPackageConfiguration]
 -> Maybe Text
 -> Maybe (HashMap Text Text)
 -> Int
 -> DescribeVodSourceResponse)
-> Either String (Maybe POSIX)
-> Either
     String
     (Maybe Text
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe [HttpPackageConfiguration]
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> Int
      -> DescribeVodSourceResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"CreationTime")
            Either
  String
  (Maybe Text
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe [HttpPackageConfiguration]
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> Int
   -> DescribeVodSourceResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Text
      -> Maybe POSIX
      -> Maybe [HttpPackageConfiguration]
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> Int
      -> DescribeVodSourceResponse)
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
"SourceLocationName")
            Either
  String
  (Maybe Text
   -> Maybe POSIX
   -> Maybe [HttpPackageConfiguration]
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> Int
   -> DescribeVodSourceResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe POSIX
      -> Maybe [HttpPackageConfiguration]
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> Int
      -> DescribeVodSourceResponse)
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
"Arn")
            Either
  String
  (Maybe POSIX
   -> Maybe [HttpPackageConfiguration]
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> Int
   -> DescribeVodSourceResponse)
-> Either String (Maybe POSIX)
-> Either
     String
     (Maybe [HttpPackageConfiguration]
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> Int
      -> DescribeVodSourceResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"LastModifiedTime")
            Either
  String
  (Maybe [HttpPackageConfiguration]
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> Int
   -> DescribeVodSourceResponse)
-> Either String (Maybe [HttpPackageConfiguration])
-> Either
     String
     (Maybe Text
      -> Maybe (HashMap Text Text) -> Int -> DescribeVodSourceResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object
-> Text -> Either String (Maybe (Maybe [HttpPackageConfiguration]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"HttpPackageConfigurations"
                            Either String (Maybe (Maybe [HttpPackageConfiguration]))
-> Maybe [HttpPackageConfiguration]
-> Either String (Maybe [HttpPackageConfiguration])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [HttpPackageConfiguration]
forall a. Monoid a => a
Prelude.mempty
                        )
            Either
  String
  (Maybe Text
   -> Maybe (HashMap Text Text) -> Int -> DescribeVodSourceResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe (HashMap Text Text) -> Int -> DescribeVodSourceResponse)
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
"VodSourceName")
            Either
  String
  (Maybe (HashMap Text Text) -> Int -> DescribeVodSourceResponse)
-> Either String (Maybe (HashMap Text Text))
-> Either String (Int -> DescribeVodSourceResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Maybe (HashMap Text Text)))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"tags" Either String (Maybe (Maybe (HashMap Text Text)))
-> Maybe (HashMap Text Text)
-> Either String (Maybe (HashMap Text Text))
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe (HashMap Text Text)
forall a. Monoid a => a
Prelude.mempty)
            Either String (Int -> DescribeVodSourceResponse)
-> Either String Int -> Either String DescribeVodSourceResponse
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 DescribeVodSource

instance Prelude.NFData DescribeVodSource

instance Core.ToHeaders DescribeVodSource where
  toHeaders :: DescribeVodSource -> ResponseHeaders
toHeaders =
    ResponseHeaders -> DescribeVodSource -> 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 DescribeVodSource where
  toPath :: DescribeVodSource -> ByteString
toPath DescribeVodSource' {Text
vodSourceName :: Text
sourceLocationName :: Text
$sel:vodSourceName:DescribeVodSource' :: DescribeVodSource -> Text
$sel:sourceLocationName:DescribeVodSource' :: DescribeVodSource -> Text
..} =
    [ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"/sourceLocation/",
        Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
sourceLocationName,
        ByteString
"/vodSource/",
        Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
vodSourceName
      ]

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

-- | /See:/ 'newDescribeVodSourceResponse' smart constructor.
data DescribeVodSourceResponse = DescribeVodSourceResponse'
  { -- | The timestamp that indicates when the VOD source was created.
    DescribeVodSourceResponse -> Maybe POSIX
creationTime :: Prelude.Maybe Core.POSIX,
    -- | The name of the source location associated with the VOD source.
    DescribeVodSourceResponse -> Maybe Text
sourceLocationName :: Prelude.Maybe Prelude.Text,
    -- | The ARN of the VOD source.
    DescribeVodSourceResponse -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
    -- | The ARN for the VOD source.
    DescribeVodSourceResponse -> Maybe POSIX
lastModifiedTime :: Prelude.Maybe Core.POSIX,
    -- | The HTTP package configurations.
    DescribeVodSourceResponse -> Maybe [HttpPackageConfiguration]
httpPackageConfigurations :: Prelude.Maybe [HttpPackageConfiguration],
    -- | The name of the VOD source.
    DescribeVodSourceResponse -> Maybe Text
vodSourceName :: Prelude.Maybe Prelude.Text,
    -- | The tags assigned to the VOD source.
    DescribeVodSourceResponse -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
    -- | The response's http status code.
    DescribeVodSourceResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (DescribeVodSourceResponse -> DescribeVodSourceResponse -> Bool
(DescribeVodSourceResponse -> DescribeVodSourceResponse -> Bool)
-> (DescribeVodSourceResponse -> DescribeVodSourceResponse -> Bool)
-> Eq DescribeVodSourceResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeVodSourceResponse -> DescribeVodSourceResponse -> Bool
$c/= :: DescribeVodSourceResponse -> DescribeVodSourceResponse -> Bool
== :: DescribeVodSourceResponse -> DescribeVodSourceResponse -> Bool
$c== :: DescribeVodSourceResponse -> DescribeVodSourceResponse -> Bool
Prelude.Eq, ReadPrec [DescribeVodSourceResponse]
ReadPrec DescribeVodSourceResponse
Int -> ReadS DescribeVodSourceResponse
ReadS [DescribeVodSourceResponse]
(Int -> ReadS DescribeVodSourceResponse)
-> ReadS [DescribeVodSourceResponse]
-> ReadPrec DescribeVodSourceResponse
-> ReadPrec [DescribeVodSourceResponse]
-> Read DescribeVodSourceResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeVodSourceResponse]
$creadListPrec :: ReadPrec [DescribeVodSourceResponse]
readPrec :: ReadPrec DescribeVodSourceResponse
$creadPrec :: ReadPrec DescribeVodSourceResponse
readList :: ReadS [DescribeVodSourceResponse]
$creadList :: ReadS [DescribeVodSourceResponse]
readsPrec :: Int -> ReadS DescribeVodSourceResponse
$creadsPrec :: Int -> ReadS DescribeVodSourceResponse
Prelude.Read, Int -> DescribeVodSourceResponse -> ShowS
[DescribeVodSourceResponse] -> ShowS
DescribeVodSourceResponse -> String
(Int -> DescribeVodSourceResponse -> ShowS)
-> (DescribeVodSourceResponse -> String)
-> ([DescribeVodSourceResponse] -> ShowS)
-> Show DescribeVodSourceResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeVodSourceResponse] -> ShowS
$cshowList :: [DescribeVodSourceResponse] -> ShowS
show :: DescribeVodSourceResponse -> String
$cshow :: DescribeVodSourceResponse -> String
showsPrec :: Int -> DescribeVodSourceResponse -> ShowS
$cshowsPrec :: Int -> DescribeVodSourceResponse -> ShowS
Prelude.Show, (forall x.
 DescribeVodSourceResponse -> Rep DescribeVodSourceResponse x)
-> (forall x.
    Rep DescribeVodSourceResponse x -> DescribeVodSourceResponse)
-> Generic DescribeVodSourceResponse
forall x.
Rep DescribeVodSourceResponse x -> DescribeVodSourceResponse
forall x.
DescribeVodSourceResponse -> Rep DescribeVodSourceResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeVodSourceResponse x -> DescribeVodSourceResponse
$cfrom :: forall x.
DescribeVodSourceResponse -> Rep DescribeVodSourceResponse x
Prelude.Generic)

-- |
-- Create a value of 'DescribeVodSourceResponse' 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:
--
-- 'creationTime', 'describeVodSourceResponse_creationTime' - The timestamp that indicates when the VOD source was created.
--
-- 'sourceLocationName', 'describeVodSourceResponse_sourceLocationName' - The name of the source location associated with the VOD source.
--
-- 'arn', 'describeVodSourceResponse_arn' - The ARN of the VOD source.
--
-- 'lastModifiedTime', 'describeVodSourceResponse_lastModifiedTime' - The ARN for the VOD source.
--
-- 'httpPackageConfigurations', 'describeVodSourceResponse_httpPackageConfigurations' - The HTTP package configurations.
--
-- 'vodSourceName', 'describeVodSourceResponse_vodSourceName' - The name of the VOD source.
--
-- 'tags', 'describeVodSourceResponse_tags' - The tags assigned to the VOD source.
--
-- 'httpStatus', 'describeVodSourceResponse_httpStatus' - The response's http status code.
newDescribeVodSourceResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  DescribeVodSourceResponse
newDescribeVodSourceResponse :: Int -> DescribeVodSourceResponse
newDescribeVodSourceResponse Int
pHttpStatus_ =
  DescribeVodSourceResponse' :: Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe [HttpPackageConfiguration]
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> DescribeVodSourceResponse
DescribeVodSourceResponse'
    { $sel:creationTime:DescribeVodSourceResponse' :: Maybe POSIX
creationTime =
        Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:sourceLocationName:DescribeVodSourceResponse' :: Maybe Text
sourceLocationName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:arn:DescribeVodSourceResponse' :: Maybe Text
arn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:lastModifiedTime:DescribeVodSourceResponse' :: Maybe POSIX
lastModifiedTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:httpPackageConfigurations:DescribeVodSourceResponse' :: Maybe [HttpPackageConfiguration]
httpPackageConfigurations = Maybe [HttpPackageConfiguration]
forall a. Maybe a
Prelude.Nothing,
      $sel:vodSourceName:DescribeVodSourceResponse' :: Maybe Text
vodSourceName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:tags:DescribeVodSourceResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:DescribeVodSourceResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | The timestamp that indicates when the VOD source was created.
describeVodSourceResponse_creationTime :: Lens.Lens' DescribeVodSourceResponse (Prelude.Maybe Prelude.UTCTime)
describeVodSourceResponse_creationTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeVodSourceResponse -> f DescribeVodSourceResponse
describeVodSourceResponse_creationTime = (DescribeVodSourceResponse -> Maybe POSIX)
-> (DescribeVodSourceResponse
    -> Maybe POSIX -> DescribeVodSourceResponse)
-> Lens
     DescribeVodSourceResponse
     DescribeVodSourceResponse
     (Maybe POSIX)
     (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeVodSourceResponse' {Maybe POSIX
creationTime :: Maybe POSIX
$sel:creationTime:DescribeVodSourceResponse' :: DescribeVodSourceResponse -> Maybe POSIX
creationTime} -> Maybe POSIX
creationTime) (\s :: DescribeVodSourceResponse
s@DescribeVodSourceResponse' {} Maybe POSIX
a -> DescribeVodSourceResponse
s {$sel:creationTime:DescribeVodSourceResponse' :: Maybe POSIX
creationTime = Maybe POSIX
a} :: DescribeVodSourceResponse) ((Maybe POSIX -> f (Maybe POSIX))
 -> DescribeVodSourceResponse -> f DescribeVodSourceResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeVodSourceResponse
-> f DescribeVodSourceResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
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 POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time

-- | The name of the source location associated with the VOD source.
describeVodSourceResponse_sourceLocationName :: Lens.Lens' DescribeVodSourceResponse (Prelude.Maybe Prelude.Text)
describeVodSourceResponse_sourceLocationName :: (Maybe Text -> f (Maybe Text))
-> DescribeVodSourceResponse -> f DescribeVodSourceResponse
describeVodSourceResponse_sourceLocationName = (DescribeVodSourceResponse -> Maybe Text)
-> (DescribeVodSourceResponse
    -> Maybe Text -> DescribeVodSourceResponse)
-> Lens
     DescribeVodSourceResponse
     DescribeVodSourceResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeVodSourceResponse' {Maybe Text
sourceLocationName :: Maybe Text
$sel:sourceLocationName:DescribeVodSourceResponse' :: DescribeVodSourceResponse -> Maybe Text
sourceLocationName} -> Maybe Text
sourceLocationName) (\s :: DescribeVodSourceResponse
s@DescribeVodSourceResponse' {} Maybe Text
a -> DescribeVodSourceResponse
s {$sel:sourceLocationName:DescribeVodSourceResponse' :: Maybe Text
sourceLocationName = Maybe Text
a} :: DescribeVodSourceResponse)

-- | The ARN of the VOD source.
describeVodSourceResponse_arn :: Lens.Lens' DescribeVodSourceResponse (Prelude.Maybe Prelude.Text)
describeVodSourceResponse_arn :: (Maybe Text -> f (Maybe Text))
-> DescribeVodSourceResponse -> f DescribeVodSourceResponse
describeVodSourceResponse_arn = (DescribeVodSourceResponse -> Maybe Text)
-> (DescribeVodSourceResponse
    -> Maybe Text -> DescribeVodSourceResponse)
-> Lens
     DescribeVodSourceResponse
     DescribeVodSourceResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeVodSourceResponse' {Maybe Text
arn :: Maybe Text
$sel:arn:DescribeVodSourceResponse' :: DescribeVodSourceResponse -> Maybe Text
arn} -> Maybe Text
arn) (\s :: DescribeVodSourceResponse
s@DescribeVodSourceResponse' {} Maybe Text
a -> DescribeVodSourceResponse
s {$sel:arn:DescribeVodSourceResponse' :: Maybe Text
arn = Maybe Text
a} :: DescribeVodSourceResponse)

-- | The ARN for the VOD source.
describeVodSourceResponse_lastModifiedTime :: Lens.Lens' DescribeVodSourceResponse (Prelude.Maybe Prelude.UTCTime)
describeVodSourceResponse_lastModifiedTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeVodSourceResponse -> f DescribeVodSourceResponse
describeVodSourceResponse_lastModifiedTime = (DescribeVodSourceResponse -> Maybe POSIX)
-> (DescribeVodSourceResponse
    -> Maybe POSIX -> DescribeVodSourceResponse)
-> Lens
     DescribeVodSourceResponse
     DescribeVodSourceResponse
     (Maybe POSIX)
     (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeVodSourceResponse' {Maybe POSIX
lastModifiedTime :: Maybe POSIX
$sel:lastModifiedTime:DescribeVodSourceResponse' :: DescribeVodSourceResponse -> Maybe POSIX
lastModifiedTime} -> Maybe POSIX
lastModifiedTime) (\s :: DescribeVodSourceResponse
s@DescribeVodSourceResponse' {} Maybe POSIX
a -> DescribeVodSourceResponse
s {$sel:lastModifiedTime:DescribeVodSourceResponse' :: Maybe POSIX
lastModifiedTime = Maybe POSIX
a} :: DescribeVodSourceResponse) ((Maybe POSIX -> f (Maybe POSIX))
 -> DescribeVodSourceResponse -> f DescribeVodSourceResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeVodSourceResponse
-> f DescribeVodSourceResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
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 POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time

-- | The HTTP package configurations.
describeVodSourceResponse_httpPackageConfigurations :: Lens.Lens' DescribeVodSourceResponse (Prelude.Maybe [HttpPackageConfiguration])
describeVodSourceResponse_httpPackageConfigurations :: (Maybe [HttpPackageConfiguration]
 -> f (Maybe [HttpPackageConfiguration]))
-> DescribeVodSourceResponse -> f DescribeVodSourceResponse
describeVodSourceResponse_httpPackageConfigurations = (DescribeVodSourceResponse -> Maybe [HttpPackageConfiguration])
-> (DescribeVodSourceResponse
    -> Maybe [HttpPackageConfiguration] -> DescribeVodSourceResponse)
-> Lens
     DescribeVodSourceResponse
     DescribeVodSourceResponse
     (Maybe [HttpPackageConfiguration])
     (Maybe [HttpPackageConfiguration])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeVodSourceResponse' {Maybe [HttpPackageConfiguration]
httpPackageConfigurations :: Maybe [HttpPackageConfiguration]
$sel:httpPackageConfigurations:DescribeVodSourceResponse' :: DescribeVodSourceResponse -> Maybe [HttpPackageConfiguration]
httpPackageConfigurations} -> Maybe [HttpPackageConfiguration]
httpPackageConfigurations) (\s :: DescribeVodSourceResponse
s@DescribeVodSourceResponse' {} Maybe [HttpPackageConfiguration]
a -> DescribeVodSourceResponse
s {$sel:httpPackageConfigurations:DescribeVodSourceResponse' :: Maybe [HttpPackageConfiguration]
httpPackageConfigurations = Maybe [HttpPackageConfiguration]
a} :: DescribeVodSourceResponse) ((Maybe [HttpPackageConfiguration]
  -> f (Maybe [HttpPackageConfiguration]))
 -> DescribeVodSourceResponse -> f DescribeVodSourceResponse)
-> ((Maybe [HttpPackageConfiguration]
     -> f (Maybe [HttpPackageConfiguration]))
    -> Maybe [HttpPackageConfiguration]
    -> f (Maybe [HttpPackageConfiguration]))
-> (Maybe [HttpPackageConfiguration]
    -> f (Maybe [HttpPackageConfiguration]))
-> DescribeVodSourceResponse
-> f DescribeVodSourceResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [HttpPackageConfiguration]
  [HttpPackageConfiguration]
  [HttpPackageConfiguration]
  [HttpPackageConfiguration]
-> Iso
     (Maybe [HttpPackageConfiguration])
     (Maybe [HttpPackageConfiguration])
     (Maybe [HttpPackageConfiguration])
     (Maybe [HttpPackageConfiguration])
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
  [HttpPackageConfiguration]
  [HttpPackageConfiguration]
  [HttpPackageConfiguration]
  [HttpPackageConfiguration]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The name of the VOD source.
describeVodSourceResponse_vodSourceName :: Lens.Lens' DescribeVodSourceResponse (Prelude.Maybe Prelude.Text)
describeVodSourceResponse_vodSourceName :: (Maybe Text -> f (Maybe Text))
-> DescribeVodSourceResponse -> f DescribeVodSourceResponse
describeVodSourceResponse_vodSourceName = (DescribeVodSourceResponse -> Maybe Text)
-> (DescribeVodSourceResponse
    -> Maybe Text -> DescribeVodSourceResponse)
-> Lens
     DescribeVodSourceResponse
     DescribeVodSourceResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeVodSourceResponse' {Maybe Text
vodSourceName :: Maybe Text
$sel:vodSourceName:DescribeVodSourceResponse' :: DescribeVodSourceResponse -> Maybe Text
vodSourceName} -> Maybe Text
vodSourceName) (\s :: DescribeVodSourceResponse
s@DescribeVodSourceResponse' {} Maybe Text
a -> DescribeVodSourceResponse
s {$sel:vodSourceName:DescribeVodSourceResponse' :: Maybe Text
vodSourceName = Maybe Text
a} :: DescribeVodSourceResponse)

-- | The tags assigned to the VOD source.
describeVodSourceResponse_tags :: Lens.Lens' DescribeVodSourceResponse (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
describeVodSourceResponse_tags :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> DescribeVodSourceResponse -> f DescribeVodSourceResponse
describeVodSourceResponse_tags = (DescribeVodSourceResponse -> Maybe (HashMap Text Text))
-> (DescribeVodSourceResponse
    -> Maybe (HashMap Text Text) -> DescribeVodSourceResponse)
-> Lens
     DescribeVodSourceResponse
     DescribeVodSourceResponse
     (Maybe (HashMap Text Text))
     (Maybe (HashMap Text Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeVodSourceResponse' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:DescribeVodSourceResponse' :: DescribeVodSourceResponse -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: DescribeVodSourceResponse
s@DescribeVodSourceResponse' {} Maybe (HashMap Text Text)
a -> DescribeVodSourceResponse
s {$sel:tags:DescribeVodSourceResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: DescribeVodSourceResponse) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
 -> DescribeVodSourceResponse -> f DescribeVodSourceResponse)
-> ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
    -> Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> DescribeVodSourceResponse
-> f DescribeVodSourceResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  (HashMap Text Text)
  (HashMap Text Text)
  (HashMap Text Text)
  (HashMap Text Text)
-> Iso
     (Maybe (HashMap Text Text))
     (Maybe (HashMap Text Text))
     (Maybe (HashMap Text Text))
     (Maybe (HashMap Text Text))
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
  (HashMap Text Text)
  (HashMap Text Text)
  (HashMap Text Text)
  (HashMap Text Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

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

instance Prelude.NFData DescribeVodSourceResponse