{-# 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.MediaLive.ListOfferings
(
ListOfferings (..),
newListOfferings,
listOfferings_channelClass,
listOfferings_channelConfiguration,
listOfferings_codec,
listOfferings_duration,
listOfferings_maxResults,
listOfferings_maximumBitrate,
listOfferings_maximumFramerate,
listOfferings_nextToken,
listOfferings_resolution,
listOfferings_resourceType,
listOfferings_specialFeature,
listOfferings_videoQuality,
ListOfferingsResponse (..),
newListOfferingsResponse,
listOfferingsResponse_nextToken,
listOfferingsResponse_offerings,
listOfferingsResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.MediaLive.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data ListOfferings = ListOfferings'
{
ListOfferings -> Maybe Text
channelClass :: Prelude.Maybe Prelude.Text,
ListOfferings -> Maybe Text
channelConfiguration :: Prelude.Maybe Prelude.Text,
ListOfferings -> Maybe Text
codec :: Prelude.Maybe Prelude.Text,
ListOfferings -> Maybe Text
duration :: Prelude.Maybe Prelude.Text,
ListOfferings -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
ListOfferings -> Maybe Text
maximumBitrate :: Prelude.Maybe Prelude.Text,
ListOfferings -> Maybe Text
maximumFramerate :: Prelude.Maybe Prelude.Text,
ListOfferings -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListOfferings -> Maybe Text
resolution :: Prelude.Maybe Prelude.Text,
ListOfferings -> Maybe Text
resourceType :: Prelude.Maybe Prelude.Text,
ListOfferings -> Maybe Text
specialFeature :: Prelude.Maybe Prelude.Text,
ListOfferings -> Maybe Text
videoQuality :: Prelude.Maybe Prelude.Text
}
deriving (ListOfferings -> ListOfferings -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListOfferings -> ListOfferings -> Bool
$c/= :: ListOfferings -> ListOfferings -> Bool
== :: ListOfferings -> ListOfferings -> Bool
$c== :: ListOfferings -> ListOfferings -> Bool
Prelude.Eq, ReadPrec [ListOfferings]
ReadPrec ListOfferings
Int -> ReadS ListOfferings
ReadS [ListOfferings]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListOfferings]
$creadListPrec :: ReadPrec [ListOfferings]
readPrec :: ReadPrec ListOfferings
$creadPrec :: ReadPrec ListOfferings
readList :: ReadS [ListOfferings]
$creadList :: ReadS [ListOfferings]
readsPrec :: Int -> ReadS ListOfferings
$creadsPrec :: Int -> ReadS ListOfferings
Prelude.Read, Int -> ListOfferings -> ShowS
[ListOfferings] -> ShowS
ListOfferings -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListOfferings] -> ShowS
$cshowList :: [ListOfferings] -> ShowS
show :: ListOfferings -> String
$cshow :: ListOfferings -> String
showsPrec :: Int -> ListOfferings -> ShowS
$cshowsPrec :: Int -> ListOfferings -> ShowS
Prelude.Show, forall x. Rep ListOfferings x -> ListOfferings
forall x. ListOfferings -> Rep ListOfferings x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListOfferings x -> ListOfferings
$cfrom :: forall x. ListOfferings -> Rep ListOfferings x
Prelude.Generic)
newListOfferings ::
ListOfferings
newListOfferings :: ListOfferings
newListOfferings =
ListOfferings'
{ $sel:channelClass:ListOfferings' :: Maybe Text
channelClass = forall a. Maybe a
Prelude.Nothing,
$sel:channelConfiguration:ListOfferings' :: Maybe Text
channelConfiguration = forall a. Maybe a
Prelude.Nothing,
$sel:codec:ListOfferings' :: Maybe Text
codec = forall a. Maybe a
Prelude.Nothing,
$sel:duration:ListOfferings' :: Maybe Text
duration = forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListOfferings' :: Maybe Natural
maxResults = forall a. Maybe a
Prelude.Nothing,
$sel:maximumBitrate:ListOfferings' :: Maybe Text
maximumBitrate = forall a. Maybe a
Prelude.Nothing,
$sel:maximumFramerate:ListOfferings' :: Maybe Text
maximumFramerate = forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListOfferings' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
$sel:resolution:ListOfferings' :: Maybe Text
resolution = forall a. Maybe a
Prelude.Nothing,
$sel:resourceType:ListOfferings' :: Maybe Text
resourceType = forall a. Maybe a
Prelude.Nothing,
$sel:specialFeature:ListOfferings' :: Maybe Text
specialFeature = forall a. Maybe a
Prelude.Nothing,
$sel:videoQuality:ListOfferings' :: Maybe Text
videoQuality = forall a. Maybe a
Prelude.Nothing
}
listOfferings_channelClass :: Lens.Lens' ListOfferings (Prelude.Maybe Prelude.Text)
listOfferings_channelClass :: Lens' ListOfferings (Maybe Text)
listOfferings_channelClass = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListOfferings' {Maybe Text
channelClass :: Maybe Text
$sel:channelClass:ListOfferings' :: ListOfferings -> Maybe Text
channelClass} -> Maybe Text
channelClass) (\s :: ListOfferings
s@ListOfferings' {} Maybe Text
a -> ListOfferings
s {$sel:channelClass:ListOfferings' :: Maybe Text
channelClass = Maybe Text
a} :: ListOfferings)
listOfferings_channelConfiguration :: Lens.Lens' ListOfferings (Prelude.Maybe Prelude.Text)
listOfferings_channelConfiguration :: Lens' ListOfferings (Maybe Text)
listOfferings_channelConfiguration = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListOfferings' {Maybe Text
channelConfiguration :: Maybe Text
$sel:channelConfiguration:ListOfferings' :: ListOfferings -> Maybe Text
channelConfiguration} -> Maybe Text
channelConfiguration) (\s :: ListOfferings
s@ListOfferings' {} Maybe Text
a -> ListOfferings
s {$sel:channelConfiguration:ListOfferings' :: Maybe Text
channelConfiguration = Maybe Text
a} :: ListOfferings)
listOfferings_codec :: Lens.Lens' ListOfferings (Prelude.Maybe Prelude.Text)
listOfferings_codec :: Lens' ListOfferings (Maybe Text)
listOfferings_codec = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListOfferings' {Maybe Text
codec :: Maybe Text
$sel:codec:ListOfferings' :: ListOfferings -> Maybe Text
codec} -> Maybe Text
codec) (\s :: ListOfferings
s@ListOfferings' {} Maybe Text
a -> ListOfferings
s {$sel:codec:ListOfferings' :: Maybe Text
codec = Maybe Text
a} :: ListOfferings)
listOfferings_duration :: Lens.Lens' ListOfferings (Prelude.Maybe Prelude.Text)
listOfferings_duration :: Lens' ListOfferings (Maybe Text)
listOfferings_duration = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListOfferings' {Maybe Text
duration :: Maybe Text
$sel:duration:ListOfferings' :: ListOfferings -> Maybe Text
duration} -> Maybe Text
duration) (\s :: ListOfferings
s@ListOfferings' {} Maybe Text
a -> ListOfferings
s {$sel:duration:ListOfferings' :: Maybe Text
duration = Maybe Text
a} :: ListOfferings)
listOfferings_maxResults :: Lens.Lens' ListOfferings (Prelude.Maybe Prelude.Natural)
listOfferings_maxResults :: Lens' ListOfferings (Maybe Natural)
listOfferings_maxResults = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListOfferings' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListOfferings' :: ListOfferings -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListOfferings
s@ListOfferings' {} Maybe Natural
a -> ListOfferings
s {$sel:maxResults:ListOfferings' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListOfferings)
listOfferings_maximumBitrate :: Lens.Lens' ListOfferings (Prelude.Maybe Prelude.Text)
listOfferings_maximumBitrate :: Lens' ListOfferings (Maybe Text)
listOfferings_maximumBitrate = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListOfferings' {Maybe Text
maximumBitrate :: Maybe Text
$sel:maximumBitrate:ListOfferings' :: ListOfferings -> Maybe Text
maximumBitrate} -> Maybe Text
maximumBitrate) (\s :: ListOfferings
s@ListOfferings' {} Maybe Text
a -> ListOfferings
s {$sel:maximumBitrate:ListOfferings' :: Maybe Text
maximumBitrate = Maybe Text
a} :: ListOfferings)
listOfferings_maximumFramerate :: Lens.Lens' ListOfferings (Prelude.Maybe Prelude.Text)
listOfferings_maximumFramerate :: Lens' ListOfferings (Maybe Text)
listOfferings_maximumFramerate = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListOfferings' {Maybe Text
maximumFramerate :: Maybe Text
$sel:maximumFramerate:ListOfferings' :: ListOfferings -> Maybe Text
maximumFramerate} -> Maybe Text
maximumFramerate) (\s :: ListOfferings
s@ListOfferings' {} Maybe Text
a -> ListOfferings
s {$sel:maximumFramerate:ListOfferings' :: Maybe Text
maximumFramerate = Maybe Text
a} :: ListOfferings)
listOfferings_nextToken :: Lens.Lens' ListOfferings (Prelude.Maybe Prelude.Text)
listOfferings_nextToken :: Lens' ListOfferings (Maybe Text)
listOfferings_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListOfferings' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListOfferings' :: ListOfferings -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListOfferings
s@ListOfferings' {} Maybe Text
a -> ListOfferings
s {$sel:nextToken:ListOfferings' :: Maybe Text
nextToken = Maybe Text
a} :: ListOfferings)
listOfferings_resolution :: Lens.Lens' ListOfferings (Prelude.Maybe Prelude.Text)
listOfferings_resolution :: Lens' ListOfferings (Maybe Text)
listOfferings_resolution = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListOfferings' {Maybe Text
resolution :: Maybe Text
$sel:resolution:ListOfferings' :: ListOfferings -> Maybe Text
resolution} -> Maybe Text
resolution) (\s :: ListOfferings
s@ListOfferings' {} Maybe Text
a -> ListOfferings
s {$sel:resolution:ListOfferings' :: Maybe Text
resolution = Maybe Text
a} :: ListOfferings)
listOfferings_resourceType :: Lens.Lens' ListOfferings (Prelude.Maybe Prelude.Text)
listOfferings_resourceType :: Lens' ListOfferings (Maybe Text)
listOfferings_resourceType = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListOfferings' {Maybe Text
resourceType :: Maybe Text
$sel:resourceType:ListOfferings' :: ListOfferings -> Maybe Text
resourceType} -> Maybe Text
resourceType) (\s :: ListOfferings
s@ListOfferings' {} Maybe Text
a -> ListOfferings
s {$sel:resourceType:ListOfferings' :: Maybe Text
resourceType = Maybe Text
a} :: ListOfferings)
listOfferings_specialFeature :: Lens.Lens' ListOfferings (Prelude.Maybe Prelude.Text)
listOfferings_specialFeature :: Lens' ListOfferings (Maybe Text)
listOfferings_specialFeature = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListOfferings' {Maybe Text
specialFeature :: Maybe Text
$sel:specialFeature:ListOfferings' :: ListOfferings -> Maybe Text
specialFeature} -> Maybe Text
specialFeature) (\s :: ListOfferings
s@ListOfferings' {} Maybe Text
a -> ListOfferings
s {$sel:specialFeature:ListOfferings' :: Maybe Text
specialFeature = Maybe Text
a} :: ListOfferings)
listOfferings_videoQuality :: Lens.Lens' ListOfferings (Prelude.Maybe Prelude.Text)
listOfferings_videoQuality :: Lens' ListOfferings (Maybe Text)
listOfferings_videoQuality = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListOfferings' {Maybe Text
videoQuality :: Maybe Text
$sel:videoQuality:ListOfferings' :: ListOfferings -> Maybe Text
videoQuality} -> Maybe Text
videoQuality) (\s :: ListOfferings
s@ListOfferings' {} Maybe Text
a -> ListOfferings
s {$sel:videoQuality:ListOfferings' :: Maybe Text
videoQuality = Maybe Text
a} :: ListOfferings)
instance Core.AWSPager ListOfferings where
page :: ListOfferings -> AWSResponse ListOfferings -> Maybe ListOfferings
page ListOfferings
rq AWSResponse ListOfferings
rs
| forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListOfferings
rs
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListOfferingsResponse (Maybe Text)
listOfferingsResponse_nextToken
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
forall a. Maybe a
Prelude.Nothing
| forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListOfferings
rs
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListOfferingsResponse (Maybe [Offering])
listOfferingsResponse_offerings
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
forall a. a -> Maybe a
Prelude.Just
forall a b. (a -> b) -> a -> b
Prelude.$ ListOfferings
rq
forall a b. a -> (a -> b) -> b
Prelude.& Lens' ListOfferings (Maybe Text)
listOfferings_nextToken
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListOfferings
rs
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListOfferingsResponse (Maybe Text)
listOfferingsResponse_nextToken
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
instance Core.AWSRequest ListOfferings where
type
AWSResponse ListOfferings =
ListOfferingsResponse
request :: (Service -> Service) -> ListOfferings -> Request ListOfferings
request Service -> Service
overrides =
forall a. ToRequest a => Service -> a -> Request a
Request.get (Service -> Service
overrides Service
defaultService)
response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy ListOfferings
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListOfferings)))
response =
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
( \Int
s ResponseHeaders
h Object
x ->
Maybe Text -> Maybe [Offering] -> Int -> ListOfferingsResponse
ListOfferingsResponse'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"nextToken")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"offerings" forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
)
instance Prelude.Hashable ListOfferings where
hashWithSalt :: Int -> ListOfferings -> Int
hashWithSalt Int
_salt ListOfferings' {Maybe Natural
Maybe Text
videoQuality :: Maybe Text
specialFeature :: Maybe Text
resourceType :: Maybe Text
resolution :: Maybe Text
nextToken :: Maybe Text
maximumFramerate :: Maybe Text
maximumBitrate :: Maybe Text
maxResults :: Maybe Natural
duration :: Maybe Text
codec :: Maybe Text
channelConfiguration :: Maybe Text
channelClass :: Maybe Text
$sel:videoQuality:ListOfferings' :: ListOfferings -> Maybe Text
$sel:specialFeature:ListOfferings' :: ListOfferings -> Maybe Text
$sel:resourceType:ListOfferings' :: ListOfferings -> Maybe Text
$sel:resolution:ListOfferings' :: ListOfferings -> Maybe Text
$sel:nextToken:ListOfferings' :: ListOfferings -> Maybe Text
$sel:maximumFramerate:ListOfferings' :: ListOfferings -> Maybe Text
$sel:maximumBitrate:ListOfferings' :: ListOfferings -> Maybe Text
$sel:maxResults:ListOfferings' :: ListOfferings -> Maybe Natural
$sel:duration:ListOfferings' :: ListOfferings -> Maybe Text
$sel:codec:ListOfferings' :: ListOfferings -> Maybe Text
$sel:channelConfiguration:ListOfferings' :: ListOfferings -> Maybe Text
$sel:channelClass:ListOfferings' :: ListOfferings -> Maybe Text
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
channelClass
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
channelConfiguration
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
codec
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
duration
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
maxResults
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
maximumBitrate
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
maximumFramerate
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
nextToken
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
resolution
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
resourceType
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
specialFeature
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
videoQuality
instance Prelude.NFData ListOfferings where
rnf :: ListOfferings -> ()
rnf ListOfferings' {Maybe Natural
Maybe Text
videoQuality :: Maybe Text
specialFeature :: Maybe Text
resourceType :: Maybe Text
resolution :: Maybe Text
nextToken :: Maybe Text
maximumFramerate :: Maybe Text
maximumBitrate :: Maybe Text
maxResults :: Maybe Natural
duration :: Maybe Text
codec :: Maybe Text
channelConfiguration :: Maybe Text
channelClass :: Maybe Text
$sel:videoQuality:ListOfferings' :: ListOfferings -> Maybe Text
$sel:specialFeature:ListOfferings' :: ListOfferings -> Maybe Text
$sel:resourceType:ListOfferings' :: ListOfferings -> Maybe Text
$sel:resolution:ListOfferings' :: ListOfferings -> Maybe Text
$sel:nextToken:ListOfferings' :: ListOfferings -> Maybe Text
$sel:maximumFramerate:ListOfferings' :: ListOfferings -> Maybe Text
$sel:maximumBitrate:ListOfferings' :: ListOfferings -> Maybe Text
$sel:maxResults:ListOfferings' :: ListOfferings -> Maybe Natural
$sel:duration:ListOfferings' :: ListOfferings -> Maybe Text
$sel:codec:ListOfferings' :: ListOfferings -> Maybe Text
$sel:channelConfiguration:ListOfferings' :: ListOfferings -> Maybe Text
$sel:channelClass:ListOfferings' :: ListOfferings -> Maybe Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
channelClass
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
channelConfiguration
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
codec
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
duration
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
maxResults
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
maximumBitrate
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
maximumFramerate
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
nextToken
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
resolution
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
resourceType
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
specialFeature
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
videoQuality
instance Data.ToHeaders ListOfferings where
toHeaders :: ListOfferings -> ResponseHeaders
toHeaders =
forall a b. a -> b -> a
Prelude.const
( forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"Content-Type"
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Data.ToPath ListOfferings where
toPath :: ListOfferings -> ByteString
toPath = forall a b. a -> b -> a
Prelude.const ByteString
"/prod/offerings"
instance Data.ToQuery ListOfferings where
toQuery :: ListOfferings -> QueryString
toQuery ListOfferings' {Maybe Natural
Maybe Text
videoQuality :: Maybe Text
specialFeature :: Maybe Text
resourceType :: Maybe Text
resolution :: Maybe Text
nextToken :: Maybe Text
maximumFramerate :: Maybe Text
maximumBitrate :: Maybe Text
maxResults :: Maybe Natural
duration :: Maybe Text
codec :: Maybe Text
channelConfiguration :: Maybe Text
channelClass :: Maybe Text
$sel:videoQuality:ListOfferings' :: ListOfferings -> Maybe Text
$sel:specialFeature:ListOfferings' :: ListOfferings -> Maybe Text
$sel:resourceType:ListOfferings' :: ListOfferings -> Maybe Text
$sel:resolution:ListOfferings' :: ListOfferings -> Maybe Text
$sel:nextToken:ListOfferings' :: ListOfferings -> Maybe Text
$sel:maximumFramerate:ListOfferings' :: ListOfferings -> Maybe Text
$sel:maximumBitrate:ListOfferings' :: ListOfferings -> Maybe Text
$sel:maxResults:ListOfferings' :: ListOfferings -> Maybe Natural
$sel:duration:ListOfferings' :: ListOfferings -> Maybe Text
$sel:codec:ListOfferings' :: ListOfferings -> Maybe Text
$sel:channelConfiguration:ListOfferings' :: ListOfferings -> Maybe Text
$sel:channelClass:ListOfferings' :: ListOfferings -> Maybe Text
..} =
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"channelClass" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Text
channelClass,
ByteString
"channelConfiguration" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Text
channelConfiguration,
ByteString
"codec" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Text
codec,
ByteString
"duration" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Text
duration,
ByteString
"maxResults" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Natural
maxResults,
ByteString
"maximumBitrate" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Text
maximumBitrate,
ByteString
"maximumFramerate" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Text
maximumFramerate,
ByteString
"nextToken" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Text
nextToken,
ByteString
"resolution" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Text
resolution,
ByteString
"resourceType" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Text
resourceType,
ByteString
"specialFeature" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Text
specialFeature,
ByteString
"videoQuality" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Text
videoQuality
]
data ListOfferingsResponse = ListOfferingsResponse'
{
ListOfferingsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListOfferingsResponse -> Maybe [Offering]
offerings :: Prelude.Maybe [Offering],
ListOfferingsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListOfferingsResponse -> ListOfferingsResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListOfferingsResponse -> ListOfferingsResponse -> Bool
$c/= :: ListOfferingsResponse -> ListOfferingsResponse -> Bool
== :: ListOfferingsResponse -> ListOfferingsResponse -> Bool
$c== :: ListOfferingsResponse -> ListOfferingsResponse -> Bool
Prelude.Eq, ReadPrec [ListOfferingsResponse]
ReadPrec ListOfferingsResponse
Int -> ReadS ListOfferingsResponse
ReadS [ListOfferingsResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListOfferingsResponse]
$creadListPrec :: ReadPrec [ListOfferingsResponse]
readPrec :: ReadPrec ListOfferingsResponse
$creadPrec :: ReadPrec ListOfferingsResponse
readList :: ReadS [ListOfferingsResponse]
$creadList :: ReadS [ListOfferingsResponse]
readsPrec :: Int -> ReadS ListOfferingsResponse
$creadsPrec :: Int -> ReadS ListOfferingsResponse
Prelude.Read, Int -> ListOfferingsResponse -> ShowS
[ListOfferingsResponse] -> ShowS
ListOfferingsResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListOfferingsResponse] -> ShowS
$cshowList :: [ListOfferingsResponse] -> ShowS
show :: ListOfferingsResponse -> String
$cshow :: ListOfferingsResponse -> String
showsPrec :: Int -> ListOfferingsResponse -> ShowS
$cshowsPrec :: Int -> ListOfferingsResponse -> ShowS
Prelude.Show, forall x. Rep ListOfferingsResponse x -> ListOfferingsResponse
forall x. ListOfferingsResponse -> Rep ListOfferingsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListOfferingsResponse x -> ListOfferingsResponse
$cfrom :: forall x. ListOfferingsResponse -> Rep ListOfferingsResponse x
Prelude.Generic)
newListOfferingsResponse ::
Prelude.Int ->
ListOfferingsResponse
newListOfferingsResponse :: Int -> ListOfferingsResponse
newListOfferingsResponse Int
pHttpStatus_ =
ListOfferingsResponse'
{ $sel:nextToken:ListOfferingsResponse' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
$sel:offerings:ListOfferingsResponse' :: Maybe [Offering]
offerings = forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListOfferingsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listOfferingsResponse_nextToken :: Lens.Lens' ListOfferingsResponse (Prelude.Maybe Prelude.Text)
listOfferingsResponse_nextToken :: Lens' ListOfferingsResponse (Maybe Text)
listOfferingsResponse_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListOfferingsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListOfferingsResponse' :: ListOfferingsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListOfferingsResponse
s@ListOfferingsResponse' {} Maybe Text
a -> ListOfferingsResponse
s {$sel:nextToken:ListOfferingsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListOfferingsResponse)
listOfferingsResponse_offerings :: Lens.Lens' ListOfferingsResponse (Prelude.Maybe [Offering])
listOfferingsResponse_offerings :: Lens' ListOfferingsResponse (Maybe [Offering])
listOfferingsResponse_offerings = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListOfferingsResponse' {Maybe [Offering]
offerings :: Maybe [Offering]
$sel:offerings:ListOfferingsResponse' :: ListOfferingsResponse -> Maybe [Offering]
offerings} -> Maybe [Offering]
offerings) (\s :: ListOfferingsResponse
s@ListOfferingsResponse' {} Maybe [Offering]
a -> ListOfferingsResponse
s {$sel:offerings:ListOfferingsResponse' :: Maybe [Offering]
offerings = Maybe [Offering]
a} :: ListOfferingsResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listOfferingsResponse_httpStatus :: Lens.Lens' ListOfferingsResponse Prelude.Int
listOfferingsResponse_httpStatus :: Lens' ListOfferingsResponse Int
listOfferingsResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListOfferingsResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListOfferingsResponse' :: ListOfferingsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListOfferingsResponse
s@ListOfferingsResponse' {} Int
a -> ListOfferingsResponse
s {$sel:httpStatus:ListOfferingsResponse' :: Int
httpStatus = Int
a} :: ListOfferingsResponse)
instance Prelude.NFData ListOfferingsResponse where
rnf :: ListOfferingsResponse -> ()
rnf ListOfferingsResponse' {Int
Maybe [Offering]
Maybe Text
httpStatus :: Int
offerings :: Maybe [Offering]
nextToken :: Maybe Text
$sel:httpStatus:ListOfferingsResponse' :: ListOfferingsResponse -> Int
$sel:offerings:ListOfferingsResponse' :: ListOfferingsResponse -> Maybe [Offering]
$sel:nextToken:ListOfferingsResponse' :: ListOfferingsResponse -> Maybe Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
nextToken
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [Offering]
offerings
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus