{-# 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 #-}
module Amazonka.KinesisVideoArchivedMedia.GetDASHStreamingSessionURL
(
GetDASHStreamingSessionURL (..),
newGetDASHStreamingSessionURL,
getDASHStreamingSessionURL_displayFragmentTimestamp,
getDASHStreamingSessionURL_expires,
getDASHStreamingSessionURL_dASHFragmentSelector,
getDASHStreamingSessionURL_maxManifestFragmentResults,
getDASHStreamingSessionURL_streamARN,
getDASHStreamingSessionURL_playbackMode,
getDASHStreamingSessionURL_streamName,
getDASHStreamingSessionURL_displayFragmentNumber,
GetDASHStreamingSessionURLResponse (..),
newGetDASHStreamingSessionURLResponse,
getDASHStreamingSessionURLResponse_dASHStreamingSessionURL,
getDASHStreamingSessionURLResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.KinesisVideoArchivedMedia.Types
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data GetDASHStreamingSessionURL = GetDASHStreamingSessionURL'
{
GetDASHStreamingSessionURL -> Maybe DASHDisplayFragmentTimestamp
displayFragmentTimestamp :: Prelude.Maybe DASHDisplayFragmentTimestamp,
GetDASHStreamingSessionURL -> Maybe Natural
expires :: Prelude.Maybe Prelude.Natural,
GetDASHStreamingSessionURL -> Maybe DASHFragmentSelector
dASHFragmentSelector :: Prelude.Maybe DASHFragmentSelector,
GetDASHStreamingSessionURL -> Maybe Natural
maxManifestFragmentResults :: Prelude.Maybe Prelude.Natural,
GetDASHStreamingSessionURL -> Maybe Text
streamARN :: Prelude.Maybe Prelude.Text,
GetDASHStreamingSessionURL -> Maybe DASHPlaybackMode
playbackMode :: Prelude.Maybe DASHPlaybackMode,
GetDASHStreamingSessionURL -> Maybe Text
streamName :: Prelude.Maybe Prelude.Text,
GetDASHStreamingSessionURL -> Maybe DASHDisplayFragmentNumber
displayFragmentNumber :: Prelude.Maybe DASHDisplayFragmentNumber
}
deriving (GetDASHStreamingSessionURL -> GetDASHStreamingSessionURL -> Bool
(GetDASHStreamingSessionURL -> GetDASHStreamingSessionURL -> Bool)
-> (GetDASHStreamingSessionURL
-> GetDASHStreamingSessionURL -> Bool)
-> Eq GetDASHStreamingSessionURL
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetDASHStreamingSessionURL -> GetDASHStreamingSessionURL -> Bool
$c/= :: GetDASHStreamingSessionURL -> GetDASHStreamingSessionURL -> Bool
== :: GetDASHStreamingSessionURL -> GetDASHStreamingSessionURL -> Bool
$c== :: GetDASHStreamingSessionURL -> GetDASHStreamingSessionURL -> Bool
Prelude.Eq, ReadPrec [GetDASHStreamingSessionURL]
ReadPrec GetDASHStreamingSessionURL
Int -> ReadS GetDASHStreamingSessionURL
ReadS [GetDASHStreamingSessionURL]
(Int -> ReadS GetDASHStreamingSessionURL)
-> ReadS [GetDASHStreamingSessionURL]
-> ReadPrec GetDASHStreamingSessionURL
-> ReadPrec [GetDASHStreamingSessionURL]
-> Read GetDASHStreamingSessionURL
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetDASHStreamingSessionURL]
$creadListPrec :: ReadPrec [GetDASHStreamingSessionURL]
readPrec :: ReadPrec GetDASHStreamingSessionURL
$creadPrec :: ReadPrec GetDASHStreamingSessionURL
readList :: ReadS [GetDASHStreamingSessionURL]
$creadList :: ReadS [GetDASHStreamingSessionURL]
readsPrec :: Int -> ReadS GetDASHStreamingSessionURL
$creadsPrec :: Int -> ReadS GetDASHStreamingSessionURL
Prelude.Read, Int -> GetDASHStreamingSessionURL -> ShowS
[GetDASHStreamingSessionURL] -> ShowS
GetDASHStreamingSessionURL -> String
(Int -> GetDASHStreamingSessionURL -> ShowS)
-> (GetDASHStreamingSessionURL -> String)
-> ([GetDASHStreamingSessionURL] -> ShowS)
-> Show GetDASHStreamingSessionURL
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetDASHStreamingSessionURL] -> ShowS
$cshowList :: [GetDASHStreamingSessionURL] -> ShowS
show :: GetDASHStreamingSessionURL -> String
$cshow :: GetDASHStreamingSessionURL -> String
showsPrec :: Int -> GetDASHStreamingSessionURL -> ShowS
$cshowsPrec :: Int -> GetDASHStreamingSessionURL -> ShowS
Prelude.Show, (forall x.
GetDASHStreamingSessionURL -> Rep GetDASHStreamingSessionURL x)
-> (forall x.
Rep GetDASHStreamingSessionURL x -> GetDASHStreamingSessionURL)
-> Generic GetDASHStreamingSessionURL
forall x.
Rep GetDASHStreamingSessionURL x -> GetDASHStreamingSessionURL
forall x.
GetDASHStreamingSessionURL -> Rep GetDASHStreamingSessionURL x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetDASHStreamingSessionURL x -> GetDASHStreamingSessionURL
$cfrom :: forall x.
GetDASHStreamingSessionURL -> Rep GetDASHStreamingSessionURL x
Prelude.Generic)
newGetDASHStreamingSessionURL ::
GetDASHStreamingSessionURL
newGetDASHStreamingSessionURL :: GetDASHStreamingSessionURL
newGetDASHStreamingSessionURL =
GetDASHStreamingSessionURL' :: Maybe DASHDisplayFragmentTimestamp
-> Maybe Natural
-> Maybe DASHFragmentSelector
-> Maybe Natural
-> Maybe Text
-> Maybe DASHPlaybackMode
-> Maybe Text
-> Maybe DASHDisplayFragmentNumber
-> GetDASHStreamingSessionURL
GetDASHStreamingSessionURL'
{ $sel:displayFragmentTimestamp:GetDASHStreamingSessionURL' :: Maybe DASHDisplayFragmentTimestamp
displayFragmentTimestamp =
Maybe DASHDisplayFragmentTimestamp
forall a. Maybe a
Prelude.Nothing,
$sel:expires:GetDASHStreamingSessionURL' :: Maybe Natural
expires = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:dASHFragmentSelector:GetDASHStreamingSessionURL' :: Maybe DASHFragmentSelector
dASHFragmentSelector = Maybe DASHFragmentSelector
forall a. Maybe a
Prelude.Nothing,
$sel:maxManifestFragmentResults:GetDASHStreamingSessionURL' :: Maybe Natural
maxManifestFragmentResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:streamARN:GetDASHStreamingSessionURL' :: Maybe Text
streamARN = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:playbackMode:GetDASHStreamingSessionURL' :: Maybe DASHPlaybackMode
playbackMode = Maybe DASHPlaybackMode
forall a. Maybe a
Prelude.Nothing,
$sel:streamName:GetDASHStreamingSessionURL' :: Maybe Text
streamName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:displayFragmentNumber:GetDASHStreamingSessionURL' :: Maybe DASHDisplayFragmentNumber
displayFragmentNumber = Maybe DASHDisplayFragmentNumber
forall a. Maybe a
Prelude.Nothing
}
getDASHStreamingSessionURL_displayFragmentTimestamp :: Lens.Lens' GetDASHStreamingSessionURL (Prelude.Maybe DASHDisplayFragmentTimestamp)
getDASHStreamingSessionURL_displayFragmentTimestamp :: (Maybe DASHDisplayFragmentTimestamp
-> f (Maybe DASHDisplayFragmentTimestamp))
-> GetDASHStreamingSessionURL -> f GetDASHStreamingSessionURL
getDASHStreamingSessionURL_displayFragmentTimestamp = (GetDASHStreamingSessionURL -> Maybe DASHDisplayFragmentTimestamp)
-> (GetDASHStreamingSessionURL
-> Maybe DASHDisplayFragmentTimestamp
-> GetDASHStreamingSessionURL)
-> Lens
GetDASHStreamingSessionURL
GetDASHStreamingSessionURL
(Maybe DASHDisplayFragmentTimestamp)
(Maybe DASHDisplayFragmentTimestamp)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetDASHStreamingSessionURL' {Maybe DASHDisplayFragmentTimestamp
displayFragmentTimestamp :: Maybe DASHDisplayFragmentTimestamp
$sel:displayFragmentTimestamp:GetDASHStreamingSessionURL' :: GetDASHStreamingSessionURL -> Maybe DASHDisplayFragmentTimestamp
displayFragmentTimestamp} -> Maybe DASHDisplayFragmentTimestamp
displayFragmentTimestamp) (\s :: GetDASHStreamingSessionURL
s@GetDASHStreamingSessionURL' {} Maybe DASHDisplayFragmentTimestamp
a -> GetDASHStreamingSessionURL
s {$sel:displayFragmentTimestamp:GetDASHStreamingSessionURL' :: Maybe DASHDisplayFragmentTimestamp
displayFragmentTimestamp = Maybe DASHDisplayFragmentTimestamp
a} :: GetDASHStreamingSessionURL)
getDASHStreamingSessionURL_expires :: Lens.Lens' GetDASHStreamingSessionURL (Prelude.Maybe Prelude.Natural)
getDASHStreamingSessionURL_expires :: (Maybe Natural -> f (Maybe Natural))
-> GetDASHStreamingSessionURL -> f GetDASHStreamingSessionURL
getDASHStreamingSessionURL_expires = (GetDASHStreamingSessionURL -> Maybe Natural)
-> (GetDASHStreamingSessionURL
-> Maybe Natural -> GetDASHStreamingSessionURL)
-> Lens
GetDASHStreamingSessionURL
GetDASHStreamingSessionURL
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetDASHStreamingSessionURL' {Maybe Natural
expires :: Maybe Natural
$sel:expires:GetDASHStreamingSessionURL' :: GetDASHStreamingSessionURL -> Maybe Natural
expires} -> Maybe Natural
expires) (\s :: GetDASHStreamingSessionURL
s@GetDASHStreamingSessionURL' {} Maybe Natural
a -> GetDASHStreamingSessionURL
s {$sel:expires:GetDASHStreamingSessionURL' :: Maybe Natural
expires = Maybe Natural
a} :: GetDASHStreamingSessionURL)
getDASHStreamingSessionURL_dASHFragmentSelector :: Lens.Lens' GetDASHStreamingSessionURL (Prelude.Maybe DASHFragmentSelector)
getDASHStreamingSessionURL_dASHFragmentSelector :: (Maybe DASHFragmentSelector -> f (Maybe DASHFragmentSelector))
-> GetDASHStreamingSessionURL -> f GetDASHStreamingSessionURL
getDASHStreamingSessionURL_dASHFragmentSelector = (GetDASHStreamingSessionURL -> Maybe DASHFragmentSelector)
-> (GetDASHStreamingSessionURL
-> Maybe DASHFragmentSelector -> GetDASHStreamingSessionURL)
-> Lens
GetDASHStreamingSessionURL
GetDASHStreamingSessionURL
(Maybe DASHFragmentSelector)
(Maybe DASHFragmentSelector)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetDASHStreamingSessionURL' {Maybe DASHFragmentSelector
dASHFragmentSelector :: Maybe DASHFragmentSelector
$sel:dASHFragmentSelector:GetDASHStreamingSessionURL' :: GetDASHStreamingSessionURL -> Maybe DASHFragmentSelector
dASHFragmentSelector} -> Maybe DASHFragmentSelector
dASHFragmentSelector) (\s :: GetDASHStreamingSessionURL
s@GetDASHStreamingSessionURL' {} Maybe DASHFragmentSelector
a -> GetDASHStreamingSessionURL
s {$sel:dASHFragmentSelector:GetDASHStreamingSessionURL' :: Maybe DASHFragmentSelector
dASHFragmentSelector = Maybe DASHFragmentSelector
a} :: GetDASHStreamingSessionURL)
getDASHStreamingSessionURL_maxManifestFragmentResults :: Lens.Lens' GetDASHStreamingSessionURL (Prelude.Maybe Prelude.Natural)
getDASHStreamingSessionURL_maxManifestFragmentResults :: (Maybe Natural -> f (Maybe Natural))
-> GetDASHStreamingSessionURL -> f GetDASHStreamingSessionURL
getDASHStreamingSessionURL_maxManifestFragmentResults = (GetDASHStreamingSessionURL -> Maybe Natural)
-> (GetDASHStreamingSessionURL
-> Maybe Natural -> GetDASHStreamingSessionURL)
-> Lens
GetDASHStreamingSessionURL
GetDASHStreamingSessionURL
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetDASHStreamingSessionURL' {Maybe Natural
maxManifestFragmentResults :: Maybe Natural
$sel:maxManifestFragmentResults:GetDASHStreamingSessionURL' :: GetDASHStreamingSessionURL -> Maybe Natural
maxManifestFragmentResults} -> Maybe Natural
maxManifestFragmentResults) (\s :: GetDASHStreamingSessionURL
s@GetDASHStreamingSessionURL' {} Maybe Natural
a -> GetDASHStreamingSessionURL
s {$sel:maxManifestFragmentResults:GetDASHStreamingSessionURL' :: Maybe Natural
maxManifestFragmentResults = Maybe Natural
a} :: GetDASHStreamingSessionURL)
getDASHStreamingSessionURL_streamARN :: Lens.Lens' GetDASHStreamingSessionURL (Prelude.Maybe Prelude.Text)
getDASHStreamingSessionURL_streamARN :: (Maybe Text -> f (Maybe Text))
-> GetDASHStreamingSessionURL -> f GetDASHStreamingSessionURL
getDASHStreamingSessionURL_streamARN = (GetDASHStreamingSessionURL -> Maybe Text)
-> (GetDASHStreamingSessionURL
-> Maybe Text -> GetDASHStreamingSessionURL)
-> Lens
GetDASHStreamingSessionURL
GetDASHStreamingSessionURL
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetDASHStreamingSessionURL' {Maybe Text
streamARN :: Maybe Text
$sel:streamARN:GetDASHStreamingSessionURL' :: GetDASHStreamingSessionURL -> Maybe Text
streamARN} -> Maybe Text
streamARN) (\s :: GetDASHStreamingSessionURL
s@GetDASHStreamingSessionURL' {} Maybe Text
a -> GetDASHStreamingSessionURL
s {$sel:streamARN:GetDASHStreamingSessionURL' :: Maybe Text
streamARN = Maybe Text
a} :: GetDASHStreamingSessionURL)
getDASHStreamingSessionURL_playbackMode :: Lens.Lens' GetDASHStreamingSessionURL (Prelude.Maybe DASHPlaybackMode)
getDASHStreamingSessionURL_playbackMode :: (Maybe DASHPlaybackMode -> f (Maybe DASHPlaybackMode))
-> GetDASHStreamingSessionURL -> f GetDASHStreamingSessionURL
getDASHStreamingSessionURL_playbackMode = (GetDASHStreamingSessionURL -> Maybe DASHPlaybackMode)
-> (GetDASHStreamingSessionURL
-> Maybe DASHPlaybackMode -> GetDASHStreamingSessionURL)
-> Lens
GetDASHStreamingSessionURL
GetDASHStreamingSessionURL
(Maybe DASHPlaybackMode)
(Maybe DASHPlaybackMode)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetDASHStreamingSessionURL' {Maybe DASHPlaybackMode
playbackMode :: Maybe DASHPlaybackMode
$sel:playbackMode:GetDASHStreamingSessionURL' :: GetDASHStreamingSessionURL -> Maybe DASHPlaybackMode
playbackMode} -> Maybe DASHPlaybackMode
playbackMode) (\s :: GetDASHStreamingSessionURL
s@GetDASHStreamingSessionURL' {} Maybe DASHPlaybackMode
a -> GetDASHStreamingSessionURL
s {$sel:playbackMode:GetDASHStreamingSessionURL' :: Maybe DASHPlaybackMode
playbackMode = Maybe DASHPlaybackMode
a} :: GetDASHStreamingSessionURL)
getDASHStreamingSessionURL_streamName :: Lens.Lens' GetDASHStreamingSessionURL (Prelude.Maybe Prelude.Text)
getDASHStreamingSessionURL_streamName :: (Maybe Text -> f (Maybe Text))
-> GetDASHStreamingSessionURL -> f GetDASHStreamingSessionURL
getDASHStreamingSessionURL_streamName = (GetDASHStreamingSessionURL -> Maybe Text)
-> (GetDASHStreamingSessionURL
-> Maybe Text -> GetDASHStreamingSessionURL)
-> Lens
GetDASHStreamingSessionURL
GetDASHStreamingSessionURL
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetDASHStreamingSessionURL' {Maybe Text
streamName :: Maybe Text
$sel:streamName:GetDASHStreamingSessionURL' :: GetDASHStreamingSessionURL -> Maybe Text
streamName} -> Maybe Text
streamName) (\s :: GetDASHStreamingSessionURL
s@GetDASHStreamingSessionURL' {} Maybe Text
a -> GetDASHStreamingSessionURL
s {$sel:streamName:GetDASHStreamingSessionURL' :: Maybe Text
streamName = Maybe Text
a} :: GetDASHStreamingSessionURL)
getDASHStreamingSessionURL_displayFragmentNumber :: Lens.Lens' GetDASHStreamingSessionURL (Prelude.Maybe DASHDisplayFragmentNumber)
getDASHStreamingSessionURL_displayFragmentNumber :: (Maybe DASHDisplayFragmentNumber
-> f (Maybe DASHDisplayFragmentNumber))
-> GetDASHStreamingSessionURL -> f GetDASHStreamingSessionURL
getDASHStreamingSessionURL_displayFragmentNumber = (GetDASHStreamingSessionURL -> Maybe DASHDisplayFragmentNumber)
-> (GetDASHStreamingSessionURL
-> Maybe DASHDisplayFragmentNumber -> GetDASHStreamingSessionURL)
-> Lens
GetDASHStreamingSessionURL
GetDASHStreamingSessionURL
(Maybe DASHDisplayFragmentNumber)
(Maybe DASHDisplayFragmentNumber)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetDASHStreamingSessionURL' {Maybe DASHDisplayFragmentNumber
displayFragmentNumber :: Maybe DASHDisplayFragmentNumber
$sel:displayFragmentNumber:GetDASHStreamingSessionURL' :: GetDASHStreamingSessionURL -> Maybe DASHDisplayFragmentNumber
displayFragmentNumber} -> Maybe DASHDisplayFragmentNumber
displayFragmentNumber) (\s :: GetDASHStreamingSessionURL
s@GetDASHStreamingSessionURL' {} Maybe DASHDisplayFragmentNumber
a -> GetDASHStreamingSessionURL
s {$sel:displayFragmentNumber:GetDASHStreamingSessionURL' :: Maybe DASHDisplayFragmentNumber
displayFragmentNumber = Maybe DASHDisplayFragmentNumber
a} :: GetDASHStreamingSessionURL)
instance Core.AWSRequest GetDASHStreamingSessionURL where
type
AWSResponse GetDASHStreamingSessionURL =
GetDASHStreamingSessionURLResponse
request :: GetDASHStreamingSessionURL -> Request GetDASHStreamingSessionURL
request = Service
-> GetDASHStreamingSessionURL -> Request GetDASHStreamingSessionURL
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy GetDASHStreamingSessionURL
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse GetDASHStreamingSessionURL)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse GetDASHStreamingSessionURL))
-> Logger
-> Service
-> Proxy GetDASHStreamingSessionURL
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse GetDASHStreamingSessionURL)))
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 Text -> Int -> GetDASHStreamingSessionURLResponse
GetDASHStreamingSessionURLResponse'
(Maybe Text -> Int -> GetDASHStreamingSessionURLResponse)
-> Either String (Maybe Text)
-> Either String (Int -> GetDASHStreamingSessionURLResponse)
forall (f :: * -> *) a b. Functor 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
"DASHStreamingSessionURL")
Either String (Int -> GetDASHStreamingSessionURLResponse)
-> Either String Int
-> Either String GetDASHStreamingSessionURLResponse
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 GetDASHStreamingSessionURL
instance Prelude.NFData GetDASHStreamingSessionURL
instance Core.ToHeaders GetDASHStreamingSessionURL where
toHeaders :: GetDASHStreamingSessionURL -> ResponseHeaders
toHeaders = ResponseHeaders -> GetDASHStreamingSessionURL -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty
instance Core.ToJSON GetDASHStreamingSessionURL where
toJSON :: GetDASHStreamingSessionURL -> Value
toJSON GetDASHStreamingSessionURL' {Maybe Natural
Maybe Text
Maybe DASHDisplayFragmentNumber
Maybe DASHDisplayFragmentTimestamp
Maybe DASHPlaybackMode
Maybe DASHFragmentSelector
displayFragmentNumber :: Maybe DASHDisplayFragmentNumber
streamName :: Maybe Text
playbackMode :: Maybe DASHPlaybackMode
streamARN :: Maybe Text
maxManifestFragmentResults :: Maybe Natural
dASHFragmentSelector :: Maybe DASHFragmentSelector
expires :: Maybe Natural
displayFragmentTimestamp :: Maybe DASHDisplayFragmentTimestamp
$sel:displayFragmentNumber:GetDASHStreamingSessionURL' :: GetDASHStreamingSessionURL -> Maybe DASHDisplayFragmentNumber
$sel:streamName:GetDASHStreamingSessionURL' :: GetDASHStreamingSessionURL -> Maybe Text
$sel:playbackMode:GetDASHStreamingSessionURL' :: GetDASHStreamingSessionURL -> Maybe DASHPlaybackMode
$sel:streamARN:GetDASHStreamingSessionURL' :: GetDASHStreamingSessionURL -> Maybe Text
$sel:maxManifestFragmentResults:GetDASHStreamingSessionURL' :: GetDASHStreamingSessionURL -> Maybe Natural
$sel:dASHFragmentSelector:GetDASHStreamingSessionURL' :: GetDASHStreamingSessionURL -> Maybe DASHFragmentSelector
$sel:expires:GetDASHStreamingSessionURL' :: GetDASHStreamingSessionURL -> Maybe Natural
$sel:displayFragmentTimestamp:GetDASHStreamingSessionURL' :: GetDASHStreamingSessionURL -> Maybe DASHDisplayFragmentTimestamp
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"DisplayFragmentTimestamp" Text -> DASHDisplayFragmentTimestamp -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(DASHDisplayFragmentTimestamp -> Pair)
-> Maybe DASHDisplayFragmentTimestamp -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe DASHDisplayFragmentTimestamp
displayFragmentTimestamp,
(Text
"Expires" Text -> Natural -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Natural -> Pair) -> Maybe Natural -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
expires,
(Text
"DASHFragmentSelector" Text -> DASHFragmentSelector -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(DASHFragmentSelector -> Pair)
-> Maybe DASHFragmentSelector -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe DASHFragmentSelector
dASHFragmentSelector,
(Text
"MaxManifestFragmentResults" Text -> Natural -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Natural -> Pair) -> Maybe Natural -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
maxManifestFragmentResults,
(Text
"StreamARN" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
streamARN,
(Text
"PlaybackMode" Text -> DASHPlaybackMode -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (DASHPlaybackMode -> Pair) -> Maybe DASHPlaybackMode -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe DASHPlaybackMode
playbackMode,
(Text
"StreamName" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
streamName,
(Text
"DisplayFragmentNumber" Text -> DASHDisplayFragmentNumber -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(DASHDisplayFragmentNumber -> Pair)
-> Maybe DASHDisplayFragmentNumber -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe DASHDisplayFragmentNumber
displayFragmentNumber
]
)
instance Core.ToPath GetDASHStreamingSessionURL where
toPath :: GetDASHStreamingSessionURL -> ByteString
toPath = ByteString -> GetDASHStreamingSessionURL -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/getDASHStreamingSessionURL"
instance Core.ToQuery GetDASHStreamingSessionURL where
toQuery :: GetDASHStreamingSessionURL -> QueryString
toQuery = QueryString -> GetDASHStreamingSessionURL -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data GetDASHStreamingSessionURLResponse = GetDASHStreamingSessionURLResponse'
{
GetDASHStreamingSessionURLResponse -> Maybe Text
dASHStreamingSessionURL :: Prelude.Maybe Prelude.Text,
GetDASHStreamingSessionURLResponse -> Int
httpStatus :: Prelude.Int
}
deriving (GetDASHStreamingSessionURLResponse
-> GetDASHStreamingSessionURLResponse -> Bool
(GetDASHStreamingSessionURLResponse
-> GetDASHStreamingSessionURLResponse -> Bool)
-> (GetDASHStreamingSessionURLResponse
-> GetDASHStreamingSessionURLResponse -> Bool)
-> Eq GetDASHStreamingSessionURLResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetDASHStreamingSessionURLResponse
-> GetDASHStreamingSessionURLResponse -> Bool
$c/= :: GetDASHStreamingSessionURLResponse
-> GetDASHStreamingSessionURLResponse -> Bool
== :: GetDASHStreamingSessionURLResponse
-> GetDASHStreamingSessionURLResponse -> Bool
$c== :: GetDASHStreamingSessionURLResponse
-> GetDASHStreamingSessionURLResponse -> Bool
Prelude.Eq, ReadPrec [GetDASHStreamingSessionURLResponse]
ReadPrec GetDASHStreamingSessionURLResponse
Int -> ReadS GetDASHStreamingSessionURLResponse
ReadS [GetDASHStreamingSessionURLResponse]
(Int -> ReadS GetDASHStreamingSessionURLResponse)
-> ReadS [GetDASHStreamingSessionURLResponse]
-> ReadPrec GetDASHStreamingSessionURLResponse
-> ReadPrec [GetDASHStreamingSessionURLResponse]
-> Read GetDASHStreamingSessionURLResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetDASHStreamingSessionURLResponse]
$creadListPrec :: ReadPrec [GetDASHStreamingSessionURLResponse]
readPrec :: ReadPrec GetDASHStreamingSessionURLResponse
$creadPrec :: ReadPrec GetDASHStreamingSessionURLResponse
readList :: ReadS [GetDASHStreamingSessionURLResponse]
$creadList :: ReadS [GetDASHStreamingSessionURLResponse]
readsPrec :: Int -> ReadS GetDASHStreamingSessionURLResponse
$creadsPrec :: Int -> ReadS GetDASHStreamingSessionURLResponse
Prelude.Read, Int -> GetDASHStreamingSessionURLResponse -> ShowS
[GetDASHStreamingSessionURLResponse] -> ShowS
GetDASHStreamingSessionURLResponse -> String
(Int -> GetDASHStreamingSessionURLResponse -> ShowS)
-> (GetDASHStreamingSessionURLResponse -> String)
-> ([GetDASHStreamingSessionURLResponse] -> ShowS)
-> Show GetDASHStreamingSessionURLResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetDASHStreamingSessionURLResponse] -> ShowS
$cshowList :: [GetDASHStreamingSessionURLResponse] -> ShowS
show :: GetDASHStreamingSessionURLResponse -> String
$cshow :: GetDASHStreamingSessionURLResponse -> String
showsPrec :: Int -> GetDASHStreamingSessionURLResponse -> ShowS
$cshowsPrec :: Int -> GetDASHStreamingSessionURLResponse -> ShowS
Prelude.Show, (forall x.
GetDASHStreamingSessionURLResponse
-> Rep GetDASHStreamingSessionURLResponse x)
-> (forall x.
Rep GetDASHStreamingSessionURLResponse x
-> GetDASHStreamingSessionURLResponse)
-> Generic GetDASHStreamingSessionURLResponse
forall x.
Rep GetDASHStreamingSessionURLResponse x
-> GetDASHStreamingSessionURLResponse
forall x.
GetDASHStreamingSessionURLResponse
-> Rep GetDASHStreamingSessionURLResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetDASHStreamingSessionURLResponse x
-> GetDASHStreamingSessionURLResponse
$cfrom :: forall x.
GetDASHStreamingSessionURLResponse
-> Rep GetDASHStreamingSessionURLResponse x
Prelude.Generic)
newGetDASHStreamingSessionURLResponse ::
Prelude.Int ->
GetDASHStreamingSessionURLResponse
newGetDASHStreamingSessionURLResponse :: Int -> GetDASHStreamingSessionURLResponse
newGetDASHStreamingSessionURLResponse Int
pHttpStatus_ =
GetDASHStreamingSessionURLResponse' :: Maybe Text -> Int -> GetDASHStreamingSessionURLResponse
GetDASHStreamingSessionURLResponse'
{ $sel:dASHStreamingSessionURL:GetDASHStreamingSessionURLResponse' :: Maybe Text
dASHStreamingSessionURL =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:GetDASHStreamingSessionURLResponse' :: Int
httpStatus = Int
pHttpStatus_
}
getDASHStreamingSessionURLResponse_dASHStreamingSessionURL :: Lens.Lens' GetDASHStreamingSessionURLResponse (Prelude.Maybe Prelude.Text)
getDASHStreamingSessionURLResponse_dASHStreamingSessionURL :: (Maybe Text -> f (Maybe Text))
-> GetDASHStreamingSessionURLResponse
-> f GetDASHStreamingSessionURLResponse
getDASHStreamingSessionURLResponse_dASHStreamingSessionURL = (GetDASHStreamingSessionURLResponse -> Maybe Text)
-> (GetDASHStreamingSessionURLResponse
-> Maybe Text -> GetDASHStreamingSessionURLResponse)
-> Lens
GetDASHStreamingSessionURLResponse
GetDASHStreamingSessionURLResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetDASHStreamingSessionURLResponse' {Maybe Text
dASHStreamingSessionURL :: Maybe Text
$sel:dASHStreamingSessionURL:GetDASHStreamingSessionURLResponse' :: GetDASHStreamingSessionURLResponse -> Maybe Text
dASHStreamingSessionURL} -> Maybe Text
dASHStreamingSessionURL) (\s :: GetDASHStreamingSessionURLResponse
s@GetDASHStreamingSessionURLResponse' {} Maybe Text
a -> GetDASHStreamingSessionURLResponse
s {$sel:dASHStreamingSessionURL:GetDASHStreamingSessionURLResponse' :: Maybe Text
dASHStreamingSessionURL = Maybe Text
a} :: GetDASHStreamingSessionURLResponse)
getDASHStreamingSessionURLResponse_httpStatus :: Lens.Lens' GetDASHStreamingSessionURLResponse Prelude.Int
getDASHStreamingSessionURLResponse_httpStatus :: (Int -> f Int)
-> GetDASHStreamingSessionURLResponse
-> f GetDASHStreamingSessionURLResponse
getDASHStreamingSessionURLResponse_httpStatus = (GetDASHStreamingSessionURLResponse -> Int)
-> (GetDASHStreamingSessionURLResponse
-> Int -> GetDASHStreamingSessionURLResponse)
-> Lens
GetDASHStreamingSessionURLResponse
GetDASHStreamingSessionURLResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetDASHStreamingSessionURLResponse' {Int
httpStatus :: Int
$sel:httpStatus:GetDASHStreamingSessionURLResponse' :: GetDASHStreamingSessionURLResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: GetDASHStreamingSessionURLResponse
s@GetDASHStreamingSessionURLResponse' {} Int
a -> GetDASHStreamingSessionURLResponse
s {$sel:httpStatus:GetDASHStreamingSessionURLResponse' :: Int
httpStatus = Int
a} :: GetDASHStreamingSessionURLResponse)
instance
Prelude.NFData
GetDASHStreamingSessionURLResponse