{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.MediaConvert.Types.Mpeg2CodecLevel
( Mpeg2CodecLevel
( ..,
Mpeg2CodecLevel_AUTO,
Mpeg2CodecLevel_HIGH,
Mpeg2CodecLevel_HIGH1440,
Mpeg2CodecLevel_LOW,
Mpeg2CodecLevel_MAIN
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype Mpeg2CodecLevel = Mpeg2CodecLevel'
{ Mpeg2CodecLevel -> Text
fromMpeg2CodecLevel ::
Core.Text
}
deriving stock
( Int -> Mpeg2CodecLevel -> ShowS
[Mpeg2CodecLevel] -> ShowS
Mpeg2CodecLevel -> String
(Int -> Mpeg2CodecLevel -> ShowS)
-> (Mpeg2CodecLevel -> String)
-> ([Mpeg2CodecLevel] -> ShowS)
-> Show Mpeg2CodecLevel
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [Mpeg2CodecLevel] -> ShowS
$cshowList :: [Mpeg2CodecLevel] -> ShowS
show :: Mpeg2CodecLevel -> String
$cshow :: Mpeg2CodecLevel -> String
showsPrec :: Int -> Mpeg2CodecLevel -> ShowS
$cshowsPrec :: Int -> Mpeg2CodecLevel -> ShowS
Prelude.Show,
ReadPrec [Mpeg2CodecLevel]
ReadPrec Mpeg2CodecLevel
Int -> ReadS Mpeg2CodecLevel
ReadS [Mpeg2CodecLevel]
(Int -> ReadS Mpeg2CodecLevel)
-> ReadS [Mpeg2CodecLevel]
-> ReadPrec Mpeg2CodecLevel
-> ReadPrec [Mpeg2CodecLevel]
-> Read Mpeg2CodecLevel
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [Mpeg2CodecLevel]
$creadListPrec :: ReadPrec [Mpeg2CodecLevel]
readPrec :: ReadPrec Mpeg2CodecLevel
$creadPrec :: ReadPrec Mpeg2CodecLevel
readList :: ReadS [Mpeg2CodecLevel]
$creadList :: ReadS [Mpeg2CodecLevel]
readsPrec :: Int -> ReadS Mpeg2CodecLevel
$creadsPrec :: Int -> ReadS Mpeg2CodecLevel
Prelude.Read,
Mpeg2CodecLevel -> Mpeg2CodecLevel -> Bool
(Mpeg2CodecLevel -> Mpeg2CodecLevel -> Bool)
-> (Mpeg2CodecLevel -> Mpeg2CodecLevel -> Bool)
-> Eq Mpeg2CodecLevel
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: Mpeg2CodecLevel -> Mpeg2CodecLevel -> Bool
$c/= :: Mpeg2CodecLevel -> Mpeg2CodecLevel -> Bool
== :: Mpeg2CodecLevel -> Mpeg2CodecLevel -> Bool
$c== :: Mpeg2CodecLevel -> Mpeg2CodecLevel -> Bool
Prelude.Eq,
Eq Mpeg2CodecLevel
Eq Mpeg2CodecLevel
-> (Mpeg2CodecLevel -> Mpeg2CodecLevel -> Ordering)
-> (Mpeg2CodecLevel -> Mpeg2CodecLevel -> Bool)
-> (Mpeg2CodecLevel -> Mpeg2CodecLevel -> Bool)
-> (Mpeg2CodecLevel -> Mpeg2CodecLevel -> Bool)
-> (Mpeg2CodecLevel -> Mpeg2CodecLevel -> Bool)
-> (Mpeg2CodecLevel -> Mpeg2CodecLevel -> Mpeg2CodecLevel)
-> (Mpeg2CodecLevel -> Mpeg2CodecLevel -> Mpeg2CodecLevel)
-> Ord Mpeg2CodecLevel
Mpeg2CodecLevel -> Mpeg2CodecLevel -> Bool
Mpeg2CodecLevel -> Mpeg2CodecLevel -> Ordering
Mpeg2CodecLevel -> Mpeg2CodecLevel -> Mpeg2CodecLevel
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 :: Mpeg2CodecLevel -> Mpeg2CodecLevel -> Mpeg2CodecLevel
$cmin :: Mpeg2CodecLevel -> Mpeg2CodecLevel -> Mpeg2CodecLevel
max :: Mpeg2CodecLevel -> Mpeg2CodecLevel -> Mpeg2CodecLevel
$cmax :: Mpeg2CodecLevel -> Mpeg2CodecLevel -> Mpeg2CodecLevel
>= :: Mpeg2CodecLevel -> Mpeg2CodecLevel -> Bool
$c>= :: Mpeg2CodecLevel -> Mpeg2CodecLevel -> Bool
> :: Mpeg2CodecLevel -> Mpeg2CodecLevel -> Bool
$c> :: Mpeg2CodecLevel -> Mpeg2CodecLevel -> Bool
<= :: Mpeg2CodecLevel -> Mpeg2CodecLevel -> Bool
$c<= :: Mpeg2CodecLevel -> Mpeg2CodecLevel -> Bool
< :: Mpeg2CodecLevel -> Mpeg2CodecLevel -> Bool
$c< :: Mpeg2CodecLevel -> Mpeg2CodecLevel -> Bool
compare :: Mpeg2CodecLevel -> Mpeg2CodecLevel -> Ordering
$ccompare :: Mpeg2CodecLevel -> Mpeg2CodecLevel -> Ordering
$cp1Ord :: Eq Mpeg2CodecLevel
Prelude.Ord,
(forall x. Mpeg2CodecLevel -> Rep Mpeg2CodecLevel x)
-> (forall x. Rep Mpeg2CodecLevel x -> Mpeg2CodecLevel)
-> Generic Mpeg2CodecLevel
forall x. Rep Mpeg2CodecLevel x -> Mpeg2CodecLevel
forall x. Mpeg2CodecLevel -> Rep Mpeg2CodecLevel x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep Mpeg2CodecLevel x -> Mpeg2CodecLevel
$cfrom :: forall x. Mpeg2CodecLevel -> Rep Mpeg2CodecLevel x
Prelude.Generic
)
deriving newtype
( Int -> Mpeg2CodecLevel -> Int
Mpeg2CodecLevel -> Int
(Int -> Mpeg2CodecLevel -> Int)
-> (Mpeg2CodecLevel -> Int) -> Hashable Mpeg2CodecLevel
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: Mpeg2CodecLevel -> Int
$chash :: Mpeg2CodecLevel -> Int
hashWithSalt :: Int -> Mpeg2CodecLevel -> Int
$chashWithSalt :: Int -> Mpeg2CodecLevel -> Int
Prelude.Hashable,
Mpeg2CodecLevel -> ()
(Mpeg2CodecLevel -> ()) -> NFData Mpeg2CodecLevel
forall a. (a -> ()) -> NFData a
rnf :: Mpeg2CodecLevel -> ()
$crnf :: Mpeg2CodecLevel -> ()
Prelude.NFData,
Text -> Either String Mpeg2CodecLevel
(Text -> Either String Mpeg2CodecLevel) -> FromText Mpeg2CodecLevel
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String Mpeg2CodecLevel
$cfromText :: Text -> Either String Mpeg2CodecLevel
Core.FromText,
Mpeg2CodecLevel -> Text
(Mpeg2CodecLevel -> Text) -> ToText Mpeg2CodecLevel
forall a. (a -> Text) -> ToText a
toText :: Mpeg2CodecLevel -> Text
$ctoText :: Mpeg2CodecLevel -> Text
Core.ToText,
Mpeg2CodecLevel -> ByteString
(Mpeg2CodecLevel -> ByteString) -> ToByteString Mpeg2CodecLevel
forall a. (a -> ByteString) -> ToByteString a
toBS :: Mpeg2CodecLevel -> ByteString
$ctoBS :: Mpeg2CodecLevel -> ByteString
Core.ToByteString,
Mpeg2CodecLevel -> ByteStringBuilder
(Mpeg2CodecLevel -> ByteStringBuilder) -> ToLog Mpeg2CodecLevel
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: Mpeg2CodecLevel -> ByteStringBuilder
$cbuild :: Mpeg2CodecLevel -> ByteStringBuilder
Core.ToLog,
HeaderName -> Mpeg2CodecLevel -> [Header]
(HeaderName -> Mpeg2CodecLevel -> [Header])
-> ToHeader Mpeg2CodecLevel
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> Mpeg2CodecLevel -> [Header]
$ctoHeader :: HeaderName -> Mpeg2CodecLevel -> [Header]
Core.ToHeader,
Mpeg2CodecLevel -> QueryString
(Mpeg2CodecLevel -> QueryString) -> ToQuery Mpeg2CodecLevel
forall a. (a -> QueryString) -> ToQuery a
toQuery :: Mpeg2CodecLevel -> QueryString
$ctoQuery :: Mpeg2CodecLevel -> QueryString
Core.ToQuery,
Value -> Parser [Mpeg2CodecLevel]
Value -> Parser Mpeg2CodecLevel
(Value -> Parser Mpeg2CodecLevel)
-> (Value -> Parser [Mpeg2CodecLevel]) -> FromJSON Mpeg2CodecLevel
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [Mpeg2CodecLevel]
$cparseJSONList :: Value -> Parser [Mpeg2CodecLevel]
parseJSON :: Value -> Parser Mpeg2CodecLevel
$cparseJSON :: Value -> Parser Mpeg2CodecLevel
Core.FromJSON,
FromJSONKeyFunction [Mpeg2CodecLevel]
FromJSONKeyFunction Mpeg2CodecLevel
FromJSONKeyFunction Mpeg2CodecLevel
-> FromJSONKeyFunction [Mpeg2CodecLevel]
-> FromJSONKey Mpeg2CodecLevel
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [Mpeg2CodecLevel]
$cfromJSONKeyList :: FromJSONKeyFunction [Mpeg2CodecLevel]
fromJSONKey :: FromJSONKeyFunction Mpeg2CodecLevel
$cfromJSONKey :: FromJSONKeyFunction Mpeg2CodecLevel
Core.FromJSONKey,
[Mpeg2CodecLevel] -> Encoding
[Mpeg2CodecLevel] -> Value
Mpeg2CodecLevel -> Encoding
Mpeg2CodecLevel -> Value
(Mpeg2CodecLevel -> Value)
-> (Mpeg2CodecLevel -> Encoding)
-> ([Mpeg2CodecLevel] -> Value)
-> ([Mpeg2CodecLevel] -> Encoding)
-> ToJSON Mpeg2CodecLevel
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [Mpeg2CodecLevel] -> Encoding
$ctoEncodingList :: [Mpeg2CodecLevel] -> Encoding
toJSONList :: [Mpeg2CodecLevel] -> Value
$ctoJSONList :: [Mpeg2CodecLevel] -> Value
toEncoding :: Mpeg2CodecLevel -> Encoding
$ctoEncoding :: Mpeg2CodecLevel -> Encoding
toJSON :: Mpeg2CodecLevel -> Value
$ctoJSON :: Mpeg2CodecLevel -> Value
Core.ToJSON,
ToJSONKeyFunction [Mpeg2CodecLevel]
ToJSONKeyFunction Mpeg2CodecLevel
ToJSONKeyFunction Mpeg2CodecLevel
-> ToJSONKeyFunction [Mpeg2CodecLevel] -> ToJSONKey Mpeg2CodecLevel
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [Mpeg2CodecLevel]
$ctoJSONKeyList :: ToJSONKeyFunction [Mpeg2CodecLevel]
toJSONKey :: ToJSONKeyFunction Mpeg2CodecLevel
$ctoJSONKey :: ToJSONKeyFunction Mpeg2CodecLevel
Core.ToJSONKey,
[Node] -> Either String Mpeg2CodecLevel
([Node] -> Either String Mpeg2CodecLevel)
-> FromXML Mpeg2CodecLevel
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String Mpeg2CodecLevel
$cparseXML :: [Node] -> Either String Mpeg2CodecLevel
Core.FromXML,
Mpeg2CodecLevel -> XML
(Mpeg2CodecLevel -> XML) -> ToXML Mpeg2CodecLevel
forall a. (a -> XML) -> ToXML a
toXML :: Mpeg2CodecLevel -> XML
$ctoXML :: Mpeg2CodecLevel -> XML
Core.ToXML
)
pattern Mpeg2CodecLevel_AUTO :: Mpeg2CodecLevel
pattern $bMpeg2CodecLevel_AUTO :: Mpeg2CodecLevel
$mMpeg2CodecLevel_AUTO :: forall r. Mpeg2CodecLevel -> (Void# -> r) -> (Void# -> r) -> r
Mpeg2CodecLevel_AUTO = Mpeg2CodecLevel' "AUTO"
pattern Mpeg2CodecLevel_HIGH :: Mpeg2CodecLevel
pattern $bMpeg2CodecLevel_HIGH :: Mpeg2CodecLevel
$mMpeg2CodecLevel_HIGH :: forall r. Mpeg2CodecLevel -> (Void# -> r) -> (Void# -> r) -> r
Mpeg2CodecLevel_HIGH = Mpeg2CodecLevel' "HIGH"
pattern Mpeg2CodecLevel_HIGH1440 :: Mpeg2CodecLevel
pattern $bMpeg2CodecLevel_HIGH1440 :: Mpeg2CodecLevel
$mMpeg2CodecLevel_HIGH1440 :: forall r. Mpeg2CodecLevel -> (Void# -> r) -> (Void# -> r) -> r
Mpeg2CodecLevel_HIGH1440 = Mpeg2CodecLevel' "HIGH1440"
pattern Mpeg2CodecLevel_LOW :: Mpeg2CodecLevel
pattern $bMpeg2CodecLevel_LOW :: Mpeg2CodecLevel
$mMpeg2CodecLevel_LOW :: forall r. Mpeg2CodecLevel -> (Void# -> r) -> (Void# -> r) -> r
Mpeg2CodecLevel_LOW = Mpeg2CodecLevel' "LOW"
pattern Mpeg2CodecLevel_MAIN :: Mpeg2CodecLevel
pattern $bMpeg2CodecLevel_MAIN :: Mpeg2CodecLevel
$mMpeg2CodecLevel_MAIN :: forall r. Mpeg2CodecLevel -> (Void# -> r) -> (Void# -> r) -> r
Mpeg2CodecLevel_MAIN = Mpeg2CodecLevel' "MAIN"
{-# COMPLETE
Mpeg2CodecLevel_AUTO,
Mpeg2CodecLevel_HIGH,
Mpeg2CodecLevel_HIGH1440,
Mpeg2CodecLevel_LOW,
Mpeg2CodecLevel_MAIN,
Mpeg2CodecLevel'
#-}