{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.MediaConvert.Types.CmafMpdManifestBandwidthType
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.MediaConvert.Types.CmafMpdManifestBandwidthType
  ( CmafMpdManifestBandwidthType
      ( ..,
        CmafMpdManifestBandwidthType_AVERAGE,
        CmafMpdManifestBandwidthType_MAX
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude

-- | Specify how the value for bandwidth is determined for each video
-- Representation in your output MPD manifest. We recommend that you choose
-- a MPD manifest bandwidth type that is compatible with your downstream
-- player configuration. Max: Use the same value that you specify for Max
-- bitrate in the video output, in bits per second. Average: Use the
-- calculated average bitrate of the encoded video output, in bits per
-- second.
newtype CmafMpdManifestBandwidthType = CmafMpdManifestBandwidthType'
  { CmafMpdManifestBandwidthType -> Text
fromCmafMpdManifestBandwidthType ::
      Data.Text
  }
  deriving stock
    ( Int -> CmafMpdManifestBandwidthType -> ShowS
[CmafMpdManifestBandwidthType] -> ShowS
CmafMpdManifestBandwidthType -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CmafMpdManifestBandwidthType] -> ShowS
$cshowList :: [CmafMpdManifestBandwidthType] -> ShowS
show :: CmafMpdManifestBandwidthType -> String
$cshow :: CmafMpdManifestBandwidthType -> String
showsPrec :: Int -> CmafMpdManifestBandwidthType -> ShowS
$cshowsPrec :: Int -> CmafMpdManifestBandwidthType -> ShowS
Prelude.Show,
      ReadPrec [CmafMpdManifestBandwidthType]
ReadPrec CmafMpdManifestBandwidthType
Int -> ReadS CmafMpdManifestBandwidthType
ReadS [CmafMpdManifestBandwidthType]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CmafMpdManifestBandwidthType]
$creadListPrec :: ReadPrec [CmafMpdManifestBandwidthType]
readPrec :: ReadPrec CmafMpdManifestBandwidthType
$creadPrec :: ReadPrec CmafMpdManifestBandwidthType
readList :: ReadS [CmafMpdManifestBandwidthType]
$creadList :: ReadS [CmafMpdManifestBandwidthType]
readsPrec :: Int -> ReadS CmafMpdManifestBandwidthType
$creadsPrec :: Int -> ReadS CmafMpdManifestBandwidthType
Prelude.Read,
      CmafMpdManifestBandwidthType
-> CmafMpdManifestBandwidthType -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CmafMpdManifestBandwidthType
-> CmafMpdManifestBandwidthType -> Bool
$c/= :: CmafMpdManifestBandwidthType
-> CmafMpdManifestBandwidthType -> Bool
== :: CmafMpdManifestBandwidthType
-> CmafMpdManifestBandwidthType -> Bool
$c== :: CmafMpdManifestBandwidthType
-> CmafMpdManifestBandwidthType -> Bool
Prelude.Eq,
      Eq CmafMpdManifestBandwidthType
CmafMpdManifestBandwidthType
-> CmafMpdManifestBandwidthType -> Bool
CmafMpdManifestBandwidthType
-> CmafMpdManifestBandwidthType -> Ordering
CmafMpdManifestBandwidthType
-> CmafMpdManifestBandwidthType -> CmafMpdManifestBandwidthType
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: CmafMpdManifestBandwidthType
-> CmafMpdManifestBandwidthType -> CmafMpdManifestBandwidthType
$cmin :: CmafMpdManifestBandwidthType
-> CmafMpdManifestBandwidthType -> CmafMpdManifestBandwidthType
max :: CmafMpdManifestBandwidthType
-> CmafMpdManifestBandwidthType -> CmafMpdManifestBandwidthType
$cmax :: CmafMpdManifestBandwidthType
-> CmafMpdManifestBandwidthType -> CmafMpdManifestBandwidthType
>= :: CmafMpdManifestBandwidthType
-> CmafMpdManifestBandwidthType -> Bool
$c>= :: CmafMpdManifestBandwidthType
-> CmafMpdManifestBandwidthType -> Bool
> :: CmafMpdManifestBandwidthType
-> CmafMpdManifestBandwidthType -> Bool
$c> :: CmafMpdManifestBandwidthType
-> CmafMpdManifestBandwidthType -> Bool
<= :: CmafMpdManifestBandwidthType
-> CmafMpdManifestBandwidthType -> Bool
$c<= :: CmafMpdManifestBandwidthType
-> CmafMpdManifestBandwidthType -> Bool
< :: CmafMpdManifestBandwidthType
-> CmafMpdManifestBandwidthType -> Bool
$c< :: CmafMpdManifestBandwidthType
-> CmafMpdManifestBandwidthType -> Bool
compare :: CmafMpdManifestBandwidthType
-> CmafMpdManifestBandwidthType -> Ordering
$ccompare :: CmafMpdManifestBandwidthType
-> CmafMpdManifestBandwidthType -> Ordering
Prelude.Ord,
      forall x.
Rep CmafMpdManifestBandwidthType x -> CmafMpdManifestBandwidthType
forall x.
CmafMpdManifestBandwidthType -> Rep CmafMpdManifestBandwidthType x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CmafMpdManifestBandwidthType x -> CmafMpdManifestBandwidthType
$cfrom :: forall x.
CmafMpdManifestBandwidthType -> Rep CmafMpdManifestBandwidthType x
Prelude.Generic
    )
  deriving newtype
    ( Eq CmafMpdManifestBandwidthType
Int -> CmafMpdManifestBandwidthType -> Int
CmafMpdManifestBandwidthType -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: CmafMpdManifestBandwidthType -> Int
$chash :: CmafMpdManifestBandwidthType -> Int
hashWithSalt :: Int -> CmafMpdManifestBandwidthType -> Int
$chashWithSalt :: Int -> CmafMpdManifestBandwidthType -> Int
Prelude.Hashable,
      CmafMpdManifestBandwidthType -> ()
forall a. (a -> ()) -> NFData a
rnf :: CmafMpdManifestBandwidthType -> ()
$crnf :: CmafMpdManifestBandwidthType -> ()
Prelude.NFData,
      Text -> Either String CmafMpdManifestBandwidthType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String CmafMpdManifestBandwidthType
$cfromText :: Text -> Either String CmafMpdManifestBandwidthType
Data.FromText,
      CmafMpdManifestBandwidthType -> Text
forall a. (a -> Text) -> ToText a
toText :: CmafMpdManifestBandwidthType -> Text
$ctoText :: CmafMpdManifestBandwidthType -> Text
Data.ToText,
      CmafMpdManifestBandwidthType -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: CmafMpdManifestBandwidthType -> ByteString
$ctoBS :: CmafMpdManifestBandwidthType -> ByteString
Data.ToByteString,
      CmafMpdManifestBandwidthType -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: CmafMpdManifestBandwidthType -> ByteStringBuilder
$cbuild :: CmafMpdManifestBandwidthType -> ByteStringBuilder
Data.ToLog,
      HeaderName -> CmafMpdManifestBandwidthType -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> CmafMpdManifestBandwidthType -> [Header]
$ctoHeader :: HeaderName -> CmafMpdManifestBandwidthType -> [Header]
Data.ToHeader,
      CmafMpdManifestBandwidthType -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: CmafMpdManifestBandwidthType -> QueryString
$ctoQuery :: CmafMpdManifestBandwidthType -> QueryString
Data.ToQuery,
      Value -> Parser [CmafMpdManifestBandwidthType]
Value -> Parser CmafMpdManifestBandwidthType
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [CmafMpdManifestBandwidthType]
$cparseJSONList :: Value -> Parser [CmafMpdManifestBandwidthType]
parseJSON :: Value -> Parser CmafMpdManifestBandwidthType
$cparseJSON :: Value -> Parser CmafMpdManifestBandwidthType
Data.FromJSON,
      FromJSONKeyFunction [CmafMpdManifestBandwidthType]
FromJSONKeyFunction CmafMpdManifestBandwidthType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [CmafMpdManifestBandwidthType]
$cfromJSONKeyList :: FromJSONKeyFunction [CmafMpdManifestBandwidthType]
fromJSONKey :: FromJSONKeyFunction CmafMpdManifestBandwidthType
$cfromJSONKey :: FromJSONKeyFunction CmafMpdManifestBandwidthType
Data.FromJSONKey,
      [CmafMpdManifestBandwidthType] -> Encoding
[CmafMpdManifestBandwidthType] -> Value
CmafMpdManifestBandwidthType -> Encoding
CmafMpdManifestBandwidthType -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [CmafMpdManifestBandwidthType] -> Encoding
$ctoEncodingList :: [CmafMpdManifestBandwidthType] -> Encoding
toJSONList :: [CmafMpdManifestBandwidthType] -> Value
$ctoJSONList :: [CmafMpdManifestBandwidthType] -> Value
toEncoding :: CmafMpdManifestBandwidthType -> Encoding
$ctoEncoding :: CmafMpdManifestBandwidthType -> Encoding
toJSON :: CmafMpdManifestBandwidthType -> Value
$ctoJSON :: CmafMpdManifestBandwidthType -> Value
Data.ToJSON,
      ToJSONKeyFunction [CmafMpdManifestBandwidthType]
ToJSONKeyFunction CmafMpdManifestBandwidthType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [CmafMpdManifestBandwidthType]
$ctoJSONKeyList :: ToJSONKeyFunction [CmafMpdManifestBandwidthType]
toJSONKey :: ToJSONKeyFunction CmafMpdManifestBandwidthType
$ctoJSONKey :: ToJSONKeyFunction CmafMpdManifestBandwidthType
Data.ToJSONKey,
      [Node] -> Either String CmafMpdManifestBandwidthType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String CmafMpdManifestBandwidthType
$cparseXML :: [Node] -> Either String CmafMpdManifestBandwidthType
Data.FromXML,
      CmafMpdManifestBandwidthType -> XML
forall a. (a -> XML) -> ToXML a
toXML :: CmafMpdManifestBandwidthType -> XML
$ctoXML :: CmafMpdManifestBandwidthType -> XML
Data.ToXML
    )

pattern CmafMpdManifestBandwidthType_AVERAGE :: CmafMpdManifestBandwidthType
pattern $bCmafMpdManifestBandwidthType_AVERAGE :: CmafMpdManifestBandwidthType
$mCmafMpdManifestBandwidthType_AVERAGE :: forall {r}.
CmafMpdManifestBandwidthType -> ((# #) -> r) -> ((# #) -> r) -> r
CmafMpdManifestBandwidthType_AVERAGE = CmafMpdManifestBandwidthType' "AVERAGE"

pattern CmafMpdManifestBandwidthType_MAX :: CmafMpdManifestBandwidthType
pattern $bCmafMpdManifestBandwidthType_MAX :: CmafMpdManifestBandwidthType
$mCmafMpdManifestBandwidthType_MAX :: forall {r}.
CmafMpdManifestBandwidthType -> ((# #) -> r) -> ((# #) -> r) -> r
CmafMpdManifestBandwidthType_MAX = CmafMpdManifestBandwidthType' "MAX"

{-# COMPLETE
  CmafMpdManifestBandwidthType_AVERAGE,
  CmafMpdManifestBandwidthType_MAX,
  CmafMpdManifestBandwidthType'
  #-}