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