{-# 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.Prelude as Prelude
newtype M2tsRateMode = M2tsRateMode'
{ M2tsRateMode -> Text
fromM2tsRateMode ::
Core.Text
}
deriving stock
( Int -> M2tsRateMode -> ShowS
[M2tsRateMode] -> ShowS
M2tsRateMode -> String
(Int -> M2tsRateMode -> ShowS)
-> (M2tsRateMode -> String)
-> ([M2tsRateMode] -> ShowS)
-> Show M2tsRateMode
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]
(Int -> ReadS M2tsRateMode)
-> ReadS [M2tsRateMode]
-> ReadPrec M2tsRateMode
-> ReadPrec [M2tsRateMode]
-> Read 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
(M2tsRateMode -> M2tsRateMode -> Bool)
-> (M2tsRateMode -> M2tsRateMode -> Bool) -> Eq M2tsRateMode
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
Eq M2tsRateMode
-> (M2tsRateMode -> M2tsRateMode -> Ordering)
-> (M2tsRateMode -> M2tsRateMode -> Bool)
-> (M2tsRateMode -> M2tsRateMode -> Bool)
-> (M2tsRateMode -> M2tsRateMode -> Bool)
-> (M2tsRateMode -> M2tsRateMode -> Bool)
-> (M2tsRateMode -> M2tsRateMode -> M2tsRateMode)
-> (M2tsRateMode -> M2tsRateMode -> M2tsRateMode)
-> Ord 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
$cp1Ord :: Eq M2tsRateMode
Prelude.Ord,
(forall x. M2tsRateMode -> Rep M2tsRateMode x)
-> (forall x. Rep M2tsRateMode x -> M2tsRateMode)
-> Generic M2tsRateMode
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
( Int -> M2tsRateMode -> Int
M2tsRateMode -> Int
(Int -> M2tsRateMode -> Int)
-> (M2tsRateMode -> Int) -> Hashable M2tsRateMode
forall 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 -> ()
(M2tsRateMode -> ()) -> NFData M2tsRateMode
forall a. (a -> ()) -> NFData a
rnf :: M2tsRateMode -> ()
$crnf :: M2tsRateMode -> ()
Prelude.NFData,
Text -> Either String M2tsRateMode
(Text -> Either String M2tsRateMode) -> FromText M2tsRateMode
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String M2tsRateMode
$cfromText :: Text -> Either String M2tsRateMode
Core.FromText,
M2tsRateMode -> Text
(M2tsRateMode -> Text) -> ToText M2tsRateMode
forall a. (a -> Text) -> ToText a
toText :: M2tsRateMode -> Text
$ctoText :: M2tsRateMode -> Text
Core.ToText,
M2tsRateMode -> ByteString
(M2tsRateMode -> ByteString) -> ToByteString M2tsRateMode
forall a. (a -> ByteString) -> ToByteString a
toBS :: M2tsRateMode -> ByteString
$ctoBS :: M2tsRateMode -> ByteString
Core.ToByteString,
M2tsRateMode -> ByteStringBuilder
(M2tsRateMode -> ByteStringBuilder) -> ToLog M2tsRateMode
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: M2tsRateMode -> ByteStringBuilder
$cbuild :: M2tsRateMode -> ByteStringBuilder
Core.ToLog,
HeaderName -> M2tsRateMode -> [Header]
(HeaderName -> M2tsRateMode -> [Header]) -> ToHeader M2tsRateMode
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> M2tsRateMode -> [Header]
$ctoHeader :: HeaderName -> M2tsRateMode -> [Header]
Core.ToHeader,
M2tsRateMode -> QueryString
(M2tsRateMode -> QueryString) -> ToQuery M2tsRateMode
forall a. (a -> QueryString) -> ToQuery a
toQuery :: M2tsRateMode -> QueryString
$ctoQuery :: M2tsRateMode -> QueryString
Core.ToQuery,
Value -> Parser [M2tsRateMode]
Value -> Parser M2tsRateMode
(Value -> Parser M2tsRateMode)
-> (Value -> Parser [M2tsRateMode]) -> FromJSON 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
Core.FromJSON,
FromJSONKeyFunction [M2tsRateMode]
FromJSONKeyFunction M2tsRateMode
FromJSONKeyFunction M2tsRateMode
-> FromJSONKeyFunction [M2tsRateMode] -> FromJSONKey M2tsRateMode
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [M2tsRateMode]
$cfromJSONKeyList :: FromJSONKeyFunction [M2tsRateMode]
fromJSONKey :: FromJSONKeyFunction M2tsRateMode
$cfromJSONKey :: FromJSONKeyFunction M2tsRateMode
Core.FromJSONKey,
[M2tsRateMode] -> Encoding
[M2tsRateMode] -> Value
M2tsRateMode -> Encoding
M2tsRateMode -> Value
(M2tsRateMode -> Value)
-> (M2tsRateMode -> Encoding)
-> ([M2tsRateMode] -> Value)
-> ([M2tsRateMode] -> Encoding)
-> ToJSON M2tsRateMode
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
Core.ToJSON,
ToJSONKeyFunction [M2tsRateMode]
ToJSONKeyFunction M2tsRateMode
ToJSONKeyFunction M2tsRateMode
-> ToJSONKeyFunction [M2tsRateMode] -> ToJSONKey M2tsRateMode
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [M2tsRateMode]
$ctoJSONKeyList :: ToJSONKeyFunction [M2tsRateMode]
toJSONKey :: ToJSONKeyFunction M2tsRateMode
$ctoJSONKey :: ToJSONKeyFunction M2tsRateMode
Core.ToJSONKey,
[Node] -> Either String M2tsRateMode
([Node] -> Either String M2tsRateMode) -> FromXML M2tsRateMode
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String M2tsRateMode
$cparseXML :: [Node] -> Either String M2tsRateMode
Core.FromXML,
M2tsRateMode -> XML
(M2tsRateMode -> XML) -> ToXML M2tsRateMode
forall a. (a -> XML) -> ToXML a
toXML :: M2tsRateMode -> XML
$ctoXML :: M2tsRateMode -> XML
Core.ToXML
)
pattern M2tsRateMode_CBR :: M2tsRateMode
pattern $bM2tsRateMode_CBR :: M2tsRateMode
$mM2tsRateMode_CBR :: forall r. M2tsRateMode -> (Void# -> r) -> (Void# -> r) -> r
M2tsRateMode_CBR = M2tsRateMode' "CBR"
pattern M2tsRateMode_VBR :: M2tsRateMode
pattern $bM2tsRateMode_VBR :: M2tsRateMode
$mM2tsRateMode_VBR :: forall r. M2tsRateMode -> (Void# -> r) -> (Void# -> r) -> r
M2tsRateMode_VBR = M2tsRateMode' "VBR"
{-# COMPLETE
M2tsRateMode_CBR,
M2tsRateMode_VBR,
M2tsRateMode'
#-}