{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.MediaLive.Types.H264RateControlMode
( H264RateControlMode
( ..,
H264RateControlMode_CBR,
H264RateControlMode_MULTIPLEX,
H264RateControlMode_QVBR,
H264RateControlMode_VBR
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype H264RateControlMode = H264RateControlMode'
{ H264RateControlMode -> Text
fromH264RateControlMode ::
Core.Text
}
deriving stock
( Int -> H264RateControlMode -> ShowS
[H264RateControlMode] -> ShowS
H264RateControlMode -> String
(Int -> H264RateControlMode -> ShowS)
-> (H264RateControlMode -> String)
-> ([H264RateControlMode] -> ShowS)
-> Show H264RateControlMode
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [H264RateControlMode] -> ShowS
$cshowList :: [H264RateControlMode] -> ShowS
show :: H264RateControlMode -> String
$cshow :: H264RateControlMode -> String
showsPrec :: Int -> H264RateControlMode -> ShowS
$cshowsPrec :: Int -> H264RateControlMode -> ShowS
Prelude.Show,
ReadPrec [H264RateControlMode]
ReadPrec H264RateControlMode
Int -> ReadS H264RateControlMode
ReadS [H264RateControlMode]
(Int -> ReadS H264RateControlMode)
-> ReadS [H264RateControlMode]
-> ReadPrec H264RateControlMode
-> ReadPrec [H264RateControlMode]
-> Read H264RateControlMode
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [H264RateControlMode]
$creadListPrec :: ReadPrec [H264RateControlMode]
readPrec :: ReadPrec H264RateControlMode
$creadPrec :: ReadPrec H264RateControlMode
readList :: ReadS [H264RateControlMode]
$creadList :: ReadS [H264RateControlMode]
readsPrec :: Int -> ReadS H264RateControlMode
$creadsPrec :: Int -> ReadS H264RateControlMode
Prelude.Read,
H264RateControlMode -> H264RateControlMode -> Bool
(H264RateControlMode -> H264RateControlMode -> Bool)
-> (H264RateControlMode -> H264RateControlMode -> Bool)
-> Eq H264RateControlMode
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: H264RateControlMode -> H264RateControlMode -> Bool
$c/= :: H264RateControlMode -> H264RateControlMode -> Bool
== :: H264RateControlMode -> H264RateControlMode -> Bool
$c== :: H264RateControlMode -> H264RateControlMode -> Bool
Prelude.Eq,
Eq H264RateControlMode
Eq H264RateControlMode
-> (H264RateControlMode -> H264RateControlMode -> Ordering)
-> (H264RateControlMode -> H264RateControlMode -> Bool)
-> (H264RateControlMode -> H264RateControlMode -> Bool)
-> (H264RateControlMode -> H264RateControlMode -> Bool)
-> (H264RateControlMode -> H264RateControlMode -> Bool)
-> (H264RateControlMode
-> H264RateControlMode -> H264RateControlMode)
-> (H264RateControlMode
-> H264RateControlMode -> H264RateControlMode)
-> Ord H264RateControlMode
H264RateControlMode -> H264RateControlMode -> Bool
H264RateControlMode -> H264RateControlMode -> Ordering
H264RateControlMode -> H264RateControlMode -> H264RateControlMode
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 :: H264RateControlMode -> H264RateControlMode -> H264RateControlMode
$cmin :: H264RateControlMode -> H264RateControlMode -> H264RateControlMode
max :: H264RateControlMode -> H264RateControlMode -> H264RateControlMode
$cmax :: H264RateControlMode -> H264RateControlMode -> H264RateControlMode
>= :: H264RateControlMode -> H264RateControlMode -> Bool
$c>= :: H264RateControlMode -> H264RateControlMode -> Bool
> :: H264RateControlMode -> H264RateControlMode -> Bool
$c> :: H264RateControlMode -> H264RateControlMode -> Bool
<= :: H264RateControlMode -> H264RateControlMode -> Bool
$c<= :: H264RateControlMode -> H264RateControlMode -> Bool
< :: H264RateControlMode -> H264RateControlMode -> Bool
$c< :: H264RateControlMode -> H264RateControlMode -> Bool
compare :: H264RateControlMode -> H264RateControlMode -> Ordering
$ccompare :: H264RateControlMode -> H264RateControlMode -> Ordering
$cp1Ord :: Eq H264RateControlMode
Prelude.Ord,
(forall x. H264RateControlMode -> Rep H264RateControlMode x)
-> (forall x. Rep H264RateControlMode x -> H264RateControlMode)
-> Generic H264RateControlMode
forall x. Rep H264RateControlMode x -> H264RateControlMode
forall x. H264RateControlMode -> Rep H264RateControlMode x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep H264RateControlMode x -> H264RateControlMode
$cfrom :: forall x. H264RateControlMode -> Rep H264RateControlMode x
Prelude.Generic
)
deriving newtype
( Int -> H264RateControlMode -> Int
H264RateControlMode -> Int
(Int -> H264RateControlMode -> Int)
-> (H264RateControlMode -> Int) -> Hashable H264RateControlMode
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: H264RateControlMode -> Int
$chash :: H264RateControlMode -> Int
hashWithSalt :: Int -> H264RateControlMode -> Int
$chashWithSalt :: Int -> H264RateControlMode -> Int
Prelude.Hashable,
H264RateControlMode -> ()
(H264RateControlMode -> ()) -> NFData H264RateControlMode
forall a. (a -> ()) -> NFData a
rnf :: H264RateControlMode -> ()
$crnf :: H264RateControlMode -> ()
Prelude.NFData,
Text -> Either String H264RateControlMode
(Text -> Either String H264RateControlMode)
-> FromText H264RateControlMode
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String H264RateControlMode
$cfromText :: Text -> Either String H264RateControlMode
Core.FromText,
H264RateControlMode -> Text
(H264RateControlMode -> Text) -> ToText H264RateControlMode
forall a. (a -> Text) -> ToText a
toText :: H264RateControlMode -> Text
$ctoText :: H264RateControlMode -> Text
Core.ToText,
H264RateControlMode -> ByteString
(H264RateControlMode -> ByteString)
-> ToByteString H264RateControlMode
forall a. (a -> ByteString) -> ToByteString a
toBS :: H264RateControlMode -> ByteString
$ctoBS :: H264RateControlMode -> ByteString
Core.ToByteString,
H264RateControlMode -> ByteStringBuilder
(H264RateControlMode -> ByteStringBuilder)
-> ToLog H264RateControlMode
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: H264RateControlMode -> ByteStringBuilder
$cbuild :: H264RateControlMode -> ByteStringBuilder
Core.ToLog,
HeaderName -> H264RateControlMode -> [Header]
(HeaderName -> H264RateControlMode -> [Header])
-> ToHeader H264RateControlMode
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> H264RateControlMode -> [Header]
$ctoHeader :: HeaderName -> H264RateControlMode -> [Header]
Core.ToHeader,
H264RateControlMode -> QueryString
(H264RateControlMode -> QueryString) -> ToQuery H264RateControlMode
forall a. (a -> QueryString) -> ToQuery a
toQuery :: H264RateControlMode -> QueryString
$ctoQuery :: H264RateControlMode -> QueryString
Core.ToQuery,
Value -> Parser [H264RateControlMode]
Value -> Parser H264RateControlMode
(Value -> Parser H264RateControlMode)
-> (Value -> Parser [H264RateControlMode])
-> FromJSON H264RateControlMode
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [H264RateControlMode]
$cparseJSONList :: Value -> Parser [H264RateControlMode]
parseJSON :: Value -> Parser H264RateControlMode
$cparseJSON :: Value -> Parser H264RateControlMode
Core.FromJSON,
FromJSONKeyFunction [H264RateControlMode]
FromJSONKeyFunction H264RateControlMode
FromJSONKeyFunction H264RateControlMode
-> FromJSONKeyFunction [H264RateControlMode]
-> FromJSONKey H264RateControlMode
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [H264RateControlMode]
$cfromJSONKeyList :: FromJSONKeyFunction [H264RateControlMode]
fromJSONKey :: FromJSONKeyFunction H264RateControlMode
$cfromJSONKey :: FromJSONKeyFunction H264RateControlMode
Core.FromJSONKey,
[H264RateControlMode] -> Encoding
[H264RateControlMode] -> Value
H264RateControlMode -> Encoding
H264RateControlMode -> Value
(H264RateControlMode -> Value)
-> (H264RateControlMode -> Encoding)
-> ([H264RateControlMode] -> Value)
-> ([H264RateControlMode] -> Encoding)
-> ToJSON H264RateControlMode
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [H264RateControlMode] -> Encoding
$ctoEncodingList :: [H264RateControlMode] -> Encoding
toJSONList :: [H264RateControlMode] -> Value
$ctoJSONList :: [H264RateControlMode] -> Value
toEncoding :: H264RateControlMode -> Encoding
$ctoEncoding :: H264RateControlMode -> Encoding
toJSON :: H264RateControlMode -> Value
$ctoJSON :: H264RateControlMode -> Value
Core.ToJSON,
ToJSONKeyFunction [H264RateControlMode]
ToJSONKeyFunction H264RateControlMode
ToJSONKeyFunction H264RateControlMode
-> ToJSONKeyFunction [H264RateControlMode]
-> ToJSONKey H264RateControlMode
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [H264RateControlMode]
$ctoJSONKeyList :: ToJSONKeyFunction [H264RateControlMode]
toJSONKey :: ToJSONKeyFunction H264RateControlMode
$ctoJSONKey :: ToJSONKeyFunction H264RateControlMode
Core.ToJSONKey,
[Node] -> Either String H264RateControlMode
([Node] -> Either String H264RateControlMode)
-> FromXML H264RateControlMode
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String H264RateControlMode
$cparseXML :: [Node] -> Either String H264RateControlMode
Core.FromXML,
H264RateControlMode -> XML
(H264RateControlMode -> XML) -> ToXML H264RateControlMode
forall a. (a -> XML) -> ToXML a
toXML :: H264RateControlMode -> XML
$ctoXML :: H264RateControlMode -> XML
Core.ToXML
)
pattern H264RateControlMode_CBR :: H264RateControlMode
pattern $bH264RateControlMode_CBR :: H264RateControlMode
$mH264RateControlMode_CBR :: forall r. H264RateControlMode -> (Void# -> r) -> (Void# -> r) -> r
H264RateControlMode_CBR = H264RateControlMode' "CBR"
pattern H264RateControlMode_MULTIPLEX :: H264RateControlMode
pattern $bH264RateControlMode_MULTIPLEX :: H264RateControlMode
$mH264RateControlMode_MULTIPLEX :: forall r. H264RateControlMode -> (Void# -> r) -> (Void# -> r) -> r
H264RateControlMode_MULTIPLEX = H264RateControlMode' "MULTIPLEX"
pattern H264RateControlMode_QVBR :: H264RateControlMode
pattern $bH264RateControlMode_QVBR :: H264RateControlMode
$mH264RateControlMode_QVBR :: forall r. H264RateControlMode -> (Void# -> r) -> (Void# -> r) -> r
H264RateControlMode_QVBR = H264RateControlMode' "QVBR"
pattern H264RateControlMode_VBR :: H264RateControlMode
pattern $bH264RateControlMode_VBR :: H264RateControlMode
$mH264RateControlMode_VBR :: forall r. H264RateControlMode -> (Void# -> r) -> (Void# -> r) -> r
H264RateControlMode_VBR = H264RateControlMode' "VBR"
{-# COMPLETE
H264RateControlMode_CBR,
H264RateControlMode_MULTIPLEX,
H264RateControlMode_QVBR,
H264RateControlMode_VBR,
H264RateControlMode'
#-}