{-# 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.M2tsRateMode
( M2tsRateMode
( ..,
M2tsRateMode_CBR,
M2tsRateMode_VBR
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
newtype M2tsRateMode = M2tsRateMode'
{ M2tsRateMode -> Text
fromM2tsRateMode ::
Data.Text
}
deriving stock
( Int -> M2tsRateMode -> ShowS
[M2tsRateMode] -> ShowS
M2tsRateMode -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [M2tsRateMode] -> ShowS
$cshowList :: [M2tsRateMode] -> ShowS
show :: M2tsRateMode -> String
$cshow :: M2tsRateMode -> String
showsPrec :: Int -> M2tsRateMode -> ShowS
$cshowsPrec :: Int -> M2tsRateMode -> ShowS
Prelude.Show,
ReadPrec [M2tsRateMode]
ReadPrec M2tsRateMode
Int -> ReadS M2tsRateMode
ReadS [M2tsRateMode]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [M2tsRateMode]
$creadListPrec :: ReadPrec [M2tsRateMode]
readPrec :: ReadPrec M2tsRateMode
$creadPrec :: ReadPrec M2tsRateMode
readList :: ReadS [M2tsRateMode]
$creadList :: ReadS [M2tsRateMode]
readsPrec :: Int -> ReadS M2tsRateMode
$creadsPrec :: Int -> ReadS M2tsRateMode
Prelude.Read,
M2tsRateMode -> M2tsRateMode -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: M2tsRateMode -> M2tsRateMode -> Bool
$c/= :: M2tsRateMode -> M2tsRateMode -> Bool
== :: M2tsRateMode -> M2tsRateMode -> Bool
$c== :: M2tsRateMode -> M2tsRateMode -> Bool
Prelude.Eq,
Eq M2tsRateMode
M2tsRateMode -> M2tsRateMode -> Bool
M2tsRateMode -> M2tsRateMode -> Ordering
M2tsRateMode -> M2tsRateMode -> M2tsRateMode
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 :: M2tsRateMode -> M2tsRateMode -> M2tsRateMode
$cmin :: M2tsRateMode -> M2tsRateMode -> M2tsRateMode
max :: M2tsRateMode -> M2tsRateMode -> M2tsRateMode
$cmax :: M2tsRateMode -> M2tsRateMode -> M2tsRateMode
>= :: M2tsRateMode -> M2tsRateMode -> Bool
$c>= :: M2tsRateMode -> M2tsRateMode -> Bool
> :: M2tsRateMode -> M2tsRateMode -> Bool
$c> :: M2tsRateMode -> M2tsRateMode -> Bool
<= :: M2tsRateMode -> M2tsRateMode -> Bool
$c<= :: M2tsRateMode -> M2tsRateMode -> Bool
< :: M2tsRateMode -> M2tsRateMode -> Bool
$c< :: M2tsRateMode -> M2tsRateMode -> Bool
compare :: M2tsRateMode -> M2tsRateMode -> Ordering
$ccompare :: M2tsRateMode -> M2tsRateMode -> Ordering
Prelude.Ord,
forall x. Rep M2tsRateMode x -> M2tsRateMode
forall x. M2tsRateMode -> Rep M2tsRateMode x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep M2tsRateMode x -> M2tsRateMode
$cfrom :: forall x. M2tsRateMode -> Rep M2tsRateMode x
Prelude.Generic
)
deriving newtype
( Eq M2tsRateMode
Int -> M2tsRateMode -> Int
M2tsRateMode -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: M2tsRateMode -> Int
$chash :: M2tsRateMode -> Int
hashWithSalt :: Int -> M2tsRateMode -> Int
$chashWithSalt :: Int -> M2tsRateMode -> Int
Prelude.Hashable,
M2tsRateMode -> ()
forall a. (a -> ()) -> NFData a
rnf :: M2tsRateMode -> ()
$crnf :: M2tsRateMode -> ()
Prelude.NFData,
Text -> Either String M2tsRateMode
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String M2tsRateMode
$cfromText :: Text -> Either String M2tsRateMode
Data.FromText,
M2tsRateMode -> Text
forall a. (a -> Text) -> ToText a
toText :: M2tsRateMode -> Text
$ctoText :: M2tsRateMode -> Text
Data.ToText,
M2tsRateMode -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: M2tsRateMode -> ByteString
$ctoBS :: M2tsRateMode -> ByteString
Data.ToByteString,
M2tsRateMode -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: M2tsRateMode -> ByteStringBuilder
$cbuild :: M2tsRateMode -> ByteStringBuilder
Data.ToLog,
HeaderName -> M2tsRateMode -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> M2tsRateMode -> [Header]
$ctoHeader :: HeaderName -> M2tsRateMode -> [Header]
Data.ToHeader,
M2tsRateMode -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: M2tsRateMode -> QueryString
$ctoQuery :: M2tsRateMode -> QueryString
Data.ToQuery,
Value -> Parser [M2tsRateMode]
Value -> Parser M2tsRateMode
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [M2tsRateMode]
$cparseJSONList :: Value -> Parser [M2tsRateMode]
parseJSON :: Value -> Parser M2tsRateMode
$cparseJSON :: Value -> Parser M2tsRateMode
Data.FromJSON,
FromJSONKeyFunction [M2tsRateMode]
FromJSONKeyFunction M2tsRateMode
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [M2tsRateMode]
$cfromJSONKeyList :: FromJSONKeyFunction [M2tsRateMode]
fromJSONKey :: FromJSONKeyFunction M2tsRateMode
$cfromJSONKey :: FromJSONKeyFunction M2tsRateMode
Data.FromJSONKey,
[M2tsRateMode] -> Encoding
[M2tsRateMode] -> Value
M2tsRateMode -> Encoding
M2tsRateMode -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [M2tsRateMode] -> Encoding
$ctoEncodingList :: [M2tsRateMode] -> Encoding
toJSONList :: [M2tsRateMode] -> Value
$ctoJSONList :: [M2tsRateMode] -> Value
toEncoding :: M2tsRateMode -> Encoding
$ctoEncoding :: M2tsRateMode -> Encoding
toJSON :: M2tsRateMode -> Value
$ctoJSON :: M2tsRateMode -> Value
Data.ToJSON,
ToJSONKeyFunction [M2tsRateMode]
ToJSONKeyFunction M2tsRateMode
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [M2tsRateMode]
$ctoJSONKeyList :: ToJSONKeyFunction [M2tsRateMode]
toJSONKey :: ToJSONKeyFunction M2tsRateMode
$ctoJSONKey :: ToJSONKeyFunction M2tsRateMode
Data.ToJSONKey,
[Node] -> Either String M2tsRateMode
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String M2tsRateMode
$cparseXML :: [Node] -> Either String M2tsRateMode
Data.FromXML,
M2tsRateMode -> XML
forall a. (a -> XML) -> ToXML a
toXML :: M2tsRateMode -> XML
$ctoXML :: M2tsRateMode -> XML
Data.ToXML
)
pattern M2tsRateMode_CBR :: M2tsRateMode
pattern $bM2tsRateMode_CBR :: M2tsRateMode
$mM2tsRateMode_CBR :: forall {r}. M2tsRateMode -> ((# #) -> r) -> ((# #) -> r) -> r
M2tsRateMode_CBR = M2tsRateMode' "CBR"
pattern M2tsRateMode_VBR :: M2tsRateMode
pattern $bM2tsRateMode_VBR :: M2tsRateMode
$mM2tsRateMode_VBR :: forall {r}. M2tsRateMode -> ((# #) -> r) -> ((# #) -> r) -> r
M2tsRateMode_VBR = M2tsRateMode' "VBR"
{-# COMPLETE
M2tsRateMode_CBR,
M2tsRateMode_VBR,
M2tsRateMode'
#-}